私のアプリでは、ページのボタンに4つの画像ボタンを配置しています。しかし、私のレイアウトによれば、イメージは各デバイスで異なって見えます。すべてのデバイスでイメージが同じになるようにします。続きアンドロイドアプリの画像ボタンのUIに問題がある
は私のレイアウトの画像であり、後の私のイメージボタン
<LinearLayout android:layout_height="wrap_content" android:id="@+id/tabLayout" android:layout_width="match_parent"
android:background="@drawable/tab_bar" android:orientation="horizontal" android:layout_weight="0.1">
<RelativeLayout android:id="@+id/relativeLayout1" android:layout_height="match_parent" android:layout_width="match_parent">
<ImageButton android:layout_marginLeft="35dip" android:layout_height="wrap_content" android:id="@+id/homeBtn" android:background="@drawable/home" android:layout_width="wrap_content" android:layout_gravity="center"></ImageButton>
<ImageButton android:layout_marginLeft="35dip" android:layout_toRightOf="@+id/homeBtn" android:layout_height="wrap_content" android:id="@+id/addBtn" android:background="@drawable/add" android:layout_width="wrap_content" android:layout_gravity="center"></ImageButton>
<ImageButton android:layout_marginLeft="35dip" android:layout_toRightOf="@+id/addBtn" android:layout_height="wrap_content" android:id="@+id/srchBtn" android:background="@drawable/search" android:layout_width="wrap_content" android:layout_gravity="center"></ImageButton>
<ImageButton android:layout_marginLeft="35dip" android:layout_toRightOf="@+id/srchBtn" android:layout_height="wrap_content" android:id="@+id/helpBtn" android:background="@drawable/help" android:layout_width="wrap_content" android:layout_gravity="center"></ImageButton>
</RelativeLayout>
のレイアウトです。私は自分のレイアウトをimage1と同じにしたい、image2は現在私が得ているイメージです。すべてのAndroidデバイスでの画像1等を取得する方法
。私の友人を助けてください。