Java Scrollview没有';t滚动通过tabLayout内的某个点。我该如何解决这个问题?
我把一个滚动视图放在tabLayout上的标签内。scrollview中有一个textview,但当我尝试向下滚动时,页面会缩短,我无法看到所有的scrollview。我该如何解决这个问题 这是我的scrollview的XMLJava Scrollview没有';t滚动通过tabLayout内的某个点。我该如何解决这个问题?,java,android,android-fragments,scrollview,android-tablayout,Java,Android,Android Fragments,Scrollview,Android Tablayout,我把一个滚动视图放在tabLayout上的标签内。scrollview中有一个textview,但当我尝试向下滚动时,页面会缩短,我无法看到所有的scrollview。我该如何解决这个问题 这是我的scrollview的XML <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:layout_height="match_parent" android:layout_width=
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="end">
<TextView
android:padding="@dimen/welcome_text_padding"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="@dimen/welcome_text_size"
android:id="@+id/intro_text"/>
</ScrollView>
</LinearLayout>
另外,这里是包含上述片段的类的XML
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabMode="fixed"
app:tabGravity="fill"/>
</android.support.design.widget.AppBarLayout>
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
试试这个,它可能会解决问题
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="end"
android:fillViewport="true"
android:scrollbars="vertical">
Nope:/这没有任何作用
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="end"
android:fillViewport="true"
android:scrollbars="vertical">