Android Multipane ListView Search(List Filter) -


i developed application multipane .i need give listview filtering.i have modified @android:layout/list_content file.but didn't show edittext.

my code : activity_invoice_twopane.xml

   <linearlayout  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"             android:orientation="vertical" >   <tablelayout      android:layout_width="match_parent"      android:layout_height="wrap_content" >       <tablerow          android:id="@+id/tablerow1"          android:layout_width="wrap_content"          android:layout_height="wrap_content" >           <textview                  android:id="@+id/invretname"                  android:layout_width="240dp"                  android:layout_height="wrap_content"                  android:text="abcd stores"                  android:textcolor="@color/black"                  android:textsize="20dp"                  android:textstyle="bold" />             <textview                  android:id="@+id/invlasttxtdate"                  android:layout_width="wrap_content"                  android:layout_height="wrap_content"                  android:text="last invoice date : "                  android:textcolor="@color/black"                  android:textsize="20dp"                  android:textstyle="bold" />             <textview                  android:id="@+id/invlastindate"                  android:layout_width="wrap_content"                  android:layout_height="wrap_content"                  android:text="2013-07-20 14:25:48"                  android:textcolor="@color/black"                  android:textsize="20dp"                  android:textstyle="bold" />       </tablerow>       <tablerow          android:id="@+id/tablerow2"          android:layout_width="wrap_content"          android:layout_height="wrap_content" >      </tablerow>       <tablerow          android:id="@+id/tablerow3"          android:layout_width="wrap_content"          android:layout_height="wrap_content" >      </tablerow>       <tablerow          android:id="@+id/tablerow4"          android:layout_width="wrap_content"          android:layout_height="wrap_content" >      </tablerow>  </tablelayout>   <linearlayout      android:layout_width="match_parent"      android:layout_height="match_parent"      android:layout_marginleft="0dp"      android:layout_marginright="0dp"      android:baselinealigned="false"      android:divider="?android:attr/dividerhorizontal"      android:orientation="horizontal"      android:showdividers="middle"      tools:context=".sale.invociebrandactivity" >       <fragment          android:id="@+id/item_list"          android:name="com.xont.hemas.controller.sale.invoicebrandlistfragment"          android:layout_width="0dp"          android:layout_height="match_parent"          android:layout_weight="1"          android:layout_margintop="70dp"          android:background="@drawable/list_item_selector"          tools:layout="@android:layout/list_content" />       <framelayout          android:id="@+id/item_detail_container"          android:layout_width="0dp"          android:layout_height="match_parent"          android:layout_weight="3" >      </framelayout>  </linearlayout> 

this edited list_content.xml

 <?xml version="1.0" encoding="utf-8"?> 

<linearlayout android:id="@+id/progresscontainer"         android:orientation="vertical"         android:layout_width="match_parent"          android:layout_height="match_parent"         android:visibility="gone"         android:gravity="center">      <progressbar style="?android:attr/progressbarstylelarge"             android:layout_width="wrap_content"             android:layout_height="wrap_content" />     <textview android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:textappearance="?android:attr/textappearancesmall"             android:text="@string/loading"             android:paddingtop="4dip"             android:singleline="true" />  </linearlayout>  <framelayout android:id="@+id/listcontainer"         android:layout_width="wrap_content"          android:layout_height="wrap_content">        <edittext android:id="@+id/inputsearch"                 android:layout_width="fill_parent"                 android:layout_height="wrap_content"                 android:hint="search brands"                 />         <listview android:id="@android:id/list"             android:layout_width="match_parent"              android:layout_height="match_parent"             android:drawselectorontop="false" />     <textview android:id="@+android:id/internalempty"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:gravity="center"             android:textappearance="?android:attr/textappearancelarge" /> </framelayout> 

please tell me want show list filtering functionality.

thanks in advance.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -