728x90
Do it! 안드로이드 프로그래밍
-
RecyclerView를 이용해서 list 만들기Android 2021. 7. 8. 00:44
activity_main.xml xml에 RecyclerView를 추가하면 item 들이 가상으로 보인다. 각 item을 위한 class를 만들어서 그 class를 ArrayList에 담아서 관리해야한다. 그 class 를 만들어보자. public class Person { String name; String mobile; String birth; int ResId; public Person(String name, String mobile,String birth,int ResId) { this.name = name; this.mobile = mobile; this.ResId = ResId; this.birth = birth; } public String getBirth() { return birth; }..