android-ScrollView或其父级无用

android-ScrollView或其父级无用,第1张

概述<RelativeLayoutxmlns:android="http://schemas.android.com/apkes/android"xmlns:tools="http://schemas.android.comools"android:layout_width="match_parent"android:layout_height="match_parent"andro

<relativeLayout xmlns:androID="http://schemas.androID.com/apk/res/androID"   xmlns:tools="http://schemas.androID.com/tools"   androID:layout_wIDth="match_parent"   androID:layout_height="match_parent"   androID:paddingBottom="@dimen/activity_vertical_margin"   androID:paddingleft="@dimen/activity_horizontal_margin"   androID:paddingRight="@dimen/activity_horizontal_margin"   androID:paddingtop="@dimen/activity_vertical_margin"   tools:context=".MainActivity" >   <ScrollVIEw      androID:layout_wIDth="fill_parent"      androID:layout_height="fill_parent" >      <linearLayout         androID:layout_wIDth="fill_parent"         androID:layout_height="wrap_content"         androID:orIEntation="vertical" >         <TextVIEw            androID:ID="@+ID/tvdisplay"            androID:layout_wIDth="wrap_content"            androID:layout_height="wrap_content"            androID:text="@string/hello_world" />      </linearLayout>  </ScrollVIEw>

Titan Studio不断告诉我ScrollVIEw布局或其relativeLayout父级是无用的.我的xml有什么问题?

解决方法:

去做就对了-

<ScrollVIEw xmlns:androID="http://schemas.androID.com/apk/res/androID"   xmlns:tools="http://schemas.androID.com/tools"   androID:layout_wIDth="match_parent"   androID:layout_height="match_parent"   androID:paddingBottom="@dimen/activity_vertical_margin"   androID:paddingleft="@dimen/activity_horizontal_margin"   androID:paddingRight="@dimen/activity_horizontal_margin"   androID:paddingtop="@dimen/activity_vertical_margin"   tools:context=".MainActivity" >      <linearLayout         androID:layout_wIDth="fill_parent"         androID:layout_height="wrap_content"         androID:orIEntation="vertical" >         <TextVIEw            androID:ID="@+ID/tvdisplay"            androID:layout_wIDth="wrap_content"            androID:layout_height="wrap_content"            androID:text="@string/hello_world" />      </linearLayout>  </ScrollVIEw>
总结

以上是内存溢出为你收集整理的android-ScrollView或其父级无用全部内容,希望文章能够帮你解决android-ScrollView或其父级无用所遇到的程序开发问题。

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

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

原文地址: https://outofmemory.cn/web/1211267.html

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

发表评论

登录后才能评论

评论列表(0条)

保存