Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_fiveworld
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
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
android
android_fiveworld
Commits
08e499bb
Commit
08e499bb
authored
Aug 02, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化个人中心,关于我们
parent
4d1b0124
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
118 additions
and
46 deletions
+118
-46
AboutusActivity.kt
...src/main/java/com/mints/street/main/my/AboutusActivity.kt
+8
-5
MyFragment.kt
app/src/main/java/com/mints/street/main/my/MyFragment.kt
+8
-0
VRFragment.kt
app/src/main/java/com/mints/street/main/vr/VRFragment.kt
+1
-1
SplashActivity.kt
app/src/main/java/com/mints/street/splash/SplashActivity.kt
+1
-1
activity_aboutus.xml
app/src/main/res/layout/activity_aboutus.xml
+77
-35
activity_openvip.xml
app/src/main/res/layout/activity_openvip.xml
+6
-2
activity_splash.xml
app/src/main/res/layout/activity_splash.xml
+5
-1
fragment_my.xml
app/src/main/res/layout/fragment_my.xml
+9
-0
item_enter_destination_adapter.xml
app/src/main/res/layout/item_enter_destination_adapter.xml
+3
-1
ic_my_phone.png
app/src/main/res/mipmap-xhdpi/ic_my_phone.png
+0
-0
No files found.
app/src/main/java/com/mints/street/main/my/AboutusActivity.kt
View file @
08e499bb
...
@@ -11,6 +11,7 @@ import com.mints.street.AppApplication
...
@@ -11,6 +11,7 @@ import com.mints.street.AppApplication
import
com.mints.street.BR
import
com.mints.street.BR
import
com.mints.street.R
import
com.mints.street.R
import
com.mints.street.common.Constant
import
com.mints.street.common.Constant
import
com.mints.street.common.DeviceInfo
import
com.mints.street.utils.CommonUtils
import
com.mints.street.utils.CommonUtils
import
com.mints.street.webview.MintsWebViewActivity
import
com.mints.street.webview.MintsWebViewActivity
import
kotlinx.android.synthetic.main.activity_aboutus.*
import
kotlinx.android.synthetic.main.activity_aboutus.*
...
@@ -22,7 +23,7 @@ class AboutusActivity : BaseActivity<ActivityAboutusBinding, AboutusViewModel>()
...
@@ -22,7 +23,7 @@ class AboutusActivity : BaseActivity<ActivityAboutusBinding, AboutusViewModel>()
override
fun
initVariableId
()
=
BR
.
viewModel
override
fun
initVariableId
()
=
BR
.
viewModel
override
fun
initContentView
(
savedInstanceState
:
Bundle
?)
=
R
.
layout
.
activity_aboutus
override
fun
initContentView
(
savedInstanceState
:
Bundle
?)
=
R
.
layout
.
activity_aboutus
override
fun
getStatusBarHeightView
():
View
?
{
override
fun
getStatusBarHeightView
():
View
?
{
return
binding
.
tv
Text
return
binding
.
tv
AboutasVersion
}
}
override
fun
initData
()
{
override
fun
initData
()
{
super
.
initData
()
super
.
initData
()
...
@@ -39,8 +40,10 @@ class AboutusActivity : BaseActivity<ActivityAboutusBinding, AboutusViewModel>()
...
@@ -39,8 +40,10 @@ class AboutusActivity : BaseActivity<ActivityAboutusBinding, AboutusViewModel>()
tv_title
.
setTextColor
(
Color
.
BLACK
)
tv_title
.
setTextColor
(
Color
.
BLACK
)
iv_left_icon
.
setImageResource
(
R
.
mipmap
.
ic_arrow_back
)
iv_left_icon
.
setImageResource
(
R
.
mipmap
.
ic_arrow_back
)
iv_left_icon
.
visibility
=
View
.
VISIBLE
iv_left_icon
.
visibility
=
View
.
VISIBLE
tv_user
.
setOnClickListener
(
this
)
tvAboutasVersion
.
text
=
"3D高清街景 v"
+
DeviceInfo
.
instance
.
versionName
tv_privacy
.
setOnClickListener
(
this
)
tvAboutasService
.
setOnClickListener
(
this
)
tvAboutasPolicy
.
setOnClickListener
(
this
)
iv_app
.
setOnLongClickListener
{
iv_app
.
setOnLongClickListener
{
ToastUtils
.
showLong
(
"自有渠道:"
+
CommonUtils
.
getAppMetaData
(
ToastUtils
.
showLong
(
"自有渠道:"
+
CommonUtils
.
getAppMetaData
(
...
@@ -53,10 +56,10 @@ class AboutusActivity : BaseActivity<ActivityAboutusBinding, AboutusViewModel>()
...
@@ -53,10 +56,10 @@ class AboutusActivity : BaseActivity<ActivityAboutusBinding, AboutusViewModel>()
override
fun
onClick
(
v
:
View
?)
{
override
fun
onClick
(
v
:
View
?)
{
when
(
v
?.
id
)
{
when
(
v
?.
id
)
{
R
.
id
.
iv_left_icon
->
finish
()
R
.
id
.
iv_left_icon
->
finish
()
R
.
id
.
tv
_user
->
{
R
.
id
.
tv
AboutasService
->
{
MintsWebViewActivity
.
startWebView
(
name
=
"用户协议"
,
url
=
Constant
.
REGISTER_URL
)
MintsWebViewActivity
.
startWebView
(
name
=
"用户协议"
,
url
=
Constant
.
REGISTER_URL
)
}
}
R
.
id
.
tv
_priva
cy
->
{
R
.
id
.
tv
AboutasPoli
cy
->
{
MintsWebViewActivity
.
startWebView
(
name
=
"隐私协议"
,
url
=
Constant
.
PRIVACY_URL
)
MintsWebViewActivity
.
startWebView
(
name
=
"隐私协议"
,
url
=
Constant
.
PRIVACY_URL
)
}
}
}
}
...
...
app/src/main/java/com/mints/street/main/my/MyFragment.kt
View file @
08e499bb
...
@@ -169,6 +169,14 @@ class MyFragment : BaseFragment<FragmentMyBinding, MyViewModel>(), OnRefreshList
...
@@ -169,6 +169,14 @@ class MyFragment : BaseFragment<FragmentMyBinding, MyViewModel>(), OnRefreshList
aboutus
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
GONE
aboutus
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
GONE
aboutus
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
VISIBLE
aboutus
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
VISIBLE
item_my_phone
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"人工客服"
item_my_phone
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
text
=
"400-777-6667"
item_my_phone
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
VISIBLE
val
itemMyPhone
=
ContextCompat
.
getDrawable
(
context
!!
,
R
.
mipmap
.
ic_my_phone
)
itemMyPhone
?.
setBounds
(
0
,
0
,
56
,
56
)
item_my_phone
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
itemMyPhone
,
null
,
null
,
null
)
item_my_phone
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
GONE
moresettings
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"更多设置"
moresettings
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"更多设置"
val
privacyAgree
=
ContextCompat
.
getDrawable
(
context
!!
,
R
.
mipmap
.
iv_more_settings
)
val
privacyAgree
=
ContextCompat
.
getDrawable
(
context
!!
,
R
.
mipmap
.
iv_more_settings
)
privacyAgree
?.
setBounds
(
0
,
0
,
56
,
56
)
privacyAgree
?.
setBounds
(
0
,
0
,
56
,
56
)
...
...
app/src/main/java/com/mints/street/main/vr/VRFragment.kt
View file @
08e499bb
...
@@ -61,7 +61,7 @@ class VRFragment : BaseFragment<FragmentVrBinding, VRViewModel>() {
...
@@ -61,7 +61,7 @@ class VRFragment : BaseFragment<FragmentVrBinding, VRViewModel>() {
binding
.
viewPager
.
init
(
this
,
fragments
)
binding
.
viewPager
.
init
(
this
,
fragments
)
//初始化 magic_indicator
//初始化 magic_indicator
binding
.
magicIndicator
.
bindViewPager2
(
binding
.
viewPager
,
tabNames
,
{},
16
f
,
true
)
binding
.
magicIndicator
.
bindViewPager2
(
binding
.
viewPager
,
tabNames
,
{},
20
f
,
true
)
}
}
...
...
app/src/main/java/com/mints/street/splash/SplashActivity.kt
View file @
08e499bb
...
@@ -48,7 +48,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding, SplashViewModel>() {
...
@@ -48,7 +48,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding, SplashViewModel>() {
override
fun
initVariableId
()
=
BR
.
viewModel
override
fun
initVariableId
()
=
BR
.
viewModel
override
fun
getStatusBarHeightView
()=
binding
.
rlSplashRoot
override
fun
getStatusBarHeightView
()=
binding
.
viewSplash
override
fun
initData
()
{
override
fun
initData
()
{
super
.
initData
()
super
.
initData
()
...
...
app/src/main/res/layout/activity_aboutus.xml
View file @
08e499bb
...
@@ -8,56 +8,98 @@
...
@@ -8,56 +8,98 @@
name=
"viewModel"
name=
"viewModel"
type=
"com.mints.street.main.my.AboutusViewModel"
/>
type=
"com.mints.street.main.my.AboutusViewModel"
/>
</data>
</data>
<
Relative
Layout
<
Linear
Layout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:orientation=
"vertical"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<include
<include
android:id=
"@+id/header"
android:id=
"@+id/header"
layout=
"@layout/include_header"
/>
layout=
"@layout/include_header"
/>
<TextView
<TextView
android:id=
"@+id/tv_text"
android:id=
"@+id/tvAboutasVersion"
android:layout_below=
"@+id/header"
android:paddingTop=
"30dp"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"3D高清街景"
android:layout_gravity=
"center_horizontal"
android:textColor=
"@color/black"
android:layout_marginTop=
"30dp"
android:layout_centerInParent=
"true"
/>
android:layout_marginBottom=
"15dp"
android:text=
"@string/app_name"
android:textColor=
"@color/color_333"
android:textSize=
"13sp"
/>
<ImageView
<ImageView
android:id=
"@+id/iv_app"
android:id=
"@+id/iv_app"
android:layout_width=
"70dp"
android:layout_width=
"80dp"
android:layout_height=
"70dp"
android:layout_height=
"80dp"
android:layout_alignParentBottom=
"true"
android:layout_gravity=
"center_horizontal"
android:layout_centerHorizontal=
"true"
android:layout_marginBottom=
"65dp"
android:src=
"@mipmap/ic_launcher_main"
/>
android:src=
"@mipmap/ic_launcher_main"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
<LinearLayout
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:id=
"@+id/ly_text"
android:layout_height=
"wrap_content"
android:paddingTop=
"10dp"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_marginBottom=
"25dp"
android:layout_centerHorizontal=
"true"
android:layout_marginBottom=
"20dp"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"30dp"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:id=
"@+id/tv_user"
android:id=
"@+id/tvAboutasService"
android:layout_marginRight=
"10dp"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/black"
android:layout_marginRight=
"2dp"
android:text=
"《注册协议》"
/>
android:padding=
"5dp"
android:text=
"注册协议"
android:textColor=
"@color/color_333"
android:textSize=
"14sp"
/>
<View
android:layout_width=
"1dp"
android:layout_height=
"match_parent"
android:layout_marginTop=
"5dp"
android:layout_marginBottom=
"5dp"
android:background=
"@color/color_333"
/>
<TextView
<TextView
android:id=
"@+id/tv_privacy"
android:id=
"@+id/tvAboutasPolicy"
android:layout_marginLeft=
"10dp"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/black"
android:layout_marginLeft=
"2dp"
android:text=
"《隐私协议》"
/>
android:padding=
"5dp"
</LinearLayout>
android:text=
"隐私政策"
android:textColor=
"@color/color_333"
android:textSize=
"14sp"
/>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginLeft=
"30dp"
android:layout_marginRight=
"30dp"
android:gravity=
"center"
android:text=
"Copyright © 2019 Inc.."
android:textColor=
"@color/color_333"
android:textSize=
"12sp"
/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/activity_openvip.xml
View file @
08e499bb
...
@@ -102,6 +102,7 @@
...
@@ -102,6 +102,7 @@
android:layout_height=
"20dp"
android:layout_height=
"20dp"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:layout_marginStart=
"15dp"
android:layout_marginStart=
"15dp"
android:layout_gravity=
"center_vertical"
android:src=
"@mipmap/icon_pay_wx"
/>
android:src=
"@mipmap/icon_pay_wx"
/>
<TextView
<TextView
...
@@ -110,6 +111,7 @@
...
@@ -110,6 +111,7 @@
android:layout_marginLeft=
"5dp"
android:layout_marginLeft=
"5dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:text=
"微信支付"
android:text=
"微信支付"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"18sp"
/>
android:textSize=
"18sp"
/>
...
@@ -117,7 +119,7 @@
...
@@ -117,7 +119,7 @@
android:id=
"@+id/iv_weixin"
android:id=
"@+id/iv_weixin"
android:layout_width=
"20dp"
android:layout_width=
"20dp"
android:layout_height=
"20dp"
android:layout_height=
"20dp"
android:layout_gravity=
"center"
android:layout_gravity=
"center
_vertical
"
android:src=
"@mipmap/pay_unselect"
/>
android:src=
"@mipmap/pay_unselect"
/>
</LinearLayout>
</LinearLayout>
...
@@ -135,6 +137,7 @@
...
@@ -135,6 +137,7 @@
android:layout_height=
"20dp"
android:layout_height=
"20dp"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:layout_marginStart=
"15dp"
android:layout_marginStart=
"15dp"
android:layout_gravity=
"center_vertical"
android:src=
"@mipmap/icon_pay_zfb"
/>
android:src=
"@mipmap/icon_pay_zfb"
/>
<TextView
<TextView
...
@@ -143,6 +146,7 @@
...
@@ -143,6 +146,7 @@
android:layout_marginLeft=
"5dp"
android:layout_marginLeft=
"5dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:text=
"支付宝支付"
android:text=
"支付宝支付"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"18sp"
/>
android:textSize=
"18sp"
/>
...
@@ -150,7 +154,7 @@
...
@@ -150,7 +154,7 @@
android:id=
"@+id/iv_alipay"
android:id=
"@+id/iv_alipay"
android:layout_width=
"20dp"
android:layout_width=
"20dp"
android:layout_height=
"20dp"
android:layout_height=
"20dp"
android:layout_gravity=
"center"
android:layout_gravity=
"center
_vertical
"
android:src=
"@mipmap/pay_unselect"
/>
android:src=
"@mipmap/pay_unselect"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/activity_splash.xml
View file @
08e499bb
...
@@ -2,11 +2,15 @@
...
@@ -2,11 +2,15 @@
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<RelativeLayout
<RelativeLayout
android:id=
"@+id/rl_splash_root"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:background=
"#061b45"
android:background=
"#061b45"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<View
android:id=
"@+id/view_splash"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<ImageView
<ImageView
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
...
app/src/main/res/layout/fragment_my.xml
View file @
08e499bb
...
@@ -125,6 +125,15 @@
...
@@ -125,6 +125,15 @@
<include
<include
android:id=
"@+id/aboutus"
android:id=
"@+id/aboutus"
layout=
"@layout/item_settings"
/>
layout=
"@layout/item_settings"
/>
<View
style=
"@style/view_line_E6E6E6"
android:layout_marginStart=
"20dp"
android:layout_marginEnd=
"20dp"
android:layout_alignParentBottom=
"true"
/>
<include
android:id=
"@+id/item_my_phone"
layout=
"@layout/item_settings"
/>
<View
<View
style=
"@style/view_line_E6E6E6"
style=
"@style/view_line_E6E6E6"
android:layout_marginStart=
"20dp"
android:layout_marginStart=
"20dp"
...
...
app/src/main/res/layout/item_enter_destination_adapter.xml
View file @
08e499bb
...
@@ -9,7 +9,9 @@
...
@@ -9,7 +9,9 @@
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/bg"
android:id=
"@+id/bg"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"140dp"
android:layout_height=
"150dp"
android:layout_marginTop=
"5dp"
android:layout_marginBottom=
"5dp"
android:background=
"@mipmap/vip_google_bg"
android:background=
"@mipmap/vip_google_bg"
android:layout_marginStart=
"5dp"
android:layout_marginStart=
"5dp"
android:layout_marginEnd=
"5dp"
android:layout_marginEnd=
"5dp"
...
...
app/src/main/res/mipmap-xhdpi/ic_my_phone.png
0 → 100644
View file @
08e499bb
1.65 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