forked from github/wulkanowy-mirror
59 lines
2.3 KiB
XML
59 lines
2.3 KiB
XML
|
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||
|
android:id="@+id/grade_cardview"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginEnd="5dp"
|
||
|
android:layout_marginLeft="5dp"
|
||
|
android:layout_marginRight="5dp"
|
||
|
android:layout_marginStart="5dp"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
||
|
card_view:cardElevation="0dp">
|
||
|
|
||
|
<RelativeLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginBottom="7dp"
|
||
|
android:layout_marginEnd="7dp"
|
||
|
android:layout_marginLeft="7dp"
|
||
|
android:layout_marginRight="7dp"
|
||
|
android:layout_marginStart="7dp"
|
||
|
android:layout_marginTop="7dp">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/grade_text"
|
||
|
android:layout_width="50dp"
|
||
|
android:layout_height="50dp"
|
||
|
android:layout_centerVertical="true"
|
||
|
android:gravity="center"
|
||
|
android:textSize="19sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/description_grade_text"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_alignParentTop="true"
|
||
|
android:layout_marginEnd="10dp"
|
||
|
android:layout_marginLeft="10dp"
|
||
|
android:layout_marginRight="10dp"
|
||
|
android:layout_marginStart="10dp"
|
||
|
android:layout_toEndOf="@+id/grade_text"
|
||
|
android:layout_toRightOf="@+id/grade_text"
|
||
|
android:ellipsize="end"
|
||
|
android:maxLines="1"
|
||
|
android:text="@string/app_name"
|
||
|
android:textSize="19sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/grade_date_text"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_alignBottom="@+id/grade_text"
|
||
|
android:layout_alignLeft="@+id/description_grade_text"
|
||
|
android:layout_alignStart="@+id/description_grade_text"
|
||
|
android:text="@string/grades_text"
|
||
|
android:textSize="13sp" />
|
||
|
|
||
|
</RelativeLayout>
|
||
|
</android.support.v7.widget.CardView>
|