فهرست منبع

[공통][New] 현재페이지 공유 다이얼로그 페이지 구현

Hasemi 7 سال پیش
والد
کامیت
445314a9f2

+ 1 - 2
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/main/banner/MainBannerView.java

@@ -12,7 +12,6 @@ import android.view.LayoutInflater;
 import java.util.List;
 
 import kr.co.zumo.app.R;
-import kr.co.zumo.app.lifeplus.bean.ImageBean;
 import kr.co.zumo.app.lifeplus.bean.TextImageBean;
 import kr.co.zumo.app.lifeplus.view.fragment.main.category.banner.MainBannerAdapter;
 
@@ -47,10 +46,10 @@ public class MainBannerView extends ConstraintLayout {
     LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
     inflater.inflate(R.layout.main_banner_view, this);
     SnapHelper snapHelper = new LinearSnapHelper();
-    snapHelper.attachToRecyclerView(recyclerView );
     recyclerView = (RecyclerView) findViewById(R.id.recycler_view_main_banner_view);
     recyclerView.setLayoutManager(new LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false));
     mainBannerAdapter = new MainBannerAdapter(context, inflater, textImageBeanList, itemCount);
+    snapHelper.attachToRecyclerView(recyclerView );
     recyclerView.setAdapter(mainBannerAdapter);
   }
 

+ 1 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/dialog/PromotionDialog.java

@@ -36,7 +36,7 @@ public class PromotionDialog extends DialogBase{
   @Nullable
   @Override
   public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
-    return inflater.inflate(R.layout.promotion_pop_up, container, false);
+    return inflater.inflate(R.layout.dialog_promotion, container, false);
   }
 
   @Override

+ 1 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/fragment/main/category/banner/MainBannerViewHolder.java

@@ -28,6 +28,7 @@ public class MainBannerViewHolder extends RecyclerView.ViewHolder {
     imageViewBannerItem = itemView.findViewById(R.id.image_view_banner_item);
   }
 
+  // TODO: image scaleType 조정 필요
   public void doDataSetting(TextImageBean bean){
     imageViewBannerItem.setImageDrawable(itemView.getResources().getDrawable(bean.getImageResource()));
   }

+ 4 - 0
app/src/main/res/drawable/icon_share_email_wh.xml

@@ -0,0 +1,4 @@
+<vector android:height="18dp" android:viewportHeight="70"
+    android:viewportWidth="71" android:width="18dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#FFF" android:fillType="evenOdd" android:pathData="M67,20.577C50.705,31.663 40.166,37.261 36,37.261c-4.845,0 -15.677,-5.579 -32,-16.684v-2.62A6.957,6.957 0,0 1,10.957 11h49.086A6.957,6.957 0,0 1,67 17.957v2.62zM67,24.777v28.266A6.957,6.957 0,0 1,60.043 60L10.957,60A6.957,6.957 0,0 1,4 53.043L4,24.776c15.87,10.658 26.39,15.963 32,15.963 4.983,0 15.134,-5.288 31,-15.962z"/>
+</vector>

+ 4 - 0
app/src/main/res/drawable/icon_share_facebook_wh.xml

@@ -0,0 +1,4 @@
+<vector android:height="18dp" android:viewportHeight="70"
+    android:viewportWidth="71" android:width="18dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#FEFEFE" android:fillType="evenOdd" android:pathData="M48,19v-9c0,0.254 -14.416,-1.977 -18,7 0.323,-0.224 -1.65,4.41 -1,12h-7v9h7v24h9V38h10v-9H38v-5c0.304,-0.187 0.332,-4.763 6,-5 -0.405,0.065 2.312,-0.08 4,0"/>
+</vector>

+ 4 - 0
app/src/main/res/drawable/icon_share_kakaotalk_wh.xml

@@ -0,0 +1,4 @@
+<vector android:height="18dp" android:viewportHeight="70"
+    android:viewportWidth="70" android:width="18dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#FFF" android:fillType="evenOdd" android:pathData="M35,10C19.536,10 7,19.762 7,32c0,7.559 5.194,14.345 13,19l-2,9c-0.748,0.236 -0.666,0.557 0,1 -0.295,-0.08 -0.095,0 1,0 -0.707,0 -0.539,-0.068 0,0l11,-8c1.604,0.494 3.285,0.623 5,1 15.46,-0.377 28,-10.14 28,-22 0,-12.238 -12.54,-22 -28,-22"/>
+</vector>

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 5 - 0
app/src/main/res/drawable/icon_share_url_wh.xml


+ 187 - 0
app/src/main/res/layout/dialog_current_page_share.xml

