Created
January 29, 2019 12:49
-
-
Save khojiakbar17/c95b80697caca253bee4eceb52ed3014 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.design.widget.CoordinatorLayout | |
android:id="@+id/clMain" | |
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="fill_parent" | |
android:layout_height="fill_parent" | |
android:background="#fafafa" | |
tools:context=".ui.main.TezCardActivity"> | |
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@drawable/app_background"/> | |
<android.support.design.widget.AppBarLayout | |
android:id="@+id/appBar" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:background="@android:color/transparent" | |
app:elevation="0dp"> | |
<android.support.design.widget.CollapsingToolbarLayout | |
android:id="@+id/collapsing_toolbar" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
app:contentScrim="@android:color/transparent" | |
app:layout_scrollFlags="scroll|snap"> | |
<LinearLayout | |
android:id="@+id/card_info_layout" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<FrameLayout | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content"> | |
<android.support.v7.widget.Toolbar | |
android:id="@+id/toolbar" | |
android:layout_width="fill_parent" | |
android:layout_height="?attr/actionBarSize"/> | |
<LinearLayout | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="4dp" | |
android:orientation="vertical"> | |
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="40dp" | |
android:layout_marginRight="8dp" | |
android:layout_marginTop="16dp"> | |
<TextView | |
android:id="@+id/tvCardName" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentLeft="true" | |
android:layout_gravity="center_vertical" | |
android:layout_toRightOf="@id/pbCardLoading" | |
android:ellipsize="end" | |
android:fontFamily="@font/sfui" | |
android:maxLines="1" | |
android:text="@string/default_card_name" | |
android:textColor="@color/colorPrimary" | |
android:textSize="18dp" /> | |
<ProgressBar | |
android:id="@+id/pbCardLoading" | |
android:layout_width="20dp" | |
android:layout_height="20dp" | |
android:layout_centerVertical="true" | |
android:layout_marginRight="10dp" | |
android:layout_toLeftOf="@id/ivInfo" | |
android:visibility="gone" /> | |
<ImageView | |
android:id="@+id/ivInfo" | |
android:layout_width="34dp" | |
android:layout_height="34dp" | |
android:fontFamily="@font/sfui" | |
android:layout_marginRight="10dp" | |
android:layout_toLeftOf="@id/ivMore" | |
android:layout_centerVertical="true" | |
android:padding="5dp" | |
android:src="@drawable/ic_info" | |
android:tint="@color/colorPrimary"/> | |
<ImageView | |
android:id="@+id/ivMore" | |
android:layout_width="40dp" | |
android:layout_height="32dp" | |
android:layout_alignParentRight="true" | |
android:layout_centerVertical="true" | |
android:paddingBottom="4dp" | |
android:paddingLeft="8dp" | |
android:paddingRight="8dp" | |
android:paddingTop="4dp" | |
android:src="@drawable/ic_more_vert_black_24dp" | |
android:tint="@color/colorPrimary" /> | |
</RelativeLayout> | |
<TextView | |
android:id="@+id/tvCardPan" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="@dimen/medium_offset" | |
android:layout_marginLeft="40dp" | |
android:fontFamily="@font/sfui" | |
android:text="00 000 000" | |
android:textColor="@color/black_87" | |
android:textSize="16dp" /> | |
</LinearLayout> | |
</FrameLayout> | |
<!--<android.support.v7.widget.RecyclerView--> | |
<!--android:id="@+id/rvCards"--> | |
<!--android:layout_width="fill_parent"--> | |
<!--android:layout_height="wrap_content"--> | |
<!--android:overScrollMode="never"--> | |
<!--app:layout_behavior=".behavior.ScrollBehavior" />--> | |
<com.yarolegovich.discretescrollview.DiscreteScrollView | |
android:id="@+id/rvCards" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:overScrollMode="never" | |
app:layout_behavior=".behavior.ScrollBehavior" | |
app:dsv_orientation="horizontal" /> | |
<LinearLayout | |
android:id="@+id/llInfoPanel" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="12dp" | |
android:layout_marginLeft="40dp" | |
android:layout_marginRight="40dp" | |
android:layout_marginTop="16dp" | |
android:orientation="horizontal" | |
android:gravity="bottom"> | |
<LinearLayout | |
android:layout_width="0dp" | |
android:layout_weight="1" | |
android:layout_height="40dp" | |
android:gravity="bottom" | |
android:orientation="horizontal"> | |
<TextView | |
android:id="@+id/tvCardBalance" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:fontFamily="@font/sfui" | |
android:includeFontPadding="false" | |
android:maxLines="1" | |
android:maxLength="15" | |
android:ellipsize="end" | |
android:maxWidth="200dp" | |
android:text="0" | |
android:textColor="@color/black_87" | |
android:textSize="32dp" /> | |
<TextView | |
android:id="@+id/tvAbr" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="5dp" | |
android:fontFamily="@font/sfui" | |
android:text="@string/abr" | |
android:maxLines="1" | |
android:textColor="@color/black_87" | |
android:textSize="20dp" /> | |
</LinearLayout> | |
<LinearLayout | |
android:id="@+id/llAddFunds" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
android:background="@drawable/shape_button_stroke_frame" | |
android:clickable="true" | |
android:focusable="true" | |
android:layout_marginBottom="4dp" | |
android:fontFamily="@font/sfui_bold"> | |
<TextView | |
android:id="@+id/btnAddFundsText" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@string/add_funds" | |
android:textColor="#0567c3" | |
android:paddingTop="4dp" | |
android:paddingBottom="4dp" | |
android:paddingLeft="12dp" | |
android:paddingRight="12dp" | |
android:textSize="@dimen/main_screen_add_funds_btn" /> | |
</LinearLayout> | |
</LinearLayout> | |
</LinearLayout> | |
</android.support.design.widget.CollapsingToolbarLayout> | |
</android.support.design.widget.AppBarLayout> | |
<FrameLayout | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior"> | |
<FrameLayout | |
android:id="@+id/flCardComponent" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:orientation="vertical" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" /> | |
<FrameLayout | |
android:id="@+id/flAddPanel" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_marginTop="30dp" | |
android:orientation="vertical" | |
android:visibility="visible"> | |
<android.support.v4.widget.NestedScrollView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:overScrollMode="never" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<TextView | |
android:layout_width="200dp" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:gravity="center" | |
android:text="@string/tezcard_tip" | |
android:textColor="@color/secondary_text_color" | |
android:layout_marginTop="16dp" | |
android:textSize="14dp" /> | |
<LinearLayout | |
android:layout_width="260dp" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:layout_marginLeft="20dp" | |
android:layout_marginRight="20dp" | |
android:layout_marginTop="30dp" | |
android:orientation="vertical"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal"> | |
<uz.click.tezcard.utils.ClearFocusEditText | |
android:id="@+id/etCardNumber" | |
android:layout_width="0dp" | |
android:layout_height="34dp" | |
android:layout_weight="1" | |
android:background="@android:color/transparent" | |
android:fontFamily="@font/sfui" | |
android:hint="@string/tezcard_et_hint_card" | |
android:imeOptions="actionNext" | |
android:inputType="numberSigned" | |
android:maxLength="10" | |
android:maxLines="1" | |
android:textColorHint="@color/secondary_text_color" | |
android:textSize="14dp" /> | |
<ImageView | |
android:id="@+id/ivBarcodeScan" | |
android:layout_width="34dp" | |
android:layout_height="34dp" | |
android:layout_gravity="center_vertical" | |
android:padding="5dp" | |
android:src="@drawable/ic_barcode_read" /> | |
</LinearLayout> | |
<View | |
android:layout_width="match_parent" | |
android:layout_height="2dp" | |
android:layout_marginTop="4dp" | |
android:background="@color/secondary_text_color" /> | |
</LinearLayout> | |
<TextView | |
android:id="@+id/tvError" | |
android:layout_width="260dp" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:text="ERROR" | |
android:gravity="center" | |
android:layout_marginTop="10dp" | |
android:textSize="14dp" | |
android:textColor="@color/error_color" | |
android:visibility="gone" | |
/> | |
<RelativeLayout | |
android:layout_width="260dp" | |
android:layout_height="36dp" | |
android:layout_gravity="center_horizontal" | |
android:layout_marginTop="35dp" | |
> | |
<TextView | |
android:id="@+id/tvAddCard" | |
android:layout_width="260dp" | |
android:layout_height="36dp" | |
android:background="@drawable/selector_button_frame" | |
android:clickable="true" | |
android:fontFamily="@font/sfui_bold" | |
android:gravity="center" | |
android:text="@string/add" | |
android:textColor="#fff" | |
android:textSize="14dp" /> | |
<ProgressBar | |
android:id="@+id/pbCardAddLoading" | |
android:layout_width="20dp" | |
android:layout_height="20dp" | |
android:layout_alignParentRight="true" | |
android:layout_centerVertical="true" | |
android:layout_marginRight="16dp" | |
/> | |
</RelativeLayout> | |
</LinearLayout> | |
</android.support.v4.widget.NestedScrollView> | |
</FrameLayout> | |
</FrameLayout> | |
</android.support.design.widget.CoordinatorLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:clickable="true" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
> | |
<TextView | |
android:id="@+id/tvNoTransactions" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_centerHorizontal="true" | |
android:layout_marginTop="48dp" | |
android:visibility="gone" | |
android:text="@string/transaction_no_items"/> | |
<android.support.v4.widget.SwipeRefreshLayout | |
android:id="@+id/srlContanier" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/rvTransactionHistory" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingTop="16dp" | |
android:paddingBottom="16dp" | |
android:clipToPadding="false" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior"/> | |
</android.support.v4.widget.SwipeRefreshLayout> | |
<View | |
android:layout_width="match_parent" | |
android:layout_height="8dp" | |
android:background="@drawable/shadow" | |
/> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment