Posts

Showing posts from February, 2023

How to use view binding in android studio kotlin

Image
How to use View Binding in Android using Kotlin  In Android Studio 4.1+, when you create a new Kotlin project and try to connect an XML layout file with your .kt file using Kotlinx synthetic, you’ll see you can’t do it anymore. This is because they removed the plugin ‘Kotlin Android Extensions‘ as JetBrains deprecated it in the 1.4.20 version of Kotlin. Now, the alternatives are: ButterKnife findViewById() View Binding Enabling View Binding In your module-level build.gradle file, add the following code to enable view binding This automatically will create binding classes for each XML file present in that module. For example, if an XML file name is activity_main.xml, the generated binding class will have the name of this file in Pascal case and the word ‘Binding‘ at the end. So the binding class will be ActivityMainBinding. If you don’t want to generate a binding class for a specific XML file, add the attribute tools:viewBindingIgnore="true" in the root layout like that: Using...

Privacy Policy

Privacy Policy Sayan Saha built the Calculator app as a Free app. This SERVICE is provided by Sayan Saha at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at Calculator unless otherwise defined in this Privacy Policy. Information Collection and Use For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information, including but not limited to I am Sayan Saha, an ...

Privacy Policy

  Privacy Policy Sayan Saha built the Speech The Text app as a Free app. This SERVICE is provided by Sayan Saha at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at Speech The Text unless otherwise defined in this Privacy Policy. Information Collection and Use For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information. The information that I request wi...