我有佈局,它由下面顯示的圖像部分組成。我只是想要設置所有圖像資源的翻譯動畫,從底部開始。當這樣做時,動畫開始落後於其他圖像佈局。我剛剛搜索瞭解決方案,但未找到解決方案。翻譯動畫是在其他組件後面
android:clipChildren="false";
yourLayout.bringToFront();
setZAdjustment(Animation.ZORDER_TOP);
以上所有解決方案都不適用於我。有人可以幫助我嗎?
我的XML代碼來創建圖像按鈕是
<TableRow
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1">
<LinearLayout
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1"
android:adjustViewBounds="true"
android:background="@drawable/bck_game_image"
android:layout_margin="1dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="4dp"
android:background="@drawable/bos">
<ImageButton
android:id="@+id/buton0"
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1"
android:adjustViewBounds="true"></ImageButton>
</LinearLayout>
</LinearLayout>
.....
</TableRow>
請發表您的xml代碼 –
添加了xml代碼 – nihasmata
更具體。我不明白你的問題。您想要製作哪些佈局?您可以使用Java代碼輕鬆完成。 –