경험들/토이 프로젝트3 "할일관리 어플" #3 datepickerDialog //Activity.kt binding.editMainDateBtn.setOnClickListener{ val cal = Calendar.getInstance() DatePickerDialog(this@EditMainPlanActivity,{datePicker, year, month, date -> //datepickerdialog 띄우기 binding.editMainDateBtn.text = "${String.format("%04d",year)}.${String.format("%02d",month+1)}.${String.format("%02d",date)}" //버튼 text 변경 binding.editMainDDayTxt.text = MyCalendar.getInstance().getDday(year.. 2022. 4. 6. "할일관리 어플" #2 recyclerview //MainActivity.kt class MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding //viewBinder override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) //viewBinder setting binding = ActivityMainBinding.inflate(layoutInflater) setContentView(binding.root) //recyclerview setting setupRecyclerview() } private fun setupRecyclerview(){ bind.. 2022. 3. 29. "할일관리 어플" #1 달력 만들기 본인은 달력 기능을 위해 안드로이드에서 제공해주는 calendarview를 사용했다. 날짜를 클릭하면 해당 날짜 data를 toast로 보이도록 하였다. //mainActivity.kt class MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding //viewBinder override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) //viewBinder setting binding = ActivityMainBinding.inflate(layoutInflater) setContentView(binding.ro.. 2022. 3. 29. 이전 1 다음