kanyun-inc / Kace

Kace: Kotlin Android Compatible Extensions, a framework for assisting in the seamless migration from kotlin-android-extensions
Apache License 2.0
263 stars 12 forks source link

不支持fragment标签吗? #50

Closed hacket closed 1 year ago

bennyhuo commented 1 year ago

请详细描述你的问题或者需求哈。

bennyhuo commented 1 year ago

由于无法确认具体问题,这边先将 issue 关闭。谢谢。

kamaihamaiha commented 6 months ago

就是在 Activity 的布局中,用到了 Fragment 如下:

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <fragment
        android:id="@+id/fragment_content"
        android:layout_marginTop="6dp"
        class="com.eusoft.ting.ui.fragment.all_channelgroup.ChannelGroupHomeFragment"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintTop_toBottomOf="@id/btn_back"
        android:layout_width="match_parent"
        android:layout_height="0dp"/>

</androidx.constraintlayout.widget.ConstraintLayout>