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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:27:28+00:00 2026-06-09T14:27:28+00:00

I’m developing an android app, but I’m a little confused about making a decision

  • 0

I’m developing an android app, but I’m a little confused about making a decision between EditText and TextView since I can do the following for both:
android:textIsSelectable=”true”
android:editable=”false”
android:inputType=”none”
android:cursorVisible=“false”

My goal is to let the user to have the options “copy” and “share” the text. The sharing feature did not appear in EditText nor TextView by default!! Also, making TextView selectable did not work in earlier versions of android that are below 4.0.
So, I need the user to copy and share the text in all android versions, How? Thanks for any help

  • 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-09T14:27:30+00:00Added an answer on June 9, 2026 at 2:27 pm

    If you want the user to be able to change the text, use an EditText or if you only want the user to select the text for copying & pasting, use a TextView. You won’t find any single attribute for sharing. However:

    • This guide will walk you through using the clipboard to: Copy & Paste

    • And read this guide on Adding an Easy Share Action

    Both are from the Android Developers and provide a wealth of information.


    As for being able to select text in a TextView, you don’t need any special attributes. Simply long press any word in the text. The XML below is all you need:

    <TextView
        android:width="wrap_content"
        android:height="wrap_content"
        android:text="A short text blurb." />
    

    However, feel free to add more attributes to give it style and personality.

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

Sidebar

Related Questions

I am developing an android app which can able to get push notifications. But
I'm developing my Android app with target set to 15, but would still like
Iam developing an android app.about google maps API for android i want to ask
I'm developing a little Android app with some square buttons created dynamically from Java
I'm developing an Android app but I have a problem. When I try to
Hi I am developing an Android app using an EditText, and a add en
I'm developing android app. It's some sort of social network. Where user can add
I'm developing a little Game at the Moment (Android-App) and I want to save
I'm developing an Android App using PhoneGap, but I found a problem very soon.
I am developing an Android app with Phonegap , but I ran into a

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.