skip to Main Content

Android Studio – Today I try to viewBinding but end up with error

I try to viewbind from my xml file but end up with error. I copied exactly from youtube but still error. Both ActivityMainBinding is error. Here my xml file code <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity">…

VIEW QUESTION

Android Studio – How To Return Nested Variable?

I don't know how to RETURN variable from the following function. Here is the code... downloadData.setOnClickListener { val handler = Handler(Looper.getMainLooper()) handler.post { val fetchData = FetchData("http://localhost/xampp/CRM/PHP/show_contacts_db.php") if (fetchData.startFetch()) { if (fetchData.onComplete()) { val result = fetchData.data.toString() Log.i("FetchData", result) val…

VIEW QUESTION
Back To Top
Search