我正在尝试使用文本视图添加大文本,但它会在屏幕下方请告诉我如何修复屏幕 有没有比文本视图更好的显示文本的方法 我无法添加我显示的字体框,所以我使用了一个随机文本,例如
<?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:orientation="vertical" >
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1.07" >
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginBottom="17dp"
android:layout_marginLeft="18dp"
android:text="Previous" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="43dp"
android:text="The organization and coordination of the
Management is often included as a factor of production along with machines, materials, and money. According to the management guru Peter Drucker (1909-2005), the basic task of management includes both marketing and innovation. Practice of modern management originates from the 16th century study of low-efficiency and failures of certain enterprises, conducted by the English statesman Sir Thomas More (1478-1535). Management consists of the interlocking functions of creating corporate policy and organizing, planning, controlling, and directing an organization's resources in order to achieve the objectives of that policy.
android:textAppearance="?android:attr/textAppearanceLarge" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/button2"
android:layout_alignBottom="@+id/button2"
android:layout_alignParentRight="true"
android:layout_marginRight="37dp"
android:text="Next" />
</RelativeLayout>
</LinearLayout>
答案 0 :(得分:2)
使用ScrollView而不是LinearLayout作为包装视图。
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true">
<!--everything else-->
</ScrollView>