No video

Sort List View Android Studio Tutorial + Toolbar With Show Hide Toggle Buttons

  Рет қаралды 6,041

Code With Cal

Code With Cal

Күн бұрын

In todays tutorial we are sorting our shape list example List View in Android Studio using Java. By the end of this tutorial we will be able to sort our List View by Name Ascending, Name Descending as well as ID ascending and ID Descending.
We also add in a Tool Bar above our List View. This toolbar will have two buttons that are both toggle Buttons.The first button will allow the user hide or show the search view and our filter buttons. The second button will either show or hide the sort buttons.
At the end of this tutorial we will have a sortable, filterable, searchable List View.
Tutorial 1 - How to build a List View
Source Code: github.com/codeWithCal/Shapelist
Link: • List View App Android ...
Tutorial 2 - Search and Filter List View:
Source Code: github.com/codeWithCal/Shapel...
Link: • Filter & Search List V...
Tutorial 3 (This video) - ListView with search, filter, sort & toolbar:
Source Code: github.com/codeWithCal/Shapel...
Link: • Sort List View Android...
Tutorial 4 - ListView Multi-select filters:
Link: • How to Filter List Vie...
⏱️TIMESTAMPS
00:00 - Intro
01:05 - Tool Bar Layout
02:20 - Sort Tabs Layout
02:51 - Show Hide Toggle Buttons
04:50 - Sort ListView
07:21 - Tie it Together
#SortListView #AndroidToolbar #AndroidStudio #AndroidTutorial

Пікірлер: 9
@angel16359
@angel16359 3 жыл бұрын
HOLY SHIT THIS IS THE BEST ANDROID TUTORIAL VIDEO I EVER SEEN! THANK YOU!
@CodeWithCal
@CodeWithCal 3 жыл бұрын
🎉🎉
@Marciel_Cavalcante
@Marciel_Cavalcante 3 жыл бұрын
How do I create an action to open a new activity when I click on an item in the list?
@user-hk8nm8eb3u
@user-hk8nm8eb3u 3 жыл бұрын
Hey Cal This video is amazing and helping me a lot to make my own App! Just one thing I'd like to know is tht If u wanna make some shapefilterbutton unselected by pressing the button twice? Wut should I do? Thanks advance
@CodeWithCal
@CodeWithCal 3 жыл бұрын
Hi stackoverflow.com/questions/15353457/single-click-and-double-click-of-a-button-in-android Great thread here regarding how to recognise. Either double tap or long press of button. Then instead of adding to our selected shapes list we want to remove :) so I would just do what we do when we add a filter but the opposite.
@mdnurhossainnur6558
@mdnurhossainnur6558 3 жыл бұрын
Sir, Please help me. I am basically making an application which displays various food stores in a listview. But I want to display some specific Items from Listview items which are near to user's location. I have no idea to do this. Please help me. Thanks in Advance. android
@CodeWithCal
@CodeWithCal 3 жыл бұрын
Sure, sounds like you'll need to achieve 3 things. 1 Store the location of each of the food stores in your custom class for example longitude latitude or maybe as it's own object Position or something. 2. Request the users current location see developer.android.com/training/location/retrieve-current#java 3. Calculate the distance between user location and store location for every store / item. Then you can sort your list by the closest. Hope this helps and good luck. :)
@mdnurhossainnur6558
@mdnurhossainnur6558 3 жыл бұрын
@@CodeWithCal Thank You sir, But Please sir create a video about it.
@CodeWithCal
@CodeWithCal 3 жыл бұрын
😆 we shall see. Thanks for the suggestion
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 60 МЛН
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 8 МЛН
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 29 МЛН
Custom Spinner Android Studio
11:57
Budyfriend Code
Рет қаралды 47 М.
Custom layouts and graphics in Compose
20:25
Android Developers
Рет қаралды 51 М.
Create circular shape in XML - Android
5:47
Rectfy
Рет қаралды 32 М.
Popup Menu (with Icons!) - Android Kotlin Tutorial
9:09
Reso Coder
Рет қаралды 22 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 60 МЛН