listview - Search Suggestions In Android -


i have done search suggestions in android using edittext , listview.

what need in activity there many buttons after edittext, when type letters in edit text show corresponding search in list view buttons appearing after listview.

my xml file looks this..

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical">  <!-- editext search --> <edittext android:id="@+id/inputsearch"     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:hint="search products.."     android:inputtype="textvisiblepassword"/>  <!-- list view --> <listview     android:id="@+id/list_view"     android:layout_width="fill_parent"     android:layout_height="wrap_content" />      <button android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="after edit text"/>      <button android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="second button"/> </linearlayout> 

i getting output as

enter image description here

wat need list of suggeations should not disturb buttons in background after searchable edit text,, appreciated

change layout this:: move buttons before listview

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical">  <!-- editext search --> <edittext android:id="@+id/inputsearch"     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:hint="search products.."     android:inputtype="textvisiblepassword"/>  <button android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="after edit text"/>      <button android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="second button"/>  <!-- list view --> <listview     android:id="@+id/list_view"     android:layout_width="fill_parent"     android:layout_height="wrap_content" />   </linearlayout> 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -