Почему line_ solid не появляется? - PullRequest
0 голосов
/ 22 января 2020

Почему, когда строка_ solid не появляется? Работало с line_dotted

<ImageView
    android:id="@+id/image_line"
    android:layout_width="match_parent"
    android:layout_height="1dp"
    android:src="@drawable/line_solid"
    android:layerType="software"
    android:tint="@color/color_primary_variant"
    android:layout_marginTop ="@dimen/margin_padding_size_medium"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintEnd_toEndOf="parent"                    
    app:layout_constraintTop_toBottomOf="@+id/text_app_description"/> 

Ответы [ 2 ]

0 голосов
/ 22 января 2020

Я нашел ответ, необходимый для изменения тега с - android:tint= .. на - android:background= ..

Большое спасибо за вдохновение :)

0 голосов
/ 22 января 2020

Может быть, вы можете попробовать это. Это обеспечить линию.

   <View
            android:layout_width="match_parent"
            android:layout_height="2dp"
            android:background="#FFFFFF"/>
...