@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.constraint.ConstraintLayout
+  xmlns:android="http://schemas.android.com/apk/res/android"
+  xmlns:app="http://schemas.android.com/apk/res-auto"
+  xmlns:tools="http://schemas.android.com/tools"
+  android:layout_width="match_parent"
+  android:layout_height="match_parent">
+
+  <android.support.constraint.ConstraintLayout
+    android:id="@+id/constraintLayout"
+    android:layout_width="273dp"
+    android:layout_height="163dp"
+    app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintTop_toTopOf="parent">
+
+    <TextView
+      android:id="@+id/text_view"
+      android:layout_width="wrap_content"
+      android:layout_height="wrap_content"
+      android:layout_marginTop="36dp"
+      android:lineSpacingExtra="7sp"
+      android:textColor="#000000"
+      android:textSize="17.5sp"
+      app:layout_constraintStart_toStartOf="@+id/image_view_kakao"
+      app:layout_constraintTop_toTopOf="parent"
+      tools:text="현재 페이지 공유"/>
+
+    <ImageView
+      android:id="@+id/image_view_kakao"
+      android:layout_width="35dp"
+      android:layout_height="35dp"
+      android:layout_marginTop="20dp"
+      android:src="@drawable/circle_full"
+      app:layout_constraintHorizontal_chainStyle="packed"
+      app:layout_constraintEnd_toStartOf="@+id/image_view_facebook"
+      app:layout_constraintHorizontal_bias="0.5"
+      app:layout_constraintStart_toStartOf="parent"
+      app:layout_constraintTop_toBottomOf="@+id/text_view"/>
+
+    <ImageView
+      android:id="@+id/image_view_facebook"
+      android:layout_width="35dp"
+      android:layout_height="35dp"
+      android:layout_marginStart="33dp"
+      android:layout_marginTop="20dp"
+      android:src="@drawable/circle_full"
+      app:layout_constraintEnd_toStartOf="@+id/image_view_email"
+      app:layout_constraintHorizontal_bias="0.5"
+      app:layout_constraintStart_toEndOf="@+id/image_view_kakao"
+      app:layout_constraintTop_toBottomOf="@+id/text_view"/>
+
+    <ImageView
+      android:id="@+id/image_view_email"
+      android:layout_width="35dp"
+      android:layout_height="35dp"
+      android:layout_marginStart="32dp"
+      android:layout_marginTop="20dp"
+      android:src="@drawable/circle_full"
+      app:layout_constraintEnd_toStartOf="@+id/image_view_url"
+      app:layout_constraintHorizontal_bias="0.5"
+      app:layout_constraintStart_toEndOf="@+id/image_view_facebook"
+      app:layout_constraintTop_toBottomOf="@+id/text_view"/>
+
+    <ImageView
+      android:id="@+id/image_view_url"
+      android:layout_width="35dp"
+      android:layout_height="35dp"
+      android:layout_marginStart="32dp"
+      android:layout_marginTop="20dp"
+      android:src="@drawable/circle_full"
+      app:layout_constraintEnd_toEndOf="parent"
+      app:layout_constraintHorizontal_bias="0.5"
+      app:layout_constraintStart_toEndOf="@+id/image_view_email"
+      app:layout_constraintTop_toBottomOf="@+id/text_view"/>
+
+    <ImageView
+      android:layout_width="wrap_content"
+      android:layout_height="wrap_content"
+      app:layout_constraintBottom_toBottomOf="@+id/image_view_kakao"
+      app:layout_constraintEnd_toEndOf="@+id/image_view_kakao"
+      app:layout_constraintStart_toStartOf="@+id/image_view_kakao"
+      app:layout_constraintTop_toTopOf="@+id/image_view_kakao"
+      app:srcCompat="@drawable/icon_share_kakaotalk_wh"/>
+
+    <ImageView
+      android:layout_width="wrap_content"
+      android:layout_height="wrap_content"
+      app:layout_constraintBottom_toBottomOf="@+id/image_view_facebook"
+      app:layout_constraintEnd_toEndOf="@+id/image_view_facebook"
+      app:layout_constraintStart_toStartOf="@+id/image_view_facebook"
+      app:layout_constraintTop_toTopOf="@+id/image_view_facebook"
+      app:srcCompat="@drawable/icon_share_facebook_wh"/>
+
+    <ImageView
+      android:id="@+id/imageView3"
+      android:layout_width="wrap_content"
+      android:layout_height="wrap_content"
+      app:layout_constraintBottom_toBottomOf="@+id/image_view_email"
+      app:layout_constraintEnd_toEndOf="@+id/image_view_email"
+      app:layout_constraintStart_toStartOf="@+id/image_view_email"
+      app:layout_constraintTop_toTopOf="@+id/image_view_email"
+      app:srcCompat="@drawable/icon_share_email_wh"/>
+
+    <ImageView
+      android:id="@+id/imageView4"
+      android:layout_width="wrap_content"
+      android:layout_height="wrap_content"
+      app:layout_constraintBottom_toBottomOf="@+id/image_view_url"
+      app:layout_constraintEnd_toEndOf="@+id/image_view_url"
+      app:layout_constraintStart_toStartOf="@+id/image_view_url"
+      app:layout_constraintTop_toTopOf="@+id/image_view_url"
+      app:srcCompat="@drawable/icon_share_url_wh"/>
+
+    <ImageView
+      android:id="@+id/image_view_cancel"
+      android:layout_width="18dp"
+      android:layout_height="18dp"
+      android:layout_marginTop="37dp"
+      app:layout_constraintEnd_toEndOf="parent"
+      app:layout_constraintStart_toEndOf="@+id/text_view"
+      app:layout_constraintTop_toTopOf="parent"
+      app:srcCompat="@drawable/icon_header_close"/>
+
+    <TextView
+      android:id="@+id/textView"
+      android:layout_width="wrap_content"
+      android:layout_height="wrap_content"
+      android:layout_marginTop="8dp"
+      android:gravity="center_horizontal"
+      android:lineSpacingExtra="4sp"
+      android:text="@string/kakaotalk"
+      android:textColor="@color/C888888"
+      android:textSize="11sp"
+      app:layout_constraintEnd_toEndOf="@+id/image_view_kakao"
+      app:layout_constraintStart_toStartOf="@+id/image_view_kakao"
+      app:layout_constraintTop_toBottomOf="@+id/image_view_kakao"/>
+
+    <TextView
+      android:id="@+id/textView2"
+      android:layout_width="wrap_content"
+      android:layout_height="wrap_content"
+      android:layout_marginStart="21dp"
+      android:layout_marginTop="8dp"
+      android:gravity="center_horizontal"
+      android:lineSpacingExtra="4sp"
+      android:text="@string/facebook"
+      android:textColor="@color/C888888"
+      android:textSize="11sp"
+      app:layout_constraintEnd_toEndOf="@+id/image_view_facebook"
+      app:layout_constraintHorizontal_bias="0.777"
+      app:layout_constraintStart_toStartOf="@+id/image_view_facebook"
+      app:layout_constraintTop_toBottomOf="@+id/image_view_facebook"/>
+
+    <TextView
+      android:id="@+id/textView3"
+      android:layout_width="wrap_content"
+      android:layout_height="wrap_content"
+      android:layout_marginStart="24dp"
+      android:layout_marginTop="8dp"
+      android:gravity="center_horizontal"
+      android:lineSpacingExtra="4sp"
+      android:text="@string/email_korean"
+      android:textColor="@color/C888888"
+      android:textSize="11sp"
+      app:layout_constraintEnd_toEndOf="@+id/image_view_email"
+      app:layout_constraintHorizontal_bias="1.0"
+      app:layout_constraintStart_toStartOf="@+id/image_view_email"
+      app:layout_constraintTop_toBottomOf="@+id/image_view_email"/>
+
+    <TextView
+      android:layout_width="wrap_content"
+      android:layout_height="wrap_content"
+      android:layout_marginTop="7dp"
+      android:layout_marginEnd="8dp"
+      android:gravity="center_horizontal"
+      android:lineSpacingExtra="4sp"
+      android:text="@string/url"
+      android:textColor="@color/C888888"
+      android:textSize="11sp"
+      app:layout_constraintEnd_toEndOf="@+id/image_view_url"
+      app:layout_constraintStart_toStartOf="@+id/imageView4"
+      app:layout_constraintTop_toBottomOf="@+id/image_view_url"/>
+  </android.support.constraint.ConstraintLayout>
+
+</android.support.constraint.ConstraintLayout>

