您好與Android中的圖像按鈕選項混淆。我已經創建了三個圖像按鈕與下面的XML在android中的圖像按鈕樣式
<ImageButton
android:id="@+id/imageButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:src="@drawable/folder_add" />
<ImageButton
android:id="@+id/imageButton4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/imageButton1"
android:layout_toLeftOf="@+id/imageButton1"
android:src="@drawable/search" />
<ImageButton
android:id="@+id/imageButton2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/imageButton4"
android:layout_toLeftOf="@+id/imageButton4"
android:src="@drawable/advancedsettings"
style="?android:attr/borderlessButtonStyle" />
但出像按鈕,圖像上的.. 請幫我來顯示圖像只button..Thnx提前!
使用ImageView小部件來代替ImageButton小部件。 – mukesh