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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:22:59+00:00 2026-06-02T23:22:59+00:00

I have an onClickListener on a buttonView. The buttonView needs to detect which radioButton

  • 0

I have an onClickListener on a buttonView. The buttonView needs to detect which radioButton is selected in a radio group. But buttonView’s setTag is already occupied by a JSON object that the onClickListener needs to access (via v.getTag = new JSONOBject). So, can buttonView have two (2) tags? I see there are two methods, setTag(Object ojb); and setTag(key, object);

Could I use that to my advantage?

  • 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-02T23:23:01+00:00Added an answer on June 2, 2026 at 11:23 pm

    The buttonView needs to detect which radioButton is selected in a radio group.

    Which it can do, without a tag, by calling a method on the RadioGroup.

    So, can buttonView have two (2) tags?

    Create one tag object that holds onto your two other objects.

    I see there are two methods, setTag(Object ojb); and setTag(key, object); Could I use that to my advantage?

    The two-parameter setTag() is really there for the OS and for libraries. App developers are discouraged from using it. Moreover, as noted above, you do not need it.

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

Sidebar

Related Questions

I have a RelativeLayout to which I add buttons and set their onCLickListener to
I have a small programme which can send request and receive response. but1.setOnClickListener(new Button.OnClickListener()
i have problem with listview... i'm trying to add OnClickListener but in still doesn't
I have one View for which both onClickListener and onLongClickListener implemented. When I long
I have two RadioButton s inside a RadioGroup . I want to set OnClickListener
I have a activity where I have two imagesViews. This to imagesViews has onClickListener,
have not tested on windows. but in ubuntu when u disconnect from the network,
I have the following code in a form's submit button onClickListener: String action, user,
Hi I have implemented this code: Button goToRegister = (Button) findViewById(R.id.reg); goToRegister.setOnClickListener(new View.OnClickListener() {
In Java, I have an object that creates a button. Inside that button's onclicklistener

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.