Skip to content

Tag: android

Can I delay the onSuccess method in RxJava?

I have SplashScreenFragment and inside this fragment, I’ll load the data from the server using Retrofit with RxJava, Getting data from the server will take between 1 second to 25 seconds. The SplashScreenFragment must show to the user for at least 8 seconds. When I get the data from the server, The onSu…

How to create a simple custom color picker on android studio?

I am trying to replicate the picture above for my app, but I am very confused and don’t know how to proceed.(I’m new to android studio :/) I am trying to figure out how to know which color the user selects So far, I have all the custom color drawable circles on my xml file but how do I know

Resend Retrofit API call with a OneTimeWorkRequest

I am stuck and can’t get my OneTimeWorkRequest to work properly. I have got this Retrofit API call I want to resend to the backend incase there’s no network connectivity or similar on the phone. What I can’t wrap my head around is how to pass the call to the worker. I’ve got this follo…

How can a badge like on GitHub libraries be made?

How can I make a badge like how we ofter see it on GitHub libraries. Like this: . I can use a web view but it is not efficient as it will take time to load and it will also cache it. Answer For this, I have made a library Badge Generator. It is easy to implement. The steps are