我需要使用show first按钮,而不仅仅是一张图片。但我的应用程序无法启动。首先“ImageView”,第二个“RelativeLayout” - 工作,但首先“RelativeLayout”,第二个“ImageView” - 不
这是作品:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/imageview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
/>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1">
<Button
android:id="@+id/make_photo_again"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/make_photo_again_label"
android:layout_alignParentLeft="true"
/>
<Button
android:id="@+id/edit_photo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/edit_photo_label"
android:layout_alignParentRight="true"
/>
</RelativeLayout>
</LinearLayout>
..但如果我把“图片”下的“RelativeLayout的”应用程序无法正常工作。
真的不知道该怎么做..
你能告诉我,为什么?
有什么建议吗?
有你有你的图像设置为FILL_PARENT代替WRAP_CONTENT高度和宽度的原因是什么? – ByteMe
它为什么不起作用?只是说“它不起作用”并不意味着我们可能会遇到任何错误。 –
你想要你的imageview在底部或顶部... –