解决方案 »
- 求程序,给一个url 求多线程异步下载加缓存的程序
- 如何学习android文件系统
- android setPadding()跟setMargins()的区别是什么啊
- android游戏的地图编辑器?
- 新手第二个Android例子,居然出错了
- 在学安卓开发,想顺便学些Linux的知识和原理,求推荐
- 谁能给我一份ListView 实现字母分组的demo
- myeclipse 做完了android项目 拷贝lib下的APK给别人安卓 出现包解析错误
- android修改系统gps定位
- android6.0 camera2 录像 MediaRecorder.getsurface 失败
- ListView中的editText问题。
- 软件黑屏问题
主要我不知道你其他代码是什么样子的,但是你这个问题很常见的,其实主要是MATCH_PARENT造成的,你想要显示圆角的布局要和它的父布局隔开一点,我上传个代码你看下
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ListView
android:id="@+id/ufnh_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dip"
android:divider="@null">
</ListView>
</LinearLayout>
我的item是带圆角的,但是当我把android:layout_margin="5dip"这句去掉,圆角显示不出来,但是当我把android:layout_margin="5dip"这句加上圆角就有了