ListFragment does not show title bar in Android Studio -


why title bar not show in listfragment?

i did not set fullscreen or other.please me

<application     android:allowbackup="true"     android:icon="@mipmap/ic_launcher"     android:label="@string/app_name"     android:supportsrtl="true"     android:theme="@style/apptheme">     <activity android:name=".crimelistactivity">         <intent-filter>             <action android:name="android.intent.action.main"/>             <category android:name="android.intent.category.launcher"/>         </intent-filter>     </activity>     <activity         android:name=".crimepageractivity"         android:label="@string/app_name">     </activity> </application> 

crimelistfragment.java

public class crimelistfragment extends listfragment {  private arraylist<crime> mcrimes; private static final string tag = "crimelistfragment";  private crime c; ...  @override public void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);      sethasoptionsmenu(true);     getactivity().settitle(r.string.crimes_title);     mcrimes = crimelab.get(getactivity()).getcrimes();       crimeadapter adapter = new crimeadapter(mcrimes);     setlistadapter(adapter);     ... } } 

enter image description here

check, if there isn't example "apptheme.noactionbar" app theme @ design, in fragment xml file.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -