I am trying to add custom layout to change my selected item text in my spinner. But I couldn't reach my layout file with R.layout.my_selected_item in ...
I am trying to add custom layout to change my selected item text in my spinner. But I couldn't reach my layout file with R.layout.my_selected_item in ...
So I'm having here a problem adding a new item on a ArrayAdapter-ArrayList if I call a .add outside or inside another public void. I'm using a list vi ...
please I'm trying to dynamically add a textitem via an EditText by clicking a button in a Recyclerview, but when I click the button to add the text in ...
I allready created some custom array adapters and they all work. I created this one like the other ones but I keep getting this error: "android.view. ...
i dont understand what is meant by R.layout or R.array in the following code, who describes how to fill a spinner with drop-down menue with a array wh ...
I have a spinner with an array adapter. The spinner is populated inside a fragment onCreateView(). Whenever I get back to the fragment and the spin ...
I am displaying a product in recyclerView. I have 2 buttons + to symbolise increment and - to symbolise decrement. Once the user adds product if he cl ...
I have passed data from my Activity to My Adapter. When I debug, I can see the correct data has successfully passed to my adapter, but when I attempt ...
While developing Android, I wrote Adapter code for RecyclerView. But intermittently, the app closes abnormally. As a result of checking through Crashl ...
I am new to Kotlin and/or coding. The below mentioned are the code I made to populate a List View. But as I run the code, the activity_main.xml file i ...
I am creating a note-taking app for myself, I created an adapter to show notes on the main screen with a title view and text view but the app crashes ...
I am trying to pass a string-array from function to activity. I want to use that array into the spinner. But when I am trying to do this, I am passing ...
Good evening, I have an Android app with two ListView elements on a layout. between them is a TextView element. The whole is framed by a LinearLayout ...
I am trying to put one piece of value in an ArrayList to my listView, below are the details. Here is the sample of the ArrayList info: I want to g ...
I have an adaptor that I initiate in onCreate and a listview that I initiate in onViewCreated I'm trying to setAdapter but I can't pass the adapter in ...
I'm trying to create a fragment with a ListView with the id=lv and the ArrayAdapter doesn't seem to work this is the fragment code ...
I have recyclerview contains many problem videos i have namely: when I click on any video move the list on its own down the list ...
Is there possibility to have post and ads methods in two class based view? I tried to do something like this but of course it doesn't work and error ...
class ThirdFragment : Fragment() { this is showing on alt+enter on "ArrayAdapter" None of the following functions can be called with the arguments ...
I'm trying to retrieve an object from an ArrayList in the database but when I'm retrieving it one of the object attributes returns an empty string ins ...