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 8153651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:05:26+00:00 2026-06-06T16:05:26+00:00

I need some advice for a design which I have to implement in application.

  • 0

I need some advice for a design which I have to implement in application. Here is what it should look like (sorry for the low resolution of the image, but it’s all I have for now).

User Interface

So the basic idea of the design is this:
I have one UI component, in my situation I will use ProgressBar (the one with red fills) which will hold the information about some kind of user data. For example if user have listing of songs the max of progress bar will be the count of all songs, and the the progress will be set by the track that is playing right now. If I have 56 songs and I’m playing the 23rd of them, the progress will be calculated depending on that Integer. And the dots above progress bar will indicate which of the songs are favorited by me or not. For example if I’m playing 23th song and it’s in my favorites, there should be dot above progress bar at the same position.

So my question is, what UI component should I use for adding the dots above the progress bar. I was thinking about RelativeLayout/LinearLayout/FrameLayout , but as I know they don’t have functions which I can do something like : layout.addView(view, x, y); where x and y are the coordinates. Or is it the right way to do this? Maybe there is better way of doing the thing that I want to achieve. Use some other SubClass of View.

Any kind of help / advices / suggestions are welcome!

Thanks in advance!

  • 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-06-06T16:05:29+00:00Added an answer on June 6, 2026 at 4:05 pm
    1. On Android it is totally not recomended to use specific values for defining layout placement (unless you are using the screen measurements as a reference)

    2. Always use DP (Density independent pixels) to define spacings and positions if FILL_PARENT and WRAP_CONTENT doesn’t do the trick.

    In android there are different kinds of layout to help you follow the above rules depending on the complexity and need.

    in your case i suggest using a linear layout with vertical orientation like:

    <LinearLayout>
    <CustomView/>
    <ProgressBar />
    </LinearLayout>
    

    So the custom view will actually have the dots.

    So you can extend LinearLayout with horizontal orientation for your custom view.
    there is a parameter called weight which you can set to each of its child views which will set the width(in your case) of the child to a specific percentage of the total layout width.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some advice regarding which database I should use. I want to create
I need some advice of how to setup my tables I currently have a
I need some advice on which Swing Components to choose in order to achieve
I need some advice on what kind of pattern(s) I should use for pushing/pulling
I need some advice on techniques to perform page redirect in asp.net. Which one
please I need some advice about design approaches in iPhone programming. I want to
I have some flexibility here so I'm looking for some advice before I lock
Web Developer here and need some advice on how to achieve what must be
Just after some advice regarding this database design situation. So I have two tables
I have some application, which makes database requests. I guess it doesn't actually matter,

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.