Questions tagged [bindingadapter]
4 questions
6
votes
1 answer
How to use Inverse Binding Adapter in Kotlin for converting Lowercase text to Uppercase?
I am creating an android application where I want to use a feature in which a text that we have entered into an editText field can be converted into uppercase at runtime in that particular editText field only.
I have tried with this…

JayShah
- 63
- 5
0
votes
0 answers
When using StateFlow and DataBinding together, the BindingAdapter's method is called twice
MainActivity
class MainActivity : AppCompatActivity() {
private val viewModel: MainViewModel by lazy { ViewModelProvider(this).get(MainViewModel::class.java)}
private lateinit var binding: ActivityMainBinding
override fun…

wantique
- 1
- 1
0
votes
1 answer
Customising Androids XML Layout Field contentInsetStartWithNavigation
I have my AppBarLayout with Toolbar in a separate file and included it in my activity layouts. On some screens the layout needs to have a different dimension on the fields contentInsetStart and contentInsetStartWithNavigation.
The fields…

Emanuel
- 863
- 9
- 29
0
votes
0 answers
How to override view binding adapter methods in derived classes in android?
I am accessing the same fragment layout through the abstract class for two different derived class as mentioned below, Based on the derived fragment the value will get updated on the views.
Now My problem is to access override method from static…

Anushiya
- 25
- 9