Link donate :
Facebook :
Source code :
While I was doing my real projects, I encountered a difficult problem, namely displaying multiple view types on the same recycler view. And after the research I have found the solution, I would like to share this solution with you all
edmt dev,android программирование,android studio,android studio tutorial,recyclerview,андроид программирование,android recyclerview tutorial,android studio recyclerview tutorial,android studio tutorial – recycler view with multiple view types,android программирование opengl,edmt dev recycler view,how to create recyclerview with multiple view type?,how to upload image in firebase database,multiple recyclerview,multiple recyclerview android,multiple type recyclerview Link donate:
Nguồn:https://wijstaanvooronzegrondrechten.org/
Great work! But I was wondering if you can show how I can also add an image into it.
I found the answer to my question. kinda created one but here it is:
#First, you should have an image view in your items XML.
#In the items class:
private int imageUrl;
this.imageUrl = imageUrl;
public int getImageUrl() {
return imageUrl;
}
public void setImageUrl(int imageUrl) {
this.imageUrl = imageUrl;
}
#In the main activity class:
private int[] images = {R.drawable.your_resours…..};
Weapons item = new Weapons("this is item", "this is child",images[0],true);
items.add(item);
#In the Recycler Adapter class:
add the image view declarations then,
viewHolder.image.setImageResource (items.get(position).getImageUrl());
Emm, the source code link is 404 !
How set more child.. Help me
implement interface and create new fragmentDetails… how???
Good Work
Sir, I fetch data from sqlite Database.
Let me example: Item code is A1190001 now I get all data related to item code in one ViewType ReceylerView and next view next item code……….
Plz Help
Thanks
Does this work with completely different sets of data?
how to create different child text
i have question i have test to make recycler view for delivery order but how to make it display in recycler view in random order like i have 2 card delivery and pickup i want it to display depend on the order so when u have 2 pickup it will show 2 pickup only or 2 pickup and 1 delivery depend on the order we get.
hi Anh! Mình có thể sử dụng nhiều item con bên trong không anh?
ExpandableLinearLayout is not working
i am using content provider and it take a lot of time to open and error is take too much work in main ui thread.
Hello sir how can i make this expandable onclick? Can you help me out
hello bro how can we add more than 1 item on the parent? can u please reply us?
I got an error in MyAdapter.java,
especially:
public int getItemViewType(int position) {
if(items.get(position).isExpandable())
return 1;
else
return 0;
}
the error dialog :
cannot resolve method 'isExpandable()'
How can to fix this ?
thank you very much..
source code link is not working i have followed the steps on how to open the link as well
Hello Sir,,
thanks for ur tutorial,
how can I use custom list data in expandable ? its just show data with item data 1 item data 2 and next with formula,.
I want to insert custom image and text in expandable
not work this link u remove that ? i cant saw that in your account in github ..
hi notifydatasetchanged doesn't works inside custom adapter here's my code
final ProductAdapter temp=this;
holder.addquantitynobutton.setOnValueChangeListener(new ElegantNumberButton.OnValueChangeListener() {
@Override
public void onValueChange(ElegantNumberButton view, int oldValue, int newValue) {
if(newValue==0)
{
new Database(context).removefromcart(product.getKey());
if(new Database(context).getcartitem()==0){if(snackbar!=null &&snackbar.isShown()){snackbar.dismiss();}}
temp.notifyDataSetChanged();
}
hello sir kindly help me to do this with volley i really like your work n i want to fetch the json data in recylcerview with multiple view types plz help
can't download the project 🙁
I tried to follow your steps twice but the application did not work with me. Can you attach the source code to the project?
Hello sir, first thanks for this tutorial. I using this listview and ı create my custom adapter. I want image and textview to be in expanded layout. I wrote code but layout not expanding, image and text showing on top of parent layout. How can ı fix this.
2017 and no microphone? Such shame.
Hello Sir, I would like to ask if you have a tutorial about fragment + recyclerview + loadmore + mysql ?
What about this? It dosent have any property boolean like isexpanded true false
https://github.com/Manabu-GT/ExpandableTextView
Why is it necessary to set isRecyclable to false? Doesn’t it defeat the whole purpose of a recyclerview?
I love you
Hey! this example looks perfect.. Can you help if me with my task… I have to do same example with JSON… #Help is appreciated…
sir i have two different arrays from where i am setting my data on the adapter…
but when i get data from 2nd array the 1st array's data got lost and it sets from the direct 3rd position of array
how can i solve this when i am having two different array's data ??
Good morning, your videos are great, congratulations.
I would like to know how to use the data of a SQLite in this method that you implemented in this video?
I already have all the code of registration and the search.
I just can not put the data registered in this expandable recyclerView.
follow the search code:
public ArrayList <Client> findCustomers () {
ArrayList <Client> clients = new ArrayList <> ();
StringBuilder sql = new StringBuilder ();
sql.append ("SELECT _id, name, cpf, birth, telephone, email, street, neighborhood, number, complement, city, state");
sql.append ("FROM producer");
Result Cursor = connection.rawQuery (sql.toString (), null);
if (result.getCount ()> 0) {
resultado.moveToFirst ();
of{
Client cli = new Client ();
cli.id = result.getInt (result.getColumnIndexOrThrow ("_ id"));
cli.name = result.getString (result.getColumnIndexOrThrow ("name"));
cli.cpf = result.getString (result.getColumnIndexOrThrow ("cpf"));
cli.nascimento = resultado.getString (result.getColumnIndexOrThrow ("birth"));
cli.telephone = result.getString (result.getColumnIndexOrThrow ("phone"));
cli.email = result.getString (result.getColumnIndexOrThrow ("email"));
cli.rua = result.getString (result.getColumnIndexOrThrow ("street"));
cli.bairro = resultado.getString (result.getColumnIndexOrThrow ("neighborhood"));
cli.numero = resultado.getString (result.getColumnIndexOrThrow ("number"));
cli.complemento = resultado.getString (resultado.getColumnIndexOrThrow ("complement"));
cli.city = result.getString (result.getColumnIndexOrThrow ("city"));
cli.status = result.getString (result.getColumnIndexOrThrow ("status"));
customers.add (cli);
} while (result.moveToNext ());
}
return customers;
}
i need source code because my app will be crash going on this page
hello i need help, how you can add more than 1 child item on a parent?
can you please add your code on github
.
how did you write that symbol on 16:07 plz reply fast!
No source code 🙁
Hello sir… i am a regular user of your channel and learnt lot of things from your projects. Kindly sir make a video on "How to make sections or groups in recycler view based on key of multivalued hashmap (each key holds linklist having more than one value) like the one done in "duplicate file fixer" app available on google play store… Efforts will be appreciated… Thanx in advance sir.. 🙂
Hello! , i need help … you know how make recyclerview with horizontal and vertical layout?
sir .. I have fix error , but have Logical Error ,
when add new element to rectclerView to section 1 ,
result is add this element with new section 1
Like I have in rectclerView two section 1 , I need add all element under section 1
Like this image :
https://i.stack.imgur.com/C9xzD.png
I want my recycler to be more dynamic with firebase ..
can add new item food with header to be organized
Give me hints for doing that 😀 ,,
Thank you very much In advance ..
sir .. I try add alot subText in list not one , when I try get Erros .
can you give me hint to do that ?
this my Error when try to do that in class MyAdapter ..
java.lang.IndexOutOfBoundsException: Invalid index 3, size is 3
this line : viewHolder.textViewChild.setText(items.get(position).getSubText().get(position));
Thanks in advance ..
Your videos help us a lot sir. 😀 In the future, will you be able to store data of google maps in firebase and show it in a textview??? Thanks for your time :)))
Hello sir, i hope you make more realistic app like your online quiz and order food
Gr8 work sir…. is it possible to you make video on music api, so that user can listen daily updated songs
Sir, can you make a shopping list app, which takes name of that shopping list from user (maybe through alert dialog), save it in recycler view and onClick of list item we can add items that we want to buy.
amazing work sir is it possible for you that after completing fire store work you start Node js for android because node js is so fast and firebase every things is good but firebase database is not good for use little bit big project
hi sir pls learn creat advenced tv online and perfect chat app and perfect music app online with fire base tanks for your best tutorials.love your tutorials
Hello sir can u plz make tutorial on google spread sheet api for updating and delete from Android app 😃 thanx for reading my comment😊