Cho mình hỏi mình đang muốn làm cái girdview như này ai làm rồi cho mình xin ít kinh nghiệm với ạ. listview > girdview android kotlin
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
data dạng [{title:1, data[1,2,3,4,5]},{title: 2, data: [a,b,c,x,y,z]},{title:3, data[m,l]}]
Đây là code
activity_main.xml
:Các đoạn code còn lại em tham khảo tại đây nhé: https://www.geeksforgeeks.org/gridview-in-android-with-example/
em không biết làm sao truyền data trong item để hiển thị ra girdview ấy anh
Em đọc bài ở link anh gửi thì nó có hướng dẫn em tạo `CourseGVAdapter` đó em, em có thể thử tạo 1 đối tượng tương tự được không em?
dạ ko anh. code này thì em biết rồi ạ
Sẽ chỉ có cách duy nhất là dùng adapter để truyền dữ liệu cho view như vậy thôi em ạ, anh chưa hiểu là em chưa biết truyền data trong item ý là như thế nào em nhỉ? em có thể nói cụ thể hơn được không nhỉ? Vì anh đoán em cũng đã có 1 chút kiến thức về android rồi.