Fixes #1925003. Make ListView honor the android:choiceMode XML attribute.

The attribute was simply ignored by the constructor.
This commit is contained in:
Romain Guy
2009-06-17 17:01:04 -07:00
parent de72697b77
commit 536fb04c1c

View File

@@ -174,6 +174,8 @@ public class ListView extends AbsListView {
setDividerHeight(dividerHeight);
}
setChoiceMode(a.getInt(R.styleable.ListView_choiceMode, CHOICE_MODE_NONE));
mHeaderDividersEnabled = a.getBoolean(R.styleable.ListView_headerDividersEnabled, true);
mFooterDividersEnabled = a.getBoolean(R.styleable.ListView_footerDividersEnabled, true);