Skip to content
item_party_achievement.xml 1.55 KiB
Newer Older
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
                                    xmlns:app="http://schemas.android.com/apk/res-auto"
                                    android:orientation="vertical"
                                    android:layout_width="match_parent"
                                    app:cardUseCompatPadding="true"
                                    app:cardElevation="4dp"
                                    android:foreground="?android:attr/selectableItemBackground"
                                    android:layout_height="match_parent">

    <LinearLayout
            android:layout_width="match_parent"
            android:background="@color/parchment_yellow"
            android:layout_height="wrap_content">

        <ImageView
                android:layout_width="100dp"
                android:layout_height="100dp"
                android:layout_margin="5dp"
                android:id="@+id/achievement_icon"/>

        <LinearLayout
                android:orientation="vertical"
                android:gravity="center_vertical"
                android:layout_marginLeft="10dp"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

            <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:id="@+id/achievement_name"/>
        </LinearLayout>
    </LinearLayout>
</android.support.v7.widget.CardView>