我试图用屏幕的底部来增加我的assist_update_btn,但它似乎没有这样做。出于某种原因,它坐在TextView下方,出于某种原因不与屏幕底部对齐。android:layout_alignParentBottom =“true”不能按预期运行。
任何输入,非常感谢。
<?xml version="1.0" encoding="utf-8"?>
<!-- LinearLayout allows border to expand to entire screen -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background"
android:orientation="vertical" >
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/apn_app_text_cta2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
android:layout_marginTop="30sp"
android:layout_marginLeft="30sp"
android:layout_marginRight="30sp"
android:textColor="#000000"
android:text="@string/apn_app_text_cta2"/>
<ImageView
android:id="@+id/assist_update_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/apn_app_text_cta2"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:src="@drawable/btn_next_inactivei" />
</RelativeLayout>
</ScrollView>
ü想你都在布局的底部和ImageView的下面的TextView和ImageView的textview ??是你想要的? – Manishika