Sajib_Ahmed

ListView sample xml

Mar 28th, 2021
632
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.29 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:orientation="vertical"
  7.    >
  8.     <LinearLayout
  9.        android:layout_width="match_parent"
  10.        android:layout_height="65dp"
  11.        android:layout_marginTop="10dp"
  12.        android:weightSum="3"
  13.        android:layout_marginBottom="10dp">
  14.         <ImageView
  15.            android:id="@+id/imageViewId"
  16.            android:layout_weight="1"
  17.            android:src="@drawable/aaaa"
  18.            android:layout_width="0dp"
  19.            android:layout_height="wrap_content"
  20.            ></ImageView>
  21.         <LinearLayout
  22.            android:layout_width="wrap_content"
  23.            android:layout_weight="2"
  24.            android:layout_height="match_parent">
  25.  
  26.  
  27.         <TextView
  28.            android:id="@+id/leaderName"
  29.            android:layout_width="match_parent"
  30.            android:layout_height="match_parent"
  31.            android:gravity="center"
  32.            android:textAppearance="?android:attr/textAppearanceLarge"
  33.            android:text="Mohandas Gandhi"
  34.            android:textStyle="bold"></TextView>
  35.         </LinearLayout>
  36.  
  37.  
  38.     </LinearLayout>
  39.  
  40.  
  41. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment