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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:04:35+00:00 2026-06-01T12:04:35+00:00

I want to make a layout with a rounded border. How can I apply

  • 0

I want to make a layout with a rounded border. How can I apply a radius of a particular size in a LinearLayout?

  • 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-01T12:04:36+00:00Added an answer on June 1, 2026 at 12:04 pm

    You can create an XML file in the drawable folder. Call it, for example, shape.xml

    In shape.xml:

    <shape
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="rectangle"   >
        
        <solid
            android:color="#888888" >
        </solid>
        
        <stroke
            android:width="2dp"
            android:color="#C4CDE0" >
        </stroke>
         
        <padding
            android:left="5dp"
            android:top="5dp"
            android:right="5dp"
            android:bottom="5dp"    >
        </padding>
         
        <corners
            android:radius="11dp"   >
        </corners>
         
    </shape>
    

    The <corner> tag is for your specific question.

    Make changes as required.

    And in your whatever_layout_name.xml:

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:layout_margin="5dp"
        android:background="@drawable/shape"    >
    </LinearLayout>
    

    This is what I usually do in my apps.

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

Sidebar

Related Questions

For example,I want to make a layout like this: The 'header' can have a
I want to make layout like this: The problem is with aligning TextViews: I
Layout is FreeDesign I want to make less space between JLabel and JFrame in
JSFIDDLE EXAMPLE BELOW I want to make the following CSS layout and currently im
What I want to achieve I'm trying to make a layout equal to the
I want make interactive application where user launches it and can do various task
I want to make a layout similar to this one: www.ImageBanana.net - layout.png http://www.imagebanana.com/img/9kmlhy66/thumb/layout.png
Give me please an advise, I want to make a dynamic layout which contains
I want to make a navigation menu with 4 buttons using a grid layout.
I have created a custom tab layout which look like this,I want to make

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.