繁体   English   中英

我已经使用了网格视图以及文本视图和图像按钮,现在如何在所有这些末尾显示按钮

[英]i have used grid view along with text view and image button now how to show button at the end of all these

我有40多行,每行都有一些文本,并且我已经使用网格视图以及文本视图中的某些图像按钮来显示此内容

这些都在线性布局内

现在,在此结束时,我想向按钮显示如何放置。

请指导我

试试这个代码

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">   
    <GridView
            android:id="@+id/yourGrid"
            android:gravity="center"/>
    <Button 
    android:id="@+id/button1" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:text="Button 1"/>
</LinearLayout>

   <GridView 
    android:id="@+id/myGrid"
    android:layout_width="wrap_content"
    android:layout_height="380dp"
    android:padding="10dp"
    android:verticalSpacing="10dp"
    android:horizontalSpacing="10dp"
    android:numColumns="auto_fit"
    android:columnWidth="60dp"
    android:stretchMode="columnWidth"
    android:gravity="center"    /> 
    <Button 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content"
        android:text="GridView"
    /> 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM