加入收藏 | 设为首页 | 会员中心 | 我要投稿 应用网_丽江站长网 (http://www.0888zz.com/)- 科技、建站、数据工具、云上网络、机器学习!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

Android开发教程:ListView用法介绍

发布时间:2021-12-18 16:56:37 所属栏目:PHP教程 来源:互联网
导读:首先还是先把布局文件给大家贴出来 R.layout.frame.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:Android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=fill_parent android:paddingTop
首先还是先把布局文件给大家贴出来
 
R.layout.frame.xml
 
<?xml version="1.0" encoding="utf-8"?>  
<LinearLayout xmlns:Android="http://schemas.android.com/apk/res/android"  
    android:layout_width="fill_parent"  
    android:layout_height="fill_parent"  
    android:paddingTop="1pt"  
    android:paddingLeft="1pt"  
    android:paddingRight="10pt"  
    android:orientation="horizontal" >  
    <TextView   
        android:id ="@+id/appname"  
        android:layout_width="fill_parent"  
        android:layout_height="wrap_content"  
        android:textSize="15pt"  
        />  
</LinearLayout>
这是activity采用的布局文件,现在解释一下中间几个属性的含义
 
android:orientation 指定LineatLayout 是横向的还是纵向的 "vertical"纵向
 
android:drawSelectorOnTop 指定 容器是否画在内容上方
 
选择"false"
 
Android开发教程:ListView用法解析
选择"true"
 
 

(编辑:应用网_丽江站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读