Note: i hope you have ready my query,
if i do use inbuilt single textview as layout (android.R.layout.simple_list_item_1), it works great, one line set of suggestion will appear and it scrolls well.
but if i use my own custom i.e "com.test.task.R.layout.layout_task_item", it covers full screen and overlaps keyboard.
@OverRide
public View newView(Context context, Cursor cursor, ViewGroup parent) {
// TODO Auto-generated method stub
LayoutInflater inflater = LayoutInflater.from(context);
// View v = inflater.inflate(com.test.task.R.layout.layout_task_item, parent, false);
View v = inflater.inflate(android.R.layout.simple_list_item_1, parent, false);
Hi,
I'm using the actionbarsherlock searchview, if i type a text in suggestion view i get set of results in dropdown, but if i scroll the suggestions, the entire suggestion view overlaps on my keyboard. How to prevent this
Here how the image looks

The code i'm using for creating searchview is
Menu.xml
This is how i'm crating menu in my activity.
MenuInflater inflater = this.getSupportMenuInflater();
inflater.inflate(R.menu.menu_home_activity, menu);
mSearchview = (SearchView) menu.findItem(R.id.search).getActionView();
mSearchview.setImeOptions(EditorInfo.IME_ACTION_DONE);
mSearchview.setFocusable(true);
mSearchview.requestFocusFromTouch();
if(mSearchadapter == null)
{
mSearchadapter = new SearchAdapter(getApplication(), null);
}
mSearchview.setSuggestionsAdapter(mSearchadapter);
mSearchview.setOnQueryTextListener(new OnQueryTextListener() {
@Override
public boolean onQueryTextSubmit(String query) {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean onQueryTextChange(String newText) {
// TODO Auto-generated method stub
if(newText.trim().equals(""))
{
return false;
}
Cursor c = TaskController.getDBManager().getAllTasksForSuggestedFilter(newText);
mSearchadapter.changeCursor(c);
return false;
}
});
Note: i hope you have ready my query,
if i do use inbuilt single textview as layout (android.R.layout.simple_list_item_1), it works great, one line set of suggestion will appear and it scrolls well.
but if i use my own custom i.e "com.test.task.R.layout.layout_task_item", it covers full screen and overlaps keyboard.
@OverRide
public View newView(Context context, Cursor cursor, ViewGroup parent) {
// TODO Auto-generated method stub
LayoutInflater inflater = LayoutInflater.from(context);
// View v = inflater.inflate(com.test.task.R.layout.layout_task_item, parent, false);
View v = inflater.inflate(android.R.layout.simple_list_item_1, parent, false);
Hi,
I'm using the actionbarsherlock searchview, if i type a text in suggestion view i get set of results in dropdown, but if i scroll the suggestions, the entire suggestion view overlaps on my keyboard. How to prevent this
Here how the image looks
The code i'm using for creating searchview is
Menu.xml
This is how i'm crating menu in my activity.
MenuInflater inflater = this.getSupportMenuInflater();
inflater.inflate(R.menu.menu_home_activity, menu);