Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
389394f4
Commit
389394f4
authored
May 06, 2022
by
范玉宾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add meditation entrance in mine page
parent
a22c32c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
1 deletions
+39
-1
MineFragment.java
m-user/src/main/java/com/yidianling/user/mine/MineFragment.java
+11
-0
user_mine_fragment_mine.xml
m-user/src/main/res/layout/user_mine_fragment_mine.xml
+28
-1
No files found.
m-user/src/main/java/com/yidianling/user/mine/MineFragment.java
View file @
389394f4
...
...
@@ -31,6 +31,7 @@ import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils;
import
com.ydl.ydlcommon.view.JumpTextView
;
import
com.ydl.ydlcommon.view.dialog.YDLShareDialog
;
import
com.ydl.ydlcommon.view.widgets.BorderCircleImageView
;
import
com.yidianling.common.tools.ToastUtil
;
import
com.yidianling.consultant.api.IConsultantService
;
import
com.yidianling.dynamic.api.IDynamicService
;
import
com.yidianling.im.api.service.IImService
;
...
...
@@ -169,6 +170,9 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
getRootView
().
findViewById
(
R
.
id
.
ll_my_trends
).
setOnClickListener
(
this
);
getRootView
().
findViewById
(
R
.
id
.
ll_fans
).
setOnClickListener
(
this
);
getRootView
().
findViewById
(
R
.
id
.
ll_my_test_log
).
setOnClickListener
(
this
);
getRootView
().
findViewById
(
R
.
id
.
ll_meditation
).
setOnClickListener
(
this
);
init
();
...
...
@@ -479,6 +483,13 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
return
;
}
ModularServiceManager
.
INSTANCE
.
provide
(
ICourseService
.
class
).
startMyCourseActivity
(
mActivity
);
}
else
if
(
id
==
R
.
id
.
ll_meditation
){
//冥想
// TODO: 2022/5/6 冥想入口
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
ToastUtil
.
toastShort
(
"冥想冥想冥想"
);
}
else
if
(
id
==
R
.
id
.
ll_call_order
)
{
//倾诉
ActionCountUtils
.
Companion
.
count
(
YDL_USER_MY_MIDDLE_TYPE_CLICK
,
"倾诉记录"
);
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
...
...
m-user/src/main/res/layout/user_mine_fragment_mine.xml
View file @
389394f4
...
...
@@ -427,10 +427,37 @@
</LinearLayout>
<!--meditation start-->
<LinearLayout
android:id=
"@+id/ll_meditation"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:background=
"?android:attr/selectableItemBackground"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:src=
"@drawable/user_mine_ic_my_course"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"冥想"
android:textColor=
"@color/platform_color_999999"
android:textSize=
"12sp"
/>
</LinearLayout>
<!--meditation end-->
<View
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"
3
"
/>
android:layout_weight=
"
2
"
/>
</LinearLayout>
...
...
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