我的一个观点现在看起来像这样。在大 5 附近,特别是在它的上方和下方,有相当大的余量。我怎样才能减少或删除这个保证金?
相关的 XML 代码如下所示:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView style="@style/medText" android:id="@+id/whenSee" android:text="@string/whenSee" android:layout_alignParentLeft="true" android:layout_above="@+id/newViewValue" android:gravity="center" android:layout_alignRight="@+id/button_to_press"></TextView>
<TextView style="@style/numberSelect" android:id="@+id/newViewValue" android:text="9" android:layout_above="@+id/press_text" android:layout_alignParentLeft="true" android:gravity="center" android:layout_alignRight="@+id/button_to_press"></TextView>
<TextView style="@style/medText" android:id="@+id/press_text" android:layout_above="@+id/button_to_press" android:layout_alignParentLeft="true" android:text="@string/press" android:gravity="center" android:layout_alignRight="@+id/button_to_press"></TextView>
</RelativeLayout>
款式在这里:
<style name="medText">
<item name="android:textSize">22sp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">wrap_content</item>
</style>
<style name="numberSelect">
<item name="android:textSize">80sp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">wrap_content</item>
</style>