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

The Archive Base Latest Questions

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

I have a RadioGroup with four check buttons. I’d like to create a slide

  • 0

I have a RadioGroup with four check buttons. I’d like to create a “slide” transition animation so that if the user clicks the bottom most radiobuttom while the topmost is currently checked, my custom checkbox graphic would slide from the top position to the bottom. Any ideas? I’d like this to work on Android 2.0 and above.

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

    If I am imagining the same thing as you (which I might not be) you’re going to need 2 Animations. One to scoot the disabled buttons down, and one to scoot the chosen button up to the top.

    You are going to use TranslateAnimation. You can find some more info about view Animations here

    You’ll want to define your TranslateAnimations in xml or in java then you can call radioBtn.startAnimation(myAnim); you pass it the Animation object that you create or that you inflate from xml.

    Edit: Unfortunately I think it is going to end up being a fairly complex process to make it work that way. I can think of two ways to achieve that effect. But neither is particularly straight forward.

    Make yourself an ImageView that contains the CHECKED_ON graphic as its picture. Set its position over top of whatever is currently selected. when something new is selected use TranslateAnimation to move the ImageView to the position of the newly selected item. If you are going this route I think you’ll have to change your CheckBox graphic to use the CHECKED OFF image in both states (on and off) otherwise as soon as you click on a new one its going to change to ON, even though the graphic will be in the process of flying toward the newly selected one.

    Another potential solution would be make a vertical seek bar object and hook up the Label names to set the seek bar to the correct position when they are touched. To get an animated effect you could use a for loop and just increase/decrease the seek bar position by some small amount over and over until you arrive at your destination. The logic could work the same as check boxes, they would just be considered CHECKED_ON whenever the seekbar position is in line with them and off otherwise. This approach might actually end up being simpler to implement than using Animations to achieve it.

    although I’ve only pondered it briefly I would probably lean towards the second option. I have used TranslateAnimations in the past to simulate drag & drop actions on some custom Views that I made for a game. This was one of the most difficult things I worked on related to that game.

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

Sidebar

Related Questions

I have a RadioGroup with four radio buttons, I have them using weightsum of
I have four radio buttons and they're all part of a radioGroup. How can
In xml layout I have RadioGroup, Button1, Button2. When user clicks on button1, several
I have Radio buttons that are created dynamically. LinearLayout linLayRoot = (LinearLayout)dialogView.findViewById(R.id.dialog_layout_root); RadioGroup radGp
I would like to have radio buttons in one radiogroup divided into 2 columns
I have 2 radio buttons and 4 check boxes that i want to keep
I have a radiogroup in xml, and the buttons are generated programmatically. How do
I have two different activities. One's view contains RadioButton s that give the user
i have a RadioGroup I would like to add a dashed stroke(boder?) with some
I have an Android view that includes a RadioGroup with three RadioButtons. When one

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.