android - What's the easiest way to prevent the substitution of UI components with the system-wide ones? -


i designed application run on pretty, nice , clean holo theme (the google default), , when installed on brother's device, had unpleasant surprise of finding out standard ui components (spinner, progress bars, horizontal progress bars, etc...) overridden kind of factory pre-installed components. now, components when applied on system-wide ui, suck in app.

my brother's phone kind of chinese clone of s4, guess same happen other non-google devices.

the solution comes mind create, every component don't want overridden, custom one, copying xml android source code. don't know how that, seems lot of trouble compared want reach.

what's simplest way run app holo components in every device?


edit in regard answers had

in app have minsdkversion set 11. theme set in manifest @ application tag , "apptheme", that's configured in file

<resources>      <!-- base application theme. -->     <style name="apptheme" parent="@style/_apptheme">         <!-- customize theme here. -->     </style>      <style name="_apptheme" parent="theme.appcompat.light.darkactionbar">         <item name="android:progressbarstylehorizontal">             @style/widget.custom.progressbar.horizontal.green         </item>     </style>  </resources> 

i check brother's device play store installed , report here.

i wanted update on theme since saw talking theme.holo... maybe there somthing going on appcompat library?

but guess same happen other non-google devices.

not usually.

if device legitimately has play store on (i.e., not pirated copy put there user or device manufacturer), theme.holo set of themes must left alone. theme.devicedefault set of themes device manufacturers can tinker.

and, of course, holographic widget theme exists on api level 11+.

what's simplest way run app holo components in every device?

if android:minsdkversion 11 or higher, use theme inherits theme.holo, , not worry devices, brother's phone, break theme.

if android:minsdkversion 10 or lower, welcome consider holoeverywhere project, though not. on older devices, user going expect device's own theme, not holo theme, , user may not recognize things edittext , spinner lot different in holo theme.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -