I need to show a Large text view in android,if the string length is small i want to show the whole text if the String length is high I want to show the texts in first the letters of the String followed by dots and then followed by the last part of the String. 

Like if the String is 'Google' i want to show "Google" If the String is 'Google Play Developer Console' I want to show the String something like "Google P...Console" how can I achieve this?