Browse Source

[공통][Common] 앱 접근 권한 안내 GUI 적용

Hasemi 7 năm trước cách đây
mục cha
commit
693c659c65

BIN
app/src/main/res/drawable/icon_access.png


BIN
app/src/main/res/drawable/icon_device_id.png


BIN
app/src/main/res/drawable/icon_location.png


BIN
app/src/main/res/drawable/icon_notice.png


BIN
app/src/main/res/drawable/icon_phone.png


BIN
app/src/main/res/drawable/icon_photo.png


+ 6 - 0
app/src/main/res/drawable/rectangle.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+       android:shape="rectangle">
+  <solid
+    android:color="#999999"/>
+</shape>

+ 389 - 0
app/src/main/res/layout/activity_layout_access_authority.xml

@@ -0,0 +1,389 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView
+  xmlns:android="http://schemas.android.com/apk/res/android"
+  android:layout_width="match_parent"
+  android:layout_height="match_parent"
+  android:background="#ffffff">
+
+  <LinearLayout
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:orientation="vertical"
+    >
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="match_parent"
+      android:layout_marginTop="75dp"
+      android:orientation="vertical"
+      >
+
+      <ImageView
+        android:layout_width="40dp"
+        android:layout_height="44.8dp"
+        android:layout_gravity="center"
+        android:src="@drawable/icon_access"
+        />
+    </LinearLayout>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:layout_marginTop="22.5dp"
+      android:orientation="vertical">
+
+      <TextView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_gravity="center"
+        android:gravity="center_horizontal"
+        android:lineSpacingExtra="7sp"
+        android:text="@string/app_access_authority_message"
+        android:textColor="#000000"
+        android:textSize="17.5sp"
+        />
+    </LinearLayout>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:layout_marginLeft="24.5dp"
+      android:layout_marginTop="50dp"
+      android:orientation="vertical">
+
+      <TextView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:lineSpacingExtra="6sp"
+        android:text="@string/app_access_authority_required"
+        android:textColor="#333333"
+        android:textSize="15.5sp"
+        />
+    </LinearLayout>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:layout_marginLeft="24.5dp"
+      android:layout_marginRight="24.5dp"
+      android:layout_marginTop="10dp"
+      android:background="#f8f8f8"
+      android:orientation="horizontal">
+
+      <ImageView
+        android:layout_width="43.5dp"
+        android:layout_height="43.5dp"
+        android:layout_marginLeft="17.5dp"
+        android:layout_marginRight="13.8dp"
+        android:layout_marginTop="19.5dp"
+        android:src="@drawable/icon_phone"
+        />
+
+      <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginTop="21.5dp"
+        android:orientation="vertical"
+        >
+
+        <TextView
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="5.5sp"
+          android:text="@string/app_access_authority_device_information"
+          android:textColor="#333333"
+          android:textSize="14sp"
+          />
+
+        <TextView
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="5.5sp"
+          android:text="@string/app_access_authority_device_information_detail"
+          android:textColor="#666666"
+          android:textSize="13.9sp"
+          />
+      </LinearLayout>
+    </LinearLayout>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:layout_marginLeft="24.5dp"
+      android:layout_marginRight="24.5dp"
+      android:background="#f8f8f8"
+      android:orientation="horizontal">
+
+      <ImageView
+        android:layout_width="43.5dp"
+        android:layout_height="43.5dp"
+        android:layout_marginLeft="17.5dp"
+        android:layout_marginRight="13.8dp"
+        android:layout_marginTop="19.5dp"
+        android:src="@drawable/icon_device_id"
+        />
+
+      <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="19.5dp"
+        android:layout_marginTop="21.5dp"
+        android:orientation="vertical"
+        >
+
+        <TextView
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="5.5sp"
+          android:text="@string/app_access_authority_device_information2"
+          android:textColor="#333333"
+          android:textSize="14sp"
+          />
+
+        <TextView
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="5.5sp"
+          android:text="@string/app_access_authority_device_information_detail2"
+          android:textColor="#666666"
+          android:textSize="13.9sp"
+          />
+      </LinearLayout>
+    </LinearLayout>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:layout_marginLeft="24.5dp"
+      android:layout_marginTop="30dp"
+      android:orientation="vertical">
+
+      <TextView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:lineSpacingExtra="6sp"
+        android:text="@string/app_access_authority_option"
+        android:textColor="#333333"
+        android:textSize="15.5sp"
+        />
+    </LinearLayout>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:layout_marginLeft="24.5dp"
+      android:layout_marginRight="24.5dp"
+      android:layout_marginTop="10dp"
+      android:background="#f8f8f8"
+      android:orientation="horizontal">
+
+      <ImageView
+        android:layout_width="43.5dp"
+        android:layout_height="43.5dp"
+        android:layout_marginLeft="17.5dp"
+        android:layout_marginRight="13.8dp"
+        android:layout_marginTop="19.5dp"
+        android:src="@drawable/icon_location"
+        />
+
+      <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginTop="21.5dp"
+        android:orientation="vertical"
+        >
+
+        <TextView
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="5.5sp"
+          android:text="@string/app_access_location_authority"
+          android:textColor="#333333"
+          android:textSize="14sp"
+          />
+
+        <TextView
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="5.5sp"
+          android:text="@string/app_access_location_authority_detail"
+          android:textColor="#666666"
+          android:textSize="13.9sp"
+          />
+      </LinearLayout>
+    </LinearLayout>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:layout_marginLeft="24.5dp"
+      android:layout_marginRight="24.5dp"
+      android:background="#f8f8f8"
+      android:orientation="horizontal">
+
+      <ImageView
+        android:layout_width="43.5dp"
+        android:layout_height="43.5dp"
+        android:layout_marginLeft="17.5dp"
+        android:layout_marginRight="13.8dp"
+        android:layout_marginTop="19.5dp"
+        android:src="@drawable/icon_photo"
+        />
+
+      <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="19.5dp"
+        android:layout_marginTop="21.5dp"
+        android:orientation="vertical"
+        >
+
+        <TextView
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="5.5sp"
+          android:text="@string/app_access_picture_authority"
+          android:textColor="#333333"
+          android:textSize="14sp"
+          />
+
+        <TextView
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="5.5sp"
+          android:text="@string/app_access_picture_authority_detail"
+          android:textColor="#666666"
+          android:textSize="13.9sp"
+          />
+      </LinearLayout>
+    </LinearLayout>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:layout_marginLeft="24.5dp"
+      android:layout_marginRight="24.5dp"
+      android:background="#f8f8f8"
+      android:orientation="horizontal">
+
+      <ImageView
+        android:layout_width="43.5dp"
+        android:layout_height="43.5dp"
+        android:layout_marginLeft="17.5dp"
+        android:layout_marginRight="13.8dp"
+        android:layout_marginTop="19.5dp"
+        android:src="@drawable/icon_notice"
+        />
+
+      <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="19.5dp"
+        android:layout_marginTop="21.5dp"
+        android:orientation="vertical"
+        >
+
+        <TextView
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="5.5sp"
+          android:text="@string/app_access_notice_authority"
+          android:textColor="#333333"
+          android:textSize="14sp"
+          />
+
+        <TextView
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="5.5sp"
+          android:text="@string/app_access_notice_authority_detail"
+          android:textColor="#666666"
+          android:textSize="13.9sp"
+          />
+      </LinearLayout>
+    </LinearLayout>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:layout_marginLeft="31.8dp"
+      android:layout_marginTop="17.5dp"
+      android:layout_marginRight="24.5dp"
+      android:orientation="vertical">
+
+      <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:orientation="horizontal"
+        >
+
+        <ImageView
+          android:layout_width="2.5dp"
+          android:layout_height="2.5dp"
+          android:layout_gravity="center"
+          android:layout_marginRight="5dp"
+          android:src="@drawable/rectangle"
+          />
+
+        <TextView
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="3.5sp"
+          android:text="@string/app_access_authority_option_message"
+          android:textColor="#999999"
+          android:textSize="12sp"
+          />
+      </LinearLayout>
+    </LinearLayout>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:layout_marginBottom="34.5dp"
+      android:layout_marginLeft="31.8dp"
+      android:layout_marginTop="17.5dp"
+      android:orientation="vertical">
+
+      <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:orientation="horizontal"
+        >
+
+        <ImageView
+          android:layout_width="2.5dp"
+          android:layout_height="2.5dp"
+          android:layout_gravity="center"
+          android:layout_marginRight="5dp"
+          android:src="@drawable/rectangle"
+          />
+
+        <TextView
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="3.5sp"
+          android:text="@string/app_access_authority_change"
+          android:textColor="#000000"
+          android:textSize="12sp"
+          />
+      </LinearLayout>
+    </LinearLayout>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content">
+
+      <Button
+        android:id="@+id/button_access_authority"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:background="@color/black"
+        android:lineSpacingExtra="6sp"
+        android:text="@string/confirm"
+        android:textColor="#ffffff"
+        android:textSize="15.5sp"
+        />
+
+    </LinearLayout>
+  </LinearLayout>
+</ScrollView>

