android-ViewFlipper高度问题

android-ViewFlipper高度问题,第1张

概述在下面的代码中,viewflipper并没有占据整个屏幕,它只是环绕了textview.为什么会这样呢?<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apkes/android"android:layout_width="match_parent"

在下面的代码中,vIEwflipper并没有占据整个屏幕,它只是环绕了textvIEw.为什么会这样呢?

<?xml version="1.0" enCoding="utf-8"?><linearLayout xmlns:androID="http://schemas.androID.com/apk/res/androID"    androID:layout_wIDth="match_parent"    androID:layout_height="match_parent"    androID:orIEntation="vertical" >    <ScrollVIEw          androID:layout_wIDth="match_parent"        androID:layout_height="match_parent"        androID:background="#0000ff" >        <VIEwFlipper androID:ID="@+ID/VIEwFlipper01"            androID:layout_wIDth="match_parent"            androID:layout_height="match_parent"            androID:background="#aa0000"            androID:layout_gravity="center">              <TextVIEw                androID:layout_wIDth="match_parent"                androID:layout_height="50dp"></TextVIEw>        </VIEwFlipper>    </ScrollVIEw></linearLayout>

@R_403_6120@:

在scrollVIEw中使用

androID:fillVIEwport =“ true”

总结

以上是内存溢出为你收集整理的android-ViewFlipper高度问题全部内容,希望文章能够帮你解决android-ViewFlipper高度问题所遇到的程序开发问题。

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

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

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

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

发表评论

登录后才能评论

评论列表(0条)

保存