About 417,000 results
Open links in new tab
  1. Clickable TextView in Android - Stack Overflow

    Jan 6, 2011 · I'm building an Android App that has many many TextViews that I want to be clickable. I've tried to assign the properties android:clickable="true" and android:onClick="clickHandler" to the single TextView and when the app fires the clickHandler(View v) I get the clicked item correctly through v.getId() .

  2. how to make text view clickable in android? - Stack Overflow

    Implement View.OnClickListener, then simply apply switch case and define the id of your text view in the case and pass the intent. example:- @Override public void onClick(View v) { //TODO Auto-generated method stub switch (v.getId()) { case R.id.textView: startActivity(new Intent(this,CalledClass.class)); break; default: break; }

  3. When should one use android:clickable? - Stack Overflow

    clickable seems to be useful when you need a view to consume clicks so that they do not go to views beneath the top view. For example, I have a FrameLayout that I display over an underlying RelativeLayout at certain times.

  4. How to Enable/Disable Click Listener on Views in Android?

    Feb 1, 2022 · So in this article, we will learn how to disable/enable click listener on views in android. Step 1: Create a New Project. To create a new project in Android Studio please refer to Create a new project in android studio in kotlin. Step 2: Working with the activity_main.xml file.

  5. How to Make Parts of a TextView Text ClickableAndroid

    Jan 11, 2023 · In Android Studio, you can make parts of a TextView clickable by setting its movement method to LinkMovementMethod and defining clickable spans within the text.

  6. View.OnClickListener | API reference | Android Developers

    Called when a view has been clicked. View: The view that was clicked. Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates. Last updated 2025-02-10 UTC.

  7. Duplicate clickable elements - Android Accessibility Help - Google

    If any item appears to be focused more than once, the interface may contain duplicate clickable items. Android's automated testing tools can detect duplicate clickable Views. Consider...

  8. Make Android TextView Clickable like Buttons - Code2care

    Jul 12, 2020 · How we can make a TextView clickable just like Buttons and ImageButton Views in Android Programming.

  9. Set Part of Android TextView as Clickable - Online Tutorials Library

    Learn how to make a specific part of an Android TextView clickable and enhance user interaction in your Android application.

  10. Set up android view clickable - Stack Overflow

    Jul 28, 2012 · Make the LinearLayout clickable by setting layout attribute android:clickable="true", android:focusable="true" and android:focusableInTouchMode="true" from xml or setClickable(true) from code. set onClickListener as

  11. Some results have been removed
Refresh