Androidの背景として「ストリップライン」を描く方法はありますか?
より良いイラストのための写真付きの添付ファイル: (Youtube アプリ)
Androidの背景として「ストリップライン」を描く方法はありますか?
より良いイラストのための写真付きの添付ファイル: (Youtube アプリ)
wood_pattern.xml
にを追加res/drawable/
:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:src="@drawable/bg_wood"
android:tileMode="repeat"
android:dither="true"
android:antialias="true"/>
</item>
</layer-list>
これを背景として設定します:
android:background="@drawable/wood_pattern"
イメージビューを使用していて、ここに境界線を設定したい場合は、コードです (私は黒の背景を設定しています):
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/red_minus_icon"
android:background="#000000"
android:padding="1dp"/>