I have a simple android app with couple of issues -
When I run my app in emulator I can see things correctly, as shown in below screenshot. The actionbar shadow is not shown and also the font is Cursive.
But when I run my app on my mobile device (I am using MotoG, Android version 4.4.4) my app looks like as shown below -
I took this screenshot from my mobile itself and it is showing the shadow and font is no longer Cursive.
I have already had asked a previous question regarding this issue but it solved my problem partially - Android app masthead display
I have looked at other questions on stackoverlfow but they don't seem to be having a problem like mine so I am asking this question. Can someone help me solve this issue.
if your don't want action bar than use following code it will help you
1 way through manifiest file
<activity android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
2 way through theme
<style name="NoActionBar" parent="@android:style/Theme.Holo.Light">
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>
// than set this theme to your activty like this
<activity android:theme="@style/NoActionBar"/>
3 way using java code
getSupportActionBar().hide();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.