Code Snippets Layout for List item

Code Snippets
Layout for List item

<?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:background="#ffffff" android:orientation="vertical"> <!-- Here the Actual list item is --> <LinearLayout android:id="@+id/list_item_container" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#ffffff" android:orientation="vertical" android:padding="7dp"> <TextView android:id="@+id/tvTitle" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:singleLine="true" android:textAppearance="?android:attr/textAppearanceLarge" android:textColor="#000000" android:textSize="18sp" /> <TextView android:id="@+id/tvDescription" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:ellipsize="end" android:maxLines="2" android:textColor="#666666" android:textSize="14sp" /> </LinearLayout> <!-- Here the Ad is --> <LinearLayout android:id="@+id/ad_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#000000" android:orientation="vertical" android:visibility="gone" /> </LinearLayout>