您的位置:首页 > 其它

gridView保持间距的已知

2016-05-10 17:07 274 查看
activity_main.xml

<span style="font-size:18px;"><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >

<GridView
android:id="@+id/gv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#253689"
android:numColumns="3"
android:paddingBottom="10dp"
android:paddingLeft="10dp" />

</LinearLayout></span>

gridView_item.xml

<span style="font-size:18px;"><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="100dp" >

<TextView
android:id="@+id/tv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:background="#ff00ff" >
</TextView>

</LinearLayout></span>

参考链接 :http://blog.csdn.net/lqfsharks/article/details/49468113
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: