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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:25:33+00:00 2026-05-14T04:25:33+00:00

if i add string in a TextView for example, this is my string and

  • 0

if i add string in a TextView for example,

this is my string

and TextView max length is 4

It should look like in activity this... or t... that means string continue sign at the end of assigned string if string size is bigger than Max length.

Can any one guide me what should i do or i will have to manually add “…” at the end of string through programming.

Any help would be appreciated.

  • 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-14T04:25:34+00:00Added an answer on May 14, 2026 at 4:25 am

    Use the following for your TextViews:

    android:ellipsize="end" 
    android:singleLine="true"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have written a method in java like this public boolean ADD(String ID,String Name,String
I have a TextView that will hold a styled, multiline string. This text is
I am trying to add string values in JsonArray and after that create Json
The error is this: The method add(String, int) in the type DataNode is not
I want to add a string to a variable name that represents an integer.
I want that this code: <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android > <TextView android:id=@+id/logo style=@style/logo android:layout_alignParentTop=true android:text=@string/logo tools:context=.MainActivity
I have a date textview. And my textview holds a date string like 2011.09.17.
I add a ListView on runtime like this: MainMenue = getResources().getStringArray(R.array.Unit); // remove all
I want to add large string content to a container dynamically. There are 60
string str = one three; string::iterator it; string add = two ; Lets say

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.