1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Explicitly set layout used in a ListActivity

This commit is contained in:
cketti 2013-01-18 12:33:31 +01:00
parent 9ad5513df9
commit 24c10f0fd3
3 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:drawSelectorOnTop="false" />

View File

@ -75,6 +75,8 @@ public class ChooseFolder extends K9ListActivity {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.list_content_simple);
getListView().setFastScrollEnabled(true);
getListView().setItemsCanFocus(false);
getListView().setChoiceMode(ListView.CHOICE_MODE_NONE);

View File

@ -29,6 +29,7 @@ public class ChooseIdentity extends K9ListActivity {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.list_content_simple);
getListView().setTextFilterEnabled(true);
getListView().setItemsCanFocus(false);