From cefd5c65ab5c7f1ead7d109ac85d7a1994e477ff Mon Sep 17 00:00:00 2001 From: myung jun Hyun Date: Tue, 26 Nov 2019 19:01:12 +0900 Subject: [PATCH] (#2) add setting feature --- .../com/mashup/app/setting/SettingFragment.kt | 2 +- app/src/main/res/layout/setting_fragment.xml | 15 ++++++++------- app/src/main/res/values/strings.xml | 5 ++++- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/mashup/app/setting/SettingFragment.kt b/app/src/main/java/com/mashup/app/setting/SettingFragment.kt index 95692ce..0c55b38 100644 --- a/app/src/main/java/com/mashup/app/setting/SettingFragment.kt +++ b/app/src/main/java/com/mashup/app/setting/SettingFragment.kt @@ -53,7 +53,7 @@ class SettingFragment : Fragment() { putExtra(Intent.EXTRA_EMAIL, BuildConfig.FEED_BACK_EMAIL) putExtra( Intent.EXTRA_SUBJECT, - "<" + getString(R.string.app_name) + " " + getString(R.string.setting_send_feedback_email) + ">" + "<" + getString(R.string.app_name) + " " + getString(R.string.setting_send_feedback_email_title) + ">" ) putExtra( Intent.EXTRA_TEXT, diff --git a/app/src/main/res/layout/setting_fragment.xml b/app/src/main/res/layout/setting_fragment.xml index de9173b..f797a7f 100644 --- a/app/src/main/res/layout/setting_fragment.xml +++ b/app/src/main/res/layout/setting_fragment.xml @@ -4,7 +4,8 @@ xmlns:tools="http://schemas.android.com/tools"> - + + @@ -48,10 +49,10 @@ android:layout_marginTop="13dp" android:gravity="center" android:onClick="@{() -> viewmodel.sendFeedBackEmail()}" - tools:text="recruit.mashup@gmail.com" - app:email="@{BuildConfig.FEED_BACK_EMAIL}" android:textColor="@color/author" - android:textSize="@dimen/text_normal" /> + android:textSize="@dimen/text_normal" + app:email="@{BuildConfig.FEED_BACK_EMAIL}" + tools:text="recruit.mashup@gmail.com" /> @@ -116,7 +117,7 @@ android:layout_alignEnd="@+id/card" android:layout_marginTop="16dp" android:onClick="@{() -> viewmodel.onClickLogoutButton()}" - android:text="로그아웃하기" + android:text="@string/setting_tv_logout" android:textColor="@color/colorPrimary" android:textSize="@dimen/text_normal" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7042bf4..fd481da 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -32,7 +32,10 @@ 이메일 혹은 비밀번호를 채워주세요! 알 수 없는 에러가 발생했습니다. - 건의사항 보내기 + 건의사항 보내기 + 피드백 메일 + 피드백 메일 + 로그아웃하기 전체공지 설정