Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to implement circular progress indicator around a button?
    primarykey
    data
    text
    <p>I have tried many ways implementing the below example, but I could not make it work universally.</p> <p>I have already completed building the below screen. I have aligned right and center vertical. and given some margin.</p> <p><img src="https://i.stack.imgur.com/mEnSr.png" alt="enter image description here"></p> <p>My problem is I have to add the <code>onpressed</code> state for this and I need to add a circular progress like below screenshot.</p> <p><img src="https://i.stack.imgur.com/iiIDq.png" alt="enter image description here"></p> <p>I don't know how to implement that circular progress in that particular place. I tried implementing the progress from left center vertical and gave some margin and fixed it. but when I install it in large screens the alignment goes wrong. So I tried implemented it from right center vertical and gave margin for that till that circle. But even that didn't work.</p> <p>pls someone help me out, how to fix this issue :(</p> <p>I'm struck with this for more than a week :(</p> <p><strong>EDIT:</strong> The XML code:</p> <pre><code>&lt;ProgressBar android:id="@+id/ProgressBar01" android:layout_width="60dp" android:layout_height="60dp" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:background="@drawable/circular_progress" android:layout_marginRight="185dp" android:progress="50" /&gt; &lt;ImageButton android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:background="@null" android:src="@drawable/tap_to_capture" /&gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:text="@string/tap_to_cap" android:textSize="12sp" android:textColor="#006666" android:layout_marginRight="25dp" android:textAppearance="?android:attr/textAppearanceSmall" /&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload