Browse Source

Exrate added to splash screen

master
Preyea Regmi 5 years ago
parent
commit
08b9e648f8
  1. 18
      app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/SplashScreen.java
  2. 12
      app/src/main/res/drawable/curve_rectangle_grey_outline_white_bg.xml
  3. 312
      app/src/main/res/layout/activity_splash_screen_key_1.xml

18
app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/SplashScreen.java

@ -56,7 +56,7 @@ import butterknife.ButterKnife;
public class SplashScreen extends BaseActivity implements View.OnClickListener, LanguageSelectionRVAdapter.LanguageSelectionListener, SplashScreenPresenterInterface.SplashScreenContractInterfacee {
@BindView(R.id.view_pager)
ViewPager view_pager;
ConstraintLayout view_pager;
ViewPagerAVDSplashAdapter viewPagerAdapter;
@ -134,7 +134,7 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener,
if (savedInstanceState == null) {
languageViewTransitionManager.underlineTitleText(true);
presenter.checkCurrentSelectedLanguage();
view_pager.post(() -> viewPageChangeListener.onPageSelected(view_pager.getCurrentItem()));
// view_pager.post(() -> viewPageChangeListener.onPageSelected(view_pager.getCurrentItem()));
}
}
@ -144,14 +144,14 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener,
initAntiDebugger();
languageViewTransitionManager = new LanguageViewTransitionManager(this);
addBottomDots(0);
// addBottomDots(0);
view_pager.addOnPageChangeListener(viewPageChangeListener);
viewPagerAdapter = new ViewPagerAVDSplashAdapter(getSupportFragmentManager());
// viewPagerAdapter = new ViewPagerAdapter();
setupViewPagerAdapter();
view_pager.setAdapter(viewPagerAdapter);
view_pager.setOffscreenPageLimit(3);
// view_pager.addOnPageChangeListener(viewPageChangeListener);
// viewPagerAdapter = new ViewPagerAVDSplashAdapter(getSupportFragmentManager());
//// viewPagerAdapter = new ViewPagerAdapter();
// setupViewPagerAdapter();
// view_pager.setAdapter(viewPagerAdapter);
// view_pager.setOffscreenPageLimit(3);
languageSelectionRVAdapter = new LanguageSelectionRVAdapter();
languageSelectionRVAdapter.setLanguageSelectionListener(this);

12
app/src/main/res/drawable/curve_rectangle_grey_outline_white_bg.xml

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="5dp" />
<stroke
android:width="1.5dp"
android:color="@color/dark_gray" />
<solid
android:color="@color/background_gray"/>
</shape>

312
app/src/main/res/layout/activity_splash_screen_key_1.xml

