"list_group_header.xml updated with icon" - Views: 153 · Hits: 153 - Type: Public

In list_group_header.xml ::


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal">

    <TextView
        android:id="@+id/lblListHeader"
        android:layout_width="wrap_content"
        android:layout_height="?attr/listPreferredItemHeightSmall"
        android:gravity="center_vertical"
        android:paddingLeft="?android:attr/expandableListPreferredItemPaddingLeft"
        android:paddingRight="?attr/listPreferredItemPaddingRight"
        android:text="Android WebView Tutorial"
        android:textColor="#1f2124"
        android:textSize="16sp" />
    <View
        android:id="@+id/autoSpaceIcon"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_weight="1" />

    <!-- IF MENU HAS submenu/children,then change visibility to visible-->
    <ImageView
        android:id="@+id/imgView_icon_listGroupHeader"
        android:layout_width="wrap_content"
        android:layout_height="?attr/listPreferredItemHeightSmall"
        android:layout_marginLeft="?android:attr/expandableListPreferredItemPaddingLeft"
        android:paddingRight="?attr/listPreferredItemPaddingRight"
        android:src="@android:drawable/ic_menu_more"
        android:visibility="invisible"
        />
    <!--android:src="@android:drawable/icon_dropdown"-->
</LinearLayout>