很多小时后,我无法修复活动底部的按钮。要么是不可见的,要么是顶部。我也试过没有相对布局,我尝试添加另一个线性布局,但我仍然不知道如何设置此按钮。使用Android中的布局进行按钮定位
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".News" >
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/news" />
android:id="@+id/webView1"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:id="@+id/newsbutton"
style="?android:attr/buttonStyleSmall"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:text="Chiudi" />
+0
你可以发布它目前的样子吗?您的按钮可能会从屏幕底部被推下。 –