我想要一个按钮一直出现在固定位置,在UI的页脚? (总是,如果它上面有组件或者没有)
在这里发布你的xml
来吧,请在这里粘贴XML(如果它太大,请在gist.github.com上)
相同的stackoverflow.com/questions/14779688和stackoverflow.com/questions/2386866
请在主布局下选择一个相对布局。 将其高度和宽度设置为填充父级,并将其重力设置为底部,并将任何textview或任何按钮放入其中。
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="bottom">
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Bottom Gravity" />
android:layout_width="fill_parent"
android:la