I am fetching data from server and saving in room database and then from room showing it in recycler view.Data is perfectly saving in room database and showing in recycler view. Problem: When I am deleting some data from server database then its old copy that saved earlier still persists in room. What I want:…
Tag: android
“getText” syntax is not working and it’s showing error
“getText” syntax is not working and it’s showing error. i am not able to get answer, expected answer is, should able retrieve username, password and match it to the username password which we enter, but now i couldn’t able to match both. Answer Now when calling the asynctask in your Ac…
RecyclerView adapter not working with groupie
I tried to add groupie adapter to my recycler view as shown in the code below. However when i run my application, i get a compiler error saying my reyclerview cannot be null (because of kotlin null safe feature). I cant figure out why this adapter is not working. I know the problem is in the line : Here’…
TextView setContentDescription not working
I’m trying to set the contentDescription on a TextView but it doesn’t seem to be announced by TalkBack. TalkBack is only vocalizing the text content. The second line above has no effect. TalkBack says, “2d 9h left”. I’ve also tried the following: but this results in TalkBack anno…
How to create dynamically class in Android
In my application, I should use Material Stepper and for this, I want to use this library : https://github.com/ernestoyaquello/VerticalStepperForm But I want to add this dynamically from server. For connecting with server I used Retrofit library and I should check the type of items from server. when this type…
Transparent EditText Android Studio
I am trying to make my EditText in my android studio project transparent. I want it to look like the EditText here But mine doesn’t look like that even though I have tried using transparent and ffffff can someone please help me with this ? I want my edit text background to look like the one in the image…
Why my http post request with android volley throws error (localhost)?
I’m working on an android studio project and i’ve had some problems trying to make a post request with volley library. I’ve already tested my API with postman and all works fine, so the problem is from the client part. I’ve already added the internet permission in my android manifest: …
Cannot find symbol error in android studio
I’m trying to add fragments to a navigation drawer. But I have the error: cannot find symbol class Fragment. I added: import android.support.v4.app.Fragment Also add the fragment object(Fragment fragment) Where is the mistake? What should I do? Home.java build.grandle I’ve tried to search the web …
Could not find method compileOptions() for arguments
The error appears: Could not find method compileOptions() for arguments [build_88ddjipq2tquhqjwgj0asxwi4$_run_closure3@5ddee9dd] on project ‘:app’ of type org.gradle.api.Project. Answer Put compileOptions inside android tag like this : EDIT: To be exact
Persistent Bottom Sheet with rounded corners in Android crashes when used in a card view
I have created a persistent bottom sheet in android with the intent of displaying a ListView containing additional information about locations. I want the sheet to have rounded corners. I got a ton of results for modal dialog but none for persistent. Is it possible or should I use the modal version? As sugges…