android各种常用设置
来源:互联网 发布:实景地图软件 编辑:程序博客网 时间:2024/06/10 19:49
1.设置listview没有分隔线跟滚动条
android:divider="#00000000"
android:scrollbars="none"
2.取消edittext自动获取的焦点
在edittext的父级元素中设置
android:focusable="true"
android:focusableInTouchMode="true"
例子:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="0dp"
android:layout_weight="1"
android:orientation="vertical"
android:background="@drawable/login_layout_shape"
android:layout_margin="10dp"
>
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:focusable="true"
android:focusableInTouchMode="true"
>
<RelativeLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
>
<EditText
android:layout_height="45dp"
android:layout_width="match_parent"
android:layout_margin="10dp"
android:hint="@string/EmergencyRes_search"
android:drawableLeft="@drawable/search_drawable"
android:drawablePadding="25dp"
android:textSize="18sp"
android:layout_centerInParent="true"
android:background="@drawable/search_edittext_shape"/>
<ImageView
android:id="@+id/rs_search_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/search_icon"
android:paddingLeft="15dp"
android:layout_centerVertical="true"
/>
</RelativeLayout>
<View
android:layout_height="2px"
android:layout_width="wrap_content"
android:background="@color/driver_color"
/>
</LinearLayout>
<LinearLayout
android:layout_height="45dp"
android:layout_width="match_parent"
android:orientation="horizontal"
>
<RelativeLayout
android:layout_height="45dp"
android:layout_width="140dp"
android:id="@+id/table_1"
>
<TextView
android:id="@+id/tv_01"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="18sp"
android:textColor="@color/driver_color"
android:drawableRight="@drawable/xiala"
android:text="@string/EmergencyRes_table_1"
android:layout_centerInParent="true"
/>
</RelativeLayout>
<View
android:layout_height="45dp"
android:layout_width="2px"
android:background="@color/driver_color"/>
<RelativeLayout
android:layout_height="45dp"
android:layout_width="140dp"
android:id="@+id/table_2"
>
<TextView
android:id="@+id/tv_02"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="18sp"
android:drawableRight="@drawable/xiala"
android:textColor="@color/driver_color"
android:text="@string/EmergencyRes_table_2"
android:layout_centerInParent="true"/>
</RelativeLayout>
<View
android:layout_height="45dp"
android:layout_width="2px"
android:background="@color/driver_color"/>
<RelativeLayout
android:layout_height="45dp"
android:layout_width="140dp"
android:id="@+id/table_3"
>
<TextView
android:id="@+id/tv_03"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="18sp"
android:drawableRight="@drawable/xiala"
android:textColor="@color/driver_color"
android:text="@string/EmergencyRes_table_3"
android:layout_centerInParent="true"/>
</RelativeLayout>
</LinearLayout>
<View
android:layout_height="2px"
android:layout_width="wrap_content"
android:background="@color/driver_color"
/>
</LinearLayout>
- android各种常用设置
- Android标题栏各种设置
- Android标题栏各种设置
- Android标题栏各种设置
- Android标题栏各种设置
- Android标题栏各种设置
- Android标题栏各种设置
- android 各种设置1
- Android studio各种设置
- android 各种常用弹出窗口
- 四极管:Android标题栏各种设置
- Android标题栏的各种设置
- android设置各种字体样式
- Android标题栏的各种设置
- AndroidManifest.xml文件设置各种常用权限
- 各种IDE设置常用的开发选项
- Android Studio常用设置
- android常用属性设置
- 第26周-window程序设计(基础篇)-第5章(图形基础)-点和线
- leetcode之判断中心对称二叉树
- Linux下oracle启动/关闭监听(bash:lsnrctl:command not found)
- 小K
- 判断身份证号正确
- android各种常用设置
- 【codevs 2188】最长上升子序列
- Ubunu 14.04 下搜狗输入法的安装
- java持久层框架mybatis如何防止sql注入
- 稀疏表达以及相关改进
- 【Cherry云计算】ACF - 阿里云认证考试
- c#修改注册表改变【对该区域中的所有站点要求服务器验证】
- 偏差和方差的区别(机器学习)
- 通用定时器原理