Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ft 240123 feedback osama copy #8

Open
wants to merge 137 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
b972f47
trial for new ui
AhlaamK-tap Sep 26, 2022
f59a824
Header view changes
AhlaamK-tap Sep 27, 2022
6ba09d5
merchant close button
AhlaamK-tap Sep 27, 2022
722f7d7
updated
AhlaamK-tap Sep 27, 2022
fedff46
updated theme
AhlaamK-tap Sep 27, 2022
b73e5a4
added material cardview for circle
AhlaamK-tap Sep 27, 2022
70c04fc
revereted
AhlaamK-tap Sep 27, 2022
9a1729a
added horizontal list
AhlaamK-tap Sep 27, 2022
02a867d
update cardborder
AhlaamK-tap Sep 27, 2022
9044038
update icons for nfc and scan
AhlaamK-tap Sep 27, 2022
f01f760
update ui kit +locale
AhlaamK-tap Sep 28, 2022
57adaba
card we accept text
AhlaamK-tap Sep 28, 2022
51e9748
updated height of input 56dp
AhlaamK-tap Sep 28, 2022
d97beae
chnaged to get a value for holder name
AhlaamK-tap Sep 28, 2022
ffd66cc
rverted
AhlaamK-tap Sep 29, 2022
8fff3a9
56 to 80dp
AhlaamK-tap Sep 29, 2022
4eb7d9e
ui changes
AhlaamK-tap Oct 2, 2022
3ea83b4
quick fix
AhlaamK-tap Oct 2, 2022
2091de3
branding of tap logo added
AhlaamK-tap Oct 2, 2022
9808bcd
added save card view
AhlaamK-tap Oct 2, 2022
94c6b21
track tint
AhlaamK-tap Oct 3, 2022
3a0c2e8
switch changes
AhlaamK-tap Oct 3, 2022
f0a80af
refact the package name
AhlaamK-tap Oct 3, 2022
3c364bc
save for other checkbox
AhlaamK-tap Oct 3, 2022
cbb294a
re-arrange ui
AhlaamK-tap Oct 3, 2022
3cf5ec0
alignment
AhlaamK-tap Oct 3, 2022
0a7526c
Ui update
AhlaamK-tap Oct 4, 2022
88160f5
ui update
AhlaamK-tap Oct 16, 2022
06f98a4
update selected curr text
AhlaamK-tap Oct 16, 2022
4dc3473
buttontext change
AhlaamK-tap Oct 16, 2022
8336887
In progress detail view of card form
AhlaamK-tap Oct 19, 2022
aa1f2f9
update localization kit
AhlaamK-tap Oct 20, 2022
fb0ed56
trial adjustment
AhlaamK-tap Dec 4, 2022
79cec26
fix error for glide to vector
AhlaamK-tap Dec 4, 2022
762de93
added switch in input payment
AhlaamK-tap Dec 4, 2022
293b96d
changed selection height from 50dp to 45dp
AhlaamK-tap Dec 4, 2022
842bd09
moving alert view to paymentinout
AhlaamK-tap Dec 4, 2022
b4c9b8e
aligned the theme file as IOS
AhlaamK-tap Dec 5, 2022
fd3c932
updated dark theme url
AhlaamK-tap Dec 5, 2022
a628abb
updated light-dark icons
AhlaamK-tap Dec 5, 2022
26cfac0
updated icons resources
AhlaamK-tap Dec 5, 2022
714cd97
close icon update
AhlaamK-tap Dec 5, 2022
ad99531
re-adjusting the view
AhlaamK-tap Dec 5, 2022
f3efeb8
removed margin
AhlaamK-tap Dec 5, 2022
332c2cc
added back margin
AhlaamK-tap Dec 5, 2022
d68c6ab
tint color checkbox
AhlaamK-tap Dec 5, 2022
80a5fb4
removed margin top
AhlaamK-tap Dec 5, 2022
9604807
resetting margin top
AhlaamK-tap Dec 5, 2022
c2b03cc
added inline progress bar
AhlaamK-tap Dec 7, 2022
25eec22
checkout card
AhlaamK-tap Dec 11, 2022
7108ef9
ui updates
AhlaamK-tap Dec 12, 2022
64ecd5c
theme applied to contact detail view
AhlaamK-tap Dec 12, 2022
002f1b9
apply theme to shipping view
AhlaamK-tap Dec 12, 2022
b366173
adding arrows
AhlaamK-tap Dec 12, 2022
52acc16
minor enhancements
AhlaamK-tap Dec 12, 2022
d3661ef
reduced card elrevation
AhlaamK-tap Dec 12, 2022
d217e19
dummy detail added
AhlaamK-tap Dec 12, 2022
6bba760
header all caps
AhlaamK-tap Dec 13, 2022
8a2af0a
removed top
AhlaamK-tap Dec 13, 2022
dcb7b85
aaded seprator
AhlaamK-tap Dec 13, 2022
2e7f467
height aded for alert view
AhlaamK-tap Dec 13, 2022
089bf18
switchlayout placing
AhlaamK-tap Dec 13, 2022
57a0244
enhancements
AhlaamK-tap Dec 14, 2022
469a264
visibility adjusted
AhlaamK-tap Dec 19, 2022
4feb8f1
refact + fx
AhlaamK-tap Dec 21, 2022
33f4f94
23 to 25 top
AhlaamK-tap Dec 21, 2022
e2d29db
passed theme name in thememanager
AhlaamK-tap Jan 12, 2023
8348d15
updated locale
AhlaamK-tap Jan 15, 2023
ced20e1
savefor other locale
AhlaamK-tap Jan 15, 2023
f17f452
loading gif increased to 2
AhlaamK-tap Jan 17, 2023
6c08e5b
gif loader to 3
AhlaamK-tap Jan 17, 2023
da9a1b5
quick fixes
AhlaamK-tap Jan 17, 2023
5a71a8e
rverted gif to 3
AhlaamK-tap Jan 17, 2023
ce51877
rverted elevatop to 10
AhlaamK-tap Jan 17, 2023
1b487a9
enhanced click
AhlaamK-tap Jan 17, 2023
c0055ca
elevation chnged to 7 from 10
AhlaamK-tap Jan 17, 2023
dc5158e
elevation changed from 10 dp to 5dp
AhlaamK-tap Jan 17, 2023
5eb411d
elevation changed from 10dp to 2dp
AhlaamK-tap Jan 18, 2023
35c872d
remove background color null
AhlaamK-tap Jan 18, 2023
1f5566b
baclground for edittext
AhlaamK-tap Jan 18, 2023
cc0de08
trial background null - white
AhlaamK-tap Jan 18, 2023
41a4ec8
reverted
AhlaamK-tap Jan 18, 2023
9341705
bg stopped
AhlaamK-tap Jan 18, 2023
2c8cb4f
contactEmailET.setBackgroundColor
AhlaamK-tap Jan 18, 2023
50dece4
setbackground for ll
AhlaamK-tap Jan 18, 2023
bd13018
Trial fix
AhlaamK-tap Jan 18, 2023
dff6f20
elevtn removed
AhlaamK-tap Jan 18, 2023
41f4fea
change to tap chip from cardview
AhlaamK-tap Jan 22, 2023
53216cd
TapChip input bordering in progress
AhlaamK-tap Jan 22, 2023
9e80b7b
tapInput
AhlaamK-tap Jan 22, 2023
d57168c
updated
AhlaamK-tap Jan 22, 2023
7488d9f
darkthemeing
AhlaamK-tap Jan 22, 2023
4fd4c73
Tap header section
AhlaamK-tap Jan 22, 2023
915d8d6
header
AhlaamK-tap Jan 22, 2023
01c591a
button bg
AhlaamK-tap Jan 22, 2023
6ccd086
border unclick black modified
AhlaamK-tap Jan 22, 2023
a5ac4c4
radius lessed
AhlaamK-tap Jan 22, 2023
f9be070
unclick
AhlaamK-tap Jan 22, 2023
9ba59a3
add - modify chipborder
AhlaamK-tap Jan 22, 2023
6060bbc
modify color
AhlaamK-tap Jan 22, 2023
43b67e1
logo for black-white
AhlaamK-tap Jan 22, 2023
8166adc
Fix issue for logo size+conact detail background
AhlaamK-tap Jan 22, 2023
99790c4
color aded
AhlaamK-tap Jan 22, 2023
e8c302e
reduce logo h-w
AhlaamK-tap Jan 22, 2023
00568c3
ret
AhlaamK-tap Jan 22, 2023
83bf743
async view theme added
AhlaamK-tap Jan 23, 2023
75ce88f
async view enhancemnt
AhlaamK-tap Jan 23, 2023
050c0ce
brnadinhg layout
AhlaamK-tap Jan 23, 2023
4340321
enhancing
AhlaamK-tap Jan 23, 2023
42eed38
build err
AhlaamK-tap Jan 23, 2023
b8bed07
shadow
AhlaamK-tap Jan 23, 2023
5f10e5a
Merchant Header Section UI Issue is Fixed
aMaqboolTapPayments Jan 24, 2023
3a6764a
Fix for itemcount issue
AhlaamK-tap Jan 24, 2023
1867de2
Merge branch 'ui-enhancements_24Jan23' into FT_240123_Feedback_Osama
AhlaamK-tap Jan 24, 2023
b6e10df
comit
AhlaamK-tap Jan 24, 2023
45bbd65
poweredby
AhlaamK-tap Jan 24, 2023
a26ae92
bug
AhlaamK-tap Jan 24, 2023
a5d9b26
poweredby
AhlaamK-tap Jan 24, 2023
104b44c
poweredby
AhlaamK-tap Jan 24, 2023
c2c7a1f
poweredby bug fix
AhlaamK-tap Jan 24, 2023
4f37a7e
try
AhlaamK-tap Jan 24, 2023
2257e99
logo poweredby
AhlaamK-tap Jan 25, 2023
5700d5f
margin for label
AhlaamK-tap Jan 25, 2023
7515c8a
trial for borders
AhlaamK-tap Jan 25, 2023
89b80e2
sahdow
AhlaamK-tap Jan 25, 2023
f5198e3
border set to 8dp
AhlaamK-tap Jan 25, 2023
42eed4a
unclick radius
AhlaamK-tap Jan 25, 2023
075a5cc
blackshadow+white
AhlaamK-tap Jan 25, 2023
2e58add
reduce shadow
AhlaamK-tap Jan 25, 2023
653cfea
listview update theme
AhlaamK-tap Jan 25, 2023
5f689fb
update locale
AhlaamK-tap Jan 25, 2023
c129ea6
Bug fix
AhlaamK-tap Jan 25, 2023
7d7fd09
textview color
AhlaamK-tap Jan 25, 2023
5f3494f
fonts chnge
AhlaamK-tap Jan 25, 2023
31818d9
Font update
AhlaamK-tap Jan 25, 2023
a1a112c
Fawry Changes Done
aMaqboolTapPayments Jan 26, 2023
7545338
Fawry view padding values updated
aMaqboolTapPayments Jan 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 6 additions & 25 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,30 +60,30 @@ dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation project(':tapuilibrary')
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
// annotationProcessor 'com.android.databinding:compiler:3.1.4'
implementation 'com.google.android.material:material:1.2.1'
implementation "androidx.viewpager2:viewpager2:1.0.0"
implementation 'com.google.firebase:firebase-analytics:17.6.0'
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.github.Tap-Payments:TapCardInputKit-Android:0.1.0.36.50'
api 'com.github.Tap-Payments:TapCardInputKit-Android:0.1.0.36.50'
implementation 'com.github.Tap-Payments:TapCardInputKit-Android:0.1.0.36.102'
api 'com.github.Tap-Payments:TapCardInputKit-Android:0.1.0.36.102'
implementation 'com.github.Tap-Payments:TapNFCCardReaderKit-Android:0.0.1'
implementation "io.reactivex.rxjava2:rxjava:2.2.19"
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'com.github.Tap-Payments:TapCardScannerKit-Android:0.0.1.5'
implementation 'company.tap:PayCards-Tap-Android:0.1.6.4'
implementation 'io.alterac.blurkit:blurkit:1.1.0'
implementation 'androidx.biometric:biometric:1.0.1'
implementation 'androidx.biometric:biometric:1.1.0'
implementation "androidx.constraintlayout:constraintlayout:2.0.2"
implementation 'jp.wasabeef:blurry:4.0.0'
implementation "com.hbb20:ccp:2.4.1"
implementation 'jp.wasabeef:recyclerview-animators:4.0.1'
api 'com.github.Tap-Payments:LocalisationManager-Android:0.0.1.26'
api 'com.github.Tap-Payments:LocalisationManager-Android:0.0.1.30'

