Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot work with ListPreference #24

Open
microcian opened this issue Jun 9, 2016 · 0 comments
Open

cannot work with ListPreference #24

microcian opened this issue Jun 9, 2016 · 0 comments

Comments

@microcian
Copy link

java.lang.RuntimeException: Content has view with id attribute 'android.R.id.list' that is not a ListView class

Malay English
<string-array name="language_code" translatable="false">
    <item>ms</item>
    <item>en</item>
</string-array>

Java Code:
addPreferencesFromResource(R.xml.general_preferences);
PreferenceScreen preferenceScreen = getPreferenceScreen();
listPrefLanguages = (ListPreference) preferenceScreen.findPreference("preferences_app_language");
listPrefLanguages.setSummary(listPrefLanguages.getEntry());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant