Button or ImageView
私は自分のアクティビティ(画面)のヘッダーを表示する必要があるAndroidプロジェクトに取り組んでいます。以下は、私のアクティビティの XML レイアウトです。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/app"
android:layout_width="1dp"
android:layout_height="1dp"
android:layout_margin="2px"
android:orientation="vertical"
android:padding="2px" >
<LinearLayout
android:id="@+id/tabBar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ImageView
android:id="@+id/BtnSlide"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="0px"
android:padding="0px"
android:src="@drawable/button" />
</LinearLayout>
</LinearLayout>
上記のレイアウトでは、タイトルbutton image
のすぐ下に黒が表示されます。Proximity の 1 行下に表示するのではなく、左Proximity
に表示することはできますか?button image
Proximity
または
image which is left to Proximity
タイトルをクリック可能にする方法はありますか?それができれば、上部に黒いボタンの画像を表示する必要はありません。
その画像は AndroidManifest.xml ファイルからのものです。クリック可能にする方法がわかりません。