8
xmlファイルで不明なエラーが表示される "android:background"属性で波紋エフェクトを設定しようとするとイメージビューが表示されます。xmlファイルの感嘆符がわからない
私はこのエラーが発生する行をコメントしました。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tabContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="15dp"
>
<ImageView
android:id="@+id/tabImage"
android:layout_width="match_parent"
android:background="@drawable/tab_bg" <!-- Line where I get error-->
android:layout_height="wrap_content"
android:layout_gravity="center" />
<TextView
android:id="@+id/tabText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="bottom|center" />
</LinearLayout>
この感嘆符をクリックすると、次のファイルが表示されます。
V22/tab_bg.xml
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?android:attr/colorControlHighlight">
<item android:id="@+id/mask"
android:drawable="@android:color/white"/>
</ripple>
アプリケーションが完全に実行されている、しかし、私は、この波及効果を得ることができないのです。
注:私は、Android Studioを使用しています1.4
これはバグとして報告する必要があります。 Androidスタジオでドロアブルを表示できないため、赤い警告が表示されるのは気にならない。 – javmarina
私の意見では、これはバグではありません。それは不条理です....多分、警告ですが、私はdrawableが感嘆符ではなく次回の更新で表示されると確信しています。 =)@javmarina – Aspicas
これは明らかにバグです。アイコンにはツールチップがなく、ユーザーはGoogleに答えを見つける必要があるからです。 –