Android 布局中 ScrollView 内的 TextView 最后一行被遮住的解决办法

Android 布局中 ScrollView 内的 TextView 最后一行被遮住的解决办法,第1张

概述很简单,不要在ScrollView内部直接使用TextView,而是在中间加一层LinearLayout,就可以完美解决。<ScrollViewandroid:layout_width="match_parent"android:layout_height="match_parent"android:layout_marginTop="15dp"android

很简单,不要在 ScrollVIEw 内部直接使用 TextVIEw,而是在中间加一层 linearLayout,就可以完美解决。

   <ScrollVIEw        androID:layout_wIDth="match_parent"        androID:layout_height="match_parent"        androID:layout_margintop="15dp"        androID:layout_weight="1"        androID:background="@drawable/password_input_text_bg"        app:layout_constraintBottom_totopOf="@ID/bottom"        app:layout_constrainttop_totopOf="parent"        app:layout_constraintVertical_weight="1">        <linearLayout            androID:layout_wIDth="match_parent"            androID:layout_height="wrap_content"            androID:orIEntation="vertical">            <TextVIEw                androID:ID="@+ID/console"                androID:layout_wIDth="match_parent"                androID:layout_height="wrap_content"                androID:layout_marginVertical="15dp"                app:layout_constraintBottom_totopOf="@ID/bottom" />        </linearLayout>    </ScrollVIEw>

 

总结

以上是内存溢出为你收集整理的Android 布局中 ScrollView 内的 TextView 最后一行被遮住的解决办法全部内容,希望文章能够帮你解决Android 布局中 ScrollView 内的 TextView 最后一行被遮住的解决办法所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1118828.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存