I’m coding with Kotlin for Android app. I need to add an image for ImageButton background. I tried ImageButton.setBackgroudResource and ImageButton.setImageResource methods but it would not change. My …
Tag: kotlin
I have Date object like this -> Sat Jun 26 00:00:00 IST 2021 I want to set hours, minutes, seconds like this -> Sat Jun 26 23:59:59 IST 2021 In Android
kotlin.UninitializedPropertyAccessException: lateinit property binding has not been initialized at space.rodionov.financialsobriety.ui.transaction.edittransaction.ChooseCategoryDialogFragment….
I have an e-commerce app where i need to upload the order after being confirmed , i have set up my sql which is hosted on 000webhost , i’m trying to post data into this online db but i didn’t get to …
I have a dialog fragment and I use databinding to bind views. I can’t set text on a text view after the dialog is created. Here is my code : class MyDialogFragment : DialogFragment() { private …
So I have this textfield, var value = remember { mutableStateOf(“”) } OutlinedTextField( value = value.value, placeholder = { Text(“Search Users”) }, …
basically, I am trying to continue execution right after the ad is finished. Currently, I am using delay which is not really convenient. Some user won’t wait or simply dismiss the activity while the …
Here’s a simplified code of what I am doing: I have this custom ViewHolder: open class AsyncViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) { …. } I inherit from above ViewHolder …
Here is my code for Fragment class. class FragmentOne : Fragment() { override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): …
I am designing a shopping app via Kotlin & Firebase. I am using recycler view in an inbuilt fragment . There is one activity which is responsible for multiple fragments , for example one fragment …