@ -12,23 +12,23 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="false"
android:paddingBottom="@dimen/_16sdp"
android:paddingEnd="@dimen/_10sdp"
android:alpha="0"
android:paddingStart="@dimen/_16sdp"
android:paddingTop="@dimen/_26sdp"
android:paddingEnd="@dimen/_10sdp"
android:paddingBottom="@dimen/_16sdp"
android:scaleType="center"
android:src="@drawable/ic_back_white"
android:alpha="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="@dimen/_166sdp"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/_8sdp"
android:layout_width="@dimen/_140sdp"
android:layout_height="@dimen/_50sdp"
android:layout_marginStart="@dimen/_8sdp"
android:layout_marginTop="@dimen/_27sdp"
android:layout_marginEnd="@dimen/_8sdp"
android:src="@drawable/ic_logo_white_large"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -64,30 +64,275 @@
app:txtfontName="@string/semibold" />
<android.support.v7.widget.RecyclerView
android:clipToPadding = "false"
android:paddingTop="@dimen/_15sdp"
android:scrollbars="vertical"
android:id="@+id/languageRv"
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="#33000000"
android:layout_marginTop="@dimen/_18sdp"
android:background="#33000000"
android:clipToPadding="false"
android:paddingTop="@dimen/_15sdp"
android:scrollbars="vertical"
android:visibility="invisible"
app:layoutManager="android.support.v7.widget.LinearLayoutManager"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/selectedLanguageText"
app:layoutManager="android.support.v7.widget.LinearLayoutManager"
/>
app:layout_constraintTop_toBottomOf="@+id/selectedLanguageText" />
<android.support.v4.view.ViewPager
<android.support.constraint.ConstraintLayout
android:id="@+id/view_pager"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="16dp"
app:layout_constraintBottom_toTopOf="@+id/btn_login"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/selectedLanguageIcon">
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:padding="@dimen/_1sdp"
android:background="@drawable/curve_rectangle_grey_outline_white_bg"
android:orientation="horizontal"
app:layout_constraintBottom_toTopOf="@+id/circularIndexView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.38"
app:layout_constraintVertical_chainStyle="packed">
<LinearLayout
android:id="@+id/sendMoneyViewContainer"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:paddingLeft="@dimen/_4sdp"
android:paddingRight="@dimen/_4sdp">
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/_2sdp"
android:paddingLeft="@dimen/_2sdp"
android:paddingTop="@dimen/_2sdp"
android:text="@string/you_send_text"
android:textColor="@color/darkgray"
android:textSize="@dimen/_14ssp" />
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeEditText
android:id="@+id/sendAmountEdTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="@android:color/transparent"
android:digits="0,1,2,3,4,5,6,7,8,9"
android:gravity="center_vertical"
android:hint="100,000"
android:imeOptions="actionDone"
android:inputType="textMultiLine|number"
android:maxLength="11"
android:singleLine="false"
android:textColor="@color/colorPrimary"
android:textSize="@dimen/_24ssp"
app:edfontName="@string/semibold" />
</LinearLayout>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/curve_rectangle_blue_bg"
android:paddingStart="@dimen/_4sdp"
android:paddingEnd="@dimen/_4sdp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="horizontal">
<ImageView
android:layout_width="@dimen/_34sdp"
android:layout_height="@dimen/_30sdp"
android:layout_gravity="center"
android:background="@drawable/flag_south_korea" />
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:paddingStart="@dimen/_4sdp"
android:paddingLeft="@dimen/_4sdp"
android:paddingEnd="@dimen/_4sdp"
android:paddingRight="@dimen/_4sdp"
android:text="KRW"
android:textColor="@color/white"
android:textSize="@dimen/_12ssp"
android:textStyle="bold" />
<View
android:layout_width="@dimen/_18sdp"
android:layout_height="@dimen/_17sdp"
android:layout_gravity="center_vertical" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
<com.gmeremit.online.gmeremittance_native.customwidgets.CircularIndexView
android:id="@+id/circularIndexView"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:paddingStart="@dimen/_2sdp"
android:paddingEnd="@dimen/_2sdp"
app:layout_constraintBottom_toTopOf="@+id/circularIndexView2"
app:layout_constraintStart_toStartOf="@+id/linearLayout"
app:layout_constraintTop_toBottomOf="@+id/linearLayout" />
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:id="@+id/transferFeeTxtView"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:gravity="center_vertical"
android:textColor="@color/white"
app:txtfontName="@string/bold"
android:textSize="@dimen/_10ssp"
app:layout_constraintBottom_toBottomOf="@+id/circularIndexView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/circularIndexView"
app:layout_constraintTop_toTopOf="@+id/circularIndexView"
android:text="Transfer fee 5000 KRW" />
<com.gmeremit.online.gmeremittance_native.customwidgets.CircularIndexView
android:id="@+id/circularIndexView2"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:paddingStart="@dimen/_2sdp"
android:paddingEnd="@dimen/_2sdp"
app:layout_constraintBottom_toTopOf="@+id/receiveMoneyViewContainer"
app:layout_constraintStart_toStartOf="@+id/linearLayout"
app:layout_constraintTop_toBottomOf="@+id/circularIndexView" />
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:id="@+id/exchangeRateTxtView"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:gravity="center_vertical"
android:text="Exrate 0.093"
android:textColor="@color/white"
app:txtfontName="@string/bold"
android:textSize="@dimen/_10ssp"
app:layout_constraintBottom_toBottomOf="@+id/circularIndexView2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/circularIndexView2"
app:layout_constraintTop_toTopOf="@+id/circularIndexView2" />
<LinearLayout
android:id="@+id/receiveMoneyViewContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:background="@drawable/curve_rectangle_grey_outline_white_bg"
android:orientation="horizontal"
android:padding="@dimen/_1sdp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/selectedLanguageIcon" />
app:layout_constraintTop_toBottomOf="@+id/circularIndexView2">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:paddingLeft="@dimen/_4sdp"
android:paddingRight="@dimen/_4sdp">
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/_2sdp"
android:paddingLeft="@dimen/_2sdp"
android:paddingTop="@dimen/_2sdp"
android:text="@string/receipient_gets_text"
android:textColor="@color/darkgray"
android:textSize="@dimen/_14ssp" />
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeEditText
android:id="@+id/receiveAmountEdTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="@android:color/transparent"
android:digits="0,1,2,3,4,5,6,7,8,9"
android:gravity="center_vertical"
android:hint="100,000"
android:imeOptions="actionDone"
android:inputType="textMultiLine|number"
android:maxLength="11"
android:textColor="@color/colorPrimary"
android:textSize="@dimen/_24ssp"
app:edfontName="@string/semibold" />
</LinearLayout>
<FrameLayout
android:id="@+id/countrySelectionSpinner"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/curve_rectangle_blue_bg"
android:paddingStart="@dimen/_4sdp"
android:paddingEnd="@dimen/_4sdp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="horizontal">
<ImageView
android:id="@+id/recepientFlagImageView"
android:layout_width="@dimen/_34sdp"
android:layout_height="@dimen/_30sdp"
android:layout_gravity="center"
android:background="@drawable/flag_south_korea" />
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:id="@+id/recepientCurrencyTextView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:paddingStart="@dimen/_4sdp"
android:paddingLeft="@dimen/_4sdp"
android:paddingEnd="@dimen/_2sdp"
android:paddingRight="@dimen/_2sdp"
android:text="KRW"
android:textColor="@color/white"
android:textSize="@dimen/_12ssp"
android:textStyle="bold" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@drawable/outline_keyboard_arrow_down_white_24" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
</android.support.constraint.ConstraintLayout>
<LinearLayout
android:id="@+id/layoutDots"
@ -104,47 +349,54 @@
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeButton
android:id="@+id/btn_login"
android:layout_width="@dimen/_150sdp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/_8sdp"
android:layout_marginStart="16dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="@drawable/ic_blue_button_with_white_border"
android:text="@string/login_text"
android:textAllCaps="false"
android:textSize="@dimen/_11ssp"
android:textColor="@color/white"
app:layout_constraintBottom_toTopOf="@+id/btn_new_user"
android:textSize="@dimen/_11ssp"
app:layout_constraintBottom_toTopOf="@+id/appVersionTxtView"
app:layout_constraintEnd_toEndOf="@+id/btn_new_user"
app:layout_constraintStart_toStartOf="@+id/btn_new_user" />
app:layout_constraintEnd_toStartOf="@+id/btn_new_user"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/languageRv"
app:layout_constraintStart_toStartOf="parent" />
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeButton
android:id="@+id/btn_new_user"
android:layout_width="@dimen/_150sdp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/_8sdp"
android:layout_marginEnd="@dimen/_8sdp"
android:layout_marginStart="@dimen/_8sdp"
android:layout_marginStart="8dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:background="@drawable/ic_red_button_with_white_border"
android:text="@string/new_user_text"
android:textAllCaps="false"
android:textSize="@dimen/_11ssp"
android:textColor="@color/white"
android:textSize="@dimen/_11ssp"
app:layout_constraintBottom_toTopOf="@+id/appVersionTxtView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent" />
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/btn_login" />
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:id="@+id/appVersionTxtView"
android:layout_width="wrap_content"
tools:text=" 2.2.3 "
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/_8sdp"
android:layout_marginEnd="@dimen/_8sdp"
android:layout_marginBottom="@dimen/_8sdp"
android:layout_marginBottom="@dimen/_5sdp"
android:layout_marginTop="@dimen/_8sdp"
android:textColor="@color/white"
android:textSize="@dimen/_10ssp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
/>
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
Loading…
Cancel
Save