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
ace077f1
Commit
ace077f1
authored
Aug 04, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置界面添加用户id
parent
eb1a045a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
0 deletions
+25
-0
MoresettingsActivity.kt
...ain/java/com/mints/street/main/my/MoresettingsActivity.kt
+14
-0
activity_moresettings.xml
app/src/main/res/layout/activity_moresettings.xml
+10
-0
item_settings.xml
app/src/main/res/layout/item_settings.xml
+1
-0
icon_settings_invite.png
app/src/main/res/mipmap-xhdpi/icon_settings_invite.png
+0
-0
No files found.
app/src/main/java/com/mints/street/main/my/MoresettingsActivity.kt
View file @
ace077f1
...
@@ -100,8 +100,22 @@ class MoresettingsActivity : BaseActivity<ActivityMoresettingsBinding, Moresetti
...
@@ -100,8 +100,22 @@ class MoresettingsActivity : BaseActivity<ActivityMoresettingsBinding, Moresetti
if
(
userManager
.
userIsLogin
())
{
if
(
userManager
.
userIsLogin
())
{
btn_switch
.
visibility
=
View
.
VISIBLE
btn_switch
.
visibility
=
View
.
VISIBLE
item_invitedCode
.
visibility
=
View
.
VISIBLE
item_invitedCode_line
.
visibility
=
View
.
VISIBLE
item_invitedCode
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"用户ID"
val
invitedCode
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_invite
)
invitedCode
.
setBounds
(
0
,
0
,
56
,
56
)
item_invitedCode
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
)
.
setCompoundDrawables
(
invitedCode
,
null
,
null
,
null
)
item_invitedCode
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
VISIBLE
item_invitedCode
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
GONE
item_invitedCode
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
text
=
"街景-${UserManager.INSTANCE.getCodeID()}"
}
else
{
}
else
{
btn_switch
.
visibility
=
View
.
GONE
btn_switch
.
visibility
=
View
.
GONE
item_invitedCode
.
visibility
=
View
.
GONE
item_invitedCode_line
.
visibility
=
View
.
GONE
}
}
}
}
...
...
app/src/main/res/layout/activity_moresettings.xml
View file @
ace077f1
...
@@ -23,7 +23,17 @@
...
@@ -23,7 +23,17 @@
style=
"@style/view_line_E6E6E6"
style=
"@style/view_line_E6E6E6"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_marginStart=
"20dp"
android:layout_marginStart=
"20dp"
android:layout_marginEnd=
"20dp"
/>
<include
android:id=
"@+id/item_invitedCode"
layout=
"@layout/item_settings"
/>
<View
android:id=
"@+id/item_invitedCode_line"
style=
"@style/view_line_E6E6E6"
android:layout_alignParentBottom=
"true"
android:layout_marginStart=
"20dp"
android:layout_marginEnd=
"20dp"
/>
android:layout_marginEnd=
"20dp"
/>
<include
<include
...
...
app/src/main/res/layout/item_settings.xml
View file @
ace077f1
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
android:id=
"@+id/tv_right"
android:id=
"@+id/tv_right"
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_alignParentEnd=
"true"
android:layout_alignParentEnd=
"true"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
...
...
app/src/main/res/mipmap-xhdpi/icon_settings_invite.png
0 → 100644
View file @
ace077f1
1.4 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