Android Question Colors changed after changing sdk in Manifest Editor

jeffnooch

Member
Licensed User
Longtime User
I recently have been working on an older project that had this in the Manifest Editor
<uses-sdk android:minSdkVersion="4" />

and i changed it to

<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19" />

mainly because on my Galaxy S7 my 3 menu dots were missing...

but when i made the change all my colors look like they are faded out
eg my black background went to a grey color and i had black text on a button that is now white

if i change it back to the original just "4" everything goes back to the correct colors...
any thoughts on what i need to change would be great...
thanks
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
The first thing to do is to make sure that all the text colors (and others) are set to default.

SS-2016-07-08_07.51.35.png
 
Upvote 0

jeffnooch

Member
Licensed User
Longtime User
lemonisdead...thanks for the links...not sure themes are something i'm ready to dive into just yet...but i will take a look at those links when i have time to see what's involved....

Erel...your post pointed me in the right direction...
BUT...rather than setting everything to default i saw that the 2 colors that weren't correct WERE set to default...
i forced them to Black (background and text color) in the designer and now everything is looking the way i want...

one other question...why does the menu show as MORE rather than 3 dots in the title/action bar? also any way to make the title bar not as big height wise?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
why does the menu show as MORE rather than 3 dots in the title/action bar?
Can you post a screenshot?

also any way to make the title bar not as big height wise?
The height depends on the device version. On Android 5+ the material theme is used which is shorter:

SS-2016-07-10_09.33.39.png
 
Upvote 0

jeffnooch

Member
Licensed User
Longtime User
The "MORE" only seems to show on my phone (Samsung Galaxy S7)...the 3 dots show on any of my tablets...here is a print screen of the phone activity bar...thanks

ActivityBar.png
 
Upvote 0

jeffnooch

Member
Licensed User
Longtime User
under Activity_Create
i just didn't include the actual Program Name in the print screen....
but this is what i have .....

B4X:
    Activity.Title="Program Name - v" & ProgVersion
    Activity.AddMenuItem("About", "mnuAbout")


and ProgVersion is under Process_Globals like this...

B4X:
Sub Process_Globals
    ....
    Public ProgVersion = "1.14 BETA" As String
    ....

but the MORE option shows on any activity that has a menu...but just on my phone (Galaxy S7) and NOT on any of my tablets (such as Nexus 10, Amazon Fire 7, etc)
 
Upvote 0

jeffnooch

Member
Licensed User
Longtime User
i certainly do not believe i'm using a custom action bar...

the only thing i changed was in the Manifest Editor

<uses-sdk android:minSdkVersion="4" />

and i changed it to

<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19" />

mainly because on my Galaxy S7 my 3 menu dots were missing...

here is a print screen of the action bar on my Amazon Fire 7...which is the way i think it should look....only my Galaxy S7 looks different and has the MORE button

FireActivityBar.png
 
Upvote 0

jeffnooch

Member
Licensed User
Longtime User
NJDude...I'm a PhillyDude...haha
thanks for your response...i won't lose any sleep over the phone layout...but thanks for pointing out what is going on and why seeing differences between the phone and the tablet layouts...
maybe if i ever get a chance i'll look into some of the custom activity bars that are out there...
thanks again
 
Upvote 0
Top