我正在使用imageview进行动画制作,使其看起来像是从左到右的动作.但我的图像显示在其他视图的前面,以便用户可以单击图像.我试图在另一个视图后面显示它.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/layout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/main_bg2"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/languageChangePopup"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginLeft="50dp"
android:background="@drawable/startbtn" />
<EditText
android:id="@+id/showOutputEdit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="110dp"
android:layout_marginTop="50dp"
android:background="@drawable/display_textbx"
android:cursorVisible="false"
android:gravity="right|center"
android:paddingLeft="70dp"
android:paddingRight="70dp"
android:textColor="#ffffff"
android:textSize="45sp"
android:textStyle="bold" />
</LinearLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="match_parent" android:layout_weight="3.49">
<TableLayout
android:id="@+id/tableLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="136dp"
android:layout_marginTop="19dp" >
<TableRow
android:id="@+id/tableRow5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<Button
android:id="@+id/clearBtn"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@string/cbtn" />
<Button
android:id="@+id/sevenBtn"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@string/sevenbtn" />
<Button
android:id="@+id/eightBtn"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@string/eightbtn" /> …Run Code Online (Sandbox Code Playgroud)