Android-ProgressBarWidthNumber icon indicating copy to clipboard operation
Android-ProgressBarWidthNumber copied to clipboard

Actionbar SherlockFragmentActivity progress bar above the tab host

Open Kozlov-V opened this issue 10 years ago • 2 comments

Is there a way to use your ProgressBarWidthNumber with on Actionbar SherlockFragmentActivity and set it above the tab host Thank you!!!

Kozlov-V avatar Feb 02 '15 10:02 Kozlov-V

you can use a layout as a menu item :

<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" >
    <item
        android:showAsAction="ifRoom"
        android:id="@+id/action_settings"
        android:title="@string/action_settings"
        android:actionLayout="@layout/roundbar"/>
</menu>

roundbar.xml

<com.zhy.view.RoundProgressBarWidthNumber xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:zhy="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:progress="30"
     />

hongyangAndroid avatar Mar 14 '15 13:03 hongyangAndroid

It is a good idea and I'm sure will work fine, but I'm sorry, I meant horizontal ProgressBar, not RoundProgressBar. I do not have free space that would accommodate RoundProgressBar. Thank you!

Kozlov-V avatar Mar 14 '15 13:03 Kozlov-V