Align text right in Android textview

I am trying to align text in textview to right side. I have added android:gravity="right" to textview properties, but it doesn't seem to work. Any ideas?

Answers


Please DO search before asking questions. You probably need to check your android:layout_width property, check this question.


You may need to change android:layout_width = "wrap_content" to android:layout_width = "fill_parent"


Need Your Help

how can we get E-mail receiving notification in android

android

how can we get E-mail receiving notification in android

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.