Posted by Shoaib at 1:31:00 am
Read our previous post
Another Example of custom Listview. Please check look below to checkout the list_item.xml
of this layout
Used a nested Layout. check ...
xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:background="@drawable/bar"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView" />
<TextView
android:layout_width="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="17dp"
android:textColor="#FFFFFF"
android:textStyle="bold"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Name List"
android:id="@+id/txtName" />
</LinearLayout>
</LinearLayout>
No comments:
Post a Comment