多くの入れ子になった LinearLayouts と入れ子になった重みでこれを達成しましたが、これはパフォーマンスにとって非常に悪いことがわかります。このようなレイアウトを取得する方法を知っている人はいますか?
また、画面全体の上にある必要があります。
多くの入れ子になった LinearLayouts と入れ子になった重みでこれを達成しましたが、これはパフォーマンスにとって非常に悪いことがわかります。このようなレイアウトを取得する方法を知っている人はいますか?
また、画面全体の上にある必要があります。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TEXTVIEW"
android:layout_marginTop="10dip"
android:gravity="center"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_marginTop="10dip"
android:text="TEXTVIEW" />
<GridView
android:id="@+id/grid"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_marginBottom="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="50dp"
android:horizontalSpacing="40dp"
android:numColumns="4"
android:verticalSpacing="10dp"
android:visibility="visible" />
</LinearLayout>