0

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.

enter image description here

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 -

enter image description here

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.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Abhijeet
  • 49
  • 10
  • I suggest you include some relevant code, like, for example, your Theme/Styles, the relevant Manifest entry, your API levels, etc. There’s more than meet the eye. – Martin Marconcini Jul 12 '17 at 22:55

1 Answers1

0

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();
AskNilesh
  • 67,701
  • 16
  • 123
  • 163
  • Nilesh, the 3rd way, using java code has worked. That is awesome. Thanks. But the font is still not showing Cursive. How can I fix this? – Abhijeet Jul 13 '17 at 06:27
  • for that purpose you have to use custom font for that textview – AskNilesh Jul 13 '17 at 06:38
  • Can you tell me how to use custom font which is Cursive? Right now my TextView code is as follows - – Abhijeet Jul 13 '17 at 06:42
  • Sorry I don't know how to add proper code with indents in this comment box. – Abhijeet Jul 13 '17 at 06:44
  • follow this link https://stackoverflow.com/questions/40588559/in-which-android-version-the-cursive-font-is-available – AskNilesh Jul 13 '17 at 06:46
  • https://stackoverflow.com/questions/12128331/how-to-change-fontfamily-of-textview-in-android – AskNilesh Jul 13 '17 at 06:46
  • Nilesh, I used the links above and solved my fonts issue too. Thank you. BTW I emailed you regarding this same issue on ur gmail id. If possible kindly add me in ur google hangouts so that I can directly contact u on google chat/hangouts. – Abhijeet Jul 13 '17 at 07:10