Truncate String In Android


In this tutorial I will show you how to shorten your Strings in Android Studio( Example: My Title Is Long…). First import the Truncate Util

Step 1

import android.text.TextUtils;

Step 2
In your Activity initiate your TextView then set the following options


An example in my case would be the following

TextView message_title = (TextView) rowView.findViewById(;

message_title.setText("Large amount of text here");

That’s it. Leave a comment and also follow us on Twitter @westernstudios

  1. Joselyn says:

    I was just looking at your website and see that your website has the potential to become very popular. Great job!

Please Post Your Comments & Reviews

Welcome to Western Studios

We provide professional website and mobile softwares including Joomla, Wordpress and more.