Я хотел бы иметь две настройки бок о бок в деятельности предпочтения. Примером может служить следующее:бок о бок pref android
image получил от обоев: Nebulander
Я попытался:
imagepref2.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingBottom="15dip"
android:paddingTop="15dip" >
<ImageView
android:id="@+id/thumb_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:src="@drawable/img_1" />
<ImageView
android:id="@+id/thumb_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:src="@drawable/img_2" >
</ImageView>
</LinearLayout>
Но это показывает, как: this
Не могли бы вы объяснить немного больше, в чем проблема на вашем макете? Я думаю, что результат соответствует именно тому, что вы определили в своем макете XML. – nKn