Fast scrolling always enabled. Also, add some padding.

This commit is contained in:
Daniel Martí 2013-07-09 15:18:40 +02:00
parent 8eda160a30
commit 3caa411390
2 changed files with 4 additions and 2 deletions

View File

@ -131,7 +131,8 @@ public class SearchResults extends ListActivity {
for (DB.App app : apps) {
applist.addItem(app);
}
getListView().setFastScrollEnabled(true);
getListView().setFastScrollAlwaysVisible(true);
getListView().setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET);
applist.notifyDataSetChanged();
setListAdapter(applist);

View File

@ -49,7 +49,8 @@ abstract class AppListFragment extends Fragment implements AdapterView.OnItemCli
protected ListView createAppListView() {
ListView list = new ListView(getActivity());
list.setFastScrollEnabled(true);
list.setFastScrollAlwaysVisible(true);
list.setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET);
list.setOnItemClickListener(this);
list.setAdapter(getAppListAdapter());
return list;