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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:32:11+00:00 2026-06-06T18:32:11+00:00

I was just checking the design guidelines and wondering about the borderless buttons. I

  • 0

I was just checking the design guidelines and wondering about the borderless buttons.
I goggled and tried to find in the source but can’t bring it together by myself.
Is this the normal Button widget but you add a custom (Android default) style?
How to make these borderless buttons (of course you can set the background to empty, but then I don’t have the divider)?

Here links to the design guidelines:

  • http://developer.android.com/design/building-blocks/buttons.html
  • http://developer.android.com/guide/topics/ui/controls/button.html#Borderless

enter image description here

  • 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-06T18:32:12+00:00Added an answer on June 6, 2026 at 6:32 pm

    To clear some confusion:

    This is done in 2 steps: Setting the button background attribute to android:attr/selectableItemBackground creates you a button with feedback but no background.

    android:background="?android:attr/selectableItemBackground"
    

    The line to divide the borderless button from the rest of you layout is done by a view with the background android:attr/dividerVertical

    android:background="?android:attr/dividerVertical"
    

    For a better understanding here is a layout for a OK / Cancel borderless button combination at the bottom of your screen (like in the right picture above).

    <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:layout_alignParentBottom="true">
            <View
                android:layout_width="match_parent"
                android:layout_height="1dip"
                android:layout_marginLeft="4dip"
                android:layout_marginRight="4dip"
                android:background="?android:attr/dividerVertical"
                android:layout_alignParentTop="true"/>
            <View
                android:id="@+id/ViewColorPickerHelper"
                android:layout_width="1dip"
                android:layout_height="wrap_content"
                android:layout_alignParentTop="true"
                android:layout_alignParentBottom="true"
                android:layout_marginBottom="4dip"
                android:layout_marginTop="4dip"
                android:background="?android:attr/dividerVertical" 
                android:layout_centerHorizontal="true"/>
            <Button
                android:id="@+id/BtnColorPickerCancel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:layout_alignParentTop="true"
                android:layout_toLeftOf="@id/ViewColorPickerHelper"
                android:background="?android:attr/selectableItemBackground"
                android:text="@android:string/cancel" 
                android:layout_alignParentBottom="true"/>
            <Button
                android:id="@+id/BtnColorPickerOk"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_alignParentTop="true"
                android:background="?android:attr/selectableItemBackground"
                android:text="@android:string/ok" 
                android:layout_alignParentBottom="true" 
                android:layout_toRightOf="@id/ViewColorPickerHelper"/>
        </RelativeLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just checking my JS and I have an error, but I cannot see where.
Well i'm just checking but i guess i've commited a mistake. I've a single
Just checking, but it appears D3D9's DrawPrimitiveUP / any method of drawing WITHOUT a
Just checking if there's any best practice when writing a Windows Service. The Service
Just checking it for my GPT site, Is it LEGAL to get pay my
i just checking Flash Builder 4 ( i come from Flex builder 3 ),
i was just checking the behaviour of fork system call and i found it
I'm just checking if a value of a double variable is null or not,
I'm validating my form, just checking if in the fields where a number should
Hi all, I'm validating my form, just checking if in the fields where a

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.