Ich habe richtig die pref_general, Werte für sie, und der Code ausführen, um die Absicht einzurichten:Einstellungen Aktivität öffnet sich nicht auf Tablet
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
Intent intecao = new Intent(characterList.this, SettingsActivity.class);
startActivity(intecao);
return true;
}
return super.onOptionsItemSelected(item);
}
Also, wenn ich die Einstellungen in den Optionen getroffen Pop-up-es richtig in meinem Handy/7" öffnet Tablette, aber für größere Tabletten wie 9" oder mehr wird es geben sie mir einen leeren Bildschirm Pop-up ohne nichts darauf geschrieben, wie dies:
Wie kann ich dieses Problem beheben? Was ist das Problem, das dies bewirkt?
--- EDIT ---
Hier ist meine pref_general:
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="Made by Megafuji and Kintups"/>
<ListPreference
android:key="console1"
android:title="Console"
android:summary="Select your console"
android:defaultValue="1"
android:entries="@array/pref_example_list_titles"
android:entryValues="@array/pref_example_list_values"
android:negativeButtonText="@null"
android:positiveButtonText="@null" />
<ListPreference
android:key="viewMode"
android:title="View Mode"
android:summary="Select your View Mode"
android:defaultValue="1"
android:entries="@array/pref_viewMode_list_titles"
android:entryValues="@array/pref_viewMode_list_values"
android:negativeButtonText="@null"
android:positiveButtonText="@null" />
<ListPreference
android:key="charsize"
android:title="Icons Size"
android:summary="Select character screen size for text and icons."
android:defaultValue="1"
android:entries="@array/pref_character_size"
android:entryValues="@array/pref_character_size_value"
android:negativeButtonText="@null"
android:positiveButtonText="@null" />
<ListPreference
android:key="tamanhoLetra"
android:title="Font Size"
android:summary="Select font size you want for move list."
android:defaultValue="1"
android:entries="@array/pref_font_size"
android:entryValues="@array/pref_font_size_value"
android:negativeButtonText="@null"
android:positiveButtonText="@null" />
<CheckBoxPreference
android:key="screenDimming"
android:title="Disable screen dimming in this app"
android:summary="Disable screen locking/turning off."
android:defaultValue="false"
/>
<CheckBoxPreference
android:key="frame"
android:title="Show Frame Date"
android:summary="Show Frame Data for All Moves "
android:defaultValue="false"
/>
<CheckBoxPreference
android:key="damage"
android:title="Show Damage"
android:summary="Show Damage for All Moves "
android:defaultValue="false" />
<PreferenceCategory
android:title="Contact us: [email protected]"/>
</PreferenceScreen>
Was 'characterList.this ist '? Zeigen Sie uns die Quelle von 'SettingsActivity'. –
characterList.dies ist der verwendete Kontext, SettingsActivity existiert nicht, ich habe stattdessen pref_general angezeigt –