Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
46 views

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 ...
Kartik's user avatar
  • 2,619
1 vote
0 answers
33 views

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=&...
amsuredev's user avatar
0 votes
1 answer
67 views

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 ...
Yarneo's user avatar
  • 3,052
0 votes
1 answer
46 views

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. ...
Gaurav Saraswat's user avatar
2 votes
1 answer
144 views

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&...
Ahsan Murtaza's user avatar
0 votes
1 answer
151 views

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 ...
Zaid Hassan's user avatar
1 vote
0 answers
35 views

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 ...
Martin Zeitler's user avatar
0 votes
0 answers
81 views

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: (...
a k's user avatar
  • 1
1 vote
1 answer
238 views

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); ...
Muhammad yaumil Ramadhani's user avatar
0 votes
1 answer
49 views

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 ...
Flame54's user avatar
0 votes
1 answer
166 views

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 ...
SAM's user avatar
  • 3
-1 votes
1 answer
332 views

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 ...
Ali Hosein pour's user avatar
1 vote
1 answer
117 views

@BindingAdapter( "onTimeViewClick", "onLocationViewClick", "onSetDeliveryAddressClick", ) internal fun setSubHeaderData( onTimeViewClick: (() -> Unit)?,...
Rahul Agrawal's user avatar
2 votes
2 answers
255 views

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 ...
rminaj's user avatar
  • 605
2 votes
1 answer
49 views

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 @...
foseja's user avatar
  • 355
0 votes
0 answers
118 views

I generated a class with below annotation generator. @AutoService(Processor::class) class GenerateSealedGettersProcessor : AbstractProcessor() { override fun getSupportedAnnotationTypes(): ...
A.Hüdai Kaya's user avatar
0 votes
1 answer
208 views

I have used onclick databinding in my layout files <data> <variable name="clickHandler" type="com.example.ui.ClickHandler" /> </...
Aagam Shah's user avatar
12 votes
2 answers
7k views

I am aware that dataBinding requires an annotation processor (that is provided by kapt), is there anyway to use ksp for that purpose?
svahidhoss's user avatar
0 votes
1 answer
82 views

android:text="@{String.valueOf(detailedPostVM.postLiveData.likedUsers.size)+'people liked'}" android:text="@{detailedPostVM.alreadyLiked ? 'LIKED' : 'LIKE'}" I am trying to use ...
Emre Dursun's user avatar
1 vote
1 answer
572 views

I am getting multiple errors in various files in the build folder, which is labeled with "Files under the 'build' folder are generated and should not be edited." I have a hunch that this is ...
Impossible guy's user avatar
-1 votes
2 answers
329 views

After realizing that my app seems to be miss behaving, I did some clever debugging tactics, namely adding Log calls between my code and some cheeky debug breakpoints, I realized that my MainActivity ...
rminaj's user avatar
  • 605
0 votes
1 answer
185 views

I am currently facing an issue with the radio buttons in my app. My app comprises Information Forms which include Radio buttons with other Views and there are multiple forms. When I select option 1 of ...
Muhammad Yousuf's user avatar
0 votes
2 answers
500 views

I would like to locate a view just after the last word of a (potentially) multi-line TextView. For example, the TextView might be two lines, with the second line being about half as long as the ...
Shivam Gupta's user avatar
1 vote
1 answer
370 views

I am upgrading android gradle and migrating to android X. I am getting this runtime error on inflating splash screen. Edited: So this project is made for sdk 28 and it's working fine in android pie. ...
Swapnil33's user avatar
  • 108
0 votes
0 answers
32 views

I am getting error on xml layout file: <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <...
rupesh's user avatar
  • 2,901
0 votes
1 answer
19 views

I have a complex layout, that should include another layout only, if the viewmodel is of a specific subtype. (e.g. I have four types of entries and one of them has a special layout that others have ...
Sarah Multitasker's user avatar
0 votes
0 answers
21 views

I have three different blocks in my application. I'm trying to make a data binding. Right now, I'm trying to figure out how to bind at least two layouts together. This is part of my layout that I have ...
Red_button's user avatar
0 votes
1 answer
246 views

I'm a beginner in android programming. I'm trying to build my first app and wanted to implement straight away the right logic. I read about DataBinding and tried to implement this thing in my project. ...
Red_button's user avatar
1 vote
1 answer
956 views

Android/Kotlin rookie here. I'm converting someone else's code, that was written with synthetics, to View Bindings per Google Play's upcoming deprecation deadline. I read this and this and converted ...
Yanay Lehavi's user avatar
0 votes
1 answer
471 views

I'm unable to resolve this error. I wanted to use two-way databinding in edittext. Here is the code for the layout file. <?xml version="1.0" encoding="utf-8"?> <layout ...
Anmol Agrawal's user avatar
0 votes
2 answers
52 views

I'm new to android and kotlin and I'm having trouble making a recycleView for my app There are 0 errors in my code, but items don't show up in the simulater and the recyclervie is just blank. I havent ...
Koosha's user avatar
  • 3
2 votes
1 answer
1k views

I have a library made by me, the library uses databinding, I export the library as an aar file. I have a test project where the library works for me, but when I import it into another project, it ...
Alvaro Sanchez Duran's user avatar
0 votes
1 answer
65 views

I am using databinding in my application. I have three different fragments, all three have toolbars with the same id. I have code that is the same in three toolbars. float radius = ...
Bukrek35TR's user avatar
0 votes
1 answer
132 views

I am working on a project on android studio (KOTLIN) where activity_main.xml only contains the drawer layout and it includes app_bar_main.xml file and my app_bar_main.xml is a coordinator layout ...
fdownnn's user avatar
0 votes
0 answers
66 views

Can anyone help me with data binding in autoCompleteTextView for setting an adapter and getting value in android using java language? I needed to implement MVVM model architecture in the example, but ...
Garima's user avatar
  • 1
2 votes
1 answer
283 views

I am currently writing a small fragment view in Kotlin for an Android application and enabled data binding und view binding in the build gradle. The view is quite simple and just shows some TextView ...
Octoate's user avatar
  • 529
-1 votes
1 answer
246 views

Question 1: When I load an image using the Coil library, I do it in the Fragment or Activity: imageView.load("https://example.com/image.jpg"). Is it OK to use the internet connection (method ...
xenia's user avatar
  • 1
0 votes
2 answers
66 views

I'm trying to populate some live data from within the MainActivity into a ViewModel. However, the Fragment only appears to observe the initial data once ("NO DATA YET") which is set in the ...
driesken's user avatar
  • 103
0 votes
0 answers
2k views

Execution failed for task ':app:dataBindingGenBaseClassesDebug'. > Cannot access output property 'sourceOutFolder' of task ':app:dataBindingGenBaseClassesDebug'. Accessing unreadable inputs or ...
Thunder Boltz's user avatar
1 vote
1 answer
126 views

I'm using M3 TextField with XML data binding. I want to send input to ViewModel and if is valid, text field's text should equal to this input, else should no change on TextField's text. Here is XML ...
Mustafa Tatarhan's user avatar
0 votes
1 answer
102 views

I have a RecyclerView that shows a list with livedata. RecyclerView adapter is prepared with viewBinding. My problem is that the RecyclerView does not show the items, but when I scroll the ...
Nima Khalili's user avatar
0 votes
1 answer
194 views

I have a model class like this data class FixtureById( @SerializedName("get") val `get`: String?, @SerializedName("response") val response: List<Response?>?, )...
Ahmed Gamal's user avatar
0 votes
1 answer
52 views

Below is my xml Below is my Pojo Below is my kotlin class I'm always getting null at line 19 of kotlin class for binding.data I would like to know, when binding.tv1 & binding.et1 are not null, ...
Nikhil Reddy's user avatar
0 votes
2 answers
1k views

I'm trying to add databinding to my project according to Android Developers Official Documentation and I'm getting a 'Cannot resolve method' error for setUser. I'm getting really frustrated and ...
craigwashere's user avatar
0 votes
1 answer
229 views

Is it possible to see in layout preview in Android Studio window an int in view's marginLeft? Here is what I'm trying: <data> <variable name="doorLeft" type=&...
user avatar
1 vote
0 answers
31 views

Do you know if it's possible to use theme attributes as default values for databinding? example: android:background="@{toolbarColors.backgroundColor, default=@color/color_primary}" ...
Filipkowicz's user avatar
0 votes
0 answers
59 views

I cannot import databinding to my project. I enabled databinding and imported the databinding class in my kotlin code but I get unresolved error. I verified my build.gradle (:app) file and there is no ...
unknown's user avatar
0 votes
1 answer
957 views

I have an EditText (@+id/quantityNumber) and a Button (@+id/addToCartButton) view next to each other in my layout. The EditText is a quantity field and the Button takes the value entered in the ...
Daniel's user avatar
  • 55
0 votes
1 answer
2k views

my application is giving the below error that you mentioned above and it says there is an error on line 69, but you have tried all the solutions and could not fix it. You are new to programming and ...
user avatar
0 votes
1 answer
1k views

as I'm new to kotlin and data store preference so I'm putting this question in a hope to get some proper way to do it.
Pragyanshree Das's user avatar

1
2 3 4 5
50