sp vs. dp is generally fine. In current builds they are the same thing. In the future, the sp value will change based on the user's font size preference. (Actually you can write an app today that lets you poke the font size scaling factor, though the standard UI in the platform generally doesn't deal with this well.) If you have a dimension that makes sense to grow and shrink a bit depending on whether the user wants larger or smaller fonts, feel free to use sp. (Though if you do, you might want to use DevTools to adjust the font size to make sure what you are doing gives a sane result.)
On Tue, May 3, 2011 at 10:14 PM, Indicator Veritatis <mej1...@yahoo.com>wrote: > 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+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en