Add an element outside a ConstraintLayout for my adapter

All we need is a simple explanation of the problem, which is provided below. I’m trying to display cool dot when I want to notify new items. When i set negative margin or translation, the dot is cut, theses littles ilustration will make things a lot clearer: What i want : What I get : … Read more

After pressing back button, exoplayer in recyclerview continues in background

All we need is a simple explanation of the problem, which is provided below. My adapter code is:- class VideoAdapter( private var mContext: Context, private var mvideos: List<VID> ) : RecyclerView.Adapter<VideoAdapter.ViewHolder>() { override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { val view = LayoutInflater.from(mContext).inflate(R.layout.videos_adapter, parent, false) return ViewHolder(view) } override fun onBindViewHolder(holder: ViewHolder, position: Int) … Read more

How to access parameter in Adapter

All we need is a simple explanation of the problem, which is provided below. I am trying to get a value that I passed into my adapter. My Adapter: The line of code that matters. class TableViewAdapter(var tripsheetlist: Tripsheetlist, driver: String) : RecyclerView.Adapter<TableViewAdapter.RowViewHolder>() My MainActivity: The line of code that matters. recyclerViewTripsheetlist.adapter = TableViewAdapter(tripsheetlist, driver) … Read more

How do I display child of child's data from firebase in my RecyclerView?

All we need is a simple explanation of the problem, which is provided below. I want to show data of all children inside all the Categories from the database (added the image below of what my database looks). I am adding data to my RecyclerView using the adapter which needs FirebaseRecyclerOptions object to be passed. … Read more

How to Use recyclerview adapter layout objects in fragment?

All we need is a simple explanation of the problem, which is provided below. i have a fragment and a simple recyclerview. recyclerview have to item , a textview and a button for each item. i want when user clicked on plus button , the textview(counter) get increase or change , how i shoud do … Read more

Not able show Top & bottom items in recyclerView

All we need is a simple explanation of the problem, which is provided below. I am using recyclerview in my project but bottom items are not displayed in recyclerview. I tried ScrollView but my app is crashing it shows java.lang.IllegalStateException: ScrollView can host only one direct child this error. Here is my code <androidx.recyclerview.widget.RecyclerView android:id="@+id/recyler_transaction" … Read more

EditText generate different than spelled numbers error

All we need is a simple explanation of the problem, which is provided below. I’m trying to create a to-do list. first click menu item (add) and alertdialog write edittext and save but I’m trying to get editable text with alarm box but i get always same number. number photo i write bread but same … Read more

Hello, I have updated my activity class as fragment, but I am not sure how to update the parts in the photo

All we need is a simple explanation of the problem, which is provided below. I have updated my activity class as fragment, but I am not sure how to update the parts in the photo. My Code : package com.nisaefendioglu.recentearthquakes.fragment import android.os.Bundle import android.util.Log import androidx.fragment.app.Fragment import androidx.recyclerview.widget.LinearLayoutManager import com.nisaefendioglu.recentearthquakes.R import com.nisaefendioglu.recentearthquakes.RecyclerAdapter import com.nisaefendioglu.recentearthquakes.model.EarthquakeModelItem import … Read more

How to delete selected item from RoomDB

All we need is a simple explanation of the problem, which is provided below. I want to create a To-Do app, where you can add, edit and delete notes. So my question is, how can I delete item selected with checkBox from database? App doesn’t crash but only Toast message appears nothing else happens. Here … Read more