app/src/main/res/layout/promotion_pop_up.xml → app/src/main/res/layout/dialog_promotion.xml


+ 1 - 0
app/src/main/res/values/colors.xml

@@ -19,4 +19,5 @@
   <color name="CD0D0D0">#d0d0d0</color>
   <color name="CF13F15">#f13f15</color>
   <color name="CC4C4C4">#c4c4c4</color>
+  <color name="C888888">#888888</color>
 </resources>

+ 5 - 1
app/src/main/res/values/strings.xml

@@ -258,7 +258,6 @@
   <string name="pin_miss_match_error">간편암호가 일치하지 않습니다.</string>
   <string name="user_quit">회원탈퇴</string>
   <string name="user_quit_request">탈퇴신청</string>
-  <string name="email_korean">이메일</string>
 
   <string name="setting_update_information_name_validation">이름을 정확히 입력해주세요.</string>
   <string name="setting_update_birth_date_validation">YYYYMMDD 숫자를 입력해주세요.</string>
@@ -421,4 +420,9 @@
   <string name="menu_check_message2">상황에 따라 점검 시간이 단축/연장될 수 있습니다.</string>
   <string name="not_show">다시 보지 않기</string>
 
+  <string name="kakaotalk">카카오톡</string>
+  <string name="facebook">페이스북</string>
+  <string name="url">URL 복사</string>
+  <string name="email_korean">이메일</string>
+
 </resources>