Android Material Sliding Tabs  : TabLayout - Fragments with Custom ListViews

Android Material Sliding Tabs : TabLayout - Fragments with Custom ListViews

ProgrammingWizards TV

8 лет назад

15,153 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Divya Raj
Divya Raj - 18.10.2020 22:00

Well explained. Very Helpful

Ответить
Arya The Great Engineer
Arya The Great Engineer - 05.09.2019 18:30

Can you create custom tab like uc browser and chrome browser ...?????

Ответить
shanu sharma
shanu sharma - 17.02.2019 17:26

Thanks for this tutorial

Ответить
shanu sharma
shanu sharma - 17.02.2019 17:26

It's working bro

Ответить
Dattaraj Naik
Dattaraj Naik - 26.06.2018 19:30

I wanted to go to the next Activity on click of the iten

Ответить
Sharanya Raghunath
Sharanya Raghunath - 22.12.2017 12:28

Hey ,I got this to work, but I'm struggling with the next bit. With this format, I'm basically trying to get the listview to open up another activity to display more details about that particular item that is clicked on. These details are stored as an array in string.xml file. I got that to display now but I can't seem to just get the particular item I'm getting my whole array list to display on every single item clicked on, in the listview. Any suggestion on why this is and how I can move past this?

Ответить
José Carlos Pereira da Silva Filho
José Carlos Pereira da Silva Filho - 25.05.2017 02:31

Thanks, thanks, thanks, thanks, thanks, thanks, thanks.

Ответить
TheMhollow2
TheMhollow2 - 15.04.2017 13:41

Beware of attempting this code. It is very badly muddled and the sound is useless mumbling most of the time. Could have been very good. Sorry PWTV.

Ответить
Tarek BAZINE
Tarek BAZINE - 06.03.2017 12:33

Thank you Mr for the course !!
I would like to ask you a question !
I am using your solution and i want to use fireBase and i want to put a childEventListner, i do not know where i will put this.
i tried to put the listner in the xxFragment() but he is not listening.
please if you could help me.
thanks

Ответить
DNA Mobile Applications
DNA Mobile Applications - 18.02.2017 09:25

Also on TabSelectListener says it's depreciated, how do I go about changing that, my tabs don't swap fragments they just show that I'm swapping tab one and two.... Thanks

Ответить
DNA Mobile Applications
DNA Mobile Applications - 13.02.2017 20:26

Ok so I've finally set this up as I was trying for hours last night and kept falling asleep, now huge question how do I set this to go to another class rather then show a toast..

Intent intent = new Intent(CustomAdapter.this,,Janes_fish.class);
intent.putExtra("Name", list.getItemAtPosition(position).toString());
startActivity(intent);

tried switching the toast message but it doesn't work thanks

Ответить
DNA Mobile Applications
DNA Mobile Applications - 13.02.2017 20:26

Ok so I've finally set this up as I was trying for hours last night and kept falling asleep, now huge question how do I set this to go to another class rather then show a toast..

Intent intent = new Intent(CustomAdapter.this,,Janes_fish.class);
intent.putExtra("Name", list.getItemAtPosition(position).toString());
startActivity(intent);

tried switching the toast message but it doesn't work thanks

Ответить
Adão Duque
Adão Duque - 13.01.2017 23:26

Thank you, work fine. Nice tutorial.

Ответить
suvv mohanty
suvv mohanty - 22.07.2016 00:01

Hi ProgrammingWizards Could you please provide us the Source code.

Ответить
Samir Designer
Samir Designer - 12.05.2016 06:22

sourece code?

Ответить
Utif Milkedori
Utif Milkedori - 11.05.2016 01:54

sourece code?

Ответить
Bensos Frequents
Bensos Frequents - 10.05.2016 17:10

Perform your operations if and only if, Fragment is focused by user, If you don't override this method
and you are fetching data for 10 tabs, then you app will perform poor and may be user will interact
with only two tabs .

public class MyFragment extends Fragment {
@Override
public void setUserVisibleHint(boolean isVisibleToUser) {
super.setUserVisibleHint(isVisibleToUser);
if (isVisibleToUser) {
//always perform your operations here
}
else { }
}
}

Ответить
Bensos Frequents
Bensos Frequents - 10.05.2016 08:55

Create tutorials on how to use JobScheduler and fetch data in the background

Ответить