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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:00:34+00:00 2026-05-25T10:00:34+00:00

Is it possible to create a button like radio button without using images? Would

  • 0

Is it possible to create a button like radio button without using images?
Would like to have a pressed state upon selection. Then back to normal state when I click other options.

  • 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-25T10:00:35+00:00Added an answer on May 25, 2026 at 10:00 am

    simply include the respective drawables of the radio button in different states (i.e. focused, pressed, checked, or normal). Include these in a selector.xml to specify the looks of the button for the respective states, and include that xml in the android:background attribute of your button. That should do it all…! 🙂

    Check this link to understand the method better: Change how a CheckBox looks
    (it is given for a CheckBox, but similar stuff will work for button as a radio button as well).

    Edit:

    Define round_button.xml as below:

    <?xml version="1.0" encoding="utf-8"?>
    <selector xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:state_checked="true" android:state_focused="true"
            android:drawable="@drawable/roundbutton_on_background_focus_yellow" />
    
        <item android:state_checked="false" android:state_focused="true"
            android:drawable="@drawable/roundbutton_off_background_focus_yellow" />
    
        <item android:state_checked="false" 
            android:drawable="@drawable/roundbutton_off_background" />
    
        <item android:state_checked="true"
            android:drawable="@drawable/roundbutton_on_background" />
    </selector>
    

    Then, wherever you need to include that button, just add the following:

    <Button android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/round_button"
        android:checked="true"/>
    

    [P.S.: Don’t forget to include the drawables for a round button, you’ll have to search them yourself, or get from the default files (.android), which is given in the link]

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

Sidebar

Related Questions

I have a jQuery tip function. I would like to create a button to
Hi i would like to create a custom button. I have implement my custom_but.xml
Is it possible to apply / create a YUI Button by using an element's
Is it possible to create Windows CE 5.0 images (ie: nk.bin) from VS2005/VS2008 without
Is it possible to use JQuery & PHP to create a like button that
On Android, I would like to create a button that contains some other Views.
I have files in a directory. I would like to know if it’s possible
Is it possible to create a toggle button in C# WinForms? I know that
Is it possible to create images with PHP (as opposed to simply linking to
Is it possible to create a REST web service using ASP.NET 2.0? The articles

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.