// implementation 'com.github.Tap-Payments:TapUIKit-Android:1.1.1.306'
// api 'com.github.Tap-Payments:TapUIKit-Android:1.1.1.306'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import android.content.Intent
import android.graphics.Color
import android.net.Uri
import android.os.Bundle
import android.provider.Browser
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
Expand All @@ -18,9 +17,9 @@ import company.tap.tapuilibrary.uikit.organisms.TapLoyaltyView
import company.tap.tapuisample.R

class LoyaltyViewActivity : AppCompatActivity() {
var loyaltyView: TapLoyaltyView?=null
var constraintt: ConstraintLayout?=null
var textViewClickable: TapTextView ?=null
var loyaltyView: TapLoyaltyView? = null
var constraintt: ConstraintLayout? = null
var textViewClickable: TapTextView? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_loyalty_view)
Expand All @@ -36,36 +35,43 @@ class LoyaltyViewActivity : AppCompatActivity() {
loyaltyView?.switchLoyalty?.setOnCheckedChangeListener { buttonView, isChecked ->
loyaltyView?.switchTheme()

if(isChecked){
loyaltyView?.linearLayout2?.visibility = View.VISIBLE
loyaltyView?.linearLayout3?.visibility = View.VISIBLE
if (isChecked) {
loyaltyView?.linearLayout2?.visibility = View.VISIBLE
loyaltyView?.linearLayout3?.visibility = View.VISIBLE

}else {
} else {

loyaltyView?.linearLayout2?.visibility = View.GONE
loyaltyView?.linearLayout3?.visibility = View.GONE

}
}
constraintt?.setBackgroundColor(Color.parseColor(ThemeManager.getValue("amountSectionView.backgroundColor")))
loyaltyView?.setLoyaltyHeaderDataSource(LoyaltyHeaderDataSource("ADCB","https://user-images.githubusercontent.com/57221514/191747750-544516b5-94d1-4b00-86d5-916f3da9f55a.png"))
loyaltyView?.setLoyaltyHeaderDataSource(
LoyaltyHeaderDataSource(
"ADCB",
"https://user-images.githubusercontent.com/57221514/191747750-544516b5-94d1-4b00-86d5-916f3da9f55a.png"
)
)

loyaltyView?.textViewClickable?.makeLinks(
Pair("(T&C)", View.OnClickListener {
val url = "https://www.adcb.com/en/tools-resources/adcb-privacy-policy/"
val intent = Intent(Intent.ACTION_VIEW)
intent.data = Uri.parse(url)
startActivity(intent)
Toast.makeText(this, "Terms of Service Clicked", Toast.LENGTH_SHORT).show()
}))
loyaltyView?.textViewClickable?.makeLinks(
Pair("(T&C)", View.OnClickListener {
val url = "https://www.adcb.com/en/tools-resources/adcb-privacy-policy/"
val intent = Intent(Intent.ACTION_VIEW)
intent.data = Uri.parse(url)
startActivity(intent)
Toast.makeText(this, "Terms of Service Clicked", Toast.LENGTH_SHORT).show()
})
)

loyaltyView?.editTextAmount?.doOnTextChanged { text, start, count, after ->
// action which will be invoked when the text is changing
if(text.toString()=="340"){
loyaltyView?.loyaltyAlertView?.alertMessage?.text = "Minimum redemption is AED 20.00 "
loyaltyView?.loyaltyAlertView?.visibility =View.VISIBLE
}else{
loyaltyView?.loyaltyAlertView?.visibility =View.GONE
if (text.toString() == "340") {
loyaltyView?.loyaltyAlertView?.alertMessage?.text =
"Minimum redemption is AED 20.00 "
loyaltyView?.loyaltyAlertView?.visibility = View.VISIBLE
} else {
loyaltyView?.loyaltyAlertView?.visibility = View.GONE
}
}

Expand All @@ -75,6 +81,4 @@ class LoyaltyViewActivity : AppCompatActivity() {
}




}
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ import android.os.Handler
import android.security.keystore.KeyGenParameterSpec
import android.security.keystore.KeyProperties
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.view.WindowManager
import android.view.*
import android.widget.Toast
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatDelegate
Expand Down Expand Up @@ -75,11 +72,11 @@ class MainActivity : BaseActivity(),
setLocale(this, LocalizationManager.getLocale(context).language)

LocalizationManager.loadTapLocale(resources, R.raw.lang)
// ThemeManager.loadTapTheme(resources, R.raw.defaultdarktheme, "defaultdarktheme")
ThemeManager.loadTapTheme(resources, R.raw.defaultdarktheme2, "defaultdarktheme")
// if (ThemeManager.currentTheme.isNotEmpty() && ThemeManager.currentTheme.contains("dark"))
ThemeManager.loadTapTheme(this,"https://gist.githubusercontent.com/AhlaamK-tap/976650c60952b525d51b739254cd417c/raw/575a99cc7e7c78f3523a1c8e29850cd09333c198/defaultlighttheme1.json")
// ThemeManager.loadTapTheme(this,"https://gist.githubusercontent.com/AhlaamK-tap/2ca0cbeaf430c6d40baa4d0700024848/raw/246e213d715b1d28e6b7adf633df17224d108c4d/darktheme.json")
// else ThemeManager.loadTapTheme(this,"https://gist.githubusercontent.com/AhlaamK-tap/9862436dff3b3ca222243dad3705ec6a/raw/76f9bd9d4e12e7d9dccf5f4969baf09c15a1ea47/lighttheme")
// ThemeManager.loadTapTheme(this,"https://gist.githubusercontent.com/AhlaamK-tap/976650c60952b525d51b739254cd417c/raw/4ca48d48f3cd5dc8a0d4ab49b788bb3e2e9bdc0c/defaultlighttheme1.json","lighttheme")
// ThemeManager.loadTapTheme(this,"https://gist.githubusercontent.com/AhlaamK-tap/2ca0cbeaf430c6d40baa4d0700024848/raw/aba506185d267ee9d379b5c84d71c8cbed1cbbf2/darktheme.json","darktheme")
// else ThemeManager.loadTapTheme(this,"https://gist.githubusercontent.com/AhlaamK-tap/9862436dff3b3ca222243dad3705ec6a/raw/76f9bd9d4e12e7d9dccf5f4969baf09c15a1ea47/lighttheme","lighttheme")


supportActionBar?.setBackgroundDrawable( ColorDrawable(Color.parseColor("#005959")))
Expand Down Expand Up @@ -219,9 +216,9 @@ class MainActivity : BaseActivity(),
// startActivity(Intent(this, ThemeTestActivity::class.java))

if (ThemeManager.currentTheme.isNotEmpty() && ThemeManager.currentTheme.contains("dark")) {
ThemeManager.loadTapTheme(resources, R.raw.defaultlighttheme, "defaultlighttheme")
ThemeManager.loadTapTheme(resources, R.raw.defaultlighttheme1, "defaultlighttheme")
}else{
ThemeManager.loadTapTheme(resources, R.raw.defaultdarktheme, "defaultdarktheme")
ThemeManager.loadTapTheme(resources, R.raw.defaultdarktheme1, "defaultdarktheme")
}

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
package company.tap.tapuisample.activities

import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import company.tap.tapuilibrary.themekit.ThemeManager
import company.tap.tapuilibrary.themekit.theme.TextViewTheme
import company.tap.tapuisample.R
import company.tap.tapuisample.adapters.context
import jp.wasabeef.blurry.Blurry

import kotlinx.android.synthetic.main.activity_theme_test.*

Expand All @@ -21,7 +16,7 @@ class ThemeTestActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_theme_test)
// initAppTheme(R.raw.defaultlighttheme)
ThemeManager.loadTapTheme(resources, R.raw.defaultdarktheme, "defaultdarktheme")
ThemeManager.loadTapTheme(resources, R.raw.defaultdarktheme1, "defaultdarktheme")


}
Expand All @@ -41,16 +36,16 @@ class ThemeTestActivity : AppCompatActivity() {


fun swap(view: View?) {
if (currentTheme == R.raw.defaultdarktheme) {
ThemeManager.loadTapTheme(resources, R.raw.defaultdarktheme, "defaultdarktheme")
if (currentTheme == R.raw.defaultdarktheme1) {
ThemeManager.loadTapTheme(resources, R.raw.defaultdarktheme1, "defaultdarktheme")
setTheme(R.style.AppTheme);
Toast.makeText(
applicationContext,
"Theme switched to defaultlighttheme",
Toast.LENGTH_SHORT
).show()
} else {
ThemeManager.loadTapTheme(resources, R.raw.defaultdarktheme, "defaultdarktheme")
ThemeManager.loadTapTheme(resources, R.raw.defaultdarktheme1, "defaultdarktheme")

setTheme(R.style.AppThemeBlack);
Toast.makeText(
Expand Down
Loading