ActionBar Sherlock not showing up. What might be the error?
-
11-11-2019 - |
Frage
I included ActionBarSherlock as a library. Added this in manifest.xml:
<application android:icon="@drawable/ic_launcher" android:label="@string/app_name"
android:theme="@style/Theme.Sherlock">
This is what I wrote in my activity:
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
DialogFragment newFragment = new DialogFragment();
newFragment.setArguments(getIntent().getExtras());
ft.add(android.R.id.content, newFragment, "dialog");
ft.commit();
getSupportFragmentManager();
Still, the action bar doesn't show up. Any small sample code would help or remarks as to where I am going wrong should help.
Keine korrekte Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow