需要下划线的地方<View
android:background="@drawable/shape_line"
android:layout_width="fill_parent"
android:layout_height="1.0px" />以下是drawable中的shape_line.xml<shape android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffe0e0e0" />
</shape>楼主可以试试
android:background="@drawable/shape_line"
android:layout_width="fill_parent"
android:layout_height="1.0px" />以下是drawable中的shape_line.xml<shape android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffe0e0e0" />
</shape>楼主可以试试
解决方案 »
- 如何修改录视频时帧率
- 问一个简单的android布局问题
- 为什么Android控件有时候要点两下才有效果
- 怎么做出这种效果的下拉框 ???
- android不允许复制粘贴内容进密码框怎么实现?
- 求助:system权限apk不能安装到真机上
- Android 普通View类里面的按钮怎么调用Activity里面的Dialog??
- 急急急----PAD端如何正确的显示WORD和EXCEL表单的样式
- 请问关于如何设置根据屏幕大小设置布局高度的问题
- 求大佬帮忙,我试了好多种办法没搞定
- sharedPreferences怎么保存List<Map<String, Object>>
- android控件textview里的缩略图如何点击看大图?
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item
android:left="-2dp"
android:right="-2dp"
android:top="-2dp">
<shape>
<solid android:color="#00FFFFFF" /> <stroke
android:width="1px"
android:color="#cc0000" />
</shape>
</item></layer-list>
第二层 shape peddingtop1dp 其余全白
那么效果就是 上面1条黑线