dynamic-feature-module

Manifest Merger Error when using Dynamic Features and Build Flavors

自作多情 提交于 2021-02-09 10:13:58
问题 With dynamic-feature-modules it is possible to define in the AndroidManifest.xml wheter a module should come preinstalled: <dist:module ... dist:onDemand="false" dist:title="@string/title_shop"> .... </dist:module> or not: <dist:module ... dist:onDemand="true" dist:title="@string/title_shop"> .... </dist:module> I have two build flavors in my project. The module should be preinstalled in one flavor but not in the other. The idea is to have this default AndroidManifest.xml in the main source

Access Binding Adapters in multi module project

北战南征 提交于 2021-01-27 19:41:56
问题 I've got a multi module project where the app module contains my binding adapters and my feature module depends on my app module since it is a dynamic feature module. App (contains binding adapters) ----> Dynamic feature module (where the layout is present) I have databinding and kapt enabled in all the modules. I'm unable to build the app successfully. Android Studio gives me the following error, error: cannot find symbol import com.app.module1.databinding.FeatureItemBindingImpl; Layout file

Access Binding Adapters in multi module project

一世执手 提交于 2021-01-27 19:16:00
问题 I've got a multi module project where the app module contains my binding adapters and my feature module depends on my app module since it is a dynamic feature module. App (contains binding adapters) ----> Dynamic feature module (where the layout is present) I have databinding and kapt enabled in all the modules. I'm unable to build the app successfully. Android Studio gives me the following error, error: cannot find symbol import com.app.module1.databinding.FeatureItemBindingImpl; Layout file

How to use Dynamic Feature module with BottomNavigationView?

寵の児 提交于 2020-12-26 08:33:24
问题 Adding dynamic feature using a navigation graph like the one below and works fine with viewPager2, or another fragment, but not with a BottomNavigationView . Layout <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:id="@+id/nav_host_container

How to use Dynamic Feature module with BottomNavigationView?

左心房为你撑大大i 提交于 2020-12-26 08:31:38
问题 Adding dynamic feature using a navigation graph like the one below and works fine with viewPager2, or another fragment, but not with a BottomNavigationView . Layout <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:id="@+id/nav_host_container

Cannot find @BindindAdapter in dynamic feature module

[亡魂溺海] 提交于 2020-12-13 10:00:10
问题 I have extension function in app module @BindingAdapter("imageSrc") fun setImageUrl(view: ImageView, userId: Int) { try { val drawableRes = when { userId % 6 == 0 -> { R.drawable.avatar_1_raster } userId % 6 == 1 -> { R.drawable.avatar_2_raster } userId % 6 == 2 -> { R.drawable.avatar_3_raster } userId % 6 == 3 -> { R.drawable.avatar_4_raster } userId % 6 == 4 -> { R.drawable.avatar_5_raster } else -> { R.drawable.avatar_6_raster } } val requestOptions = RequestOptions() requestOptions