Android Question Application looks very different than i designed?

Said

Member
Licensed User
Longtime User
Hi,

I design some layouts and testing in emulator, they all looks good. But when i connected phone (Huawei G700, 4.2.2 Android), it looks very different. Most of views transparent, losts of text not appears because of the transparancy. Hard to see texts, not seen radio buttons etc.

In phone, no themes but all phones use their own pre-themes (HTC-Sense, Samsung-TouchWiz, Motorola MotoBlur interfaces etc). This causes difference look but this difference makes application very very hard to use sometimes.

Is there easy way to bypass this differences and define exact visuality in all phones ?

What expert programmers does in this situations ?

regards,

-said
 

Said

Member
Licensed User
Longtime User
Thanks Luca. I am checking your link.

Erel thanks. Yes i was using old android emulators for compatibility but from now, i figured that, design in new versions and last checking with older versions to control compatibility.

Regards,

-said
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
Use defaut colors
and in the manifest use
SetApplicationAttribute(android:theme, "@android:style/Theme.Light")
 
Upvote 0

Said

Member
Licensed User
Longtime User
Wowww.

It looks much better Douglas. Thanks.

What are my other options in themes ? Can i use Theme.Dark or something like that ? Any listing around ?

And one more question. This override only for my application, right ? Does not set telephones theme ?

Regards,

-said
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
This need minsdk 14
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")

this will set old theme for your app on all devices
SetApplicationAttribute(android:theme, "@android:style/Theme.Light")


And one more question. This override only for my application, right ? Does not set telephones theme ?

yes only your app
 
Upvote 0

Said

Member
Licensed User
Longtime User
Thanks again Douglas for detailed information.

Regards.

-said

Ps: Erel, i can't use UI cloud because i am setting backgrounds via code. Actually i am using cloud but only for locations at this moment. I have to use real device or emulators for exact screens.
 
Upvote 0

Said

Member
Licensed User
Longtime User
Well,

İ have one more question about themes.

Can i add two lines to manifest editor and switch between themes via code (like toggle button?)
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Can i add two lines to manifest editor and switch between themes via code (like toggle button?)

No. The definition of the theme is compiled in your app.

But you can use two Buildconfigurations and release one Hole light and one holo dark-app.
Another approach would be using XML-LAyouts i suppose.
 
Upvote 0
Top