【发布时间】:2023-03-30 18:29:01
【问题描述】:
我是 android 的初学者,我编写了简单的应用程序来在 android studio 的 textView 中显示一个简单的文本,但是当我在 textView 中写一个大文本时,textview 无法滚动,我的 xml 文件是:
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout"
android:layout_width="match_parent" android:layout_height="match_parent"
tools:context=".MainActivity">
<FrameLayout android:id="@+id/container" android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Large Text"
android:id="@+id/MAINLABEL"
android:layout_gravity="center" />
</FrameLayout>
</android.support.v4.widget.DrawerLayout>
发生了什么?
【问题讨论】:
-
你想如何滚动。
Horizontal或Vertical
标签: android textview android-scrollview