I cant refrence the adapter

All we need is a simple explanation of the problem, which is provided below. 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 onViewCreated. Ive tried multiple things like moving them from onCreate in onViewCreated but … Read more

Android Studio ListView Only 1 Time Clickable

All we need is a simple explanation of the problem, which is provided below. I created a class "users" and i add the some names. Next i created a ArrayAdapter for ListView and i connect them. But i wont items only one time clickable. I couldn’t. How can i, in listview items only once time … Read more

ListView Array Adapter error"None of the following functions can be called with the arguments supplied."

All we need is a simple explanation of the problem, which is provided below. 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 class Istoric : Fragment() { var array = arrayOf("item1","item2") override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) val adapter … Read more

How do I align ListView items based on a condition?

All we need is a simple explanation of the problem, which is provided below. I am creating a chat program with Android Studio, and I am having trouble figuring out a way to show a list of messages that are left aligned for incoming messages and right aligned for outgoing messages. Right now, they are … Read more

Kotlin/AndroidStudio – problem with connect listView with RecyclerView

All we need is a simple explanation of the problem, which is provided below. I’m still learning and I see that there’s a long way ahead of me. However I got stuck with my app and I can’t find any clues online so I need your help. I have a problem with connect listView with … Read more

How to optimize a complex activity has more than 80 views

All we need is a simple explanation of the problem, which is provided below. Overview: I am trying to create this activity where it has X subjects (in this case 12) each subject has its own CardView, each card has three TextEdits that calculate the average of that subject and show it in the TextView … Read more

Why are my list items not being displayed on listView (Android)

All we need is a simple explanation of the problem, which is provided below. I have created one listview where I want to retrieve the items from sqlite database. So I have created one method as a List named as getrequestitems where I will map the details and add to a arraylist. public List<Map<String, String>> … Read more

How to get Images from Internet and past it in a ListView?

All we need is a simple explanation of the problem, which is provided below. I’m doing my BlogApp. It gets all data from the Internet. I added three TextViews, but I have problem with getting images from JSON. I’ve tryed different ways but I still don’t understand how exactly do this. Here is a part … Read more

ListView items hide behind the EditText. Need whatsapp like chat activity

All we need is a simple explanation of the problem, which is provided below. I am having trouble in my layout implementation. Whenever I click on the edittext the softinput keyboard appears and hides the listview items, what i need is that whenever soft keyboard pops up and if the listview’s last item is visible, … Read more

Should I create child textviews statically or dynamically?

All we need is a simple explanation of the problem, which is provided below. I have a listview where the items contain different amount of child textviews. min 5 max 20 i’ve tried both ways and I only have the vm to test my apps on so I can’t really tell any difference performance wise. … Read more