개발일지/멀티메모

[멀티메모] 2일차

Emil :) 2019. 11. 30. 18:24
728x90
반응형

최종 목표


  1. 음성녹음 버그 수정
  2. TODO 기능 추가하기 (푸시 알림 기능도 구현해보도록 하자)
  3. 메모 리스트 좌우로 슬라이드 하면 삭제 되도록 하기

 

오늘의 목표


  1. todo list 만들기

참고


1. todolist 앱 만들기 영상 https://www.youtube.com/watch?v=YmRPIGFftp0

 

 

진행 과정


1. UI짜기


평소 자주 사용하는 캘린더 기능

안드로이드에서 기본으로 제공하는 UI를 간단하게 줄여서 따오기로 했다.

XML 코드

todolist_activity.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingLeft="5dp"
        android:textSize="40dp"
        android:text="제목"
        android:background="@null"/>
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:orientation="horizontal">
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="10dp"
            android:text="시작"
            android:textSize="20dp"/>
        <TextView
            android:id="@+id/tvDateStart"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_marginRight="10dp"
            android:text="00월 00일 (요일) 오전 00 : 00"/>
    </RelativeLayout>
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:orientation="horizontal">
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="10dp"
            android:text="종료"
            android:textSize="20dp"/>
        <TextView
            android:id="@+id/tvDateEnd"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_marginRight="10dp"
            android:text="00월 00일 (요일) 오전 00 : 00"/>
    </RelativeLayout>
    <TextView
        android:layout_marginTop="30dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="10dp"
        android:text="메모"
        android:textSize="20dp" />

    <EditText
        android:layout_width="wrap_content"
        android:layout_height="389dp"
        android:layout_marginHorizontal="10dp"
        android:layout_marginVertical="10dp"
        android:background="@drawable/memo_back" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center">
        <Button
            android:id="@+id/btnCancel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="취소"/>
        <Button
            android:id="@+id/btnSave"
            android:layout_marginLeft="50dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="저장"/>

    </LinearLayout>
</LinearLayout>

UI는 뭔가 항상 짜다보면 조금 더 간편하고 멋진 코드로 짜고싶은 욕구가 솟는다...
보이게는 할수있지만 좀더.. 뭐랄까 유지보수가 용이하도록..?

 

하.. 며칠째 db 매달려있는데 너무어렵다

오늘의 결과


 

일단 UI만 짜놓았다...

매일 일지 쓰고싶은데 매일 해도 진전이 없어서 걍 안썼더니 너무 쓰는맛이 안난다.
그냥 매일 써야지

728x90
반응형

'개발일지 > 멀티메모' 카테고리의 다른 글

[멀티메모] 5일차  (0) 2019.12.18
[멀티메모] 4일차  (2) 2019.12.14
[멀티메모] 3일차  (0) 2019.12.02
[멀티메모] 1일차  (0) 2019.11.26