我想要对齐两个按钮与线性布局右侧一个按钮和左侧一个按钮像下一个和上一个按钮在图像库。但我尝试对齐但不工作和下面的xml布局代码:
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@android:color/white"
android:gravity="bottom" >
android:id="@+id/linearLayout1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@android:color/black" >
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="prev"
android:layout_alignParentRight="true" />
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="next" />
这里是我的输出:
我是例外的输出像下面屏幕截图:
提前致谢!