From 2136eacdf03d7a058c84466f3cb5200c9dc14a05 Mon Sep 17 00:00:00 2001 From: comye1 <50735594+comye1@users.noreply.github.com> Date: Fri, 30 Apr 2021 01:46:19 +0900 Subject: [PATCH] update README.md for #1 --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README.md b/README.md index 1cf84cb..6081912 100644 --- a/README.md +++ b/README.md @@ -1 +1,38 @@ Watch the course here: https://www.youtube.com/playlist?list=PLrnPJCHvNZuCfAe7QK2BoMPkv2TGM_b0E +https://github.com/codinginflow/MVVMTodo + +# #1 Layouts & Room Entity + +- 꿀팁 +-- ctrl + alt + L : 코드 정리 (formatting) +-- CoordinateLayout : FAB를 위해 +-- Parcelable Class : 프래그먼트간 전달을 위해 + +## fragment_tasks.xml +- CoordinatorLayout : parent +- RecyclerView +- FloatingActionButton + +## item_tasks.xml +- RelativeLayout : parent +-- layout_alignParentStart/End/Top/Bottom +-- layout_alignStart/End/Top/Bottom +-- layout_toStartOf/toEndOf/toTopOf/toBottomOf +- CheckBox +- TextView +-- maxLines +-- elilipsized="end" **If set, causes words that are longer than the view is wide to be ellipsized instead of broken in the middle.** +- ImageView + +## fragment_add_edit_task.xml +- CoordinateLayout : parent +- LinearLayout +- EditText +- CheckBox +- FloatingActionButton +- TextView + +## data / Task.kt +- data class for Room (= Entity) +- name, important, completed, created, id +- createdDataFormatted <- get from created \ No newline at end of file