2,494 questions
0 votes
0 answers
46 views
How do we define the view model store to be used in a stand alone composable
I am trying to migrate the bottom sheet set up to use Compose. While I can use the Compose's ModalBottomSheet for this purpose, I have the following questions: My ViewModel's view store owner is the ...
1 vote
0 answers
33 views
com.google.android.material.textfield.MaterialAutoCompleteTextView height issue
Here is presented a part of layout I have in project, I use databinding. <com.google.android.material.textfield.TextInputLayout android:id="@+id/til_name" android:layout_width=&...
0 votes
1 answer
67 views
@BindingAdapter not found no matter what I try
I'm new to Android Development so hopefully my issue will be an easy fix. I've been trying to play around with @BindingAdapter in an existing project, but no matter where I place the binding adapter ...
0 votes
1 answer
46 views
Android Data Binding Type Mismatch in RecyclerView with MVVM
I'm developing an Android notes app using Kotlin and MVVM architecture. I'm facing a persistent type mismatch error when using data binding in my RecyclerView, even though the code seems correct. ...
2 votes
1 answer
143 views
How to resolve SpotBugs warning about exposing internal representation with Android Data Binding?
I'm working on an Android project using data binding, and I've encountered a warning in the SpotBugs violation report that I'm not sure how to address. Here's the setup: <?xml version="1.0&...
0 votes
1 answer
150 views
cannot find symbol class ActivityMainBindingImpl
I am currently learning about Data binding and I did exactly as the tutorial but I keep getting the error "error: cannot find symbol class ActivityMainBindingImpl" when I run the app no ...
1 vote
0 answers
35 views
Firebase Crashlytics Plugin clashes with data-binding
I can build with plugin version 2.9.9, but the current version 3.0.0 seems to clash when data-binding is enabled: android.buildFeatures { buildConfig true dataBinding true } This is the ...
0 votes
0 answers
81 views
Duplicate GlobalKey detected in widget tree Error FLUTTER
When i tap the color button in add_task_page.dart page app crashes. And When i open the app dont display sqflite table in homepage(homepagepass.dart) also and i'm seeing this error which is this: (...
1 vote
1 answer
237 views
error: cannot find symbol View root = inflater.inflate(R.layout.toolbar, parent, false);
I used data binding to connect the UI, but when I rebuild the project, I get this error: error: cannot find symbol View root = inflater.inflate(R.layout.toolbar, parent, false); ...
0 votes
1 answer
49 views
Cannot resolve method 'inflate' in 'DashboardActivity'
This is a simple application. I am using Intent to navigate from activity_main.xml to activity_dashboard.xml In DashboardActivity.java file I am trying to use Data binding property. But I am getting 2 ...
0 votes
1 answer
166 views
class NumberpickercustomlayoutBinding is public, should be declared in a file named NumberpickercustomlayoutBinding.java
I have enabled data binding in my android studio project. Whenever I build my project it shows this error: " error: class NumberpickercustomlayoutBinding is public, should be declared in a file ...
-1 votes
1 answer
331 views
How to use View Binding insted of butterknife?
I am updating an app. In the new program, I intend to use View Binding because butterknife library does not work. My codes are as follows. How do I use the new method? The previous code uses the ...
1 vote
1 answer
117 views
Android Data binding missing return statement in generated code
@BindingAdapter( "onTimeViewClick", "onLocationViewClick", "onSetDeliveryAddressClick", ) internal fun setSubHeaderData( onTimeViewClick: (() -> Unit)?,...
2 votes
2 answers
255 views
Android Kotlin ImageView inside RecyclerView.Adapter doesn't update as expected
After finally implementing icons for device types in my server, I replaced the temporary drawables I previously used with the icons from the server and load them using coil. The ImageView for them is ...
2 votes
1 answer
49 views
Databinding displays unpopulated value while waiting for the value to be populated in Android
I am using databinding to display text on TextView using ternary syntax. android:text="@{vm.value.firstValue != null ? vm.value.firstValue.toString() : @string/source1}" This code displays @...