Sunday, July 25, 2010

[android-developers] Re: allign text vertically in a text view

Not layout_gravity, but only gravity.

There are several other types of gravity which you can apply to any
view.

center|center_vertical|center_horizontal

And there are a few others. Try those out.
-Kumar Bibek
http://tech-droid.blogspot.com

On Jul 26, 2:38 am, harshe <hars...@gmail.com> wrote:
> I have a textview placed vertically in an activity.. I Want the text
> within the textview to be shown as bottom to top facing right side.
> Can anyone please help me out..........
> my XML file is
>
> <TextView
>     android:layout_height="200dp"
>     android:layout_width="50dp"
>     android:paddingTop="100dp"
>     android:text="ALL"
>     android:textSize=" 20px"
>     android:autoText="true"
>      android:paddingLeft="5dp"
>      android:layout_gravity="fill_vertical"
>   />

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate