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

  • Home
  • SEARCH
  • 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 8503593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:47:53+00:00 2026-06-11T01:47:53+00:00

Basically I’m new to Android and don’t know much about it. I’m making a

  • 0

Basically I’m new to Android and don’t know much about it. I’m making a quiz program in which I’m using custom ListView with 5 custom TextViews, one for question and other 4 for options. My problem is that I want the TextView as clickable as well as the LisView as choice mode as single. That is if I click one text all other TextViews should become unclickable. My problem is whenever I click on a TextView in the child layout, only the outer layout, that is the item of the ListView get selected.
here is the screenshot of the my listview

https://picasaweb.google.com/108429569548433380582/Android?authkey=Gv1sRgCJ3kxJz7tLvaTg#5783846428648608706

  • 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-11T01:47:55+00:00Added an answer on June 11, 2026 at 1:47 am

    Try this :

    When you select one textview the other three will be unclickable

        final TextView texta = (TextView) findViewById(R.id.text_a);
        final TextView textb = (TextView) findViewById(R.id.text_b);
        final TextView textc = (TextView) findViewById(R.id.text_c);
        final TextView textd = (TextView) findViewById(R.id.text_d);
        texta.setOnClickListener(new OnClickListener()
        {
            public void onClick(View v) {
    
                textb.setClickable(false);
                textc.setClickable(false);
                textd.setClickable(false);
            }
    
        });
        textb.setOnClickListener(new OnClickListener()
        {
            public void onClick(View v) {
    
                texta.setClickable(false);
                textc.setClickable(false);
                textd.setClickable(false);
            }
    
        });
        textc.setOnClickListener(new OnClickListener()
        {
            public void onClick(View v) {
    
                texta.setClickable(false);
                textb.setClickable(false);
                textd.setClickable(false);
            }
    
        });
        textd.setOnClickListener(new OnClickListener()
        {
            public void onClick(View v) {
    
                texta.setClickable(false);
                textb.setClickable(false);
                textc.setClickable(false);
            }
    
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I want to know how to set center alignment for a cell using
Basically, I have a JTextPane to hold some text which I wish to style.
Basically, I'm implemeting a reversi app for android for my year 13 coursework and
Basically I'm making a filter for my portfolio so that you can click on
Basically, each time I click on a graphicsview, I'd like a new QGraphicsEllipseItem to
Basically I'm trying to improve on the Ghosts in a Pacman game I'm making.
Basically in my in my aspx page I have a gridview which displays the
basically when my app loads my first screen is MainPage.xaml, which I'm treating as
Basically I am doing a quiz app, I need to dedicate one question to
Basically I have a background image which is loaded while the rest of the

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.