Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HippyRootView 自适应 #3871

Closed
ya0xu opened this issue May 22, 2024 · 2 comments
Closed

HippyRootView 自适应 #3871

ya0xu opened this issue May 22, 2024 · 2 comments
Assignees
Labels
stale: closed Closed due to stale stale: 30d No interaction in the last 30 days

Comments

@ya0xu
Copy link

ya0xu commented May 22, 2024

Android 代码:

<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">

    <LinearLayout
        android:id="@+id/ll1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">
        
        <HippyView
            android:id="@+id/hv1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

        <HippyView
            android:id="@+id/hv2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

    </LinearLayout>

</androidx.core.widget.NestedScrollView>

hippy 版本:2.17.2

hippy 代码 vue-next

HippyView 继承自LinearLayoutCompat,在调用hippyRootView = hippyEngine.loadModule后,把hippyRootView添加HippView里面。 此时只显出来一个HippyView,占满了父容器的高度。没有实现自适应。
hv1、hv2设置固定高度则都可以显示 。

iOS通过sizeFlexiblity、rootViewDidChangeIntrinsicSize,使用同一套hippy代码,可以自适应,安卓怎样实现自适应呢?

Copy link

hippy-service bot commented Aug 19, 2024

Pay attention 🛎️ !!
There has been no activity on this issue for 2 months, so I will label it stalled.
It will be automatically closed in 60 days if no more activity. Feel free to leave a comment if you have any questions.

@hippy-service hippy-service bot added the stale: 30d No interaction in the last 30 days label Aug 19, 2024
Copy link

hippy-service bot commented Sep 18, 2024

Sorry, closing this issue because it has stalled for over 3 months.
Feel free to reopen if this issue is still relevant, or to ping the collaborator if you have any questions.

@hippy-service hippy-service bot added the stale: closed Closed due to stale label Sep 18, 2024
@hippy-service hippy-service bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale: closed Closed due to stale stale: 30d No interaction in the last 30 days
Projects
None yet
Development

No branches or pull requests

2 participants