當我更改模擬器的方向時,徽標和菜單圖標不會移動到屏幕的兩端,而是顯示在中間。應用程序的方向並不完美
這是我的代碼。
`
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="70dp"
android:gravity="center"
android:animateLayoutChanges="true">
<ImageView
android:id="@+id/ivmainlogo"
android:layout_width="120dp"
android:layout_height="80dp"
android:src="@drawable/alfadesign1"
/>
<ImageView
android:id="@+id/ivmainmenu"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/menu1"
android:layout_marginLeft="120dp"/>
</LinearLayout>
</LinearLayout>`
這裏是得到的結果的圖像。
請幫我在這段代碼中, 謝謝。
你有任何景觀佈局..? – Ranjit
看我的帖子我編輯過它... – akky777
你需要把佈局土地文件夾,並把橫向相同的文件 –