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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:21:07+00:00 2026-05-17T19:21:07+00:00

i was requested to make in android a view that groups several items like

  • 0

i was requested to make in android a view that groups several items like checkboxes or text views in vertical rows, separated by transparent dividers while the background is with a certain alpha level and the edges are round.

I thought of two solutions and i hope for some feedback on good\bad or other solutions if you got’em.

  1. just use regualr linear layout but have a single style A that uses a 9 patch as background, includes padding,margins and whatever i need to make it look like what i want. i then create another style A.up and A.down that represents the upper most and lower most items that will use a different 9-path with round corners.
  2. inherit from linear layout, in the onMeasure and layoutChildren add to all the children some kind of space between them, i can create new attribute for it that can be customized in a style. i can override the dispatchDraw to paint the background for each view before it draws so i can paint my round borders, my only demand will be that each View added to this layout will have to be with transparent background.

So what do you think ?

  • 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-17T19:21:07+00:00Added an answer on May 17, 2026 at 7:21 pm

    Eventually i decided to use a List with customized divider.
    It looks good, however a list got a very nasty bug when it comes down to items with states like buttons and clickable textViews,

    1. you get no focus for the item and don’t see the ornage bar
    2. you don’t seem to get the evnets flowing to the children of the View in the list.

    I’m notsure how to resolve that one, i’ve seen numerous mails about it in the developres mailing list and here, most saying don’t put statefull objects in a list.
    So it mist not be the solution for me.
    Nest thing i’ll try is extending the normal layouts to have a bar in their bottom and use regualr linear layout with round corners drawable.

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

Sidebar

Related Questions

Simple task like make AJAX request , pass one parameter and return result, can
I make an AJAX request like so using JQuery: $.ajax({ type: GET, url: getvideo.php,
There is a request to make the SO search default to an AND style
For some reason when I attempt to make a request to an Ajax.net web
I'm using this code, to make a request to a given URL: private static
Even on big-time sites such as Google, I sometimes make a request and the
I have a problem. I built a script to make a request to an
I frequently make use of Request.QueryString[] variables. In my Page_load I often do things
Suppose you want to make an async request in JavaScript, but you want to
Is it possible to make a POST request from Ruby with open-uri?

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.