我有一个XML布局文件,但文本不仅适合屏幕大小.为了制作一个,我需要做ScrollView什么?
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="1" >
<TableRow>
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:layout_marginTop="10dip"
android:layout_marginRight="5dip"
android:tint="#55ff0000"
android:src="@drawable/icon" />
</TableRow>
<TableRow>
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="3dip"
android:text=" Name " />
<TextView android:id="@+id/name1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
android:text="Veer" />
</TableRow>
<TableRow>
<TextView android:id="@+id/age"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="3dip"
android:text=" Age" />
<TextView android:id="@+id/age1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
android:text="23" />
</TableRow>
<TableRow>
<TextView android:id="@+id/gender"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="3dip"
android:text=" Gender" />
<TextView android:id="@+id/gender1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
android:text="Male" />
</TableRow>
<TableRow>
<TextView android:id="@+id/profession"
android:layout_width="wrap_content" …Run Code Online (Sandbox Code Playgroud) AppBarLayout滚动时,我有一个滚动屏幕RecyclerView.下方RecyclerView还有一个RelativeLayout是页脚.
页脚仅在向上滚动后显示 - 它表现得像它一样
layout_scrollFlags="scroll|enterAlways"
Run Code Online (Sandbox Code Playgroud)
但它没有任何滚动标志 - 它是一个错误还是我做错了什么?我希望它始终可见
在滚动之前

滚动后

更新
打开谷歌问题 - 它被标记为'WorkingAsIntended'这仍然没有帮助,因为我想要一个片段内的页脚的工作解决方案.
更新2
请注意,如果第34 activity.xml行 - 包含的行app:layout_behavior="@string/appbar_scrolling_view_behavior"被注释掉,则文本末尾从头开始可见 - 否则,只有在向上滚动后才可见
android android-5.0-lollipop android-design-library android-coordinatorlayout