Skip to content

Instantly share code, notes, and snippets.

@Singhak
Created December 18, 2015 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Singhak/3666fa214fd4588c65dc to your computer and use it in GitHub Desktop.
Save Singhak/3666fa214fd4588c65dc to your computer and use it in GitHub Desktop.
This is main xml file which display list
<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"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.aks.serchablelist.MainActivity" >
<EditText
android:id="@+id/searchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/listadapter"
android:layout_alignStart="@+id/listadapter"
android:layout_alignParentTop="true"
android:padding="5dp"
android:textSize="22sp"
android:hint="@string/search_here"
/>
<ListView
android:layout_below="@+id/searchView"
android:id="@+id/listadapter"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</ListView>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment