Questions tagged as 'android-adapter'

1
answer

First element in listView does not appear

I have a listView that lists through an adapter. The list is updated after a search in SQLite. The problem is that it only appears from the second element of my table .... could anyone help me? Adapter: public class ItemListHistoryAdapter e...
asked by 02.07.2015 / 15:01
0
answers

Problem with animation loading more items in recyclerview

I'm applying an animation in the display of items in my recyclerview, however, when I load more items, the last item in my recyclerview is animated again in a strange way. Here are my code snippets related to recyclerview. MainActivity.ja...
asked by 04.12.2016 / 19:03
1
answer

How do I make a recyclerview of my appear on a tab instead of fixed on main?

I created a recyclerview in main that is ok, so I created 2 tabs that are ok. But when I switch between tabs the recycler view is fixed on the screen instead of just appearing on tab1. A friend told me that I needed to use context but I did not...
asked by 12.09.2016 / 19:04
3
answers

List of questions, each question with a list of answers

I'm implementing a question and answer application. For my listing I'm using a RecyclerView where I load several CardViews (from loading a list). Each CardView shows one question. Below the question text I want to show my list of alternatives...
asked by 27.11.2015 / 20:56
0
answers

List Adapter does not update after removing

The situation is as follows: I have SeparatedListAdapter and with it I create 3 sections for my listview . Within the sections, I add 3 Adapters and 3 ArrayLists . The problem is that in each of the items in the l...
asked by 20.03.2015 / 13:40
1
answer

RecyclerView reuse View

I am Implementing a RecyclerView as follows: class ObjAdapter extends RecyclerView.Adapter<ObjetoHolder>{ private RealmResults<Objeto> objetos; private final SimpleDateFormat sdf = new SimpleDateFormat("dd/...
asked by 13.07.2016 / 18:11
0
answers

Set a maximum size for layout not to exceed - Android Studio

I have an adapter, where I display a list of webviews, each webview loads a news item with a different size text <LinearLayout android:id="@+id/layout_teste_tamanho" android:layout_width="match_parent" android:layout...
asked by 02.01.2019 / 12:59
1
answer

Compare text of items in a recyclerview

I would like to know how to compare texts of items from a recyclerView in android. And if the texts are equal , make the item text below GONE . public void pegarTexto (){ TextView um = (TextView) mRecyclerView.findViewHolderForItemI...
asked by 20.03.2018 / 14:17