xml. ViewPager2 와 Circleindicator3 를 추가해 주었다고 생각을 하겠습니다. MainActivity. initView() 메서드 생성. viewPager2 와 어댑터를 연결해 줍니다. 데이터는 있다고 생각을 하겠습니다. private val Adapter by lazy { Adapter(this) } private fun initView() = with(binding) { vp.adapter = Adapter // ViewPager 에 어댑터를 연결 Adapter.submitList(data) // 어댑터에 데이터를 submitList ciIndicator.setViewPager(vp) // circleIndicator3 ViewPager 셋 vp.registerOnPageCha..
TimeUnit 으로 시간을 받아왔을 때 현재 시간과 비교를 하거나 계산을 해야할 때 사용하면 좋은 방법! 현재시간 구하기. val nowDateTime = Calendar.getInstance().timeInMillis 비교 시간. 1677217428000 ( type 은 Long 데이터이다.) val differenceValue = nowDateTime - createDateTime val sdf = SimpleDateFormat("yyyy MM월 dd일 (EE) a h:mm") val date = sdf.format(differenceValue) 이런식으로 두 데이터를 빼 준다음 SimpeDateFormat 을 이용해서 원하는 형식으로 나타내주면 된다. 추가로 'x분 전', 'x시간 전', 'x일 ..
- Total
- Today
- Yesterday
- ios
- ScrollView
- node.js
- listener
- https
- Android Studio
- java
- app bundle
- message
- ec2
- error
- Crop
- Hilt
- bitmap
- ExoPlayer
- Firebase
- Custom
- retrofit
- 알고리즘
- Token
- API
- Kotlin
- 코딩테스트
- direction
- android
- FCM
- flutter_new_badger
- Flutter
- 재귀함수
- GitHub
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |