ImageButtonを使いたいのですが、うまく画像が指定できず困っています。
xml
1 2 <ImageButton 3 android:src="@android:drawable/ic_menu_gallery" 4 android:layout_width="0dp" 5 android:layout_height="wrap_content" 6 android:layout_weight="1" 7 android:id="@+id/imageButton1" />
Resources/drawable/
に画像ファイルを入れ画像ファイルの名前で指定しても表示されません。
リソースファイル登録などが必要なのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/08/22 06:17