Android 调整图像大小时会删除文本
当我调整图像的大小时,它会删除屏幕底部的文本,我尝试过调整图像的大小来修复它,但结果是我无法在屏幕上同时显示这两个文本Android 调整图像大小时会删除文本,android,Android,当我调整图像的大小时,它会删除屏幕底部的文本,我尝试过调整图像的大小来修复它,但结果是我无法在屏幕上同时显示这两个文本 <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.a
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"
android:gravity="right">
<TextView android:layout_column="10"
android:layout_row="0"
android:id="@+id/welcome_message"
android:layout_width="match_parent"
android:layout_height="128dp"
android:layout_marginLeft="0dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:gravity="center"
android:text='Welcome to the Coleraine Town app, swipe your finger from left to right to access the menu or simply tap the blue "C" at the top left corner.'
android:layout_gravity="center|bottom"
android:textColor="#348dff"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="201dp"
android:id="@+id/home_image"
android:src="@drawable/home_image"
/>
</LinearLayout>
请为线性布局的每个子项添加布局权重尝试此布局
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"
android:gravity="right">
<TextView android:layout_column="10"
android:layout_row="0"
android:id="@+id/welcome_message"
android:layout_width="wrap_content"
android:layout_height="128dp"
android:layout_marginLeft="0dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:gravity="center"
android:text='Welcome to the Coleraine Town app, swipe your finger from left to right to access the menu or simply tap the blue "C" at the top left corner.'
android:layout_gravity="center|bottom"
android:textColor="#348dff"/>
<ImageView
android:layout_width="0dp"
android:layout_height="201dp"
android:id="@+id/home_image"
android:src="@drawable/home_image"
android:layout_weight="1"
/>
</LinearLayout>
你能添加一个屏幕截图示例吗