Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
adapter item layout for recyclerview
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/imgProfilePhoto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@mipmap/ic_launcher_round" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/txtDepartment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Department"
android:textSize="26sp" />
<TextView
android:id="@+id/txtFullName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Full Name"
android:textSize="20sp" />
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment