While trying to create news feed in my app, I've created custom ListView Adapter. My single ListView item has an ImageView, WebView and ListView. So I have a ListView inside a ListView. The problem is, when I try to scroll the inner ListView, the…
Good day,
I am trying to refresh my knowledge in android programming
by creating a simple memo app with custom adapter list.
My problem is, even I call "NotifyDataSetChanged();",
the value deleted in my list is always the last one.
Though when I…
I am new to Android and trying to develop an app which has a map feature along with places auto complete.I am using google places Api to make my own custom autocomplete with a Recycler view. Everything's working fine except the Recycler view…
I do not understand something about fragments.
When i set a adapter with getActivity() or getContext().getApplicationContext() and i start the app, the app crashes.
my test project (without fragments with the same code) works.
Fragment:
public class…
I have similar 5 class. Each class "Code" , "Name" property. I use custom adapter for list them and I want to use 1 adapter for all. Is this possible ?
I jam in there : holder.txtCode.setText(list.get(position).getCode() ????);
…
I am setting the background color for each row in my customadapter as
public View getView(int position, View convertView, ViewGroup parent) {
if (inflater == null)
inflater = (LayoutInflater) activity
…
I'm making a list of links and for that I have made a custom adapter, but the list is not ready when the adapter starts so I get the following error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{}:…
I am fetching messages from the server and storing in local db by using Service. I need to create new Thread for volley response if I won't do so the UI lags so much but the listview is updating. Now after creating new Thread the UI is not lagging…
This is code. I have created a custom adapter for info window that should replace the default one. I've set the map to custom adapter but it's still showing the old one. I'm a beginner in java. So it would be helpful to know how to modify the code…
I am in developing an expandable listview with checkbox in group and child. My Goal is when checkbox in group is checked, so the checkbox in child is checked too. But now I have problem: if the checkbox in group is checked, the child will be checked…
I have a customer adapter which is used to displays a list of items.
I want to show a light white colored tint over the whole custom adapter whenever the user long clicks an item to give a sense of selection (I also plan to place an image over it…
How can I pass an Image resource Id to my custom adapter? I have a check box in an activity called routedetails . When the checkbox is checked I want to display a check mark next to that item in the listview. But to do this I need to pass the…
While scrolling the page, onBindViewHolder() is not calling.
mAdapter.notifyDataSetChanged() is not updating the data correctly because of Scrollview. I checked only 3 Checkbox in Recycler. After the loading of 2nd set of data and calling the…
every element in the listview contains name image and description there is a share button on every item on listview that share through facebook i`m using this code in getview function and it give me error in this what should i suppose to use instead…