본문 바로가기

앱 개발일지18

android Studio/Kotlin과Compose 호환성 지도 https://developer.android.com/jetpack/androidx/releases/compose-kotlin Compose와 Kotlin의 호환성 지도 | Android 개발자 | Android Developers Compose와 Kotlin의 호환성 지도 컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요. 종속 항목 선언 Compose 컴파일러에 관한 종속 항목을 추가하려면 프로젝트에 Googl developer.android.com 코틀린버전과 compose버전을 맞춰줘야 앱이 실행됨 현재 코틀린 1.7.20 / compose 1.4.0-alpha01 2022. 11. 24.
[android studio] 머티리얼 디자인 가이드 https://material.io/develop/android Material Design Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital experiences. material.io 2022. 7. 22.
[Android/ Kotlin] 팁 계산기 https://github.com/jininim/KotlinEx/tree/main/tiptime GitHub - jininim/KotlinEx: 사용자 이벤트 처리하기 스탑워치 사용자 이벤트 처리하기 스탑워치. Contribute to jininim/KotlinEx development by creating an account on GitHub. github.com https://developer.android.com/courses/pathways/android-basics-kotlin-unit-2-pathway-1#codelab-https://developer.android.com/codelabs/basic-android-kotlin-training-tip-calculator 앱에서 사용자 입력 가져오.. 2022. 7. 21.
[Android / Kotlin] 뷰페이저2 FragmentStateAdapter를 이용하여 구현 binding.viewpager.orientation = ViewPager2.ORIENTATION_VERTICAL // 세로로 구현 2022. 7. 11.
[Android / Kotlin] 리사이클러뷰 RecyclerView 구성요소 - ViewHolder : 항목에 필요한 뷰 객체를 가짐 -Adapter : 항목을 구성 -LayoutManager : 항목을 배치 -ItemDecoration : 항목을 꾸밈 class MyViewHolder(private val binding: ItemMainBinding) : RecyclerView.ViewHolder(binding.root) class MyAdapter(val binding: ItemMainBinding): RecyclerView.Adapter(){ override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder { TODO("Not yet implem.. 2022. 7. 11.
[Android / Kotlin] 프래그먼트 Fragment 클래스 생성 package com.example.ch10 import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup class BlankFragment : Fragment() { override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { // Inflate the layout for this fragment return inflate.. 2022. 7. 11.