【发布时间】:2012-10-27 13:55:15
【问题描述】:
嗯,这就是我得到的:
这就是我想要的:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text="3"
android:textSize="500px"
android:includeFontPadding="false"
android:paddingTop="0px"
android:paddingBottom="0px"
android:paddingLeft="0px"
android:paddingRight="0px"
android:layout_marginTop="0px"
android:layout_marginBottom="0px"
android:layout_marginLeft="0px"
android:layout_marginRight="0px"
android:background="@null"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</TextView>
</RelativeLayout>
如您所见,我使用了所有已知的魔法:includeFontPadding、background="@null"、边距、填充等。我错过了什么吗?
【问题讨论】:
-
尝试使用线性布局并在其中放置文本视图