Tuesday, May 3, 2011

[android-developers] Re: Parts of words in TextView are out of the screen

See http://stackoverflow.com/questions/2025282/difference-of-px-dp-dip-and-sp-in-android
and reconsider your use of "15sp". You may want to set other
attributes too, but it seems that using 'sp' for android:padding alone
is probably not what you want.

It might be a good idea to test it out with other fonts too, in
particular, with an alphabet that goes form left to righ to eliminate
the possibility that this is a bug in BIDI support.

On May 3, 2:07 am, omar <omarfb...@gmail.com> wrote:
> Hey, I have a problem where parts of the Text in the TextView are out
> of the screen, Look at the picture:http://i.imgur.com/fDqa6.png
>
> I marked the problem in red squares..
> xml:
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout
>   xmlns:android="http://schemas.android.com/apk/res/android"
>   android:layout_width="fill_parent"
>   android:layout_height="fill_parent"
>   android:background="@drawable/list"
>   android:padding="15sp">
>
>   <ScrollView android:id="@+id/ScrollView01"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent">
> <LinearLayout
>   android:layout_width="fill_parent"
>   android:layout_height="fill_parent"
>   android:gravity="right">
>
> <TextView
> android:id="@+id/TfseerTextView"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:textSize="17sp"
> android:textColor="#000"
>       ></TextView>
>         </LinearLayout>
>         </ScrollView>
>
> </LinearLayout>
>
> Is it possible to fix? Is there any work around? Thanks.

--
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