Fast scrolling always enabled. Also, add some padding.
This commit is contained in:
parent
8eda160a30
commit
3caa411390
@ -131,7 +131,8 @@ public class SearchResults extends ListActivity {
|
|||||||
for (DB.App app : apps) {
|
for (DB.App app : apps) {
|
||||||
applist.addItem(app);
|
applist.addItem(app);
|
||||||
}
|
}
|
||||||
getListView().setFastScrollEnabled(true);
|
getListView().setFastScrollAlwaysVisible(true);
|
||||||
|
getListView().setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET);
|
||||||
applist.notifyDataSetChanged();
|
applist.notifyDataSetChanged();
|
||||||
setListAdapter(applist);
|
setListAdapter(applist);
|
||||||
|
|
||||||
|
@ -49,7 +49,8 @@ abstract class AppListFragment extends Fragment implements AdapterView.OnItemCli
|
|||||||
|
|
||||||
protected ListView createAppListView() {
|
protected ListView createAppListView() {
|
||||||
ListView list = new ListView(getActivity());
|
ListView list = new ListView(getActivity());
|
||||||
list.setFastScrollEnabled(true);
|
list.setFastScrollAlwaysVisible(true);
|
||||||
|
list.setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET);
|
||||||
list.setOnItemClickListener(this);
|
list.setOnItemClickListener(this);
|
||||||
list.setAdapter(getAppListAdapter());
|
list.setAdapter(getAppListAdapter());
|
||||||
return list;
|
return list;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user