Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
68 views

Even though ConstraintLayout in Android is not new, I have only begun to convert my older layouts over as I find time or when creating new layouts, so my experience with them is limited. They don't ...
Dan Davis's user avatar
  • 603
1 vote
0 answers
54 views

I am making an app with a ListView in Android Studio, but each list item is too thin. I want to be able to click each item in the list and having them be this thin will not be feasible (and it doesn't ...
Ninja1012's user avatar
0 votes
2 answers
52 views

I m building an Android application using Kotlin. So this is the layout of my Activity <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget....
bircastri's user avatar
  • 2,177
0 votes
1 answer
86 views

Notice: I do NOT want to select the item, I just want to scroll to that item and let user to select. I have an application for android. This application contains a Spinner. The spinner has quite many ...
Solvek's user avatar
  • 5,400
1 vote
1 answer
294 views

Can someone help me correct the logic of reordering list. I believe the moveTodo function in viewmodel is not working properly. Reordering is working but not like how it should. Project Structure ..db ...
Harsh Vardhan's user avatar
1 vote
1 answer
102 views

I want to disable the loading animation shown on an Android native ViewCell when the user long presses it. I was able to disable the highlighting of the ViewCell on click by implementing the following ...
testsonic_T's user avatar
0 votes
0 answers
31 views

In my custom implementation of BaseAdapter I have views being hidden and overwritten on the basis of their position. One such condition is based on the last element(The ID will always be -1): if(...
Prajjwal Srivastav's user avatar
0 votes
2 answers
79 views

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
2 votes
0 answers
49 views

I am using Android Studio with Java to develop an application that includes an activity containing a fragment (let's call it PromotionsFragment). In this fragment, I have implemented a sticky headers ...
Nixkr's user avatar
  • 21
0 votes
3 answers
71 views

To function long click, the override function is changed and there are only out of date references. I am also use click listner. but the onLongClick override funcion don't have position variable. Can ...
gety's user avatar
  • 5
1 vote
0 answers
44 views

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 ...
willwill65pn's user avatar
-1 votes
1 answer
63 views

I'm trying to show a dialog to the user with a list in it. It won't show up on the dialog no matter what I try. CODE: this is in TaskInputActivity where I create the dialog and the adapter for the ...
DoubleYouSlash's user avatar
1 vote
1 answer
67 views

I have linked properly the List-Adapter and the other list-item components. It didn't getting the android:id of activity_main_cake_items.xml and giving this error. Cannot resolve symbol 'listviewCakes'...
Mou Rani Biswas's user avatar
1 vote
1 answer
42 views

I'm trying to change the EditText in my ListView by clicking the FloatingActionButton. I want to editText.setText from an array of strings from my activity for every ListView item public class ...
Quscosog's user avatar
0 votes
1 answer
125 views

I am learning Android here. My aim is to display the Cursor I get from calling SQLiteDatabase.query() in a ListView. Using a ContentProvider. I cannot see the text of the list items although I am ...
Antony Mukuha's user avatar
1 vote
1 answer
78 views

Introduction: I am encountering an issue with highlighting the background color of ListView items in my Android application. Despite my attempts to modify the background color programmatically, the ...
kiteandwindsurfer's user avatar
0 votes
1 answer
40 views

Is there any standard Android material view that is the best fit for the implementation of such a layout? In this layout, I mean to have a tab group on top when one of them is touched/clicked then ...
VSB's user avatar
  • 10.5k
0 votes
1 answer
74 views

I am calling an API using retrofit and the it is returning null. Model class data class Employee( val id: Int, val employee_name: String, val employee_salary: Int, val employee_age: ...
Shubhankar Pande's user avatar
0 votes
1 answer
37 views

I have an activity with a listview and one button, I use sqlite as a database private SQLiteDatabase db; db = getBaseContext().openOrCreateDatabase("app.db", MODE_PRIVATE, null); db.execSQL(&...
BazarOFF Elnur's user avatar
0 votes
1 answer
66 views

I'm making an application in Flutter but the items don't fit on the screen, when I want to use ListView the position of the items get mixed up and it looks terrible, how can I edit these codes? import ...
Muhammed Halil Demirci's user avatar
1 vote
1 answer
79 views

I am getting an error when I add the listview builder in the column. I am getting the following error: this is my task widget page: import 'package:cloud_firestore/cloud_firestore.dart'; import '...
7vv's user avatar
  • 65
0 votes
1 answer
37 views

in my xml I have a listview that I fill with an adapter. <ListView android:id="@+id/listPartenaires" android:layout_width="...
Kevin's user avatar
  • 437
0 votes
1 answer
48 views

In my code I have a ListView that lists the pdf files in the "Documents" folder on the phone that is updated when you create one, but the ones that have been created previously do not appear,...
Hugo Jiménez's user avatar
0 votes
1 answer
117 views

I am trying to build a Flutter app where I have a list view builder in the home screen, but I also want to have a history page where users can see pages they have viewed. I can not make my history ...
AvestaChang's user avatar
0 votes
1 answer
43 views

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 ...
MaDudeeK's user avatar
1 vote
0 answers
251 views

Creating a module like Google Calendar's day view in my app. In this app, I can select a time from a time slot. One slot = 30 minutes. Then, the user can drag that slot up and down and the selected ...
Jahangir Jadi's user avatar
0 votes
0 answers
58 views

In my code, searching for a word can be found very well, But unfortunately, searching for two words or more doesn't work. How to search a sentence (two words and more) in android programming? My Java ...
Shahin Sadeghi's user avatar
1 vote
0 answers
74 views

I have setup a simple ROOM instance in Kotlin as follows: MODEL: @Entity(tableName = "postinfo") data class PostInfo( @PrimaryKey(autoGenerate = true) val id: Int = 0, var title: ...
Anchith Acharya's user avatar
0 votes
1 answer
92 views

I want to enable radio button in android listview. I don't want to use any custom adapter to display radio button. Here is my code: private String[] items = {"Item 1", "Item 2", &...
Shadow's user avatar
  • 6,919
0 votes
2 answers
217 views

I have a response from the database that contains a list of response-items, these response-items contain 4 different types of lists. What I want to do is ask what type of list comes in each object and ...
Gregorio Scalbi's user avatar
0 votes
0 answers
44 views

I want to display all the installed applications in my phone in a list view. But, I want to display 10 applications at a time. Now, when the user scrolls, another 10(from remaining applications) ...
Akshaya Amar's user avatar
-1 votes
1 answer
38 views

I wrote a program that takes data from the server using the retrofit library and displays it inside a fragment that contains a Listview. The problem is that I don't have the setadapter option to ...
amir mohammad's user avatar
0 votes
1 answer
56 views

I am trying to display fields of these objects in a listview which I have working and is in a fragment. My issue is with any example I have that is working it appears to be for arraylists not ...
deeko's user avatar
  • 5
0 votes
0 answers
20 views

I know there were plenty of similar problems there but I didn't find specific problem like that. What I expect? After I update my row by setOnItemClickListener I want to update my listview from ...
JohnBaron's user avatar
1 vote
1 answer
41 views

I have class QuranArabUtils public class QuranArabicUtils { public static Spannable getTajweed(Context context, String s) { } } And this is my adapter listview @Override ...
Fiqih Hasroni's user avatar
0 votes
1 answer
51 views

I have a problem with the setSelection of a Listview that I fill with Adapter. I use setSelection when I return to a list of items, after I have clicked on an item to see the detail (view2)or edit its ...
Kevin's user avatar
  • 437
0 votes
0 answers
41 views

The program is suppose to add and delete views from a list view. Objects (views) are added with an add button and deleted with a long hold pop up window. Everything works but when I delete an object ...
wickedesperatevirgin's user avatar
0 votes
1 answer
445 views

I have a simple recycler view and their adapter my question is that how to calculate how many items fit(visible) in screen at recycler view? for example if my data list size is 30 and visible item in ...
Mehrzad's user avatar
  • 123
0 votes
1 answer
48 views

So I have recyclerview here, and I want to delete a specific element by clicking on that element's delete button (here, the trash icon is the image button). How do I do it?
Arya_'s user avatar
  • 70
2 votes
1 answer
62 views

I have a ListView which is bound to some data I have in the viewmodel. In the ListView, each row is a check box and the name of a symptom (e.g. coughing). At the end of the ListView, in the footer, I ...
JordanChester's user avatar
1 vote
1 answer
2k views

The problem is that listview header and content is not appearing on my android device and android emulator, so please what is the fix for that? <?xml version="1.0" encoding="utf-8&...
Abdallah Elrouby's user avatar
1 vote
1 answer
126 views

I'm trying to capture the item clicked on in a listview. Everything I've seen here deals with Xamarin Forms, I am NOT using Xamarin Forms. I build my listview and display it fine, but I cannot ...
Prescott Chartier's user avatar
0 votes
1 answer
40 views

I have a layout for a listview item. I added an ImageButton to the layout, as follows: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://...
preno1221's user avatar
0 votes
4 answers
413 views

class StudentModel { final String name; final String age; StudentModel({required this.name, required this.age}); } this is StudentModel class I didn't understand how the values will store in this ...
Abhishek Thankachan's user avatar
0 votes
0 answers
115 views

I'm making a food ordering application on java using Android Studio IDE. I have designed my application in a way that it has a section called categories in which I have implemented a recyclerView to ...
Milan Goyal's user avatar
0 votes
1 answer
38 views

Textview data is not being updated when called inside from function in ListView Adapter. Please help in setting binding.tvQ.text class CustomPizzaListAdapter (private val context: Context, private val ...
Hannan Max's user avatar
1 vote
0 answers
87 views

I'm displaying a list of food orders using a RecyclerView. Each view item has a RatingBar, so client can submit rating for the order. Problem: When client scrolls down and goes back up, the value of ...
code's user avatar
  • 148
0 votes
1 answer
25 views

Whenever items from listview are added or deducted the total should be updated. When I add items from listview the grand total is correct but when items are deslected the price of the product shd be ...
Abm's user avatar
  • 311
0 votes
1 answer
49 views

I want to collapse or hide the listview on click of anywhere on the screen. The code is partially working. Whenever I click in the top and bottom section of the screen listview is hidden but if I ...
Abm's user avatar
  • 311
1 vote
1 answer
258 views

i made an app using java and retrofit2 to fetch datas from the server.My listview can only display 30 item. when a new item is displayed in the listView the last one is removed automatically and the ...
Leyoussi Lauriel's user avatar

1
2 3 4 5
310