Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shunchaki
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shohboz Qoraboev
shunchaki
Commits
d2c1ab1a
Commit
d2c1ab1a
authored
Jan 06, 2022
by
shohboz
Browse files
Options
Browse Files
Download
Plain Diff
[UPD]
MUS-312
, Feature, updated payment
parents
4fbcec0b
e6960d70
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1136 additions
and
44 deletions
+1136
-44
misc.xml
.idea/misc.xml
+1
-0
LanguageActivity.kt
...c/main/java/uz/mobiuz/mobiservice/dev/LanguageActivity.kt
+1
-0
CheckPhoneFragment.kt
...obiuz/mobiservice/dev/ui/auth/check/CheckPhoneFragment.kt
+3
-0
CONSTANTS.kt
...ain/java/uz/mobiuz/mobiservice/dev/ui/global/CONSTANTS.kt
+8
-1
BillingFragment.kt
...java/uz/mobiuz/mobiservice/dev/ui/home/BillingFragment.kt
+4
-6
ReplenishBalanceFragment.kt
...mobiuz/mobiservice/dev/ui/sdk/ReplenishBalanceFragment.kt
+381
-10
AddCardFragment.kt
.../uz/mobiuz/mobiservice/dev/ui/sdk/card/AddCardFragment.kt
+1
-1
SelectAnotherCard.kt
...uz/mobiuz/mobiservice/dev/ui/sdk/pay/SelectAnotherCard.kt
+53
-0
PaymentSuccessfulFragment.kt
...rvice/dev/ui/sdk/pay/success/PaymentSuccessfulFragment.kt
+78
-0
StringExtension.kt
...obiuz/mobiservice/dev/utils/extensions/StringExtension.kt
+21
-5
AmountFormat.kt
...va/uz/mobiuz/mobiservice/dev/utils/format/AmountFormat.kt
+26
-0
fragment_home.xml
app/src/main/res/layout/fragment_home.xml
+2
-2
fragment_payment_successful.xml
app/src/main/res/layout/fragment_payment_successful.xml
+175
-0
fragment_replenish_balance.xml
app/src/main/res/layout/fragment_replenish_balance.xml
+298
-7
layout_select_another_card.xml
app/src/main/res/layout/layout_select_another_card.xml
+66
-0
nav_graph_home.xml
app/src/main/res/navigation/nav_graph_home.xml
+18
-12
No files found.
.idea/misc.xml
View file @
d2c1ab1a
...
...
@@ -100,6 +100,7 @@
<entry
key=
"app/src/main/res/layout/fragment_profile.xml"
value=
"0.25625"
/>
<entry
key=
"app/src/main/res/layout/fragment_progress.xml"
value=
"0.33242753623188404"
/>
<entry
key=
"app/src/main/res/layout/fragment_register.xml"
value=
"0.25"
/>
<entry
key=
"app/src/main/res/layout/fragment_replenish_balance.xml"
value=
"0.25625"
/>
<entry
key=
"app/src/main/res/layout/fragment_safety.xml"
value=
"0.25625"
/>
<entry
key=
"app/src/main/res/layout/fragment_security.xml"
value=
"0.25625"
/>
<entry
key=
"app/src/main/res/layout/fragment_service.xml"
value=
"0.25625"
/>
...
...
app/src/main/java/uz/mobiuz/mobiservice/dev/LanguageActivity.kt
View file @
d2c1ab1a
...
...
@@ -45,6 +45,7 @@ class LanguageActivity : AppCompatActivity() {
pref
.
language
=
lang
AGRBilling
.
setLanguage
(
this
,
lang
)
startActivity
(
Intent
(
this
,
AuthActivity
::
class
.
java
))
finish
()
}
override
fun
onDestroy
()
{
...
...
app/src/main/java/uz/mobiuz/mobiservice/dev/ui/auth/check/CheckPhoneFragment.kt
View file @
d2c1ab1a
package
uz.mobiuz.mobiservice.dev.ui.auth.check
import
android.content.Intent
import
android.os.Bundle
import
android.view.View
import
android.view.animation.AnimationUtils
...
...
@@ -22,6 +23,7 @@ import uz.mobiuz.mobiservice.dev.utils.extensions.*
import
uz.mobiuz.mobiservice.dev.utils.hideKeyboard
import
dagger.hilt.android.AndroidEntryPoint
import
kotlinx.coroutines.flow.collect
import
uz.mobiuz.mobiservice.dev.LanguageActivity
@AndroidEntryPoint
class
CheckPhoneFragment
:
BaseFragment
(
R
.
layout
.
fragment_check_phone
)
{
...
...
@@ -50,6 +52,7 @@ class CheckPhoneFragment : BaseFragment(R.layout.fragment_check_phone) {
toolbar
.
setNavigationOnClickListener
{
requireActivity
().
onBackPressed
()
startActivity
(
Intent
(
requireContext
(),
LanguageActivity
::
class
.
java
))
}
viewGroup
.
setOnClickListener
(
object
:
ButtonClick
()
{
...
...
app/src/main/java/uz/mobiuz/mobiservice/dev/ui/global/CONSTANTS.kt
View file @
d2c1ab1a
...
...
@@ -38,7 +38,7 @@ object CONSTANTS {
const
val
PHONE2
=
"+998 97 130 09 09"
const
val
PHONE3
=
"+998 97 203 10 10"
const
val
DEFAULT_PHONE
=
"+998 97 999-99-99"
const
val
RESEND_CODE_TIME
=
6000L
const
val
RESEND_CODE_TIME
=
6000
0
L
const
val
BLOCKED_TIME
=
6000
...
...
@@ -98,4 +98,11 @@ object CONSTANTS {
const
val
API_SERVICE_INDEX
=
"service/index"
const
val
API_MAIN_ROAMING
=
"main/roaming"
//payment
const
val
PAY_MIN_AMOUNT
=
1000
const
val
PAY_MAX_AMOUNT
=
500
_000L
const
val
PAY_AMOUNT
=
"PAYMENT_SUCCESS_PAYMENT"
const
val
PAY_SAVE_CARD
=
"PAYMENT_SAVE_CARD"
const
val
PAY_CARD_NUMBER
=
"PAYMENT_CARD_NUMBER"
}
app/src/main/java/uz/mobiuz/mobiservice/dev/ui/home/BillingFragment.kt
View file @
d2c1ab1a
...
...
@@ -47,22 +47,20 @@ class BillingFragment : BaseFragment(R.layout.fragment_billing) {
}
})
}
/*
payments.setOnClickListener {
payments
.
setOnClickListener
{
getPhoneNumber
(
object
:
LoadPhoneNumber
{
override
fun
invoke
(
phoneNumber
:
String
)
{
pref.isShowPin = false
startActivity(AGRBilling.createReplenishBalanceIntent(requireContext(), phoneNumber))
navController
.
navigate
(
R
.
id
.
replenishBalanceFragment
,
bundleOf
(
CONSTANTS
.
PHONE
to
pref
.
userPhone
.
filter
{
it
.
isDigit
()
}))
}
})
}
monitoring
.
setOnClickListener
{
getPhoneNumber
(
object
:
LoadPhoneNumber
{
override
fun
invoke
(
phoneNumber
:
String
)
{
pref.isShowPin = false
startActivity(AGRBilling.createHistoryIntent(requireContext(), phoneNumber))
// navController.navigate(R.id.replenishBalanceFragment, bundleOf(CONSTANTS.PHONE to pref.userPhone.filter { it.isDigit() }))
}
})
}
*/
}
}
}
...
...
app/src/main/java/uz/mobiuz/mobiservice/dev/ui/sdk/ReplenishBalanceFragment.kt
View file @
d2c1ab1a
This diff is collapsed.
Click to expand it.
app/src/main/java/uz/mobiuz/mobiservice/dev/ui/sdk/card/AddCardFragment.kt
View file @
d2c1ab1a
...
...
@@ -81,7 +81,7 @@ class AddCardFragment : BaseFragment(R.layout.fragment_add_card) {
val
filteredCards
=
serverData
.
filter
{
it
.
cardHash
==
hash
}
if
(
filteredCards
.
isEmpty
())
{
//
viewModel.cardRegistration("998949125150", cardNumberValid!!, cardExpiryValid!!)
viewModel
.
cardRegistration
(
"998949125150"
,
cardNumberValid
!!
,
cardExpiryValid
!!
)
}
else
{
showToastMessage
(
getString
(
uz
.
agr
.
mobiuz
.
R
.
string
.
agr_mobi_uz_card_exist
))
}
...
...
app/src/main/java/uz/mobiuz/mobiservice/dev/ui/sdk/pay/SelectAnotherCard.kt
0 → 100644
View file @
d2c1ab1a
package
uz.mobiuz.mobiservice.dev.ui.sdk.pay
import
android.os.Bundle
import
android.view.LayoutInflater
import
android.view.View
import
android.view.ViewGroup
import
com.google.android.material.bottomsheet.BottomSheetDialogFragment
import
uz.mobiuz.mobiservice.dev.databinding.LayoutSelectAnotherCardBinding
/**
* Created by DostonbekIbragimov on 24/12/2021.
*/
class
SelectAnotherCard
:
BottomSheetDialogFragment
()
{
private
var
_bn
:
LayoutSelectAnotherCardBinding
?
=
null
private
val
bn
get
()
=
_bn
?:
throw
NullPointerException
(
"cannot inflate"
)
private
var
mListener
:
Listener
?
=
null
fun
setListener
(
listener
:
Listener
?)
{
this
.
mListener
=
listener
}
override
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?,
savedInstanceState
:
Bundle
?):
View
{
_bn
=
LayoutSelectAnotherCardBinding
.
inflate
(
inflater
)
return
bn
.
root
}
override
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?)
{
super
.
onViewCreated
(
view
,
savedInstanceState
)
setUpUI
()
}
private
fun
setUpUI
()
{
bn
.
apply
{
btnAnotherCard
.
setOnClickListener
{
mListener
?.
onClickAnotherCard
()
dismiss
()
}
btnAddCard
.
setOnClickListener
{
mListener
?.
onClickAddCard
()
dismiss
()
}
}
}
interface
Listener
{
fun
onClickAnotherCard
()
fun
onClickAddCard
()
}
}
\ No newline at end of file
app/src/main/java/uz/mobiuz/mobiservice/dev/ui/sdk/pay/success/PaymentSuccessfulFragment.kt
0 → 100644
View file @
d2c1ab1a
package
uz.mobiuz.mobiservice.dev.ui.sdk.pay.success
import
android.annotation.SuppressLint
import
android.os.Bundle
import
android.view.View
import
androidx.core.view.isVisible
import
androidx.navigation.NavController
import
androidx.navigation.fragment.NavHostFragment
import
dagger.hilt.android.AndroidEntryPoint
import
uz.agr.mobiuz.ui.fast_action.animation.formatPhone
import
uz.agr.sdk.coreui.extension.formattedMoney
import
uz.agr.sdk.coreui.extension.showSnackMessage
import
uz.mobiuz.mobiservice.dev.R
import
uz.mobiuz.mobiservice.dev.databinding.FragmentPaymentSuccessfulBinding
import
uz.mobiuz.mobiservice.dev.ui.base.BaseFragment
import
uz.mobiuz.mobiservice.dev.ui.global.CONSTANTS
import
uz.mobiuz.mobiservice.dev.utils.extensions.formatCard
/**
* Created by DostonbekIbragimov on 06/01/2022.
*/
@AndroidEntryPoint
class
PaymentSuccessfulFragment
:
BaseFragment
(
R
.
layout
.
fragment_payment_successful
)
{
private
var
_bn
:
FragmentPaymentSuccessfulBinding
?
=
null
private
val
bn
get
()
=
_bn
?:
throw
NullPointerException
(
"cannot inflate"
)
private
var
phone
=
""
private
var
amount
=
""
private
var
saveCard
:
Boolean
?
=
null
private
var
cardNumber
=
""
private
val
navController
:
NavController
by
lazy
(
LazyThreadSafetyMode
.
NONE
)
{
NavHostFragment
.
findNavController
(
this
)
}
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
phone
=
arguments
?.
getString
(
CONSTANTS
.
PHONE
,
""
)
?:
""
amount
=
arguments
?.
getString
(
CONSTANTS
.
PAY_AMOUNT
,
"0"
)
?:
"0"
saveCard
=
arguments
?.
getBoolean
(
CONSTANTS
.
PAY_SAVE_CARD
)
cardNumber
=
arguments
?.
getString
(
CONSTANTS
.
PAY_CARD_NUMBER
,
""
)
?:
""
}
override
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?)
{
_bn
=
FragmentPaymentSuccessfulBinding
.
bind
(
view
)
setUpUI
()
collects
()
}
@SuppressLint
(
"SetTextI18n"
)
override
fun
setUpUI
()
{
bn
.
apply
{
etAmount
.
text
=
"${amount.toLong().formattedMoney(showDecimal = false, tiyinToSum = false)} ${getString(uz.agr.mobiuz.R.string.agr_mobi_uz_curr)}"
etPhone
.
text
=
phone
.
formatPhone
(
minus
=
false
)
if
(
saveCard
==
true
)
{
showSnackMessage
(
getString
(
uz
.
agr
.
mobiuz
.
R
.
string
.
agr_mobi_uz_card_added
))
if
(
cardNumber
.
isNotEmpty
())
{
tvPanTitle
.
isVisible
=
true
etCardPan
.
text
=
cardNumber
.
formatCard
()
}
}
if
(
saveCard
==
false
)
{
showSnackMessage
(
getString
(
uz
.
agr
.
mobiuz
.
R
.
string
.
agr_mobi_uz_card_not_save
))
}
}
}
override
fun
collects
()
{
}
override
fun
onDestroy
()
{
_bn
=
null
super
.
onDestroy
()
}
}
\ No newline at end of file
app/src/main/java/uz/mobiuz/mobiservice/dev/utils/extensions/StringExtension.kt
View file @
d2c1ab1a
...
...
@@ -21,14 +21,14 @@ import androidx.fragment.app.FragmentActivity
import
androidx.recyclerview.widget.RecyclerView
import
com.google.android.material.textfield.TextInputEditText
import
com.google.gson.JsonSyntaxException
import
retrofit2.HttpException
import
uz.agr.mobiuz.ui.fast_action.animation.getPhoneMasked
import
uz.mobiuz.mobiservice.dev.R
import
uz.mobiuz.mobiservice.dev.model.Translate
import
uz.mobiuz.mobiservice.dev.network.model.Errors
import
uz.mobiuz.mobiservice.dev.ui.global.CONSTANTS
import
uz.mobiuz.mobiservice.dev.ui.global.ExitDialog
import
uz.mobiuz.mobiservice.dev.ui.global.OfflineBottomSheet
import
uz.mobiuz.mobiservice.dev.ui.global.SenderDialog
import
retrofit2.HttpException
import
uz.mobiuz.mobiservice.dev.utils.NetworkUtil
import
java.io.IOException
import
java.net.ConnectException
...
...
@@ -145,8 +145,8 @@ fun View.getStatusBarHeight(): Int {
fun
String
.
maskedTextMobi
():
String
{
var
newText
=
""
for
(
i
in
this
.
indices
){
if
(
i
==
2
||
i
==
5
||
i
==
7
)
{
for
(
i
in
this
.
indices
)
{
if
(
i
==
2
||
i
==
5
||
i
==
7
)
{
newText
+=
" "
}
newText
+=
this
[
i
]
...
...
@@ -290,4 +290,20 @@ fun List<Errors>.getMessage(): String {
message
+=
"${it.message}\n"
}
return
message
}
\ No newline at end of file
}
fun
String
.
formatCard
():
String
{
return
when
(
this
.
length
)
{
16
->
"${this.substring(0, 4)} ${this.substring(4, 6)}** **** ${this.substring(12, 16)}"
13
->
"${this.substring(0, 4)} ${this.substring(4, 6)}** **** ${this.substring(9, 13)}"
else
->
this
}
}
fun
String
.
formatPhone
(
minus
:
Boolean
=
true
):
String
{
return
when
(
this
.
length
)
{
12
->
getPhoneMasked
(
this
.
substring
(
this
.
length
-
9
,
this
.
length
),
minus
)
9
->
getPhoneMasked
(
this
,
minus
)
else
->
this
}
}
app/src/main/java/uz/mobiuz/mobiservice/dev/utils/format/AmountFormat.kt
0 → 100644
View file @
d2c1ab1a
package
uz.mobiuz.mobiservice.dev.utils.format
import
android.text.Editable
import
uz.mobiuz.mobiservice.dev.ui.global.TextWatcherWrapper
class
AmountFormat
(
private
val
validListener
:
(
Boolean
,
Long
)
->
Unit
)
:
TextWatcherWrapper
()
{
private
var
lock
=
false
override
fun
afterTextChanged
(
s
:
Editable
)
{
if
(
lock
)
return
lock
=
true
val
text
=
s
.
toString
().
replace
(
"\\D"
.
toRegex
(),
""
)
s
.
replace
(
0
,
s
.
length
,
text
)
var
i
=
s
.
length
-
3
while
(
i
>
0
&&
i
<
s
.
length
)
{
if
(
s
.
toString
()[
i
]
!=
' '
)
{
s
.
insert
(
i
,
" "
)
}
i
-=
3
}
lock
=
false
validListener
.
invoke
(
text
.
matches
(
"^[1-9][0-9]*$"
.
toRegex
()),
if
(
text
.
isNotEmpty
())
text
.
toLong
()
else
0L
)
}
}
\ No newline at end of file
app/src/main/res/layout/fragment_home.xml
View file @
d2c1ab1a
...
...
@@ -10,14 +10,14 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<ImageView
<
uz.mobiuz.mobiservice.dev.ui.home.Home
ImageView
android:id=
"@+id/home_image2"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:scaleType=
"fitXY"
android:src=
"@drawable/bgn_home"
/>
<ImageView
<
uz.mobiuz.mobiservice.dev.ui.home.Home
ImageView
android:id=
"@+id/home_image"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
app/src/main/res/layout/fragment_payment_successful.xml
0 → 100644
View file @
d2c1ab1a
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
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:id=
"@+id/paySuccessLayout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/_30sdp"
>
<androidx.appcompat.widget.LinearLayoutCompat
android:id=
"@+id/successPayment"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:gravity=
"center"
android:orientation=
"vertical"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<ImageView
android:id=
"@+id/image"
android:layout_width=
"@dimen/_70sdp"
android:layout_height=
"@dimen/_70sdp"
android:layout_gravity=
"center"
android:layout_marginTop=
"36dp"
android:adjustViewBounds=
"true"
android:src=
"@drawable/icon_female"
tools:ignore=
"ContentDescription"
/>
<TextView
android:id=
"@+id/description"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginHorizontal=
"26dp"
android:layout_marginTop=
"20dp"
android:gravity=
"center"
android:letterSpacing=
"0.05"
android:text=
"@string/agr_mobi_uz_payment_success"
android:textColor=
"@color/agr_black80"
android:textSize=
"32sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"7dp"
android:text=
"@string/agr_mobi_uz_summa_pay"
android:textColor=
"@color/agr_grey110"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/etAmount"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"6dp"
android:textColor=
"@color/primary110"
android:textSize=
"16sp"
android:textStyle=
"bold"
tools:text=
"25 000 UZC"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:text=
"@string/agr_mobi_uz_summa_phone"
android:textColor=
"@color/agr_grey110"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/etPhone"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"6dp"
android:textColor=
"@color/primary110"
android:textSize=
"16sp"
android:textStyle=
"bold"
tools:text=
"+998 99 055 21 09"
/>
<TextView
android:id=
"@+id/tvPanTitle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"20dp"
android:text=
"@string/agr_mobi_uz_summa_card_pan"
android:textColor=
"@color/agr_grey110"
android:textSize=
"12sp"
android:visibility=
"gone"
tools:visibility=
"visible"
/>
<TextView
android:id=
"@+id/etCardPan"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"6dp"
android:textColor=
"@color/primary110"
android:textSize=
"16sp"
android:textStyle=
"bold"
android:visibility=
"gone"
tools:text=
"8600 31** **** 88989"
tools:visibility=
"visible"
/>
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.LinearLayoutCompat
android:id=
"@+id/errorPayment"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginBottom=
"@dimen/_30sdp"
android:clickable=
"true"
android:focusable=
"true"
android:gravity=
"center"
android:orientation=
"vertical"
android:visibility=
"gone"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<ImageView
android:layout_width=
"@dimen/_70sdp"
android:layout_height=
"@dimen/_70sdp"
android:layout_gravity=
"center"
android:layout_marginTop=
"36dp"
android:adjustViewBounds=
"true"
android:scaleType=
"centerCrop"
android:src=
"@drawable/agr_female_error"
tools:ignore=
"ContentDescription"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginHorizontal=
"26dp"
android:layout_marginTop=
"20dp"
android:gravity=
"center"
android:letterSpacing=
"0.01"
android:text=
"@string/agr_mobi_uz_payment_error"
android:textColor=
"@color/agr_black80"
android:textSize=
"24sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"7dp"
android:text=
"@string/agr_mobi_uz_refresh_time"
android:textColor=
"@color/agr_grey110"
android:textSize=
"14sp"
/>
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
<Button
android:id=
"@+id/doneButton"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:layout_marginHorizontal=
"16dp"
android:layout_marginLeft=
"16dp"
android:layout_marginTop=
"30dp"
android:layout_marginRight=
"16dp"
android:layout_marginBottom=
"40dp"
android:text=
"@string/agr_mobi_uz_done"
app:layout_constraintBottom_toBottomOf=
"parent"
/>
</LinearLayout>
app/src/main/res/layout/fragment_replenish_balance.xml
View file @
d2c1ab1a
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/layout_select_another_card.xml
0 → 100644
View file @
d2c1ab1a
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/agr_rounded_dialog"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginTop=
"12dp"
android:contentDescription=
"@null"
app:srcCompat=
"@drawable/agr_bg_bottom_sheet_top"
/>
<TextView
android:id=
"@+id/txt_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginHorizontal=
"@dimen/_20sdp"
android:layout_marginTop=
"@dimen/_20sdp"
android:gravity=
"center"
android:text=
"@string/agr_mobi_uz_source_money_transfer"
android:textColor=
"@color/agr_text_color"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<Button
android:id=
"@+id/btnAnotherCard"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/_44sdp"
android:layout_gravity=
"center_horizontal"
android:layout_marginHorizontal=
"@dimen/_20sdp"
android:layout_marginTop=
"@dimen/_20sdp"
android:background=
"@drawable/agr_mobi_uz_button_grey"
android:elevation=
"0dp"
android:text=
"@string/agr_mobi_uz_pay_with_another_card"
android:textAllCaps=
"false"
android:textColor=
"@color/primary100"
android:textSize=
"15sp"
android:textStyle=
"bold"
android:translationZ=
"0dp"
/>
<Button
android:id=
"@+id/btnAddCard"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/_44sdp"
android:layout_gravity=
"center"
android:layout_marginHorizontal=
"@dimen/_20sdp"
android:layout_marginTop=
"@dimen/_12sdp"
android:background=
"@drawable/agr_mobi_uz_button"
android:elevation=
"0dp"
android:paddingVertical=
"12dp"
android:text=
"@string/agr_mobi_uz_add_card"
android:textAllCaps=
"false"
android:textColor=
"@color/agr_white"
android:textSize=
"15sp"
android:textStyle=
"bold"
android:translationZ=
"0dp"
/>
<Space
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/_24sdp"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/navigation/nav_graph_home.xml
View file @
d2c1ab1a
...
...
@@ -2,8 +2,8 @@
<navigation
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"
a
pp:startDestination=
"@id/homeFragment
"
a
ndroid:id=
"@+id/nav_graph_home
"
>
a
ndroid:id=
"@+id/nav_graph_home
"
a
pp:startDestination=
"@id/homeFragment
"
>
<fragment
android:id=
"@+id/homeFragment"
...
...
@@ -24,9 +24,9 @@
tools:layout=
"@layout/fragment_language"
/>
<fragment
android:id=
"@+id/supportFragment"
tools:layout=
"@layout/fragment_support"
android:name=
"uz.mobiuz.mobiservice.dev.ui.settings.SupportFragment"
android:label=
"SupportFragment"
/>
android:label=
"SupportFragment"
tools:layout=
"@layout/fragment_support"
/>
<fragment
android:id=
"@+id/securityFragment"
android:name=
"uz.mobiuz.mobiservice.dev.ui.settings.security.SecurityFragment"
...
...
@@ -40,9 +40,9 @@
<fragment
android:id=
"@+id/changePasswordFragment"
tools:layout=
"@layout/fragment_change_password"
android:name=
"uz.mobiuz.mobiservice.dev.ui.settings.security.ChangePasswordFragment"
android:label=
"CurrentPasswordFragment"
/>
android:label=
"CurrentPasswordFragment"
tools:layout=
"@layout/fragment_change_password"
/>
<fragment
android:id=
"@+id/billingFragment"
...
...
@@ -52,9 +52,9 @@
<fragment
android:id=
"@+id/pinFragment"
tools:layout=
"@layout/fragment_pin"
android:name=
"uz.mobiuz.mobiservice.dev.ui.global.PinFragment"
android:label=
"FullScreenFragment"
/>
android:label=
"FullScreenFragment"
tools:layout=
"@layout/fragment_pin"
/>
<fragment
android:id=
"@+id/motionFragment"
android:name=
"uz.mobiuz.mobiservice.dev.ui.home.MotionFragment"
...
...
@@ -62,9 +62,9 @@
tools:layout=
"@layout/fragment_motion"
/>
<fragment
android:id=
"@+id/cardsListFragment"
tools:layout=
"@layout/fragment_cards_list"
android:name=
"uz.mobiuz.mobiservice.dev.ui.sdk.card.CardsListFragment"
android:label=
"CardsListFragment"
/>
android:label=
"CardsListFragment"
tools:layout=
"@layout/fragment_cards_list"
/>
<fragment
android:id=
"@+id/monitoringLocalFragment"
android:name=
"uz.mobiuz.mobiservice.dev.ui.sdk.MonitoringLocalFragment"
...
...
@@ -77,9 +77,9 @@
tools:layout=
"@layout/fragment_replenish_balance"
/>
<fragment
android:id=
"@+id/addCardFragment"
tools:layout=
"@layout/fragment_add_card"
android:name=
"uz.mobiuz.mobiservice.dev.ui.sdk.card.AddCardFragment"
android:label=
"AddCardFragment"
/>
android:label=
"AddCardFragment"
tools:layout=
"@layout/fragment_add_card"
/>
<fragment
android:id=
"@+id/cardConfirmFragment"
tools:layout=
"@layout/fragment_card_confirm"
...
...
@@ -87,6 +87,12 @@
android:label=
"CardConfirmFragment"
/>
<fragment
android:id=
"@+id/paymentSuccessfulFragment"
android:name=
"uz.mobiuz.mobiservice.dev.ui.sdk.pay.success.PaymentSuccessfulFragment"
android:label=
"PaymentSuccessfulFragment"
tools:layout=
"@layout/fragment_payment_successful"
/>
<fragment
android:id=
"@+id/verificationFragment"
android:name=
"uz.mobiuz.mobiservice.dev.ui.auth.verification.VerificationFragment"
android:label=
"MyVerificationFragment"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment