###前提・実現したいこと
androidstudioでウィジェットを作成中です。
###発生している問題・エラーメッセージ
widgetにimagebuttonを付けてみたところ、「ウィジェットを表示できません」と表示されます。
###該当のソースコード
xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:padding="@dimen/widget_margin">
</RelativeLayout><ImageButton android:id="@+id/imageButton3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" app:srcCompat="@drawable/band_widget" />
###試したこと
画像を小さくするなど、大きさに気を配りましたが無理でした。
###補足情報
windows10HOME 64bit
androidstudio2.3.2
freetel rei FTJ161B(fullHD 424dpi)(android6.0.1)(mediatek mt6753 64bit 2GB RAM)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。