1

背景に線を描きたいのですがうまくいきImageView'sませんか?

<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line">
    <solid android:color="#FF0000FF" />
    <size android:width="10dp"
        android:height="2dp"/>
</shape>

ただのデモ。

<ImageView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/dividing_line"
    android:layout_marginLeft="10dp" />
4

1 に答える 1