Questions tagged as 'android-adapter'

1
answer

List returning null values

I'm doing an item listing, in that listing I bring the following information id, idPost, description, userName and photoUser. After setting the values, I checked them and I'm all displaying correctly, but when I try to display it it shows as...
asked by 06.11.2018 / 17:50
1
answer

Android listview with slowness

What might be causing slowness? Code of Adaptador : public class Adaptador extends BaseAdapter{ private static LayoutInflater inflater = null; Context contexto; String[][] datos; int[] datosImg; public Adaptador(...
asked by 24.10.2018 / 21:31
1
answer

Refresh fragment within Pageview with Tab

Galera, See if you can help me, I've had this problem for 2 days and I can not resolve it. My app has PagaView, TabLayou, and 3 Fragment Ok? As the image below: OnmythirdtabIhavethefollowingFragmentcode:android.support.v4.app.Fragmentfrag...
asked by 29.08.2018 / 16:36
2
answers

Change background image of an Adapter Recycler View after click

It is as follows, I created a Adapter that changes a RecyclerView in an Activity that I call through this function (within the activity): private void gerarDatasView(CalendarJur calendario){ LinearLayoutManager linearL...
asked by 07.09.2018 / 07:37
1
answer

ExpandableListView - change background color header title group

I need to change the background color of the header group from my ExpandableListView to a green color. Does anyone have any ideas? ExpandableListAdapterpublicclassExpandableListAdapterextendsBaseExpandableListAdapter{StringheaderTitle;privateCo...
asked by 26.02.2018 / 15:41
1
answer

Repeat loop in ListView

Can anyone help me? In a listview where the data comes from an internet database I can not let it be automatic so that all incoming values are included, the only way is to add one by one, but when it is a list of clients it can increase and the...
asked by 25.11.2017 / 04:39
1
answer

How do I add an item to a listView when a click event occurs?

Well, I want to create a list of Tournaments. Where each item will be added to the click of a button create tournament, following the pattern: tournament 1, tournament 2, tournament 3 ...     
asked by 17.11.2017 / 17:02
1
answer

How to search from SearchView in the actionbar data from RecycleView using Kotlin?

Follow the code below: class MainActivity : AppCompatActivity(), SearchView.OnQueryTextListener { var list = ArrayList<Shop>() var adapter = ShopAdapter(this, list) var imageModelArrayList: ArrayList<Shop>? = null...
asked by 15.10.2017 / 14:06
1
answer

How do I click items in a list in Android Studio?

For the time being my code is like this? how to implement the click of the list items the click would be to open a new screen ListView lista_teste = (ListView)findViewById(R.id.lista_teste); String[] dados = new String[]{"xxxxx","xxxx"...
asked by 06.10.2017 / 17:14
1
answer

Error Search View in Custom Adapter

Hello, I have a damn doubt on how to put a Search view on a custom adapter .. I've been trying for days and I can not. This following code I am using is giving error when starting, I followed several tutorials identical but mine will not. When I...
asked by 23.08.2017 / 18:02