Revert all the fast scroll always enabled changes
This commit is contained in:
parent
2b4147ed9f
commit
a46b8e8663
@ -7,8 +7,8 @@
|
|||||||
android:paddingBottom="4dp"
|
android:paddingBottom="4dp"
|
||||||
android:paddingLeft="6dp"
|
android:paddingLeft="6dp"
|
||||||
android:paddingStart="6dp"
|
android:paddingStart="6dp"
|
||||||
android:paddingRight="4dp"
|
android:paddingRight="10dp"
|
||||||
android:paddingEnd="4dp">
|
android:paddingEnd="10dp">
|
||||||
|
|
||||||
<ImageView android:id="@+id/icon"
|
<ImageView android:id="@+id/icon"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
@ -85,7 +85,7 @@
|
|||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/icon"
|
android:layout_below="@id/icon"
|
||||||
android:paddingLeft="4dp"
|
android:paddingLeft="6dp"
|
||||||
android:paddingStart="4dp"/>
|
android:paddingStart="6dp"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
@ -131,12 +131,7 @@ public class SearchResults extends ListActivity {
|
|||||||
for (DB.App app : apps) {
|
for (DB.App app : apps) {
|
||||||
applist.addItem(app);
|
applist.addItem(app);
|
||||||
}
|
}
|
||||||
if (Utils.hasApi(11)) {
|
getListView().setFastScrollEnabled(true);
|
||||||
getListView().setFastScrollAlwaysVisible(true);
|
|
||||||
getListView().setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET);
|
|
||||||
} else {
|
|
||||||
getListView().setFastScrollEnabled(true);
|
|
||||||
}
|
|
||||||
applist.notifyDataSetChanged();
|
applist.notifyDataSetChanged();
|
||||||
setListAdapter(applist);
|
setListAdapter(applist);
|
||||||
|
|
||||||
|
@ -49,12 +49,7 @@ abstract class AppListFragment extends Fragment implements AdapterView.OnItemCli
|
|||||||
|
|
||||||
protected ListView createAppListView() {
|
protected ListView createAppListView() {
|
||||||
ListView list = new ListView(getActivity());
|
ListView list = new ListView(getActivity());
|
||||||
if (Utils.hasApi(11)) {
|
list.setFastScrollEnabled(true);
|
||||||
list.setFastScrollAlwaysVisible(true);
|
|
||||||
list.setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET);
|
|
||||||
} else {
|
|
||||||
list.setFastScrollEnabled(true);
|
|
||||||
}
|
|
||||||
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