私は次のコードを持っています:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke android:width="1dp"/>
<size android:height="1dp" />
<solid android:color="#FFF"/>
</shape>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background ="@drawable/line"/>
2つの質問があります:
- なぜ線が白ではなく黒なのですか?ImageView内に配置してみましたが、結果は同じです。
- シェイプの不透明度を設定するにはどうすればよいですか?