Questions tagged as 'android-adapter'

1
answer

Mark / Uncheck RadioButton Component in ExpandedListView

In a question I made here in StackOverflow a few days ago I was instructed to use the ExpendedListView component to render a dynamic list of items. After the implementation I saw that the items in the list were grouped correctly, but now I...
asked by 03.12.2015 / 05:45
1
answer

RecyclerView Android

I wanted to make the imageButton appear in case item.getPrint () == true. It seems to work okay but if scrolling the RecyclerView down starts appearing problems, it starts appearing even where item.getPrint () == false. I know that recycleview w...
asked by 07.02.2018 / 18:53
1
answer

Insert more items into an Android ListView

I'm a beginner in Java / Android programming, and would like some help with adding items to a ListView. The app receives the first 5 records of a Json (Url), and adds everything in the ListView so far. The app then displays a button, which...
asked by 19.02.2017 / 07:35
1
answer

Error adding ListView

I'm bringing the results of Mysql on Android with TextView like this: public class ListarDados extends AppCompatActivity { public static TextView data; @Override protected void onCreate(Bundle savedInstanceState) { super....
asked by 01.02.2018 / 16:35
1
answer

Onclick on android not working

Good people, all right? I'm using a RecyclerView to popular my list on Android and for that I have an adapter and a view holder. Follow Adapter source code with ViewHolder public class MoviesAdapter extends RecyclerView.Adapter<MoviesAda...
asked by 15.12.2017 / 14:10
2
answers

It takes time to load RecyclerView

Is it normal for 3 seconds to load a recyclerview with data from 16,000 records in sqlite? Is there any way to optimize the upload? Code here     
asked by 22.04.2017 / 17:59
1
answer

setOnClickListener Adapter on an object in the row of a ListView

My app has a ListView, in which it receives information from a Json (URL), and each line has an ImageView that when clicked, line information will be added as "Favorite". For this, I created two images (iconfav_off and iconfav_on), Then I...
asked by 22.02.2017 / 02:35
1
answer

ListView does not load all items

I'm using ListView in my project, it was doubling the values, until I put the ELSE of that condition: if(convertView == null)... else... After this it stopped duplicating, but also stopped showing all 12 items, now showing only the first 2....
asked by 05.02.2017 / 00:13
1
answer

List Adapter Duplicating Positions in ListView

I have a class named "AdapterListParts" which extends the BaseAdapter class and in it I inflate a layout that contains a CheckBox and an ImageView. AdapterList Players class public class AdapterListJogadores extends BaseAdapter { priv...
asked by 11.02.2016 / 22:27
3
answers

RecyclerView adapter: problem with changing the color of a button

I am using RecyclerView and mounting a list with multiple buttons . I can change the color of button according to a if , if the condition is true it changes, but when I go up and down the list, it ends up changing other...
asked by 04.02.2016 / 20:19