zoukankan      html  css  js  c++  java
  • android分割线

    http://blog.csdn.net/dekunchenivan/article/details/6640804

    在Android布局文件layout中设置水平分割线: 
    <View  
        android:layout_width="fill_parent"  
        android:layout_height="1px"  
        android:background="?android:attr/listDivider"  
    />  

    在Android布局文件layout中设置垂直分割线: 
    <View  
        android:layout_width="1px"  
        android:layout_height="fill_parent"  
        android:background="?android:attr/listDivider"  
    />  

    设置ListView分割线

    <LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content">
    <ListView 
            android:id="@+id/android:list"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:divider="#FFCC00"
            android:dividerHeight="4px"/>

    </LinearLayout>

    关键是这两句:

    android:divider="#FFCC00"

    android:dividerHeight="4px"

    前一句是设置分割线的颜色,后一句是设置分割线高(即分割线的粗细)

  • 相关阅读:
    Windbg DUMP
    NET媒体文件操作组件TagLib
    NET Framework、.NET Core、Xamarin
    面向切面编程
    微服务
    NET Core
    Yeoman generator
    Service Fabric
    Vue.JS 2.x
    CoreCLR
  • 原文地址:https://www.cnblogs.com/fx2008/p/3272472.html
Copyright © 2011-2022 走看看