小编Kir*_*tin的帖子

NestedScrollView 内的 TextView 被一条底线截断

我有一个 ViewPager 项目,它看起来像这样:

<android.support.v4.widget.NestedScrollView 
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingTop="16dp"
    android:paddingLeft="@dimen/material_horizontal_margin"
    android:paddingRight="@dimen/material_horizontal_margin"
    xmlns:android="http://schemas.android.com/apk/res/android">

    <TextView
        android:id="@+id/group_footer_pager_item_info"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="left"/>

</android.support.v4.widget.NestedScrollView>
Run Code Online (Sandbox Code Playgroud)

TextView 的文本可能很长,但它的长度真的无关紧要,因为在任何情况下,如果它足够大可以滚动——文本的最后一行根本不可见。

这可能是什么原因?

height android textview nestedscrollview

2
推荐指数
1
解决办法
1466
查看次数

标签 统计

android ×1

height ×1

nestedscrollview ×1

textview ×1