appbar下非滑动布局也遇到了nestedScrollview那种高度被压缩的情况,如何破呢~

来源:互联网 发布:检查英语语法的软件 编辑:程序博客网 时间:2024/06/05 17:57

核心布局:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:background="@color/fragment_background"    android:orientation="horizontal"    tools:context=".fragments.SysUpdateFragment">    <com.zhy.android.percent.support.PercentRelativeLayout        android:layout_width="match_parent"        android:layout_height="match_parent">        <me.itangqi.waveloadingview.WaveLoadingView            android:id="@+id/waveLoadingView"            android:layout_width="0dp"            android:layout_height="0dp"            android:layout_centerInParent="true"            app:layout_heightPercent="60%h"            app:layout_widthPercent="60%h"            app:wlv_borderColor="@color/color_primary"            app:wlv_borderWidth="5dp"            app:wlv_progressValue="100"            app:wlv_round_rectangle="true"            app:wlv_shapeType="circle"            app:wlv_titleBottom="0%"            app:wlv_titleBottomColor="@color/color_primary_text"            app:wlv_titleBottomSize="20sp"            app:wlv_titleCenter="Update"            app:wlv_titleCenterColor="@color/color_primary_text"            app:wlv_titleCenterSize="30sp"            app:wlv_triangle_direction="north"            app:wlv_waveAmplitude="30"            app:wlv_waveColor="@color/color_primary" />    </com.zhy.android.percent.support.PercentRelativeLayout></RelativeLayout>

解决方案:外面多套一个相对布局此局可破。


0 0
原创粉丝点击