android - progress bar around another control -


i have textview oval shaped semi-transparent background:

enter image description here

i need show progress bar running around oval background.

here textview:

<textview     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:background="@drawable/custom_background" /> 

custom_background.xml:

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android">     <solid android:color="#80000000" />     <corners         android:topleftradius="70dp"         android:toprightradius="70dp"         android:bottomleftradius="70dp"         android:bottomrightradius="70dp"         />      <padding         android:bottom=20dp"         android:left="40dp"         android:right="40dp"         android:top="20dp" />  </shape> 

any appreciated!

as want have custom shaped progress bar can match shape drawable, fabprogresscircle thing should use.

fabprogresscircle library works upon fab/image/shape drawable , documentation given on following link.

what can add code xml after importing library.

<com.github.jorgecastilloprz.fabprogresscircle     android:id="@+id/fabprogresscircle"     android:layout_width="wrap_content"     android:layout_height="wrap_content">            <textview             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:background="@drawable/custom_background"             android:textalignment="center"             android:text="hello world!"             android:textsize="30sp"             android:textcolor="#ffffff"/>     </com.github.jorgecastilloprz.fabprogresscircle> 

try out.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -