DIỄN ĐÀN TIN HOC
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.
DIỄN ĐÀN TIN HOC

BÀI VIẾT MỚINGƯỜI GỬI CUỐI

      Thảo luận nhiều nhất

      Lượt xem nhiều nhất


      You are not connected. Please login or register

      [Android] ExpandableListView with image

         

      nhuvannhu

      #1[Android] ExpandableListView with image Empty Wed May 28, 2014 4:16 pm

      nhuvannhu
      nhuvannhu Quản lý viên

      Giới tính : Nam

      Tổng số bài gửi Tổng số bài gửi : 18

      Points Points : 57

      Like Like : 3

      status : Không có gì để nói

      Project demo[You must be registered and logged in to see this link.]
      [Android] ExpandableListView with image 3qeUED7
      ExpandableListAdapter.java
      Spoiler:
      ActivityExpandlistView.java
      Spoiler:
      ItemsChild.java
      Spoiler:
      ItemsParent.java
      Spoiler:
      activity_demo_expandlist_view.xml
      Code:
      <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          android:layout_width="match_parent"
          android:layout_height="match_parent"

          tools:context=".ActivityExpandlistView" >

          <ExpandableListView
              android:id="@+id/expandableList"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
           
              >
          </ExpandableListView>

      </RelativeLayout>
      items_child.xml
      Code:
      <?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="match_parent"
          android:paddingLeft="20dp"
          android:orientation="horizontal" >

          <ImageView
              android:id="@+id/ivChild"
              android:layout_width="30dp"
              android:layout_height="30dp" />

          <TextView
              android:id="@+id/tvChild"
              android:layout_width="match_parent"
              android:layout_height="match_parent" />

      </LinearLayout>
      items_parent.xml
      Code:
      <?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="match_parent"
          android:orientation="horizontal" >

          <ImageView
              android:id="@+id/ivParent"
              android:layout_width="30dp"
              android:layout_height="30dp" />

          <TextView
              android:id="@+id/tvParent"
              android:layout_width="match_parent"
              android:layout_height="match_parent" />

      </LinearLayout>
         
            

      [Trang 1 trong tổng số 1 trang]

      Thông tin chuyên mục

      Bạn không có quyền trả lời bài viết