I have been trying to run Robolectric along with Espresso but, I haven’t been successful yet. After trying to figure out what was causing this, I realized my FragmentContainerView in my activity is causing this and I am not sure how to fix it. I decided to create a blank project thinking that perhaps so…
Tag: android
Hide TextView when CollapsingToolbarLayout is Collapsed, and show it when expanded
I am working on an app using a CollapsingToolbarLayout, with an ImageView inside it. I wanted to add a gradient on top of it to look nicer and to be able to read the CollapsingToolBar title better, so I made a little hack and added a Relative Layout with a textview inside it, then I added a background to that
Custom 3 dots menu not opening when clicking on it Android Studio
So my pop up menu not wants to show when i click on it. I don’t get any errors, I think I need to add some more lines of code. I just don’t know what? Below you can see the code of my adapter And this is my xml (“The place where i click and not seeing the pop up
how to display categories in data class with retrofit2 – Kotlin
i am trying to display data from API using retrofit2 in koltin but the API shows that there is categoryId before the data i am calling as showing below: i tried to call only (eventName, eventPhoto, eventLink) in my data class as showing below: API interface: Adapter: after i run the application, it shows that…
Stripe CardInputWidget not showing on the new update
After upgrading the stripe implementation CardInputWidget doesn’t appear anymore :/ Error : Error inflating class com.stripe.android.view.CardInputWidget grandle implementation: implementation ‘com.stripe:stripe-android:16.9.0’ Xml code for payment dialog : code: btnStartPlan.setOnClickListe…
How can i listen for Fragment change in my Activity?
I have an Activity which based on intent opens Fragment1 or Fragment2. From the activity after some stuff are done if the user is in Fragment1 i replace the fragment to Fragment2 and that can be done even from the Fragment1 diretly. For each Fragment i have to change items in my BottomAppBar, till i’m i…
Is there a way to do a lot of computational work effectively in an Android app?
While building a To-do List app, I wanted to show users the statistics. To-do lists created by users are stored in the Room Database. In order to show statistics on how hard the user has achieved to-do, the number of to-do completions is calculated over the years, but the app is starting to stumble. Even the …
Error message – Creating a new Key store (PKCS12) (Android Studio)
I would like to publish my app on the Play Store. Therefore at first I need to create a signed APK. Everytime I would like to create a new Keystore two error messages appear (see below). First one: Warning: No support for different storage and key passwords for PKCS12 KeyStores. The user-defined value -keypas…
Paypal Native Checkout Button keeps loading and then disappears on Android
I’m using the new Native Checkout SDK for Android with Java and I’ve been following every step in the documentation but this keeps happening and I don’t know why This is on my public class app extends Application On my fragment where the button is implemented Answer Just Solved It by adding …
What’s simple code/effective code to create CheckBox Programmatically in BottomSheetDialog when click every item in RecyclerView in Android (Java)
I have 100+ item in RecyclerView. these days I have tried to create simple code/effective code to create Checkbox in BottomSheetDialog Programmatically but no success. My goal : Every item click in RecyclerView will show BottomSheetDialog with different amount checkbox. example : when click item[0] in Recycle…