+ 36 - 7
app/src/main/res/values/strings.xml

@@ -1,6 +1,6 @@
 <resources>
   <string name="empty_string" translatable="false"/>
-  <string name="confirm" >확인</string>
+  <string name="confirm">확인</string>
 
   <string name="tutorial_title1">트렌디하게, 콘텐츠</string>
   <string name="tutorial_title1_message">소소한 일상부터 화제의 이슈까지\n다양하게 경험해보세요.</string>
@@ -21,8 +21,6 @@
   <string name="sign_up_current_member_message_detail">가입된 간편암호로 회원확인을 하시거나,\n간편암호 재설정을 진행해주세요.</string>
 
 
-
-
   <string name="sign_up_benefit1">혜택 하나. 코인</string>
   <string name="sign_up_benefit1_detail">서비스만 이용해도 코인을 드려요.</string>
   <string name="sign_up_benefit2">혜택 둘. 쿠폰</string>
@@ -37,12 +35,43 @@
   <string name="sign_up_input_pin">간편암호 등록</string>
   <string name="sign_up_input_pin_fail">간편암호 등록 실패</string>
   <string name="sign_up_pin_confirm">간편암호 등록 완료</string>
-  <string name="sign_up_id_confirm_completed">본인인증이 \n 완료되었습니다.</string>
+  <string name="sign_up_id_confirm_completed">본인인증이 완료되었습니다.</string>
   <string name="sign_up_pin_confirm_completed">정상적으로 등록되었습니다.</string>
   <string name="sign_up_agree_completed">약관 동의 완료</string>
   <string name="sign_up_agree">약관 동의</string>
   <string name="sign_up_completed_message">%s님 Lifeplus 회원가입이 완료되었습니다.</string>
