Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- ButtonWithButton
- 랜덤ID
- Dialog
- 밑줄
- EditText
- MaterialButton
- Kotlin
- 안드로이드
- nav_graph
- OutlinedButton
- Android
- 안드로이드 스튜디오
- 뷰바인딩
- button
- androidstudio
- ROOM
- Activity
- Imageview
- textview
- 안드로이드스튜디오
- firebase
- BottomSheetDialog
- ArrayList
- FRAGMENT
- 코틀린
- firebasefunctions
- 팝업액티비티
- lifecyclescope
- ViewModel
- RealtimeDB
Archives
- Today
- Total
목록GridView (1)
안드로이드 앱 개발
RecyclerView활용하여 GridView 만들기
1. ListView 만들기와 95% 유사하므로 Listview 글을 참고하고 다만, LayoutManager에 GridLayoutManger를 선언해서 연결해주고 컬럼의 수만 추가로 파라미터에 넣어주면 된다. int numberOfCoulmns = 2; recyclerView.setLayoutManager(new GridLayoutManager(getActivity(),numberOfCoulmns)); recyclerView.setAdapter(adapter_messages); RecyclerDecoration_Height decoration_height = new RecyclerDecoration_Height(20); recyclerView.addItemDecoration(decoration_heig..
안드로이드앱/RecyclerView
2021. 3. 26. 09:42