Giter VIP home page Giter VIP logo

Comments (17)

AriesHoo avatar AriesHoo commented on August 17, 2024

使用库版本多少,截图看看效果?

from fastlib.

D-zy avatar D-zy commented on August 17, 2024

tx

from fastlib.

D-zy avatar D-zy commented on August 17, 2024

只要做操作了, 就会发生

from fastlib.

AriesHoo avatar AriesHoo commented on August 17, 2024

ConstraintLayout 下使用,确实在部分情况会出现测量问题,目前还未发现解决方案,可先使用LinearLayout代替下,找到解决方案后通知你

from fastlib.

AriesHoo avatar AriesHoo commented on August 17, 2024

你是库用的多少版本?手机系统版本多少?我这用ConstraintLayout点击没有出现你那种情况

from fastlib.

D-zy avatar D-zy commented on August 17, 2024

最新的版本也是,我在博主的项目里运行也出现

from fastlib.

D-zy avatar D-zy commented on August 17, 2024

<androidx.constraintlayout.widget.ConstraintLayout 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">

<include layout="@layout/fast_layout_title_bar" />

<com.aries.ui.view.radius.RadiusTextView
    android:id="@+id/rtv1"
    android:layout_width="match_parent"
    android:layout_height="40dp"
    app:layout_constraintTop_toTopOf="parent"
    android:layout_marginTop="100dp"
    android:text="QQ样式" />

<com.aries.ui.view.radius.RadiusTextView
    android:id="@+id/rtv2"
    android:layout_width="match_parent"
    android:layout_height="40dp"
    android:text="banner样式"
    app:layout_constraintTop_toBottomOf="@id/rtv1" />

<com.aries.ui.view.radius.RadiusTextView
    android:id="@+id/rtv3"
    android:layout_width="match_parent"
    android:layout_height="40dp"
    android:text="PullScrollView"
    app:layout_constraintTop_toBottomOf="@id/rtv2" />

</androidx.constraintlayout.widget.ConstraintLayout>

from fastlib.

AriesHoo avatar AriesHoo commented on August 17, 2024

稍等,我这边试一试

from fastlib.

D-zy avatar D-zy commented on August 17, 2024

1

from fastlib.

D-zy avatar D-zy commented on August 17, 2024

2

from fastlib.

AriesHoo avatar AriesHoo commented on August 17, 2024

我知道了。。这个是华为这种导航栏可以开关系统上差异,我找找原因

from fastlib.

D-zy avatar D-zy commented on August 17, 2024

其他手机 也有,比如vivo

from fastlib.

AriesHoo avatar AriesHoo commented on August 17, 2024

是不是都是有虚拟导航栏那种的?

from fastlib.

D-zy avatar D-zy commented on August 17, 2024

不是,vivo 没有虚拟的

from fastlib.

AriesHoo avatar AriesHoo commented on August 17, 2024

我这边复现了。找下解决方案

from fastlib.

AriesHoo avatar AriesHoo commented on August 17, 2024

TitleBarView在ConstraintLayout中高度测量有问题,目前没找到原因所在。
解决方案
一:不使用ConstraintLayout
二 使用ConstraintLayout 不使用TitleBarView 使用如果少的话使用xml 定义TitleBarView 并配合StatusBarViewHelper适配沉浸式

后续找到原因再更新

from fastlib.

AriesHoo avatar AriesHoo commented on August 17, 2024

implementation 'com.github.AriesHoo:FastLib:2.2.12'

implementation 'com.github.AriesHoo.UIWidget:widget-core:3.2.9'
使用这个版本库,不过还是建议
ConstraintLayout与TitleBarView 不同时使用

from fastlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.