0
Imageviewで背景を与えて、その背景が多くのデバイスでうまくいきますが、Nexus 4とNexus 5では動作しません。 issuse。描画可能な矩形の形状特定の側に色を与える方法
Main.xmlのres @
<ImageView
android:id="@+id/ivBottomDevices"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/shape_rectangle"/>
/描画可能/ shape_rectangle.xml
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:bottom="0dp">
<shape android:shape="rectangle">
<solid
android:color="#00666666"/>
<size
android:width="80dp"
android:height="80dp"/>
<stroke
android:width="10dp"
android:color="@color/ripple_divider" />
</shape>
</item>
<item android:gravity="right">
<shape android:shape="rectangle" >
<size android:width="10dp" android:height="6dp"/>
<solid android:color="@color/ripple_black" />
</shape>
</item>
私が与えなければならないので、私は右shape_rectangleで重力が問題を作成していることをコメント色を特定の面に向ける。
特定の右側に色付けされている矩形を設計する代替回答がある場合は、事前
申し訳ありません、それは仕事をdidntの –