很简单,不要在 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 最后一行被遮住的解决办法所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)