Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
Scan QR Code Barcode Reader
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
Scan QR Code Barcode Reader
Commits
9abc3994
Commit
9abc3994
authored
Dec 30, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
84d7f1a3
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
607 additions
and
316 deletions
+607
-316
EmailCodeActivity.kt
...c/main/java/com/base/scanqr/ui/email/EmailCodeActivity.kt
+4
-0
ScanFragment.kt
app/src/main/java/com/base/scanqr/ui/main/ScanFragment.kt
+113
-48
ProductCodeActivity.kt
...in/java/com/base/scanqr/ui/product/ProductCodeActivity.kt
+5
-0
TextCodeActivity.kt
...src/main/java/com/base/scanqr/ui/text/TextCodeActivity.kt
+5
-1
WebsiteCodeActivity.kt
...in/java/com/base/scanqr/ui/website/WebsiteCodeActivity.kt
+5
-0
WifiCodeActivity.kt
...src/main/java/com/base/scanqr/ui/wifi/WifiCodeActivity.kt
+4
-0
activity_email.xml
app/src/main/res/layout/activity_email.xml
+1
-0
activity_email_code.xml
app/src/main/res/layout/activity_email_code.xml
+40
-1
activity_product_code.xml
app/src/main/res/layout/activity_product_code.xml
+40
-1
activity_text_code.xml
app/src/main/res/layout/activity_text_code.xml
+40
-2
activity_website_code.xml
app/src/main/res/layout/activity_website_code.xml
+40
-1
activity_wifi_code.xml
app/src/main/res/layout/activity_wifi_code.xml
+310
-262
czhanweitu.png
app/src/main/res/mipmap-xxhdpi/czhanweitu.png
+0
-0
No files found.
app/src/main/java/com/base/scanqr/ui/email/EmailCodeActivity.kt
View file @
9abc3994
...
...
@@ -4,6 +4,7 @@ import android.os.Environment
import
androidx.activity.addCallback
import
androidx.core.view.updatePadding
import
com.base.scanqr.R
import
com.base.scanqr.ads.AdsMgr
import
com.base.scanqr.base.BaseActivity
import
com.base.scanqr.bean.EmailUIBean
import
com.base.scanqr.bean.FunctionUIBean.Companion.KEY_EMAIL
...
...
@@ -31,11 +32,14 @@ class EmailCodeActivity : BaseActivity<ActivityEmailCodeBinding>(ActivityEmailCo
super
.
onResumeOneShoot
()
val
flag
=
changeLanguage
()
if
(
flag
)
return
AdsMgr
.
showBanner
(
binding
.
flBanner
,
false
)
}
override
fun
initView
()
{
super
.
initView
()
binding
.
clTop
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
AdsMgr
.
showNative
(
binding
.
flAd
,
R
.
layout
.
layout_admob_item
)
val
data
=
intent
.
extras
?.
getString
(
"data"
)
email
=
Gson
().
fromJson
(
data
,
EmailUIBean
::
class
.
java
)
...
...
app/src/main/java/com/base/scanqr/ui/main/ScanFragment.kt
View file @
9abc3994
...
...
@@ -70,26 +70,8 @@ class ScanFragment : BaseFragment<FragmentScanBinding>(FragmentScanBinding::infl
}
qrImageAnalyzer
.
parseAction
=
{
qrCodeValue
,
valueType
->
val
activity
=
requireActivity
()
as
MainActivity
?
if
(
activity
==
null
)
{
handleScan
(
qrCodeValue
,
valueType
)
}
else
{
AdsMgr
.
showInsert
(
activity
,
false
,
object
:
AdsShowCallBack
()
{
override
fun
close
(
where
:
Int
)
{
handleScan
(
qrCodeValue
,
valueType
)
}
override
fun
failed
(
where
:
Int
)
{
handleScan
(
qrCodeValue
,
valueType
)
}
override
fun
googleFailed
(
where
:
Int
)
{
handleScan
(
qrCodeValue
,
valueType
)
}
})
}
}
val
activity
=
requireActivity
()
as
MainActivity
?
activity
?:
return
activity
.
cameraUtils
?.
startBind
(
binding
.
previewView
,
qrImageAnalyzer
)
...
...
@@ -138,12 +120,18 @@ class ScanFragment : BaseFragment<FragmentScanBinding>(FragmentScanBinding::infl
if
(
valueType
==
Barcode
.
TYPE_PRODUCT
)
{
if
(
scanJump
.
get
())
return
scanJump
.
set
(
true
)
activity
.
startActivity
(
Intent
(
activity
,
ProductCodeActivity
::
class
.
java
).
apply
{
val
bean
=
ProductUIBean
()
bean
.
content
=
qrCodeValue
bean
.
needCreate
=
true
bean
.
createType
=
CREATE_TYPE_SCAN
putExtra
(
"data"
,
Gson
().
toJson
(
bean
))
AdsMgr
.
showInsert
(
activity
,
false
,
object
:
AdsShowCallBack
()
{
override
fun
close
(
where
:
Int
)
{
jumpProductCodeActivity
(
activity
,
qrCodeValue
)
}
override
fun
failed
(
where
:
Int
)
{
jumpProductCodeActivity
(
activity
,
qrCodeValue
)
}
override
fun
googleFailed
(
where
:
Int
)
{
jumpProductCodeActivity
(
activity
,
qrCodeValue
)
}
})
return
}
...
...
@@ -151,11 +139,18 @@ class ScanFragment : BaseFragment<FragmentScanBinding>(FragmentScanBinding::infl
if
(
QRCodeUtils
.
isWifiQR
(
qrCodeValue
))
{
if
(
scanJump
.
get
())
return
scanJump
.
set
(
true
)
activity
.
startActivity
(
Intent
(
activity
,
WifiCodeActivity
::
class
.
java
).
apply
{
val
bean
=
QRCodeUtils
.
createWifiBean
(
qrCodeValue
)
bean
.
needCreate
=
true
bean
.
createType
=
CREATE_TYPE_SCAN
putExtra
(
"data"
,
Gson
().
toJson
(
bean
))
AdsMgr
.
showInsert
(
activity
,
false
,
object
:
AdsShowCallBack
()
{
override
fun
close
(
where
:
Int
)
{
jumpWifiCodeActivity
(
activity
,
qrCodeValue
)
}
override
fun
failed
(
where
:
Int
)
{
jumpWifiCodeActivity
(
activity
,
qrCodeValue
)
}
override
fun
googleFailed
(
where
:
Int
)
{
jumpWifiCodeActivity
(
activity
,
qrCodeValue
)
}
})
return
}
...
...
@@ -163,30 +158,65 @@ class ScanFragment : BaseFragment<FragmentScanBinding>(FragmentScanBinding::infl
if
(
QRCodeUtils
.
isEmailQR
(
qrCodeValue
))
{
if
(
scanJump
.
get
())
return
scanJump
.
set
(
true
)
activity
.
startActivity
(
Intent
(
activity
,
EmailCodeActivity
::
class
.
java
).
apply
{
val
bean
=
QRCodeUtils
.
createEmailBean
(
qrCodeValue
)
bean
.
needCreate
=
true
bean
.
createType
=
CREATE_TYPE_SCAN
putExtra
(
"data"
,
Gson
().
toJson
(
bean
))
AdsMgr
.
showInsert
(
activity
,
false
,
object
:
AdsShowCallBack
()
{
override
fun
close
(
where
:
Int
)
{
jumpEmailCodeActivity
(
activity
,
qrCodeValue
)
}
override
fun
failed
(
where
:
Int
)
{
jumpEmailCodeActivity
(
activity
,
qrCodeValue
)
}
override
fun
googleFailed
(
where
:
Int
)
{
jumpEmailCodeActivity
(
activity
,
qrCodeValue
)
}
})
return
}
if
(
QRCodeUtils
.
isWebsiteQR
(
qrCodeValue
))
{
if
(
scanJump
.
get
())
return
scanJump
.
set
(
true
)
activity
.
startActivity
(
Intent
(
activity
,
WebsiteCodeActivity
::
class
.
java
).
apply
{
val
bean
=
QRCodeUtils
.
createWebsiteBean
(
qrCodeValue
)
bean
.
needCreate
=
true
bean
.
createType
=
CREATE_TYPE_SCAN
putExtra
(
"data"
,
Gson
().
toJson
(
bean
))
AdsMgr
.
showInsert
(
activity
,
false
,
object
:
AdsShowCallBack
()
{
override
fun
close
(
where
:
Int
)
{
jumpWebsiteCodeActivity
(
activity
,
qrCodeValue
)
}
override
fun
failed
(
where
:
Int
)
{
jumpWebsiteCodeActivity
(
activity
,
qrCodeValue
)
}
override
fun
googleFailed
(
where
:
Int
)
{
jumpWebsiteCodeActivity
(
activity
,
qrCodeValue
)
}
})
return
}
if
(
qrCodeValue
.
isEmpty
())
{
if
(
valueType
==
Barcode
.
TYPE_TEXT
)
{
if
(
scanJump
.
get
())
return
scanJump
.
set
(
true
)
AdsMgr
.
showInsert
(
activity
,
false
,
object
:
AdsShowCallBack
()
{
override
fun
close
(
where
:
Int
)
{
jumpTextCodeActivity
(
activity
,
qrCodeValue
)
}
override
fun
failed
(
where
:
Int
)
{
jumpTextCodeActivity
(
activity
,
qrCodeValue
)
}
override
fun
googleFailed
(
where
:
Int
)
{
jumpTextCodeActivity
(
activity
,
qrCodeValue
)
}
})
return
}
}
private
fun
jumpTextCodeActivity
(
activity
:
MainActivity
,
qrCodeValue
:
String
)
{
activity
.
startActivity
(
Intent
(
activity
,
TextCodeActivity
::
class
.
java
).
apply
{
val
bean
=
TextUIBean
()
bean
.
content
=
qrCodeValue
...
...
@@ -194,8 +224,43 @@ class ScanFragment : BaseFragment<FragmentScanBinding>(FragmentScanBinding::infl
bean
.
createType
=
CREATE_TYPE_SCAN
putExtra
(
"data"
,
Gson
().
toJson
(
bean
))
})
return
}
private
fun
jumpWebsiteCodeActivity
(
activity
:
MainActivity
,
qrCodeValue
:
String
)
{
activity
.
startActivity
(
Intent
(
activity
,
WebsiteCodeActivity
::
class
.
java
).
apply
{
val
bean
=
QRCodeUtils
.
createWebsiteBean
(
qrCodeValue
)
bean
.
needCreate
=
true
bean
.
createType
=
CREATE_TYPE_SCAN
putExtra
(
"data"
,
Gson
().
toJson
(
bean
))
})
}
private
fun
jumpEmailCodeActivity
(
activity
:
MainActivity
,
qrCodeValue
:
String
)
{
activity
.
startActivity
(
Intent
(
activity
,
EmailCodeActivity
::
class
.
java
).
apply
{
val
bean
=
QRCodeUtils
.
createEmailBean
(
qrCodeValue
)
bean
.
needCreate
=
true
bean
.
createType
=
CREATE_TYPE_SCAN
putExtra
(
"data"
,
Gson
().
toJson
(
bean
))
})
}
private
fun
jumpWifiCodeActivity
(
activity
:
MainActivity
,
qrCodeValue
:
String
)
{
activity
.
startActivity
(
Intent
(
activity
,
WifiCodeActivity
::
class
.
java
).
apply
{
val
bean
=
QRCodeUtils
.
createWifiBean
(
qrCodeValue
)
bean
.
needCreate
=
true
bean
.
createType
=
CREATE_TYPE_SCAN
putExtra
(
"data"
,
Gson
().
toJson
(
bean
))
})
}
private
fun
jumpProductCodeActivity
(
activity
:
MainActivity
,
qrCodeValue
:
String
)
{
activity
.
startActivity
(
Intent
(
activity
,
ProductCodeActivity
::
class
.
java
).
apply
{
val
bean
=
ProductUIBean
()
bean
.
content
=
qrCodeValue
bean
.
needCreate
=
true
bean
.
createType
=
CREATE_TYPE_SCAN
putExtra
(
"data"
,
Gson
().
toJson
(
bean
))
})
}
override
fun
onStop
()
{
...
...
app/src/main/java/com/base/scanqr/ui/product/ProductCodeActivity.kt
View file @
9abc3994
...
...
@@ -8,6 +8,7 @@ import android.widget.Toast
import
androidx.activity.addCallback
import
androidx.core.view.updatePadding
import
com.base.scanqr.R
import
com.base.scanqr.ads.AdsMgr
import
com.base.scanqr.base.BaseActivity
import
com.base.scanqr.bean.FunctionUIBean
import
com.base.scanqr.bean.ProductUIBean
...
...
@@ -37,10 +38,14 @@ class ProductCodeActivity : BaseActivity<ActivityProductCodeBinding>(ActivityPro
super
.
onResumeOneShoot
()
val
flag
=
changeLanguage
()
if
(
flag
)
return
AdsMgr
.
showBanner
(
binding
.
flBanner
,
false
)
}
override
fun
initView
()
{
super
.
initView
()
binding
.
clTop
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
AdsMgr
.
showNative
(
binding
.
flAd
,
R
.
layout
.
layout_admob_item
)
val
data
=
intent
.
extras
?.
getString
(
"data"
)
data
?.
let
{
...
...
app/src/main/java/com/base/scanqr/ui/text/TextCodeActivity.kt
View file @
9abc3994
...
...
@@ -8,6 +8,7 @@ import android.widget.Toast
import
androidx.activity.addCallback
import
androidx.core.view.updatePadding
import
com.base.scanqr.R
import
com.base.scanqr.ads.AdsMgr
import
com.base.scanqr.base.BaseActivity
import
com.base.scanqr.bean.FunctionUIBean
import
com.base.scanqr.bean.ScanBean
...
...
@@ -35,11 +36,14 @@ class TextCodeActivity : BaseActivity<ActivityTextCodeBinding>(ActivityTextCodeB
super
.
onResumeOneShoot
()
val
flag
=
changeLanguage
()
if
(
flag
)
return
AdsMgr
.
showBanner
(
binding
.
flBanner
,
false
)
}
override
fun
initView
()
{
super
.
initView
()
binding
.
clTop
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
AdsMgr
.
showNative
(
binding
.
flAd
,
R
.
layout
.
layout_admob_item
)
val
data
=
intent
.
extras
?.
getString
(
"data"
)
data
?.
let
{
...
...
app/src/main/java/com/base/scanqr/ui/website/WebsiteCodeActivity.kt
View file @
9abc3994
...
...
@@ -5,6 +5,7 @@ import androidx.activity.addCallback
import
androidx.core.view.updatePadding
import
com.base.scanqr.BuildConfig
import
com.base.scanqr.R
import
com.base.scanqr.ads.AdsMgr
import
com.base.scanqr.base.BaseActivity
import
com.base.scanqr.bean.FunctionUIBean
import
com.base.scanqr.bean.WebsiteUIBean
...
...
@@ -30,10 +31,14 @@ class WebsiteCodeActivity : BaseActivity<ActivityWebsiteCodeBinding>(ActivityWeb
super
.
onResumeOneShoot
()
val
flag
=
changeLanguage
()
if
(
flag
)
return
AdsMgr
.
showBanner
(
binding
.
flBanner
,
false
)
}
override
fun
initView
()
{
super
.
initView
()
binding
.
clTop
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
AdsMgr
.
showNative
(
binding
.
flAd
,
R
.
layout
.
layout_admob_item
)
val
data
=
intent
.
extras
?.
getString
(
"data"
)
...
...
app/src/main/java/com/base/scanqr/ui/wifi/WifiCodeActivity.kt
View file @
9abc3994
...
...
@@ -4,6 +4,7 @@ import android.os.Environment
import
androidx.activity.addCallback
import
androidx.core.view.updatePadding
import
com.base.scanqr.R
import
com.base.scanqr.ads.AdsMgr
import
com.base.scanqr.base.BaseActivity
import
com.base.scanqr.bean.FunctionUIBean
import
com.base.scanqr.bean.WifiUIBean
...
...
@@ -32,11 +33,14 @@ class WifiCodeActivity : BaseActivity<ActivityWifiCodeBinding>(ActivityWifiCodeB
super
.
onResumeOneShoot
()
val
flag
=
changeLanguage
()
if
(
flag
)
return
AdsMgr
.
showBanner
(
binding
.
flBanner
,
false
)
}
override
fun
initView
()
{
super
.
initView
()
binding
.
clTop
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
AdsMgr
.
showNative
(
binding
.
flAd
,
R
.
layout
.
layout_admob_item
)
val
data
=
intent
.
extras
?.
getString
(
"data"
)
LogEx
.
logDebug
(
TAG
,
"data=$data"
)
...
...
app/src/main/res/layout/activity_email.xml
View file @
9abc3994
...
...
@@ -152,6 +152,7 @@
android:background=
"@drawable/bg_f4f4f4_15"
android:gravity=
"start"
android:hint=
"@string/enter_your_message_here"
android:maxLength=
"1000"
android:padding=
"14dp"
android:singleLine=
"true"
android:textColor=
"@color/black"
...
...
app/src/main/res/layout/activity_email_code.xml
View file @
9abc3994
...
...
@@ -49,7 +49,8 @@
<androidx.core.widget.NestedScrollView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"0dp"
app:layout_constraintBottom_toTopOf=
"@id/fl_banner"
app:layout_constraintTop_toBottomOf=
"@id/cl_top"
>
<LinearLayout
...
...
@@ -75,6 +76,37 @@
</androidx.cardview.widget.CardView>
<com.base.scanqr.ads.NativeParentView
android:id=
"@+id/fl_ad"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"16dp"
android:layout_marginTop=
"24dp"
android:background=
"@drawable/bg_ecf6ff_20"
android:minHeight=
"133dp"
>
<io.supercharge.shimmerlayout.ShimmerLayout
android:id=
"@+id/shimmerLayout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginHorizontal=
"16dp"
app:shimmer_angle=
"25"
app:shimmer_animation_duration=
"2000"
app:shimmer_auto_start=
"true"
app:shimmer_color=
"#33ffffff"
app:shimmer_mask_width=
"0.2"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@mipmap/czhanweitu"
tools:ignore=
"ContentDescription,ImageContrastCheck"
/>
</io.supercharge.shimmerlayout.ShimmerLayout>
</com.base.scanqr.ads.NativeParentView>
<androidx.cardview.widget.CardView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
@@ -319,4 +351,11 @@
</androidx.core.widget.NestedScrollView>
<FrameLayout
android:id=
"@id/fl_banner"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
app:layout_constraintBottom_toBottomOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_product_code.xml
View file @
9abc3994
...
...
@@ -47,7 +47,8 @@
<androidx.core.widget.NestedScrollView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"0dp"
app:layout_constraintBottom_toTopOf=
"@id/fl_banner"
app:layout_constraintTop_toBottomOf=
"@id/cl_top"
>
<LinearLayout
...
...
@@ -74,6 +75,38 @@
</androidx.cardview.widget.CardView>
<com.base.scanqr.ads.NativeParentView
android:id=
"@+id/fl_ad"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"16dp"
android:layout_marginTop=
"24dp"
android:background=
"@drawable/bg_ecf6ff_20"
android:minHeight=
"133dp"
>
<io.supercharge.shimmerlayout.ShimmerLayout
android:id=
"@+id/shimmerLayout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginHorizontal=
"16dp"
app:shimmer_angle=
"25"
app:shimmer_animation_duration=
"2000"
app:shimmer_auto_start=
"true"
app:shimmer_color=
"#33ffffff"
app:shimmer_mask_width=
"0.2"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@mipmap/czhanweitu"
tools:ignore=
"ContentDescription,ImageContrastCheck"
/>
</io.supercharge.shimmerlayout.ShimmerLayout>
</com.base.scanqr.ads.NativeParentView>
<androidx.cardview.widget.CardView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
@@ -293,4 +326,10 @@
</androidx.core.widget.NestedScrollView>
<FrameLayout
android:id=
"@id/fl_banner"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
app:layout_constraintBottom_toBottomOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_text_code.xml
View file @
9abc3994
...
...
@@ -3,9 +3,9 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/main"
android:background=
"@color/white"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
tools:context=
".ui.text.TextCodeActivity"
>
<androidx.constraintlayout.widget.ConstraintLayout
...
...
@@ -48,7 +48,8 @@
<androidx.core.widget.NestedScrollView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"0dp"
app:layout_constraintBottom_toTopOf=
"@id/fl_banner"
app:layout_constraintTop_toBottomOf=
"@id/cl_top"
>
<LinearLayout
...
...
@@ -74,6 +75,37 @@
</androidx.cardview.widget.CardView>
<com.base.scanqr.ads.NativeParentView
android:id=
"@+id/fl_ad"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"16dp"
android:layout_marginTop=
"24dp"
android:background=
"@drawable/bg_ecf6ff_20"
android:minHeight=
"133dp"
>
<io.supercharge.shimmerlayout.ShimmerLayout
android:id=
"@+id/shimmerLayout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginHorizontal=
"16dp"
app:shimmer_angle=
"25"
app:shimmer_animation_duration=
"2000"
app:shimmer_auto_start=
"true"
app:shimmer_color=
"#33ffffff"
app:shimmer_mask_width=
"0.2"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@mipmap/czhanweitu"
tools:ignore=
"ContentDescription,ImageContrastCheck"
/>
</io.supercharge.shimmerlayout.ShimmerLayout>
</com.base.scanqr.ads.NativeParentView>
<androidx.cardview.widget.CardView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
@@ -294,4 +326,10 @@
</androidx.core.widget.NestedScrollView>
<FrameLayout
android:id=
"@id/fl_banner"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
app:layout_constraintBottom_toBottomOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_website_code.xml
View file @
9abc3994
...
...
@@ -48,7 +48,8 @@
<androidx.core.widget.NestedScrollView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"0dp"
app:layout_constraintBottom_toTopOf=
"@id/fl_banner"
app:layout_constraintTop_toBottomOf=
"@id/cl_top"
>
<LinearLayout
...
...
@@ -74,6 +75,37 @@
</androidx.cardview.widget.CardView>
<com.base.scanqr.ads.NativeParentView
android:id=
"@+id/fl_ad"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"16dp"
android:layout_marginTop=
"24dp"
android:background=
"@drawable/bg_ecf6ff_20"
android:minHeight=
"133dp"
>
<io.supercharge.shimmerlayout.ShimmerLayout
android:id=
"@+id/shimmerLayout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginHorizontal=
"16dp"
app:shimmer_angle=
"25"
app:shimmer_animation_duration=
"2000"
app:shimmer_auto_start=
"true"
app:shimmer_color=
"#33ffffff"
app:shimmer_mask_width=
"0.2"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@mipmap/czhanweitu"
tools:ignore=
"ContentDescription,ImageContrastCheck"
/>
</io.supercharge.shimmerlayout.ShimmerLayout>
</com.base.scanqr.ads.NativeParentView>
<androidx.cardview.widget.CardView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
@@ -293,4 +325,11 @@
</androidx.core.widget.NestedScrollView>
<FrameLayout
android:id=
"@id/fl_banner"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
app:layout_constraintBottom_toBottomOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_wifi_code.xml
View file @
9abc3994
...
...
@@ -45,11 +45,16 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.core.widget.NestedScrollView
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
app:layout_constraintBottom_toTopOf=
"@id/fl_banner"
app:layout_constraintTop_toBottomOf=
"@id/cl_top"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
app:layout_constraintTop_toBottomOf=
"@id/cl_top"
>
android:orientation=
"vertical"
>
<androidx.cardview.widget.CardView
android:layout_width=
"195dp"
...
...
@@ -69,6 +74,39 @@
</androidx.cardview.widget.CardView>
<com.base.scanqr.ads.NativeParentView
android:id=
"@+id/fl_ad"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"16dp"
android:layout_marginTop=
"24dp"
android:background=
"@drawable/bg_ecf6ff_20"
android:minHeight=
"133dp"
>
<io.supercharge.shimmerlayout.ShimmerLayout
android:id=
"@+id/shimmerLayout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginHorizontal=
"16dp"
app:shimmer_angle=
"25"
app:shimmer_animation_duration=
"2000"
app:shimmer_auto_start=
"true"
app:shimmer_color=
"#33ffffff"
app:shimmer_mask_width=
"0.2"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@mipmap/czhanweitu"
tools:ignore=
"ContentDescription,ImageContrastCheck"
/>
</io.supercharge.shimmerlayout.ShimmerLayout>
</com.base.scanqr.ads.NativeParentView>
<androidx.cardview.widget.CardView
android:layout_width=
"match_parent"
android:layout_height=
"240dp"
...
...
@@ -103,7 +141,8 @@
android:textStyle=
"bold"
app:layout_constraintEnd_toStartOf=
"@id/tv_security_title"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
tools:ignore=
"HardcodedText"
/>
<TextView
android:id=
"@+id/tv_ssid"
...
...
@@ -130,7 +169,8 @@
android:textStyle=
"bold"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/tv_ssid_title"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
tools:ignore=
"HardcodedText"
/>
<TextView
...
...
@@ -158,7 +198,8 @@
android:textStyle=
"bold"
app:layout_constraintEnd_toStartOf=
"@id/tv_hidden_title"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/tv_ssid"
/>
app:layout_constraintTop_toBottomOf=
"@id/tv_ssid"
tools:ignore=
"HardcodedText"
/>
<TextView
android:id=
"@+id/tv_password"
...
...
@@ -185,7 +226,8 @@
android:textStyle=
"bold"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/tv_password_title"
app:layout_constraintTop_toBottomOf=
"@id/tv_security"
/>
app:layout_constraintTop_toBottomOf=
"@id/tv_security"
tools:ignore=
"HardcodedText"
/>
<TextView
android:id=
"@+id/tv_hidden"
...
...
@@ -353,9 +395,15 @@
</androidx.cardview.widget.CardView>
</LinearLayout>
</
LinearLayout
>
</
androidx.core.widget.NestedScrollView
>
<FrameLayout
android:id=
"@id/fl_banner"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
app:layout_constraintBottom_toBottomOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/mipmap-xxhdpi/czhanweitu.png
0 → 100644
View file @
9abc3994
13.8 KB
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