4,367 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
35
views
Why does the custom ArrayAdapter constructor in this example not match the superclass constructor exactly?
I was following a tutorial on creating a custom ArrayAdapter for a ListView in Android. Here is the custom adapter class from the tutorial:
public class NumbersViewAdapter extends ArrayAdapter<...
0
votes
1
answer
249
views
Android Talkback changing contentDescription and action for dropdown view element?
I have a dropdown represented by an ExposedDropdownMenu style on a TextInputLayout view element.
<TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox....
0
votes
2
answers
60
views
updating listview when data is removed from the arrayadapter
Im creating a listView and setting a custom arrayAdapter to it in my main activity. Using an onClickListener within the getView method of the adapter to try and remove the item clicked. Its being ...
user avatar
user9634100
1
vote
0
answers
32
views
How to do Song Track list with fragment in Android Studio?
I'm new in android studio, just learned about a week. Before this project , I made a simple SongTrackList using main activity with no fragment, it can run smooth (click ImageButton , audio works). Now ...
0
votes
1
answer
35
views
Resource Type issue in arrayAdapter
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(MainActivity.this, android.R.layout.simple_list_item_1, R.array.lsViewArray );
lsViewArray.XML:
<resources>
<string-array ...
2
votes
1
answer
33
views
Recycler View is Not Showing Even After Adding Data in Array List & adapter.notifyDataSetChanged()
There is a RecyclerView suggestList and on clicking any itemView of it, we get adapterposition() which has passed through a function to get values from ArrayList used for suggestList adapter. Now, I ...
0
votes
1
answer
304
views
Setting AppCompatAutoCompleteTextView dropdown width with margins
I have the following AppCompatAutoCompleteTextView -
<androidx.appcompat.widget.AppCompatAutoCompleteTextView
android:id="@+id/phoneNumberPrefixTextView"
style=&...
0
votes
1
answer
41
views
Can I use adapters without having ListViews?
I receive lots of data from the backend that I need to display in 2 sections of my app in different ways, such as drawing real time graphs. 1 of the sections in question is a rectangle, that is just ...
0
votes
2
answers
48
views
When are constructors one and two used in the ArrayAdapter?
ArrayAapter Class have some constructors:
When are constructors one and two used? Because we don't have data structure like input array or list at all in these constructors. If possible, explain with ...
-1
votes
1
answer
174
views
Update the cart total amount after delete item from shopping cart
This is an e-commerce app, I am facing an issue related to (adding/removing) items from the cart, The problem happened when I added two items and then if I removed one of them, The total amount is not ...
0
votes
1
answer
36
views
How I can store multiple links in RecyclerView and than use those links in Adaptor class
how i can store different urls and each url acts differently when clicked by the user
This is data model class
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import ...
0
votes
2
answers
50
views
AutoCompleteTextView & ArrayAdapter with back to Fragment
(sorry for my english)
I have fragment where I have an AutocompleteTextView and ArrayAdapter for it.
ArrayAdapter get values from resource strings.
When fragment creating first time — everything is ok,...
0
votes
1
answer
37
views
Same Instance of an arrayAdapter in Two ListView doesnot work
I have two fragments in my Activity. Both of these fragments have unique listView, these fragments have methods that get values from database, One fragment shows used data and the other shows added ...
1
vote
1
answer
904
views
How to fill a Spinner from my code in Java (Android Studio)
I'm making an example with Android Studio and I want to add items to a List that is displayed in a Spinner. Looking here, I found this answer that helped me a lot.
Basically I create an ArrayAdapter ...
1
vote
0
answers
93
views
Dropdown popup not display while search on autocompletetextview inside recyclerview in android
I have stuck with this issue more then 3 days. I have used one RecyclerView and on recyclerview's each item have on AutoCompleteTextView. When try to search on autocompletetextview drop down not ...