-  <string name="sign_up_completed">가입 완료</string>
+  <string name="sign_up_completed_name">김한화</string>
+  <string name="sign_up_completed_gender">남자</string>
+  <string name="sign_up_completed_birth_date">1982.02.20</string>
+  <string name="sign_up_completed_phone_number">010-2934-3901</string>
+
+
+  <string name="app_access_authority_message">Lifeplus App 서비스 이용을 위해\n필요한 항목만 필수 접근하고 있습니다</string>
+  <string name="app_access_authority_required">필수적 접근 권한</string>
+
+  <string name="app_access_authority_device_information">기기 및 앱 기록</string>
+  <string name="app_access_authority_device_information_detail">기기 정보 및 오류확인</string>
+
+  <string name="app_access_authority_device_information2">기기 ID</string>
+  <string name="app_access_authority_device_information_detail2">다중 로그인 방지</string>
+
+  <string name="app_access_authority_option">선택적 접근 권한</string>
+
+  <string name="app_access_location_authority">위치</string>
+  <string name="app_access_location_authority_detail">날씨 정보 제공 및 위치기반 콘텐츠 추천</string>
+
+  <string name="app_access_picture_authority">사진</string>
+  <string name="app_access_picture_authority_detail">프로필 이미지 첨부</string>
+
+
+  <string name="app_access_notice_authority">알림</string>
+  <string name="app_access_notice_authority_detail">주요 이벤트 알림</string>
+
+  <string name="app_access_authority_option_message">선택적 접근 권한은 해당 기능을 사용할 때 허용이 필요하며,\n비허용 시에도 해당 기능 외 서비스 이용이 가능합니다.</string>
+  <string name="app_access_authority_change">접근 권한 변경 방법 : 휴대폰 설정 > Lifeplus</string>
+
+
+
 
   <string name="sign_up_start_lifeplus">Lifeplus 시작하기</string>
 
@@ -125,8 +154,8 @@
   <string name="previous_page">이전 페이지</string>
 
   <string name="text_view_add_pop_up_message">지금 등록하시면 코인을 드려요!</string>
-  <string name="button_add_special_code">스페셜/추천인 코드 등록</string>
-  <string name="button_add_email">Email 등록</string>
+  <string name="button_add_special_code"><u>스페셜/추천인 코드 등록</u></string>
+  <string name="button_add_email"><u>Email 등록</u></string>
 
   <string name="tutorial_title">내일상의 플러스</string>
   <string name="tutorial_start">삶을 더 잘 살기 위한 이야기, \n 시작해볼까요?</string>