RecyclerView를 활용할 때 직관성을 높이기 위해 스와이프를 사용하여 삭제 기능을 구현하려고 한다 ItemTouchHelper.SimpleCallback simpleCallback = new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.RIGHT | ItemTouchHelper.LEFT) { @Override public boolean onMove(@NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder, @NonNull RecyclerView.ViewHolder target) { return false; } @Override public void onSwiped(@N..
RecyclerView를 이용할 때 각 항목들이 여백없이 붙게 된다 각 항목에 여백을 주고 싶다면 RecyclerView에 ItemDecoration을 추가해줘야 한다 myItemDecoration.java public class myItemDecoration extends RecyclerView.ItemDecoration { private final int padding = 5; // 여백을 5로 설정 @Override public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { super.getItemOffsets(outRect, view, parent, state); outRect..
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0-alpha3] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0-alpha3] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to..
- Total
- Today
- Yesterday
- 프래그먼트
- Alfred
- layout
- androidx
- 안드로이드 레이아웃
- eggtimer
- RecyclerView padding
- 레이아웃
- activity
- round border
- 안드로이드 스튜디오
- 파이어베이스
- RecyclerView 여백
- recyclrView
- 스튜디오
- 뒤로가기
- Android Studio
- 에그타이머
- Firebase
- RecyclerView Swipe
- firestore
- intent
- 안드로이드
- android
- calendarView
- java
- 액티비티
- wrap_content
- 파이어스토어
- 안드로이드 여백
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |