Commit 2094a617 authored by Jonas L.'s avatar Jonas L.

Add better background for the text in the project list

parent 24dae5cd
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:angle="90"
android:centerY="0.3"
android:startColor="@color/textScrimColor"
android:endColor="#00ffffff"
android:type="linear"/>
</shape>
......@@ -35,19 +35,30 @@
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:background="#88000000"
android:paddingEnd="16dp"
android:paddingStart="16dp"
android:paddingBottom="8dp"
<LinearLayout
android:orientation="vertical"
android:layout_alignParentBottom="true"
android:textColor="@color/md_white_1000"
android:textAppearance="?android:textAppearanceLarge"
tools:text="Wirbellose im Wasser"
android:text="@{item.title}"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content">
<View
android:background="@drawable/text_scrim"
android:layout_width="match_parent"
android:layout_height="32dp" />
<TextView
android:background="@color/textScrimColor"
android:paddingEnd="16dp"
android:paddingStart="16dp"
android:paddingBottom="8dp"
android:textColor="@color/md_white_1000"
android:textAppearance="?android:textAppearanceLarge"
tools:text="Wirbellose im Wasser"
android:text="@{item.title}"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
</androidx.cardview.widget.CardView>
......
......@@ -5,4 +5,5 @@
<color name="colorPrimaryReallyDark">#1B5E20</color>
<color name="colorAccent">#FF4081</color>
<color name="red">#ff0000</color>
<color name="textScrimColor">#aa388E3C</color>
</resources>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment