私には見解があります。レイアウトの左上とレイアウトの中央 (水平方向と垂直方向の両方) にイメージ ロゴを表示したい テキストの下に 2 つのボタン (横に並べて配置) を含むテキストが必要です。ここに私が持っているものがありますが、うまくいきません...助けはありますか?
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linearlayout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true"
android:background="@drawable/login_background"
>
<ImageView
android:id="@+id/imgLogo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="-6px"
android:layout_y="32px"
android:background="@drawable/logo"
/>
<RelativeLayout
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
>
<TextView android:id="@+id/txt1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Welcome to my app. Please select your language"
android:textColor="#FFFFFF"
android:textSize="20sp"
/>
<LinearLayout
android:orientation="horizontal"
android:background="@android:drawable/bottom_bar"
android:paddingLeft="4.0dip"
android:paddingTop="5.0dip"
android:paddingRight="4.0dip"
android:paddingBottom="1.0dip"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_below="@+id/TextView01"
android:gravity="center"
android:layout_centerInParent="true"
>
<Button
android:id="@+id/btnEnglish"
android:layout_width="0.0dip" android:layout_height="fill_parent"
android:text="English"
android:layout_weight="1.0"
/>
<Button
android:id="@+id/btnSpanish"
android:layout_width="0.0dip" android:layout_height="fill_parent"
android:text="Spanish"
android:layout_weight="1.0"
/>
</LinearLayout>
</RelativeLayout>