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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:16:36+00:00 2026-06-03T16:16:36+00:00

I have: <stroke android:width=1px android:color=#A6ACB1/> I’d like to remove this border from the bottom

  • 0

I have:

<stroke android:width="1px" android:color="#A6ACB1"/>

I’d like to remove this border from the bottom (for example) of the element. Is it possible? (Eclipse suggests me only: color, width, dashWidth and dashGap).

  • 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-03T16:16:42+00:00Added an answer on June 3, 2026 at 4:16 pm

    As far as I understand it, there isn’t an easy way of doing it. but if you use layer-list with an item that has the border and then one that doesn’t with an offset from all the sides for which you want a border equal to the border width, you’d achieve that.

    Let me make the xml for you representing the borderless bottom..

    <?xml version="1.0" encoding="utf-8"?>
    <layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
        <!-- Border -->
        <item>
            <shape>
                <solid android:color="#f000"></solid>
            </shape>
        </item>
        <!-- Body -->
        <item android:left="2dip"
              android:top="2dp"
              android:right="2dp">
            <shape>
                <solid android:color="#ffafafaf"></solid>
            </shape> 
        </item>
    </layer-list>
    

    As you can see, I’m telling the second item to be inset of the first one by two dp’s on all sides except bottom (hence the no-border result on the bottom), there you go:

    enter image description here

    So essentially this isn’t a border per-se, it’s the shape from below (although you could add a border if you need dashed or dotted or whatever) being covered by a second item with would be the body of the button. All in the same drawable 🙂

    This can be applied to any border you want to remove, by changing the values that the item is inset, for example, if I change the right in the Body item to bottom, the missing border would the right one since it’s the one without the inset

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

Sidebar

Related Questions

I have this in res/values/styles.xml <style name=ListViewRowBorder > <item name=android:width>1dp</item> <item name=android:color>@color/listview_row_stroke_color</item> </style> I
I have this svg: <circle cx=50 cy=100 r=50 stroke-width=0 fill=orange/> <polygon points=0,100, 50,50 100,100
I have some buttons and I declared their background like this: <Button android:id=@+id/button2 android:layout_width=wrap_content
I had this drawable to have a rounded rectangle as a background: <shape xmlns:android=http://schemas.android.com/apk/res/android>
I would like to have some text to be inside a rectangle with stroke
<item android:state_focused=true > <shape> <gradient android:endColor=#FF9900 android:startColor=#FF9966 android:angle=270 /> <stroke android:width=3dp android:color=#CCCCCC /> <corners
I want to stroke a path using a .png that I have but I
I have a Path (a star figure): <Path x:Name=NiceStar StrokeThickness=10 Stroke=#ff000000 StrokeMiterLimit=1 Data=F1 M
Have 2 tables for example: In 1st: object & parent columns object | parent
I have an ImageView object that I'm setting the android:src=@drawable/some_xml_file instead of a standard

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.