0
40行以上のテキストが各行にあり、グリッドビューとテキストビューを使用しました。すべては今このの終わりに、私はどのように置くことができるボタンを表示したい私はグリッドビューをテキストビューと画像ボタンと共に使用しました。これらのすべての最後にボタンを表示する方法
リニアレイアウトの内側にされている。この
及びこれらを表示するボタン..
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"
/>