Revert all the fast scroll always enabled changes

This commit is contained in:
Daniel Martí 2013-07-11 12:45:13 +02:00
parent 2b4147ed9f
commit a46b8e8663
3 changed files with 6 additions and 16 deletions

View File

@ -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>

View File

@ -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().setFastScrollAlwaysVisible(true);
getListView().setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET);
} else {
getListView().setFastScrollEnabled(true); getListView().setFastScrollEnabled(true);
}
applist.notifyDataSetChanged(); applist.notifyDataSetChanged();
setListAdapter(applist); setListAdapter(applist);

View File

@ -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.setFastScrollAlwaysVisible(true);
list.setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET);
} else {
list.setFastScrollEnabled(true); list.setFastScrollEnabled(true);
}
list.setOnItemClickListener(this); list.setOnItemClickListener(this);
list.setAdapter(getAppListAdapter()); list.setAdapter(getAppListAdapter());
return list; return list;