- 这是ListView文件
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="250dp"
android:scrollbars="none"/>
</LinearLayout>
- ListView下的item
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/item_layout"
android:layout_width="match_parent"
android:layout_height="250dp"
android:orientation="vertical"
android:background="#E9E9E9">
<TextView
android:id="@+id/tv_1"
android:layout_width="match_parent"
android:layout_height="50dp"
android:gravity="center"
android:textColor="@drawable/dialog_tv_text_color"
android:clickable="true"
android:textSize="14sp"
android:background="@drawable/dialog_tv_bg"/>
</LinearLayout>
- 将这个属性去除即可
本文地址:https://blog.csdn.net/BlowMoons/article/details/108703177
您可能感兴趣的文章:
如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!
网友评论