GitNex-Android-App/app/src/main/res/layout/list_users_grid.xml

80 lines
3.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/gridViewData"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/dimen4dp"
android:orientation="vertical">
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="?attr/materialCardViewElevatedStyle"
app:cardElevation="@dimen/dimen0dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:foreground="?android:attr/selectableItemBackground"
android:background="?attr/materialCardBackgroundColor"
android:padding="@dimen/dimen12dp"
android:orientation="horizontal">
<com.google.android.material.card.MaterialCardView
android:layout_width="@dimen/dimen60dp"
android:layout_height="@dimen/dimen60dp"
style="?attr/materialCardViewElevatedStyle"
android:layout_gravity="center"
app:cardElevation="@dimen/dimen0dp"
app:cardCornerRadius="@dimen/dimen32dp">
<ImageView
android:id="@+id/userAvatarImageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/userAvatar"
android:src="@drawable/ic_person"/>
</com.google.android.material.card.MaterialCardView>
<LinearLayout
android:id="@+id/userInfoSection"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="start"
android:layout_gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/userNameTv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/dimen6dp"
android:paddingEnd="@dimen/dimen2dp"
android:text="@string/userName"
android:textColor="?attr/primaryTextColor"
android:ellipsize="end"
android:maxLines="2"
android:textSize="14sp"/>
<TextView
android:id="@+id/userName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/dimen6dp"
android:paddingEnd="@dimen/dimen2dp"
android:text="@string/userName"
android:textColor="?attr/primaryTextColor"
android:ellipsize="end"
android:maxLines="1"
android:textSize="@dimen/dimen12sp"/>
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</LinearLayout>