我的Android TextView xml非常简单,就像下面一样,我使用ScrollView风格,但它不会显示滚动条,即使文本超出了底部,也没有办法让我看到更多内容。请问如何启用滚动条? 我认为“match_parent”有问题,但不知道如何解决。谢谢!Scrollview不显示滚动条
<?xml version="1.0" encoding="utf-8"?>
<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"
android:orientation="vertical"
android:background="#ffffff">
<TextView
android:id="@+id/textResult"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/buttonRecord"
android:layout_marginTop="16dp"
android:background="@drawable/back"
android:editable="true"
android:height="150dp"
android:text=""
android:enabled="false"
android:scrollbars="vertical"
style="@android:style/Widget.ScrollView"
android:layout_alignRight="@+id/buttonRecord"
android:layout_alignEnd="@+id/buttonRecord"
android:layout_alignLeft="@+id/buttonRecord"
android:layout_alignStart="@+id/buttonRecord" />
</RelativeLayout>
你的滚动视图在哪里?并改变问题标题...你试图让文本视图滚动 –
我认为这是一个重复的问题[this](http://stackoverflow.com/questions/23873454/android-textview-scrollable) – nexus5x