Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7412333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:31:27+00:00 2026-05-29T06:31:27+00:00

How do you make a progressbar with rounded corner at the right side (the

  • 0

How do you make a progressbar with rounded corner at the right side (the end), not only in the left side (the start). What I currently have is nearly the layout what I want but the progressbar loader is just a straight vertical line, I’d like to get this line rounded.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:31:28+00:00Added an answer on May 29, 2026 at 6:31 am

    So what I ended up doing this in xml:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:background="@color/white"
        android:id="@+id/splash_linear">
        <FrameLayout
            android:layout_width="144dp"
            android:layout_height="13dp"
            android:layout_gravity="center"
            android:layout_marginTop="20dp">
            <View android:id="@+id/progress_horizontal"
                android:background="@drawable/progress_background"
                android:layout_width="match_parent"
                android:layout_height="match_parent"/>
            <View android:id="@+id/progress_horizontal_bar"
                android:background="@drawable/progress_bar"
                android:layout_width="0dp"
                android:layout_height="match_parent"/>
        </FrameLayout>
    </LinearLayout>
    

    Then in code:

    public void updateProgress(int percent) {
        int progressBarSizeDp = 144;    // the size of the progressbar
        float scale = (float) (progressBarSizeDp/100.0);
        int progressSize = (int) (percent * scale);
        if(progressSize > progressBarSizeDp) {
            progressSize = progressBarSizeDp;
        } else if(progressSize < 20) {
            progressSize = 20;
        }
    
        View progressBar = (View) findViewById(R.id.progress_horizontal_bar);
        int py = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, progressSize, getResources().getDisplayMetrics());
    
        LayoutParams params = new FrameLayout.LayoutParams(py, LayoutParams.MATCH_PARENT);
        progressBar.setLayoutParams(params);
        View splashMain = (View) findViewById(R.id.splash_linear);
        splashMain.invalidate();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

make is not only useful for building your programming project, but it seems to
Does anyone know how to make a View reversed, I have a horizontal ProgressBar
Is it possible to make a progressbar in Java like displayed on this page?
I've defined a control Template for a progressbar to make it look like a
I have a progressbar in WPF C# and I bind the text of a
Hi all I have problem with qprogressbar. How can I make it smooth? I
I have created application installer using Wix. I have a ProgressBar control present on
I am working on ProgressBar class in android, but I can't make it progress
I wanna set a custom skin on my progressBar, but it's not working out
I have a ProgressBar that uses the marquee style when a report is being

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.