progress bar - How do I resize ONLY the background on a Custom ProgressBar (Android)? -


i have custom style progressbars:

<style name="mycustomprogressbar" parent="android:widget.progressbar.small">     <item name="android:background">@drawable/loader_background</item>     <item name="android:indeterminatedrawable">@drawable/loader_indeterminate</item> </style> 

background image way bigger compared images of animation, however, when try code above image , background appear of same size, it's background tied 'indeterminatedrawable' image size. possible change background size independently?

just fyi found workaround. use padding on progressbar, this:

<style name="mycustomprogressbar" parent="android:widget.progressbar.large">     <item name="android:background">@drawable/loader_background</item>     <item name="android:indeterminatedrawable">@drawable/anim_indeterminate</item>     <item name="android:padding">35dp</item> </style> 

i hope helps somebody!


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -