Android Linearlayout 添加分割线
2013-10-11 11:26
323 查看
只要在xml 添加 就可以了
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:divider="@drawable/muti_dialog_horizontal_split"
android:showDividers="middle"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="button"
android:background="@drawable/group_touch_background"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/group_touch_background"
android:text="按钮1"
/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:divider="@drawable/muti_dialog_horizontal_split"
android:showDividers="middle"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="button"
android:background="@drawable/group_touch_background"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/group_touch_background"
android:text="按钮1"
/>
</LinearLayout>
相关文章推荐
- Android LinearLayout horizontal 添加分割线不显示 解决方案
- android LinearLayout添加分割线
- Android Material Design :LinearLayoutCompat添加分割线divider
- Android Material Design :LinearLayoutCompat添加分割线divider
- android LinearLayout容器添加分割线
- 给android的LinearLayout添加点击事件
- 给android的LinearLayout添加点击事件
- Android中利用LinearLayout动态添加UI控件
- android LinearLayout添加分隔线
- android 给LinearLayout中添加一定数量的控件,并让着一定数量的控件从右到左移动,每隔若干秒停顿一下,最后一个view链接第一个view,然后继续移动循环往复,形成一个死循环简单动画效果
- 给android的LinearLayout添加点击事件
- AndroidLinearLayout:添加阴影边界LinearLayout - Android LinearLayout : Add border with shadow around a line
- Android中利用LinearLayout动态添加控件
- Android TabLayout添加自定义分割线并且可以修改分割线高度
- (转)LinearLayoutCompat添加分割线----divider
- android LinearLayout添加分隔线
- Android中利用LinearLayout动态添加控件
- LinearLayout布局中每个控件之间添加分割线
- Android中利用LinearLayout动态添加控件
- android动态加载控件(LinearLayout)并获取动态添加的EditText里的值