正在显示
71 个修改的文件
包含
2240 行增加
和
174 行删除
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <project version="4"> | 2 | <project version="4"> |
3 | - <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> | 3 | + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> |
4 | <output url="file://$PROJECT_DIR$/build/classes" /> | 4 | <output url="file://$PROJECT_DIR$/build/classes" /> |
5 | </component> | 5 | </component> |
6 | <component name="ProjectType"> | 6 | <component name="ProjectType"> |
@@ -103,6 +103,14 @@ | @@ -103,6 +103,14 @@ | ||
103 | android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize|uiMode" | 103 | android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize|uiMode" |
104 | android:screenOrientation="portrait" /> | 104 | android:screenOrientation="portrait" /> |
105 | 105 | ||
106 | + <activity android:name=".ui.mine.activity.LearningReportActivity"/> | ||
107 | + <activity android:name=".ui.mine.activity.LearningReportDetailActivity"/> | ||
108 | + <activity android:name=".ui.mine.activity.MessageNoticeActivity"/> | ||
109 | + <activity android:name=".ui.mine.activity.MessageNoticeDetailActivity"/> | ||
110 | + <activity android:name=".ui.mine.activity.ComplaintsAndSuggestionsActivity"/> | ||
111 | + <activity android:name=".ui.mine.activity.ComplaintsAndSuggestionsSuccessActivity"/> | ||
112 | + <activity android:name=".ui.mine.activity.ClassDutyActivity"/> | ||
113 | + | ||
106 | 114 | ||
107 | </application> | 115 | </application> |
108 | 116 |
1 | package com.br_technology.securitytrain_master.ui.mine.activity | 1 | package com.br_technology.securitytrain_master.ui.mine.activity |
2 | 2 | ||
3 | +import android.widget.AdapterView | ||
4 | +import com.br_technology.securitytrain_master.R | ||
3 | import com.br_technology.securitytrain_master.databinding.ActivityAcademicFeedbackBinding | 5 | import com.br_technology.securitytrain_master.databinding.ActivityAcademicFeedbackBinding |
6 | +import com.br_technology.securitytrain_master.ui.home.adapter.VideoCourseListAdapter | ||
7 | +import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse | ||
8 | +import com.br_technology.securitytrain_master.ui.mine.adapter.AcademicFeedbackAdapter | ||
4 | import com.br_technology.securitytrain_master.ui.mine.viewmodel.AcademicFeedbackViewModel | 9 | import com.br_technology.securitytrain_master.ui.mine.viewmodel.AcademicFeedbackViewModel |
10 | +import com.br_technology.securitytrain_master.view.DialogSureCancel | ||
11 | +import com.br_technology.securitytrain_master.view.DialogTitle | ||
12 | +import com.br_technology.securitytrain_master.view.listener.DialogListener | ||
13 | +import com.br_technology.securitytrain_master.view.listener.OnItemClickListener | ||
5 | import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity | 14 | import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity |
6 | 15 | ||
7 | /** | 16 | /** |
@@ -20,6 +29,28 @@ class AcademicFeedbackActivity : | @@ -20,6 +29,28 @@ class AcademicFeedbackActivity : | ||
20 | 29 | ||
21 | override fun initData() { | 30 | override fun initData() { |
22 | super.initData() | 31 | super.initData() |
32 | + binding.apply { | ||
23 | 33 | ||
34 | + val academicFeedbackAdapter = AcademicFeedbackAdapter() | ||
35 | + val list = mutableListOf( | ||
36 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "1.1", "张钧-三岗职位培训班"), | ||
37 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "1.1", "张钧-三岗职位培训班"), | ||
38 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "1.1", "张钧-三岗职位培训班"), | ||
39 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "1.1", "张钧-三岗职位培训班"), | ||
40 | + ) | ||
41 | + recyclerview.adapter = academicFeedbackAdapter | ||
42 | + academicFeedbackAdapter.addList(list) | ||
43 | + | ||
44 | + academicFeedbackAdapter.addListener(object : OnItemClickListener<VideoCourse> { | ||
45 | + override fun onClick(position: Int, data: VideoCourse) { | ||
46 | + DialogTitle(this@AcademicFeedbackActivity) | ||
47 | + .setImageTitle(R.mipmap.jiangshipingxi_bg) | ||
48 | + .setInfo("烦得很工蜂都是第三方还是对方号是否得换个始发地和啥地方还是对方恢复单身") | ||
49 | + .hideCompleteButton(true) | ||
50 | + .show() | ||
51 | + } | ||
52 | + | ||
53 | + }) | ||
54 | + } | ||
24 | } | 55 | } |
25 | } | 56 | } |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/activity/ClassDutyActivity.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.activity | ||
2 | + | ||
3 | +import android.view.View | ||
4 | +import androidx.core.content.ContextCompat | ||
5 | +import androidx.fragment.app.FragmentPagerAdapter | ||
6 | +import com.br_technology.securitytrain_master.R | ||
7 | +import com.br_technology.securitytrain_master.base.view.BasePagerAdapter | ||
8 | +import com.br_technology.securitytrain_master.databinding.ActivityClassDutyBinding | ||
9 | +import com.br_technology.securitytrain_master.ui.mine.fragment.CourseFragment | ||
10 | +import com.br_technology.securitytrain_master.ui.mine.viewmodel.ClassDutyViewModel | ||
11 | +import com.br_technology.securitytrain_master.view.ClassifyPop | ||
12 | +import com.br_technology.securitytrain_master.view.listener.ToolBarClickListener | ||
13 | +import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity | ||
14 | + | ||
15 | +/** | ||
16 | + * Time: 8/3/2021 11:15 | ||
17 | + * Author: Captain | ||
18 | + * Description: 初见时你很迷人 | ||
19 | + * 班级任务 | ||
20 | + */ | ||
21 | +class ClassDutyActivity : | ||
22 | + BaseLifeCycleActivity<ClassDutyViewModel, ActivityClassDutyBinding>(ActivityClassDutyBinding::inflate) { | ||
23 | + | ||
24 | + private val classifyPop by lazy { | ||
25 | + ClassifyPop(this) | ||
26 | + } | ||
27 | + | ||
28 | + override fun initDataObserver() { | ||
29 | + | ||
30 | + } | ||
31 | + | ||
32 | + override fun initData() { | ||
33 | + super.initData() | ||
34 | + binding.apply { | ||
35 | + | ||
36 | + toolBar.setRightText("全部") | ||
37 | + toolBar.setRightTextDrawable( | ||
38 | + ContextCompat.getDrawable( | ||
39 | + baseContext, | ||
40 | + R.mipmap.down_arrow | ||
41 | + ) | ||
42 | + ) | ||
43 | + // 点击事件 | ||
44 | + toolBar.addRightListener(object : ToolBarClickListener { | ||
45 | + override fun onClick(view: View) { | ||
46 | + if (!classifyPop.isShowing) { | ||
47 | + classifyPop.showAsDropDown(view) | ||
48 | + } | ||
49 | + } | ||
50 | + }) | ||
51 | + | ||
52 | + val searchResultAdapter = BasePagerAdapter( | ||
53 | + supportFragmentManager, | ||
54 | + FragmentPagerAdapter.BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT | ||
55 | + ) | ||
56 | + val list = | ||
57 | + listOf( | ||
58 | + CourseFragment(), | ||
59 | + CourseFragment(), | ||
60 | + CourseFragment() | ||
61 | + ) | ||
62 | + val titles = listOf("课程", "练习", "考试") | ||
63 | + searchResultAdapter.addData(list) | ||
64 | + searchResultAdapter.addTitle(titles) | ||
65 | + viewPager.adapter = searchResultAdapter | ||
66 | + tabLayout.setupWithViewPager(viewPager) | ||
67 | + } | ||
68 | + } | ||
69 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.activity | ||
2 | + | ||
3 | +import android.widget.RadioGroup | ||
4 | +import com.br_technology.securitytrain_master.R | ||
5 | +import com.br_technology.securitytrain_master.databinding.ActivityComplaintsAndSuggestionsBinding | ||
6 | +import com.br_technology.securitytrain_master.ui.mine.viewmodel.ComplaintsAndSuggestionsViewModel | ||
7 | +import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity | ||
8 | + | ||
9 | +/** | ||
10 | + * Time: 8/3/2021 9:36 | ||
11 | + * Author: Captain | ||
12 | + * Description: 初见时你很迷人 | ||
13 | + * 投诉与建议 | ||
14 | + */ | ||
15 | +class ComplaintsAndSuggestionsActivity : | ||
16 | + BaseLifeCycleActivity<ComplaintsAndSuggestionsViewModel, ActivityComplaintsAndSuggestionsBinding>( | ||
17 | + ActivityComplaintsAndSuggestionsBinding::inflate | ||
18 | + ) { | ||
19 | + | ||
20 | + var isSwitchOn: Boolean = false | ||
21 | + | ||
22 | + override fun initDataObserver() { | ||
23 | + | ||
24 | + } | ||
25 | + | ||
26 | + override fun initData() { | ||
27 | + super.initData() | ||
28 | + binding.apply { | ||
29 | + //radiobutton | ||
30 | + radioGroup.setOnCheckedChangeListener(object : RadioGroup.OnCheckedChangeListener { | ||
31 | + override fun onCheckedChanged(group: RadioGroup?, checkedId: Int) { | ||
32 | + when (checkedId) { | ||
33 | + R.id.rb_pingtai_jianyi -> { | ||
34 | + //平台建议 | ||
35 | + rbPingtaiJianyi.setButtonDrawable(R.mipmap.tousuyujianyi_sel) | ||
36 | + rbQiyeJianyi.setButtonDrawable(R.mipmap.tousuyujianyi_unsel) | ||
37 | + } | ||
38 | + R.id.rb_qiye_jianyi -> { | ||
39 | + //企业建议 | ||
40 | + rbPingtaiJianyi.setButtonDrawable(R.mipmap.tousuyujianyi_unsel) | ||
41 | + rbQiyeJianyi.setButtonDrawable(R.mipmap.tousuyujianyi_sel) | ||
42 | + } | ||
43 | + } | ||
44 | + } | ||
45 | + | ||
46 | + }) | ||
47 | + | ||
48 | + //switch开关 | ||
49 | + ivSwitch.setOnClickListener({ | ||
50 | + if (isSwitchOn == true) { | ||
51 | + isSwitchOn = false | ||
52 | + ivSwitch.setImageResource(R.mipmap.switch_unsel) | ||
53 | + } else { | ||
54 | + isSwitchOn = true | ||
55 | + ivSwitch.setImageResource(R.mipmap.switch_sel) | ||
56 | + } | ||
57 | + }) | ||
58 | + //提交信息 | ||
59 | + tvUpload.setOnClickListener({ | ||
60 | + //请求接口成功之后跳转到提交成功页面 | ||
61 | + startActivity(ComplaintsAndSuggestionsSuccessActivity::class.java) | ||
62 | + }) | ||
63 | + } | ||
64 | + } | ||
65 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.activity | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.databinding.ActivityComplaintsAndSuggestionsSuccessBinding | ||
4 | +import com.br_technology.securitytrain_master.ui.mine.viewmodel.ComplaintsAndSuggestionsSuccessViewModel | ||
5 | +import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity | ||
6 | + | ||
7 | +/** | ||
8 | + * Time: 8/3/2021 10:59 | ||
9 | + * Author: Captain | ||
10 | + * Description: 初见时你很迷人 | ||
11 | + */ | ||
12 | +class ComplaintsAndSuggestionsSuccessActivity : | ||
13 | + BaseLifeCycleActivity<ComplaintsAndSuggestionsSuccessViewModel, ActivityComplaintsAndSuggestionsSuccessBinding>( | ||
14 | + ActivityComplaintsAndSuggestionsSuccessBinding::inflate | ||
15 | + ) { | ||
16 | + override fun initDataObserver() { | ||
17 | + | ||
18 | + } | ||
19 | + | ||
20 | + override fun initData() { | ||
21 | + super.initData() | ||
22 | + binding.apply { | ||
23 | + | ||
24 | + } | ||
25 | + } | ||
26 | +} |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/activity/LearningReportActivity.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.activity | ||
2 | + | ||
3 | +import android.view.View | ||
4 | +import androidx.core.content.ContextCompat | ||
5 | +import com.br_technology.securitytrain_master.R | ||
6 | +import com.br_technology.securitytrain_master.databinding.ActivityLearningReportBinding | ||
7 | +import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse | ||
8 | +import com.br_technology.securitytrain_master.ui.mine.adapter.AcademicFeedbackAdapter | ||
9 | +import com.br_technology.securitytrain_master.ui.mine.adapter.LearningReportAdapter | ||
10 | +import com.br_technology.securitytrain_master.ui.mine.viewmodel.LearningReportViewModel | ||
11 | +import com.br_technology.securitytrain_master.view.ClassifyPop | ||
12 | +import com.br_technology.securitytrain_master.view.DialogTitle | ||
13 | +import com.br_technology.securitytrain_master.view.listener.OnItemClickListener | ||
14 | +import com.br_technology.securitytrain_master.view.listener.ToolBarClickListener | ||
15 | +import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity | ||
16 | + | ||
17 | +/** | ||
18 | + * Time: 8/2/2021 15:52 | ||
19 | + * Author: Captain | ||
20 | + * Description: 初见时你很迷人 | ||
21 | + * 学习报告 | ||
22 | + */ | ||
23 | +class LearningReportActivity : | ||
24 | + BaseLifeCycleActivity<LearningReportViewModel, ActivityLearningReportBinding>( | ||
25 | + ActivityLearningReportBinding::inflate | ||
26 | + ) { | ||
27 | + | ||
28 | + private val classifyPop by lazy { | ||
29 | + ClassifyPop(this) | ||
30 | + } | ||
31 | + | ||
32 | + override fun initDataObserver() { | ||
33 | + | ||
34 | + } | ||
35 | + | ||
36 | + override fun initData() { | ||
37 | + super.initData() | ||
38 | + binding.apply { | ||
39 | + toolBar.setRightText("全部") | ||
40 | + toolBar.setRightTextDrawable( | ||
41 | + ContextCompat.getDrawable( | ||
42 | + baseContext, | ||
43 | + R.mipmap.down_arrow | ||
44 | + ) | ||
45 | + ) | ||
46 | + | ||
47 | + toolBar.addRightListener(object : ToolBarClickListener { | ||
48 | + override fun onClick(view: View) { | ||
49 | + if (!classifyPop.isShowing) { | ||
50 | + classifyPop.showAsDropDown(view) | ||
51 | + } | ||
52 | + | ||
53 | + } | ||
54 | + }) | ||
55 | + | ||
56 | + val learningReportAdapter = LearningReportAdapter() | ||
57 | + val list = mutableListOf( | ||
58 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "(考试)", "+10"), | ||
59 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "(考试)", "+10"), | ||
60 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "(考试)", "+10"), | ||
61 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "(考试)", "+10"), | ||
62 | + ) | ||
63 | + recyclerview.adapter = learningReportAdapter | ||
64 | + learningReportAdapter.addList(list) | ||
65 | + | ||
66 | + tvCreateReport.setOnClickListener({ | ||
67 | + startActivity(LearningReportDetailActivity::class.java) | ||
68 | + }) | ||
69 | + } | ||
70 | + } | ||
71 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.activity | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.R | ||
4 | +import com.br_technology.securitytrain_master.databinding.ActivityLearningReportDetailBinding | ||
5 | +import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse | ||
6 | +import com.br_technology.securitytrain_master.ui.mine.adapter.LearningReportDetailAdapter | ||
7 | +import com.br_technology.securitytrain_master.ui.mine.adapter.MockExaminationAdapter | ||
8 | +import com.br_technology.securitytrain_master.ui.mine.viewmodel.LearningReportDetailViewModel | ||
9 | +import com.gyf.immersionbar.ImmersionBar | ||
10 | +import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity | ||
11 | + | ||
12 | +/** | ||
13 | + * Time: 8/2/2021 16:46 | ||
14 | + * Author: Captain | ||
15 | + * Description: 初见时你很迷人 | ||
16 | + * 生成学习报告详情页面 | ||
17 | + */ | ||
18 | +class LearningReportDetailActivity : | ||
19 | + BaseLifeCycleActivity<LearningReportDetailViewModel, ActivityLearningReportDetailBinding>( | ||
20 | + ActivityLearningReportDetailBinding::inflate | ||
21 | + ) { | ||
22 | + override fun initDataObserver() { | ||
23 | + | ||
24 | + } | ||
25 | + | ||
26 | + override fun initView() { | ||
27 | + super.initView() | ||
28 | + ImmersionBar.with(this@LearningReportDetailActivity).statusBarDarkFont(false).init(); | ||
29 | + } | ||
30 | + | ||
31 | + override fun initData() { | ||
32 | + super.initData() | ||
33 | + binding.apply { | ||
34 | + toolBar.setTitleColor(resources.getColor(R.color.white)) | ||
35 | + toolBar.setBackImg(R.mipmap.ic_back_white) | ||
36 | + | ||
37 | + val learningReportDetailAdapter = LearningReportDetailAdapter() | ||
38 | + val list = mutableListOf( | ||
39 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "45分", "通过"), | ||
40 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "68分", "通过"), | ||
41 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "100分", "通过"), | ||
42 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "99分", "通过"), | ||
43 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "99分", "通过"), | ||
44 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "99分", "通过"), | ||
45 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "99分", "通过"), | ||
46 | + VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "99分", "通过"), | ||
47 | + ) | ||
48 | + recyclerview.adapter = learningReportDetailAdapter | ||
49 | + learningReportDetailAdapter.addList(list) | ||
50 | + } | ||
51 | + } | ||
52 | +} |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/activity/MessageNoticeActivity.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.activity | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.R | ||
4 | +import com.br_technology.securitytrain_master.databinding.ActivityMessageNoticeBinding | ||
5 | +import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse | ||
6 | +import com.br_technology.securitytrain_master.ui.mine.adapter.LearningReportDetailAdapter | ||
7 | +import com.br_technology.securitytrain_master.ui.mine.adapter.MessageNoticeAdapter | ||
8 | +import com.br_technology.securitytrain_master.ui.mine.viewmodel.MessageNoticeViewModel | ||
9 | +import com.br_technology.securitytrain_master.view.listener.OnItemClickListener | ||
10 | +import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity | ||
11 | + | ||
12 | +/** | ||
13 | + * Time: 8/2/2021 17:46 | ||
14 | + * Author: Captain | ||
15 | + * Description: 初见时你很迷人 | ||
16 | + */ | ||
17 | +class MessageNoticeActivity : | ||
18 | + BaseLifeCycleActivity<MessageNoticeViewModel, ActivityMessageNoticeBinding>( | ||
19 | + ActivityMessageNoticeBinding::inflate | ||
20 | + ) { | ||
21 | + override fun initDataObserver() { | ||
22 | + | ||
23 | + } | ||
24 | + | ||
25 | + override fun initData() { | ||
26 | + super.initData() | ||
27 | + binding.apply { | ||
28 | + val messageNoticeAdapter = MessageNoticeAdapter() | ||
29 | + val list = mutableListOf( | ||
30 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "45分", "平台通知"), | ||
31 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "68分", "平台通知"), | ||
32 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "100分", "平台通知"), | ||
33 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知"), | ||
34 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知"), | ||
35 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知"), | ||
36 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知"), | ||
37 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知"), | ||
38 | + ) | ||
39 | + recyclerview.adapter = messageNoticeAdapter | ||
40 | + messageNoticeAdapter.addList(list) | ||
41 | + | ||
42 | + messageNoticeAdapter.addListener(object : OnItemClickListener<VideoCourse> { | ||
43 | + override fun onClick(position: Int, data: VideoCourse) { | ||
44 | + startActivity(MessageNoticeDetailActivity::class.java) | ||
45 | + } | ||
46 | + | ||
47 | + }) | ||
48 | + } | ||
49 | + } | ||
50 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.activity | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.R | ||
4 | +import com.br_technology.securitytrain_master.databinding.ActivityMessageNoticeDetailBinding | ||
5 | +import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse | ||
6 | +import com.br_technology.securitytrain_master.ui.mine.adapter.MessageNoticeAdapter | ||
7 | +import com.br_technology.securitytrain_master.ui.mine.adapter.MessageNoticeDetailAdapter | ||
8 | +import com.br_technology.securitytrain_master.ui.mine.viewmodel.MessageNoticeDetailViewModel | ||
9 | +import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity | ||
10 | + | ||
11 | +/** | ||
12 | + * Time: 8/3/2021 9:03 | ||
13 | + * Author: Captain | ||
14 | + * Description: 初见时你很迷人 | ||
15 | + */ | ||
16 | +class MessageNoticeDetailActivity : | ||
17 | + BaseLifeCycleActivity<MessageNoticeDetailViewModel, ActivityMessageNoticeDetailBinding>( | ||
18 | + ActivityMessageNoticeDetailBinding::inflate | ||
19 | + ) { | ||
20 | + override fun initDataObserver() { | ||
21 | + | ||
22 | + } | ||
23 | + | ||
24 | + override fun initData() { | ||
25 | + super.initData() | ||
26 | + binding.apply { | ||
27 | + val messageNoticeDetailAdapter = MessageNoticeDetailAdapter() | ||
28 | + val list = mutableListOf( | ||
29 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "45分", "平台通知详情"), | ||
30 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "68分", "平台通知详情"), | ||
31 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "100分", "平台通知详情"), | ||
32 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知详情"), | ||
33 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知详情"), | ||
34 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知详情"), | ||
35 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知详情"), | ||
36 | + VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知详情"), | ||
37 | + ) | ||
38 | + recyclerview.adapter = messageNoticeDetailAdapter | ||
39 | + messageNoticeDetailAdapter.addList(list) | ||
40 | + } | ||
41 | + } | ||
42 | +} |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/adapter/AcademicFeedbackAdapter.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.adapter | ||
2 | + | ||
3 | +import android.content.Context | ||
4 | +import android.view.LayoutInflater | ||
5 | +import android.view.ViewGroup | ||
6 | +import com.br_technology.securitytrain_master.base.view.BaseAdapter | ||
7 | +import com.br_technology.securitytrain_master.databinding.ItemAcademicFeedbackBinding | ||
8 | +import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse | ||
9 | + | ||
10 | +/** | ||
11 | + * Time: 8/2/2021 15:05 | ||
12 | + * Author: Captain | ||
13 | + * Description: 初见时你很迷人 | ||
14 | + */ | ||
15 | +class AcademicFeedbackAdapter : BaseAdapter<VideoCourse, ItemAcademicFeedbackBinding>() { | ||
16 | + override fun getViewBinding( | ||
17 | + context: Context, | ||
18 | + parent: ViewGroup, | ||
19 | + viewType: Int, | ||
20 | + from: LayoutInflater | ||
21 | + ): ItemAcademicFeedbackBinding { | ||
22 | + return ItemAcademicFeedbackBinding.inflate(from, parent, false) | ||
23 | + } | ||
24 | + | ||
25 | + override fun onBind(holder: ItemAcademicFeedbackBinding, position: Int, data: VideoCourse) { | ||
26 | + holder.tvTitle.text = data.courseName | ||
27 | + holder.tvCourseTime.text = data.lesson | ||
28 | + } | ||
29 | +} |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/adapter/CourseAdapter.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.adapter | ||
2 | + | ||
3 | +import android.content.Context | ||
4 | +import android.view.LayoutInflater | ||
5 | +import android.view.ViewGroup | ||
6 | +import com.br_technology.securitytrain_master.base.view.BaseAdapter | ||
7 | +import com.br_technology.securitytrain_master.databinding.ItemCourseBinding | ||
8 | +import com.br_technology.securitytrain_master.databinding.ItemLearningReportBinding | ||
9 | +import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse | ||
10 | + | ||
11 | +/** | ||
12 | + * Time: 8/3/2021 11:29 | ||
13 | + * Author: Captain | ||
14 | + * Description: 初见时你很迷人 | ||
15 | + */ | ||
16 | +class CourseAdapter : BaseAdapter<VideoCourse,ItemCourseBinding>() { | ||
17 | + override fun getViewBinding( | ||
18 | + context: Context, | ||
19 | + parent: ViewGroup, | ||
20 | + viewType: Int, | ||
21 | + from: LayoutInflater | ||
22 | + ): ItemCourseBinding { | ||
23 | + return ItemCourseBinding.inflate(from, parent, false) | ||
24 | + } | ||
25 | + | ||
26 | + override fun onBind(holder: ItemCourseBinding, position: Int, data: VideoCourse) { | ||
27 | + holder.tvTitle.text = data.courseName | ||
28 | + holder.tvTime.text = data.head | ||
29 | + holder.tvLesson.text = data.lesson | ||
30 | + } | ||
31 | +} |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/adapter/LearningReportAdapter.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.adapter | ||
2 | + | ||
3 | +import android.content.Context | ||
4 | +import android.view.LayoutInflater | ||
5 | +import android.view.ViewGroup | ||
6 | +import com.br_technology.securitytrain_master.base.view.BaseAdapter | ||
7 | +import com.br_technology.securitytrain_master.databinding.ItemAcademicFeedbackBinding | ||
8 | +import com.br_technology.securitytrain_master.databinding.ItemLearningReportBinding | ||
9 | +import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse | ||
10 | + | ||
11 | +/** | ||
12 | + * Time: 8/2/2021 16:37 | ||
13 | + * Author: Captain | ||
14 | + * Description: 初见时你很迷人 | ||
15 | + */ | ||
16 | +class LearningReportAdapter : BaseAdapter<VideoCourse,ItemLearningReportBinding>() { | ||
17 | + override fun getViewBinding( | ||
18 | + context: Context, | ||
19 | + parent: ViewGroup, | ||
20 | + viewType: Int, | ||
21 | + from: LayoutInflater | ||
22 | + ): ItemLearningReportBinding { | ||
23 | + return ItemLearningReportBinding.inflate(from, parent, false) | ||
24 | + } | ||
25 | + | ||
26 | + override fun onBind(holder: ItemLearningReportBinding, position: Int, data: VideoCourse) { | ||
27 | + holder.tvTitle.text = data.courseName | ||
28 | + holder.tvTime.text = data.lesson | ||
29 | + holder.tvType.text = data.head | ||
30 | + holder.tvScore.text = data.name | ||
31 | + } | ||
32 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.adapter | ||
2 | + | ||
3 | +import android.content.Context | ||
4 | +import android.view.LayoutInflater | ||
5 | +import android.view.ViewGroup | ||
6 | +import com.br_technology.securitytrain_master.base.view.BaseAdapter | ||
7 | +import com.br_technology.securitytrain_master.databinding.ItemExamForAllBinding | ||
8 | +import com.br_technology.securitytrain_master.databinding.ItemLearningReportBinding | ||
9 | +import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse | ||
10 | + | ||
11 | +/** | ||
12 | + * Time: 8/2/2021 17:42 | ||
13 | + * Author: Captain | ||
14 | + * Description: 初见时你很迷人 | ||
15 | + */ | ||
16 | +class LearningReportDetailAdapter : BaseAdapter<VideoCourse,ItemExamForAllBinding>() { | ||
17 | + override fun getViewBinding( | ||
18 | + context: Context, | ||
19 | + parent: ViewGroup, | ||
20 | + viewType: Int, | ||
21 | + from: LayoutInflater | ||
22 | + ): ItemExamForAllBinding { | ||
23 | + return ItemExamForAllBinding.inflate(from, parent, false) | ||
24 | + } | ||
25 | + | ||
26 | + override fun onBind(holder: ItemExamForAllBinding, position: Int, data: VideoCourse) { | ||
27 | + holder.tvTitle.text = data.courseName | ||
28 | + holder.tvTime.text = data.lesson | ||
29 | + holder.tvStatus.text = data.name | ||
30 | + holder.tvScore.text = data.head | ||
31 | + } | ||
32 | +} |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/adapter/MessageNoticeAdapter.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.adapter | ||
2 | + | ||
3 | +import android.content.Context | ||
4 | +import android.view.LayoutInflater | ||
5 | +import android.view.ViewGroup | ||
6 | +import com.br_technology.securitytrain_master.base.view.BaseAdapter | ||
7 | +import com.br_technology.securitytrain_master.databinding.ItemExamForAllBinding | ||
8 | +import com.br_technology.securitytrain_master.databinding.ItemMessageNoticeBinding | ||
9 | +import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse | ||
10 | + | ||
11 | +/** | ||
12 | + * Time: 8/3/2021 8:55 | ||
13 | + * Author: Captain | ||
14 | + * Description: 初见时你很迷人 | ||
15 | + */ | ||
16 | +class MessageNoticeAdapter : BaseAdapter<VideoCourse,ItemMessageNoticeBinding>() { | ||
17 | + override fun getViewBinding( | ||
18 | + context: Context, | ||
19 | + parent: ViewGroup, | ||
20 | + viewType: Int, | ||
21 | + from: LayoutInflater | ||
22 | + ): ItemMessageNoticeBinding { | ||
23 | + return ItemMessageNoticeBinding.inflate(from, parent, false) | ||
24 | + } | ||
25 | + | ||
26 | + override fun onBind(holder: ItemMessageNoticeBinding, position: Int, data: VideoCourse) { | ||
27 | + holder.tvTitle.text = data.courseName | ||
28 | + holder.tvTime.text = data.lesson | ||
29 | + holder.tvInfo.text = data.name | ||
30 | + } | ||
31 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.adapter | ||
2 | + | ||
3 | +import android.content.Context | ||
4 | +import android.view.LayoutInflater | ||
5 | +import android.view.ViewGroup | ||
6 | +import com.br_technology.securitytrain_master.base.view.BaseAdapter | ||
7 | +import com.br_technology.securitytrain_master.databinding.ItemMessageNoticeBinding | ||
8 | +import com.br_technology.securitytrain_master.databinding.ItemMessageNoticeDetailBinding | ||
9 | +import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse | ||
10 | + | ||
11 | +/** | ||
12 | + * Time: 8/3/2021 9:31 | ||
13 | + * Author: Captain | ||
14 | + * Description: 初见时你很迷人 | ||
15 | + */ | ||
16 | +class MessageNoticeDetailAdapter : BaseAdapter<VideoCourse,ItemMessageNoticeDetailBinding>() { | ||
17 | + override fun getViewBinding( | ||
18 | + context: Context, | ||
19 | + parent: ViewGroup, | ||
20 | + viewType: Int, | ||
21 | + from: LayoutInflater | ||
22 | + ): ItemMessageNoticeDetailBinding { | ||
23 | + return ItemMessageNoticeDetailBinding.inflate(from, parent, false) | ||
24 | + } | ||
25 | + | ||
26 | + override fun onBind(holder: ItemMessageNoticeDetailBinding, position: Int, data: VideoCourse) { | ||
27 | + holder.tvInfo.text = data.name | ||
28 | + } | ||
29 | +} |
@@ -26,7 +26,7 @@ class MyCredentialsAdapter : BaseAdapter<RecommendData, ItemMyCredentialsUploadB | @@ -26,7 +26,7 @@ class MyCredentialsAdapter : BaseAdapter<RecommendData, ItemMyCredentialsUploadB | ||
26 | parent: ViewGroup, | 26 | parent: ViewGroup, |
27 | viewType: Int, | 27 | viewType: Int, |
28 | from: LayoutInflater | 28 | from: LayoutInflater |
29 | - ): ViewBinding { | 29 | + ): ItemMyCredentialsUploadBinding { |
30 | return ItemMyCredentialsUploadBinding.inflate(from, parent, false) | 30 | return ItemMyCredentialsUploadBinding.inflate(from, parent, false) |
31 | } | 31 | } |
32 | 32 | ||
@@ -40,10 +40,6 @@ class MyCredentialsAdapter : BaseAdapter<RecommendData, ItemMyCredentialsUploadB | @@ -40,10 +40,6 @@ class MyCredentialsAdapter : BaseAdapter<RecommendData, ItemMyCredentialsUploadB | ||
40 | 40 | ||
41 | if (holder is ItemMyCredentialsUploadBinding) { | 41 | if (holder is ItemMyCredentialsUploadBinding) { |
42 | holder.ivBg.glideRound(data.pic, 16) | 42 | holder.ivBg.glideRound(data.pic, 16) |
43 | - } else if (holder is ItemMycredentialsShowBinding) { | ||
44 | - holder.ivBg.glideRound(data.pic, 16) | ||
45 | - holder.tvName.text = data.name | ||
46 | - holder.tvTime.text = data.info | ||
47 | } | 43 | } |
48 | } | 44 | } |
49 | } | 45 | } |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/fragment/CourseFragment.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.fragment | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.R | ||
4 | +import com.br_technology.securitytrain_master.databinding.FragmentCourseBinding | ||
5 | +import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse | ||
6 | +import com.br_technology.securitytrain_master.ui.mine.adapter.CourseAdapter | ||
7 | +import com.br_technology.securitytrain_master.ui.mine.adapter.MockExaminationAdapter | ||
8 | +import com.br_technology.securitytrain_master.ui.mine.viewmodel.CourseViewModel | ||
9 | +import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleFragment | ||
10 | + | ||
11 | +/** | ||
12 | + * Time: 8/3/2021 11:24 | ||
13 | + * Author: Captain | ||
14 | + * Description: 初见时你很迷人 | ||
15 | + */ | ||
16 | +class CourseFragment : | ||
17 | + BaseLifeCycleFragment<CourseViewModel, FragmentCourseBinding>(FragmentCourseBinding::inflate) { | ||
18 | + override fun initDataObserver() { | ||
19 | + | ||
20 | + } | ||
21 | + | ||
22 | + override fun initData() { | ||
23 | + super.initData() | ||
24 | + binding.apply { | ||
25 | + val courseAdapter = CourseAdapter() | ||
26 | + val list = mutableListOf( | ||
27 | + VideoCourse(R.mipmap.banner, "12学时", "[直播]自动化制作课程", "2020-09-09 12:00", "张钧-三岗职位培训班"), | ||
28 | + VideoCourse(R.mipmap.banner, "12学时", "[直播]自动化制作课程", "2020-09-09 12:00", "张钧-三岗职位培训班"), | ||
29 | + VideoCourse(R.mipmap.banner, "12学时", "[直播]自动化制作课程", "2020-09-09 12:00", "张钧-三岗职位培训班"), | ||
30 | + VideoCourse(R.mipmap.banner, "12学时", "[直播]自动化制作课程", "2020-09-09 12:00", "张钧-三岗职位培训班"), | ||
31 | + ) | ||
32 | + recyclerview.adapter = courseAdapter | ||
33 | + courseAdapter.addList(list) | ||
34 | + | ||
35 | + prUploadValue.setProgress(70) | ||
36 | + } | ||
37 | + } | ||
38 | +} |
@@ -33,16 +33,33 @@ class MineFragment | @@ -33,16 +33,33 @@ class MineFragment | ||
33 | rlMineLianxikefu.setOnClickListener(this@MineFragment) | 33 | rlMineLianxikefu.setOnClickListener(this@MineFragment) |
34 | 34 | ||
35 | tvOfflineExercise.setOnClickListener(this@MineFragment) | 35 | tvOfflineExercise.setOnClickListener(this@MineFragment) |
36 | + tvAcademicFeedback.setOnClickListener(this@MineFragment) | ||
37 | + tvLearningReport.setOnClickListener(this@MineFragment) | ||
38 | + tvClassDuty.setOnClickListener(this@MineFragment) | ||
39 | + ivMessage.setOnClickListener(this@MineFragment) | ||
36 | } | 40 | } |
37 | } | 41 | } |
38 | 42 | ||
39 | override fun onClick(v: View?) { | 43 | override fun onClick(v: View?) { |
40 | when (v!!.id) { | 44 | when (v!!.id) { |
45 | + R.id.iv_message -> { | ||
46 | + startActivity(MessageNoticeActivity::class.java) | ||
47 | + } | ||
48 | + R.id.tv_class_duty -> { | ||
49 | + startActivity(ClassDutyActivity::class.java) | ||
50 | + } | ||
51 | + R.id.tv_academic_feedback -> { | ||
52 | + startActivity(AcademicFeedbackActivity::class.java) | ||
53 | + } | ||
41 | R.id.tv_offline_exercise -> { | 54 | R.id.tv_offline_exercise -> { |
42 | //线下培训 | 55 | //线下培训 |
43 | startActivity(OfflineExerciseActivity::class.java) | 56 | startActivity(OfflineExerciseActivity::class.java) |
44 | } | 57 | } |
45 | 58 | ||
59 | + R.id.tv_learning_report -> { | ||
60 | + startActivity(LearningReportActivity::class.java) | ||
61 | + } | ||
62 | + | ||
46 | R.id.iv_edit_info -> { | 63 | R.id.iv_edit_info -> { |
47 | //编辑个人信息 | 64 | //编辑个人信息 |
48 | startActivity(EditPersonalInfoActivity::class.java) | 65 | startActivity(EditPersonalInfoActivity::class.java) |
@@ -73,6 +90,7 @@ class MineFragment | @@ -73,6 +90,7 @@ class MineFragment | ||
73 | 90 | ||
74 | R.id.rl_mine_tousuyujianyi -> { | 91 | R.id.rl_mine_tousuyujianyi -> { |
75 | //投诉与建议 | 92 | //投诉与建议 |
93 | + startActivity(ComplaintsAndSuggestionsActivity::class.java) | ||
76 | } | 94 | } |
77 | 95 | ||
78 | R.id.rl_mine_lianxikefu -> { | 96 | R.id.rl_mine_lianxikefu -> { |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/repository/ClassDutyRepository.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.repository | ||
2 | + | ||
3 | +import androidx.lifecycle.MutableLiveData | ||
4 | +import com.br_technology.securitytrain_master.base.common.State | ||
5 | +import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository | ||
6 | + | ||
7 | +/** | ||
8 | + * Time: 8/3/2021 11:16 | ||
9 | + * Author: Captain | ||
10 | + * Description: 初见时你很迷人 | ||
11 | + */ | ||
12 | +class ClassDutyRepository(val loadState: MutableLiveData<State>) : ApiRepository() { | ||
13 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.repository | ||
2 | + | ||
3 | +import androidx.lifecycle.MutableLiveData | ||
4 | +import com.br_technology.securitytrain_master.base.common.State | ||
5 | +import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository | ||
6 | + | ||
7 | +/** | ||
8 | + * Time: 8/3/2021 10:09 | ||
9 | + * Author: Captain | ||
10 | + * Description: 初见时你很迷人 | ||
11 | + */ | ||
12 | +class ComplaintsAndSuggestionsRepository(val loadState: MutableLiveData<State>) : ApiRepository() { | ||
13 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.repository | ||
2 | + | ||
3 | +import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository | ||
4 | + | ||
5 | +/** | ||
6 | + * Time: 8/3/2021 10:59 | ||
7 | + * Author: Captain | ||
8 | + * Description: 初见时你很迷人 | ||
9 | + */ | ||
10 | +class ComplaintsAndSuggestionsSuccessRepository : ApiRepository() { | ||
11 | +} |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/repository/CourseRepository.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.repository | ||
2 | + | ||
3 | +import androidx.lifecycle.MutableLiveData | ||
4 | +import com.br_technology.securitytrain_master.base.common.State | ||
5 | +import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository | ||
6 | + | ||
7 | +/** | ||
8 | + * Time: 8/3/2021 11:25 | ||
9 | + * Author: Captain | ||
10 | + * Description: 初见时你很迷人 | ||
11 | + */ | ||
12 | +class CourseRepository(val loadState: MutableLiveData<State>) : ApiRepository() { | ||
13 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.repository | ||
2 | + | ||
3 | +import androidx.lifecycle.MutableLiveData | ||
4 | +import com.br_technology.securitytrain_master.base.common.State | ||
5 | +import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository | ||
6 | + | ||
7 | +/** | ||
8 | + * Time: 8/2/2021 16:47 | ||
9 | + * Author: Captain | ||
10 | + * Description: 初见时你很迷人 | ||
11 | + */ | ||
12 | +class LearningReportDetailRepository(val loadState: MutableLiveData<State>) : ApiRepository() { | ||
13 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.repository | ||
2 | + | ||
3 | +import androidx.lifecycle.MutableLiveData | ||
4 | +import com.br_technology.securitytrain_master.base.common.State | ||
5 | +import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository | ||
6 | + | ||
7 | +/** | ||
8 | + * Time: 8/2/2021 15:52 | ||
9 | + * Author: Captain | ||
10 | + * Description: 初见时你很迷人 | ||
11 | + */ | ||
12 | +class LearningReportRepository(val loadState: MutableLiveData<State>) : ApiRepository() { | ||
13 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.repository | ||
2 | + | ||
3 | +import androidx.lifecycle.MutableLiveData | ||
4 | +import com.br_technology.securitytrain_master.base.common.State | ||
5 | +import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository | ||
6 | + | ||
7 | +/** | ||
8 | + * Time: 8/3/2021 9:29 | ||
9 | + * Author: Captain | ||
10 | + * Description: 初见时你很迷人 | ||
11 | + */ | ||
12 | +class MessageNoticeDetailRepository(val loadState: MutableLiveData<State>) : ApiRepository() { | ||
13 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.repository | ||
2 | + | ||
3 | +import androidx.lifecycle.MutableLiveData | ||
4 | +import com.br_technology.securitytrain_master.base.common.State | ||
5 | +import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository | ||
6 | + | ||
7 | +/** | ||
8 | + * Time: 8/2/2021 18:00 | ||
9 | + * Author: Captain | ||
10 | + * Description: 初见时你很迷人 | ||
11 | + */ | ||
12 | +class MessageNoticeRepository(val loadState: MutableLiveData<State>) : ApiRepository() { | ||
13 | +} |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/viewmodel/ClassDutyViewModel.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.viewmodel | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.ui.mine.repository.ClassDutyRepository | ||
4 | +import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel | ||
5 | + | ||
6 | +/** | ||
7 | + * Time: 8/3/2021 11:16 | ||
8 | + * Author: Captain | ||
9 | + * Description: 初见时你很迷人 | ||
10 | + */ | ||
11 | +class ClassDutyViewModel : BaseViewModel<ClassDutyRepository>() { | ||
12 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.viewmodel | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.ui.mine.repository.ComplaintsAndSuggestionsSuccessRepository | ||
4 | +import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel | ||
5 | + | ||
6 | +/** | ||
7 | + * Time: 8/3/2021 11:00 | ||
8 | + * Author: Captain | ||
9 | + * Description: 初见时你很迷人 | ||
10 | + */ | ||
11 | +class ComplaintsAndSuggestionsSuccessViewModel : BaseViewModel<ComplaintsAndSuggestionsSuccessRepository>() { | ||
12 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.viewmodel | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.ui.mine.repository.ComplaintsAndSuggestionsRepository | ||
4 | +import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel | ||
5 | + | ||
6 | +/** | ||
7 | + * Time: 8/3/2021 10:09 | ||
8 | + * Author: Captain | ||
9 | + * Description: 初见时你很迷人 | ||
10 | + */ | ||
11 | +class ComplaintsAndSuggestionsViewModel : BaseViewModel<ComplaintsAndSuggestionsRepository>() { | ||
12 | +} |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/viewmodel/CourseViewModel.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.viewmodel | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.ui.mine.repository.CourseRepository | ||
4 | +import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel | ||
5 | + | ||
6 | +/** | ||
7 | + * Time: 8/3/2021 11:25 | ||
8 | + * Author: Captain | ||
9 | + * Description: 初见时你很迷人 | ||
10 | + */ | ||
11 | +class CourseViewModel : BaseViewModel<CourseRepository>() { | ||
12 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.viewmodel | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.ui.mine.activity.LearningReportDetailActivity | ||
4 | +import com.br_technology.securitytrain_master.ui.mine.repository.LearningReportDetailRepository | ||
5 | +import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel | ||
6 | + | ||
7 | +/** | ||
8 | + * Time: 8/2/2021 16:47 | ||
9 | + * Author: Captain | ||
10 | + * Description: 初见时你很迷人 | ||
11 | + */ | ||
12 | +class LearningReportDetailViewModel : BaseViewModel<LearningReportDetailRepository>() { | ||
13 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.viewmodel | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.ui.mine.repository.LearningReportRepository | ||
4 | +import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel | ||
5 | + | ||
6 | +/** | ||
7 | + * Time: 8/2/2021 15:52 | ||
8 | + * Author: Captain | ||
9 | + * Description: 初见时你很迷人 | ||
10 | + */ | ||
11 | +class LearningReportViewModel : BaseViewModel<LearningReportRepository>() { | ||
12 | +} |
1 | +package com.br_technology.securitytrain_master.ui.mine.viewmodel | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.ui.mine.repository.MessageNoticeDetailRepository | ||
4 | +import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel | ||
5 | + | ||
6 | +/** | ||
7 | + * Time: 8/3/2021 9:29 | ||
8 | + * Author: Captain | ||
9 | + * Description: 初见时你很迷人 | ||
10 | + */ | ||
11 | +class MessageNoticeDetailViewModel : BaseViewModel<MessageNoticeDetailRepository>() { | ||
12 | +} |
app/src/main/java/com/br_technology/securitytrain_master/ui/mine/viewmodel/MessageNoticeViewModel.kt
0 → 100644
1 | +package com.br_technology.securitytrain_master.ui.mine.viewmodel | ||
2 | + | ||
3 | +import com.br_technology.securitytrain_master.ui.mine.repository.MessageNoticeRepository | ||
4 | +import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel | ||
5 | + | ||
6 | +/** | ||
7 | + * Time: 8/2/2021 18:01 | ||
8 | + * Author: Captain | ||
9 | + * Description: 初见时你很迷人 | ||
10 | + */ | ||
11 | +class MessageNoticeViewModel : BaseViewModel<MessageNoticeRepository>() { | ||
12 | +} |
@@ -8,5 +8,5 @@ import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel | @@ -8,5 +8,5 @@ import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel | ||
8 | * Author: Captain | 8 | * Author: Captain |
9 | * Description: 初见时你很迷人 | 9 | * Description: 初见时你很迷人 |
10 | */ | 10 | */ |
11 | -class MyCredentialDetailViewModel : BaseViewModel<MyCredentialsDetailRepository> { | 11 | +class MyCredentialDetailViewModel : BaseViewModel<MyCredentialsDetailRepository>() { |
12 | } | 12 | } |
@@ -34,8 +34,8 @@ class DialogTitle(context: Context) : Dialog(context, R.style.UserDefaultDialog) | @@ -34,8 +34,8 @@ class DialogTitle(context: Context) : Dialog(context, R.style.UserDefaultDialog) | ||
34 | setContentView(binding.root) | 34 | setContentView(binding.root) |
35 | val attributes = window?.attributes | 35 | val attributes = window?.attributes |
36 | attributes?.width = binding.root.screenWidth() - 80.dp2px() | 36 | attributes?.width = binding.root.screenWidth() - 80.dp2px() |
37 | - // 点击区域外不取消 | ||
38 | - setCanceledOnTouchOutside(false) | 37 | + // 点击区域外取消 |
38 | + setCanceledOnTouchOutside(true) | ||
39 | 39 | ||
40 | binding.apply { | 40 | binding.apply { |
41 | // 确定 | 41 | // 确定 |
@@ -73,6 +73,22 @@ class DialogTitle(context: Context) : Dialog(context, R.style.UserDefaultDialog) | @@ -73,6 +73,22 @@ class DialogTitle(context: Context) : Dialog(context, R.style.UserDefaultDialog) | ||
73 | return this | 73 | return this |
74 | } | 74 | } |
75 | 75 | ||
76 | + fun setImageTitle(ivTitle: Int): DialogTitle { | ||
77 | + binding.ivTitle.setImageResource(ivTitle) | ||
78 | + return this | ||
79 | + } | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + fun hideCompleteButton(boolean: Boolean): DialogTitle { | ||
84 | + if (boolean) { | ||
85 | + binding.complete.visibility = View.GONE | ||
86 | + } else { | ||
87 | + binding.complete.visibility = View.VISIBLE | ||
88 | + } | ||
89 | + return this | ||
90 | + } | ||
91 | + | ||
76 | fun setInfo(title: String): DialogTitle { | 92 | fun setInfo(title: String): DialogTitle { |
77 | binding.info.text = title | 93 | binding.info.text = title |
78 | binding.info.visibility = View.VISIBLE | 94 | binding.info.visibility = View.VISIBLE |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | + | ||
3 | +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
4 | + <item android:id="@android:id/background"> | ||
5 | + <shape> | ||
6 | + <corners android:radius="10dp" /> | ||
7 | + <solid android:color="@color/color_eff2"/> | ||
8 | + | ||
9 | + </shape> | ||
10 | + </item> | ||
11 | + <item android:id="@android:id/progress"> | ||
12 | + <clip | ||
13 | + android:clipOrientation="horizontal" | ||
14 | + android:gravity="start"> | ||
15 | + <shape> | ||
16 | + <corners android:radius="10dp" /> | ||
17 | + <gradient | ||
18 | + android:startColor="@color/color_4425FF" | ||
19 | + android:endColor="@color/color_25CBFF" | ||
20 | + android:angle="45" | ||
21 | + /> | ||
22 | + </shape> | ||
23 | + </clip> | ||
24 | + </item> | ||
25 | +</layer-list> |
app/src/main/res/drawable/solid_ff_16.xml
0 → 100644
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | -<androidx.constraintlayout.widget.ConstraintLayout | ||
3 | - xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" | ||
4 | - android:layout_height="match_parent"> | 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
4 | + android:layout_width="match_parent" | ||
5 | + android:layout_height="match_parent" | ||
6 | + android:background="@color/white" | ||
7 | + android:orientation="vertical"> | ||
5 | 8 | ||
6 | -</androidx.constraintlayout.widget.ConstraintLayout> | ||
9 | + <include layout="@layout/layout_tool_bar" /> | ||
10 | + | ||
11 | + <com.br_technology.securitytrain_master.view.ViewToolBar | ||
12 | + android:id="@+id/tool_bar" | ||
13 | + android:layout_width="match_parent" | ||
14 | + android:layout_height="wrap_content" | ||
15 | + app:toolTitle="学情反馈" /> | ||
16 | + | ||
17 | + <androidx.recyclerview.widget.RecyclerView | ||
18 | + android:id="@+id/recyclerview" | ||
19 | + android:layout_width="match_parent" | ||
20 | + android:layout_height="wrap_content" | ||
21 | + android:nestedScrollingEnabled="false" | ||
22 | + android:overScrollMode="never" | ||
23 | + android:scrollbars="none" | ||
24 | + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" > | ||
25 | + </androidx.recyclerview.widget.RecyclerView> | ||
26 | + | ||
27 | +</LinearLayout> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
4 | + android:orientation="vertical" | ||
5 | + android:background="@color/white" | ||
6 | + android:layout_width="match_parent" | ||
7 | + android:layout_height="match_parent"> | ||
8 | + | ||
9 | + <include layout="@layout/layout_tool_bar" /> | ||
10 | + | ||
11 | + <com.br_technology.securitytrain_master.view.ViewToolBar | ||
12 | + android:id="@+id/tool_bar" | ||
13 | + android:layout_width="match_parent" | ||
14 | + android:layout_height="wrap_content" | ||
15 | + app:toolTitle="班级任务" /> | ||
16 | + | ||
17 | + <com.google.android.material.tabs.TabLayout | ||
18 | + android:id="@+id/tab_layout" | ||
19 | + style="@style/SearchTab" | ||
20 | + android:layout_width="match_parent" | ||
21 | + android:layout_height="?actionBarSize" | ||
22 | + android:overScrollMode="never" | ||
23 | + app:tabMode="auto" | ||
24 | + app:tabSelectedTextColor="@color/color_252" | ||
25 | + app:tabTextColor="@color/color_96" /> | ||
26 | + | ||
27 | + <View | ||
28 | + android:layout_width="match_parent" | ||
29 | + android:layout_height="8dp" | ||
30 | + android:background="@color/color_f7"></View> | ||
31 | + | ||
32 | + <androidx.viewpager.widget.ViewPager | ||
33 | + android:id="@+id/view_pager" | ||
34 | + android:layout_width="match_parent" | ||
35 | + android:layout_height="match_parent"> | ||
36 | + | ||
37 | + </androidx.viewpager.widget.ViewPager> | ||
38 | + | ||
39 | +</LinearLayout> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
4 | + android:layout_width="match_parent" | ||
5 | + android:layout_height="match_parent" | ||
6 | + android:orientation="vertical"> | ||
7 | + | ||
8 | + <include layout="@layout/layout_tool_bar" /> | ||
9 | + | ||
10 | + <com.br_technology.securitytrain_master.view.ViewToolBar | ||
11 | + android:id="@+id/tool_bar" | ||
12 | + android:layout_width="match_parent" | ||
13 | + android:layout_height="wrap_content" | ||
14 | + app:toolTitle="投诉与建议" /> | ||
15 | + | ||
16 | + <TextView | ||
17 | + android:layout_width="wrap_content" | ||
18 | + android:layout_height="wrap_content" | ||
19 | + android:layout_marginStart="16dp" | ||
20 | + android:layout_marginTop="16dp" | ||
21 | + android:text="投诉类型" | ||
22 | + android:textColor="@color/color_32" | ||
23 | + android:textSize="18sp" | ||
24 | + android:textStyle="bold" /> | ||
25 | + | ||
26 | + <LinearLayout | ||
27 | + android:layout_width="match_parent" | ||
28 | + android:layout_height="48dp" | ||
29 | + android:layout_marginStart="16dp" | ||
30 | + android:layout_marginTop="12dp" | ||
31 | + android:layout_marginEnd="16dp" | ||
32 | + android:background="@drawable/solid_eff2_8" | ||
33 | + android:orientation="horizontal"> | ||
34 | + | ||
35 | + <TextView | ||
36 | + android:layout_width="wrap_content" | ||
37 | + android:layout_height="wrap_content" | ||
38 | + android:layout_gravity="center_vertical" | ||
39 | + android:layout_marginStart="16dp" | ||
40 | + android:layout_weight="1" | ||
41 | + android:text="内容与建议" | ||
42 | + android:textColor="@color/color_32" | ||
43 | + android:textSize="14sp" /> | ||
44 | + | ||
45 | + <ImageView | ||
46 | + android:layout_width="wrap_content" | ||
47 | + android:layout_height="wrap_content" | ||
48 | + android:layout_gravity="center_vertical" | ||
49 | + android:layout_marginEnd="16dp" | ||
50 | + android:src="@mipmap/ic_arrow" /> | ||
51 | + | ||
52 | + </LinearLayout> | ||
53 | + | ||
54 | + <TextView | ||
55 | + android:layout_width="wrap_content" | ||
56 | + android:layout_height="wrap_content" | ||
57 | + android:layout_marginStart="16dp" | ||
58 | + android:layout_marginTop="24dp" | ||
59 | + android:text="具体问题" | ||
60 | + android:textColor="@color/color_32" | ||
61 | + android:textSize="18sp" | ||
62 | + android:textStyle="bold" /> | ||
63 | + | ||
64 | + <EditText | ||
65 | + android:layout_width="match_parent" | ||
66 | + android:layout_height="142dp" | ||
67 | + android:layout_marginStart="16dp" | ||
68 | + android:layout_marginTop="12dp" | ||
69 | + android:layout_marginEnd="16dp" | ||
70 | + android:background="@drawable/solid_eff2_8" | ||
71 | + android:gravity="start" | ||
72 | + android:hint="请填写具体意见" | ||
73 | + android:padding="16dp" | ||
74 | + android:textColor="@color/color_32" | ||
75 | + android:textColorHint="@color/color_96" | ||
76 | + android:textSize="14sp" /> | ||
77 | + | ||
78 | + <TextView | ||
79 | + android:layout_width="wrap_content" | ||
80 | + android:layout_height="wrap_content" | ||
81 | + android:layout_marginStart="16dp" | ||
82 | + android:layout_marginTop="24dp" | ||
83 | + android:text="手机号" | ||
84 | + android:textColor="@color/color_32" | ||
85 | + android:textSize="18sp" | ||
86 | + android:textStyle="bold" /> | ||
87 | + | ||
88 | + <EditText | ||
89 | + android:layout_width="match_parent" | ||
90 | + android:layout_height="48dp" | ||
91 | + android:layout_marginStart="16dp" | ||
92 | + android:layout_marginTop="12dp" | ||
93 | + android:layout_marginEnd="16dp" | ||
94 | + android:background="@drawable/solid_eff2_8" | ||
95 | + android:gravity="start" | ||
96 | + android:hint="请填写具体意见" | ||
97 | + android:padding="16dp" | ||
98 | + android:textColor="@color/color_32" | ||
99 | + android:textColorHint="@color/color_96" | ||
100 | + android:textSize="14sp" /> | ||
101 | + | ||
102 | + <RadioGroup | ||
103 | + android:id="@+id/radio_group" | ||
104 | + android:layout_width="match_parent" | ||
105 | + android:layout_height="wrap_content" | ||
106 | + android:orientation="horizontal"> | ||
107 | + | ||
108 | + <RadioButton | ||
109 | + android:id="@+id/rb_pingtai_jianyi" | ||
110 | + android:layout_width="wrap_content" | ||
111 | + android:layout_height="wrap_content" | ||
112 | + android:layout_marginStart="16dp" | ||
113 | + android:layout_marginTop="16dp" | ||
114 | + android:button="@mipmap/tousuyujianyi_sel" | ||
115 | + android:paddingStart="8dp" | ||
116 | + android:text="平台建议" | ||
117 | + android:textColor="@color/color_32" | ||
118 | + android:textSize="14sp" /> | ||
119 | + | ||
120 | + <RadioButton | ||
121 | + android:id="@+id/rb_qiye_jianyi" | ||
122 | + android:layout_width="wrap_content" | ||
123 | + android:layout_height="wrap_content" | ||
124 | + android:layout_marginStart="48dp" | ||
125 | + android:layout_marginTop="16dp" | ||
126 | + android:button="@mipmap/tousuyujianyi_unsel" | ||
127 | + android:paddingStart="8dp" | ||
128 | + android:text="企业建议" | ||
129 | + android:textColor="@color/color_32" | ||
130 | + android:textSize="14sp" /> | ||
131 | + | ||
132 | + </RadioGroup> | ||
133 | + | ||
134 | + <LinearLayout | ||
135 | + android:layout_width="match_parent" | ||
136 | + android:layout_height="48dp" | ||
137 | + android:layout_marginStart="16dp" | ||
138 | + android:layout_marginTop="24dp" | ||
139 | + android:layout_marginEnd="16dp" | ||
140 | + android:background="@drawable/solid_eff2_8" | ||
141 | + android:orientation="horizontal"> | ||
142 | + | ||
143 | + <TextView | ||
144 | + android:layout_width="wrap_content" | ||
145 | + android:layout_height="wrap_content" | ||
146 | + android:layout_gravity="center_vertical" | ||
147 | + android:layout_marginStart="16dp" | ||
148 | + android:layout_weight="1" | ||
149 | + android:text="是否匿名提交" | ||
150 | + android:textColor="@color/color_32" | ||
151 | + android:textSize="14sp" | ||
152 | + android:textStyle="bold" /> | ||
153 | + | ||
154 | + <ImageView | ||
155 | + android:id="@+id/iv_switch" | ||
156 | + android:layout_width="wrap_content" | ||
157 | + android:layout_height="wrap_content" | ||
158 | + android:layout_gravity="center_vertical" | ||
159 | + android:layout_marginEnd="16dp" | ||
160 | + android:src="@mipmap/switch_unsel" /> | ||
161 | + | ||
162 | + </LinearLayout> | ||
163 | + | ||
164 | + <LinearLayout | ||
165 | + android:layout_width="match_parent" | ||
166 | + android:layout_height="wrap_content" | ||
167 | + android:layout_weight="1" | ||
168 | + android:orientation="horizontal"> | ||
169 | + | ||
170 | + </LinearLayout> | ||
171 | + | ||
172 | + <TextView | ||
173 | + android:id="@+id/tv_upload" | ||
174 | + android:layout_width="343dp" | ||
175 | + android:layout_height="44dp" | ||
176 | + android:layout_gravity="center_horizontal" | ||
177 | + android:layout_marginTop="40dp" | ||
178 | + android:layout_marginBottom="42dp" | ||
179 | + android:background="@drawable/solid_25_4" | ||
180 | + android:gravity="center" | ||
181 | + android:text="提交信息" | ||
182 | + android:textColor="@color/white" | ||
183 | + android:textSize="16sp" /> | ||
184 | +</LinearLayout> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
4 | + android:layout_width="match_parent" | ||
5 | + android:layout_height="match_parent" | ||
6 | + android:background="@color/white" | ||
7 | + android:orientation="vertical"> | ||
8 | + | ||
9 | + <include layout="@layout/layout_tool_bar" /> | ||
10 | + | ||
11 | + <com.br_technology.securitytrain_master.view.ViewToolBar | ||
12 | + android:id="@+id/tool_bar" | ||
13 | + android:layout_width="match_parent" | ||
14 | + android:layout_height="wrap_content" | ||
15 | + app:toolTitle="投诉与建议" /> | ||
16 | + | ||
17 | + <ImageView | ||
18 | + android:layout_width="wrap_content" | ||
19 | + android:layout_height="wrap_content" | ||
20 | + android:layout_gravity="center_horizontal" | ||
21 | + android:layout_marginTop="80dp" | ||
22 | + android:src="@mipmap/tousuyujianyi_bg" /> | ||
23 | + | ||
24 | + <TextView | ||
25 | + android:layout_width="wrap_content" | ||
26 | + android:layout_height="wrap_content" | ||
27 | + android:layout_gravity="center_horizontal" | ||
28 | + android:layout_marginTop="24dp" | ||
29 | + android:text="提交成功" | ||
30 | + android:textColor="@color/color_252" | ||
31 | + android:textSize="18sp" | ||
32 | + android:textStyle="bold" /> | ||
33 | + | ||
34 | + <TextView | ||
35 | + android:layout_width="wrap_content" | ||
36 | + android:layout_height="wrap_content" | ||
37 | + android:layout_gravity="center_horizontal" | ||
38 | + android:layout_marginTop="8dp" | ||
39 | + android:text="您的反馈已提交成功,请您电话保持通畅。" | ||
40 | + android:textColor="@color/color_96" | ||
41 | + android:textSize="12sp" /> | ||
42 | + | ||
43 | + <TextView | ||
44 | + android:id="@+id/tv_ensure" | ||
45 | + android:layout_width="118dp" | ||
46 | + android:layout_height="40dp" | ||
47 | + android:layout_gravity="center_horizontal" | ||
48 | + android:layout_marginTop="56dp" | ||
49 | + android:background="@drawable/solid_25_4" | ||
50 | + android:gravity="center" | ||
51 | + android:text="确定" | ||
52 | + android:textColor="@color/white" | ||
53 | + android:textSize="15sp" /> | ||
54 | + | ||
55 | +</LinearLayout> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
4 | + android:layout_width="match_parent" | ||
5 | + android:layout_height="match_parent"> | ||
6 | + | ||
7 | + <include | ||
8 | + android:id="@+id/include" | ||
9 | + layout="@layout/layout_tool_bar" /> | ||
10 | + | ||
11 | + <com.br_technology.securitytrain_master.view.ViewToolBar | ||
12 | + android:id="@+id/tool_bar" | ||
13 | + android:layout_width="match_parent" | ||
14 | + android:layout_height="wrap_content" | ||
15 | + android:layout_below="@id/include" | ||
16 | + | ||
17 | + app:toolTitle="学习报告" /> | ||
18 | + | ||
19 | + <RelativeLayout | ||
20 | + android:id="@+id/rl" | ||
21 | + android:layout_width="match_parent" | ||
22 | + android:layout_height="wrap_content" | ||
23 | + android:layout_below="@id/tool_bar" | ||
24 | + android:background="@mipmap/learning_report_top_bg"> | ||
25 | + | ||
26 | + <ImageView | ||
27 | + android:id="@+id/iv_head" | ||
28 | + android:layout_width="64dp" | ||
29 | + android:layout_height="64dp" | ||
30 | + android:layout_centerInParent="true" | ||
31 | + android:src="@mipmap/placeholder_head" /> | ||
32 | + | ||
33 | + <TextView | ||
34 | + android:layout_width="115dp" | ||
35 | + android:layout_height="32dp" | ||
36 | + android:layout_centerHorizontal="true" | ||
37 | + android:layout_marginTop="144dp" | ||
38 | + android:background="@drawable/solid_ff_16" | ||
39 | + android:gravity="center" | ||
40 | + android:text="积分220" | ||
41 | + android:textColor="@color/color_25" | ||
42 | + android:textSize="14sp" /> | ||
43 | + | ||
44 | + | ||
45 | + </RelativeLayout> | ||
46 | + | ||
47 | + <androidx.recyclerview.widget.RecyclerView | ||
48 | + android:id="@+id/recyclerview" | ||
49 | + android:layout_width="match_parent" | ||
50 | + android:layout_height="wrap_content" | ||
51 | + android:layout_below="@id/rl" | ||
52 | + android:nestedScrollingEnabled="false" | ||
53 | + android:overScrollMode="never" | ||
54 | + android:scrollbars="none" | ||
55 | + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"> | ||
56 | + | ||
57 | + </androidx.recyclerview.widget.RecyclerView> | ||
58 | + | ||
59 | + <TextView | ||
60 | + android:id="@+id/tv_create_report" | ||
61 | + android:layout_width="343dp" | ||
62 | + android:layout_height="44dp" | ||
63 | + android:layout_alignParentBottom="true" | ||
64 | + android:layout_centerHorizontal="true" | ||
65 | + android:layout_marginBottom="42dp" | ||
66 | + android:background="@drawable/solid_25_4" | ||
67 | + android:gravity="center" | ||
68 | + android:text="生成报告" | ||
69 | + android:textColor="@color/white" | ||
70 | + android:textSize="16sp" /> | ||
71 | + | ||
72 | +</RelativeLayout> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
4 | + android:layout_width="match_parent" | ||
5 | + android:layout_height="match_parent" | ||
6 | + android:background="@color/color_25" | ||
7 | + android:orientation="vertical"> | ||
8 | + | ||
9 | + <include layout="@layout/layout_tool_bar_theme" /> | ||
10 | + | ||
11 | + <com.br_technology.securitytrain_master.view.ViewToolBar | ||
12 | + android:id="@+id/tool_bar" | ||
13 | + android:layout_width="match_parent" | ||
14 | + android:layout_height="wrap_content" | ||
15 | + android:background="@color/color_25" | ||
16 | + app:toolTitle="学习报告" /> | ||
17 | + | ||
18 | +<!-- <androidx.core.widget.NestedScrollView--> | ||
19 | +<!-- android:layout_width="match_parent"--> | ||
20 | +<!-- android:layout_height="match_parent">--> | ||
21 | + | ||
22 | + | ||
23 | +<!-- <LinearLayout--> | ||
24 | +<!-- android:layout_width="match_parent"--> | ||
25 | +<!-- android:layout_height="match_parent"--> | ||
26 | +<!-- android:orientation="vertical">--> | ||
27 | + | ||
28 | + | ||
29 | + <FrameLayout | ||
30 | + android:layout_width="344dp" | ||
31 | + android:layout_height="375dp" | ||
32 | + android:layout_gravity="center_horizontal" | ||
33 | + android:layout_marginTop="15dp"> | ||
34 | + | ||
35 | + <LinearLayout | ||
36 | + android:layout_width="344dp" | ||
37 | + android:layout_height="343dp" | ||
38 | + android:layout_marginTop="32dp" | ||
39 | + android:background="@drawable/solid_ff_4" | ||
40 | + android:orientation="vertical"> | ||
41 | + | ||
42 | + <LinearLayout | ||
43 | + android:layout_width="wrap_content" | ||
44 | + android:layout_height="wrap_content" | ||
45 | + android:layout_gravity="center_horizontal" | ||
46 | + android:layout_marginTop="41dp" | ||
47 | + android:background="@mipmap/create_learning_report_top_bg" | ||
48 | + android:orientation="vertical"> | ||
49 | + | ||
50 | + <TextView | ||
51 | + android:layout_width="wrap_content" | ||
52 | + android:layout_height="wrap_content" | ||
53 | + android:layout_gravity="center_horizontal" | ||
54 | + android:layout_marginTop="16dp" | ||
55 | + android:text="结业" | ||
56 | + android:textColor="@color/color_e8" | ||
57 | + android:textSize="24sp" | ||
58 | + android:textStyle="bold" /> | ||
59 | + | ||
60 | + | ||
61 | + </LinearLayout> | ||
62 | + | ||
63 | + | ||
64 | + <View | ||
65 | + android:layout_width="match_parent" | ||
66 | + android:layout_height="1dp" | ||
67 | + android:layout_marginStart="16dp" | ||
68 | + android:layout_marginTop="16dp" | ||
69 | + android:layout_marginEnd="16dp" | ||
70 | + android:background="@color/color_eb"> | ||
71 | + | ||
72 | + </View> | ||
73 | + | ||
74 | + <LinearLayout | ||
75 | + android:layout_width="match_parent" | ||
76 | + android:layout_height="wrap_content" | ||
77 | + android:orientation="horizontal"> | ||
78 | + | ||
79 | + <TextView | ||
80 | + android:layout_width="wrap_content" | ||
81 | + android:layout_height="wrap_content" | ||
82 | + android:layout_marginStart="16dp" | ||
83 | + android:layout_marginTop="15dp" | ||
84 | + android:layout_weight="1" | ||
85 | + android:text="班级名称" | ||
86 | + android:textColor="@color/color_96" | ||
87 | + android:textSize="12sp" /> | ||
88 | + | ||
89 | + <TextView | ||
90 | + android:layout_width="wrap_content" | ||
91 | + android:layout_height="wrap_content" | ||
92 | + android:layout_marginTop="15dp" | ||
93 | + android:layout_marginEnd="16dp" | ||
94 | + android:layout_weight="1" | ||
95 | + android:gravity="end" | ||
96 | + android:text="三岗人员培训资格" | ||
97 | + android:textColor="@color/color_32" | ||
98 | + android:textSize="12sp" /> | ||
99 | + | ||
100 | + </LinearLayout> | ||
101 | + | ||
102 | + | ||
103 | + <LinearLayout | ||
104 | + android:layout_width="match_parent" | ||
105 | + android:layout_height="wrap_content" | ||
106 | + android:orientation="horizontal"> | ||
107 | + | ||
108 | + <TextView | ||
109 | + android:layout_width="wrap_content" | ||
110 | + android:layout_height="wrap_content" | ||
111 | + android:layout_marginStart="16dp" | ||
112 | + android:layout_marginTop="15dp" | ||
113 | + android:layout_weight="1" | ||
114 | + android:text="培训类型" | ||
115 | + android:textColor="@color/color_96" | ||
116 | + android:textSize="12sp" /> | ||
117 | + | ||
118 | + <TextView | ||
119 | + android:layout_width="wrap_content" | ||
120 | + android:layout_height="wrap_content" | ||
121 | + android:layout_marginTop="15dp" | ||
122 | + android:layout_marginEnd="16dp" | ||
123 | + android:layout_weight="1" | ||
124 | + android:gravity="end" | ||
125 | + android:text="三岗培训" | ||
126 | + android:textColor="@color/color_32" | ||
127 | + android:textSize="12sp" /> | ||
128 | + | ||
129 | + </LinearLayout> | ||
130 | + | ||
131 | + <LinearLayout | ||
132 | + android:layout_width="match_parent" | ||
133 | + android:layout_height="wrap_content" | ||
134 | + android:orientation="horizontal"> | ||
135 | + | ||
136 | + <TextView | ||
137 | + android:layout_width="wrap_content" | ||
138 | + android:layout_height="wrap_content" | ||
139 | + android:layout_marginStart="16dp" | ||
140 | + android:layout_marginTop="15dp" | ||
141 | + android:layout_weight="1" | ||
142 | + android:text="时间" | ||
143 | + android:textColor="@color/color_96" | ||
144 | + android:textSize="12sp" /> | ||
145 | + | ||
146 | + <TextView | ||
147 | + android:layout_width="wrap_content" | ||
148 | + android:layout_height="wrap_content" | ||
149 | + android:layout_marginTop="15dp" | ||
150 | + android:layout_marginEnd="16dp" | ||
151 | + android:layout_weight="1" | ||
152 | + android:gravity="end" | ||
153 | + android:text="2021/07/08-2021/07/09" | ||
154 | + android:textColor="@color/color_32" | ||
155 | + android:textSize="12sp" /> | ||
156 | + | ||
157 | + </LinearLayout> | ||
158 | + | ||
159 | + <LinearLayout | ||
160 | + android:layout_width="match_parent" | ||
161 | + android:layout_height="wrap_content" | ||
162 | + android:orientation="horizontal"> | ||
163 | + | ||
164 | + <TextView | ||
165 | + android:layout_width="wrap_content" | ||
166 | + android:layout_height="wrap_content" | ||
167 | + android:layout_marginStart="16dp" | ||
168 | + android:layout_marginTop="15dp" | ||
169 | + android:layout_weight="1" | ||
170 | + android:text="培训单位" | ||
171 | + android:textColor="@color/color_96" | ||
172 | + android:textSize="12sp" /> | ||
173 | + | ||
174 | + <TextView | ||
175 | + android:layout_width="wrap_content" | ||
176 | + android:layout_height="wrap_content" | ||
177 | + android:layout_marginTop="15dp" | ||
178 | + android:layout_marginEnd="16dp" | ||
179 | + android:layout_weight="1" | ||
180 | + android:gravity="end" | ||
181 | + android:text="天津百荣培训中心" | ||
182 | + android:textColor="@color/color_32" | ||
183 | + android:textSize="12sp" /> | ||
184 | + | ||
185 | + </LinearLayout> | ||
186 | + | ||
187 | + <LinearLayout | ||
188 | + android:layout_width="match_parent" | ||
189 | + android:layout_height="wrap_content" | ||
190 | + android:orientation="horizontal"> | ||
191 | + | ||
192 | + <TextView | ||
193 | + android:layout_width="wrap_content" | ||
194 | + android:layout_height="wrap_content" | ||
195 | + android:layout_marginStart="16dp" | ||
196 | + android:layout_marginTop="15dp" | ||
197 | + android:layout_weight="1" | ||
198 | + android:text="培训学时" | ||
199 | + android:textColor="@color/color_96" | ||
200 | + android:textSize="12sp" /> | ||
201 | + | ||
202 | + <TextView | ||
203 | + android:layout_width="wrap_content" | ||
204 | + android:layout_height="wrap_content" | ||
205 | + android:layout_marginTop="15dp" | ||
206 | + android:layout_marginEnd="16dp" | ||
207 | + android:layout_weight="1" | ||
208 | + android:gravity="end" | ||
209 | + android:text="12学时" | ||
210 | + android:textColor="@color/color_32" | ||
211 | + android:textSize="12sp" /> | ||
212 | + | ||
213 | + </LinearLayout> | ||
214 | + | ||
215 | + </LinearLayout> | ||
216 | + | ||
217 | + <ImageView | ||
218 | + android:layout_width="64dp" | ||
219 | + android:layout_height="64dp" | ||
220 | + android:layout_gravity="center_horizontal" | ||
221 | + android:src="@mipmap/placeholder_head" /> | ||
222 | + | ||
223 | + </FrameLayout> | ||
224 | + | ||
225 | + | ||
226 | + <RelativeLayout | ||
227 | + android:layout_width="match_parent" | ||
228 | + android:layout_height="25dp" | ||
229 | + android:layout_marginTop="24dp" | ||
230 | + android:orientation="horizontal"> | ||
231 | + | ||
232 | + <TextView | ||
233 | + android:id="@+id/tv" | ||
234 | + android:layout_width="wrap_content" | ||
235 | + android:layout_height="wrap_content" | ||
236 | + android:layout_centerInParent="true" | ||
237 | + android:text="考试汇总" | ||
238 | + android:textColor="@color/white" | ||
239 | + android:textSize="18sp" | ||
240 | + android:textStyle="bold" /> | ||
241 | + | ||
242 | + <View | ||
243 | + android:layout_width="16dp" | ||
244 | + android:layout_height="1dp" | ||
245 | + android:layout_centerVertical="true" | ||
246 | + android:layout_marginEnd="8dp" | ||
247 | + android:layout_toStartOf="@id/tv" | ||
248 | + android:background="@color/white"> | ||
249 | + | ||
250 | + </View> | ||
251 | + | ||
252 | + <View | ||
253 | + android:layout_width="16dp" | ||
254 | + android:layout_height="1dp" | ||
255 | + android:layout_centerVertical="true" | ||
256 | + android:layout_marginStart="8dp" | ||
257 | + android:layout_toEndOf="@id/tv" | ||
258 | + android:background="@color/white"> | ||
259 | + | ||
260 | + </View> | ||
261 | + | ||
262 | + </RelativeLayout> | ||
263 | + | ||
264 | + <androidx.recyclerview.widget.RecyclerView | ||
265 | + android:id="@+id/recyclerview" | ||
266 | + android:layout_width="match_parent" | ||
267 | + android:layout_height="match_parent" | ||
268 | + android:layout_marginStart="16dp" | ||
269 | + android:layout_marginTop="16dp" | ||
270 | + android:layout_marginEnd="16dp" | ||
271 | + android:layout_marginBottom="37dp" | ||
272 | + android:overScrollMode="never" | ||
273 | + android:scrollbars="none" | ||
274 | + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" /> | ||
275 | + | ||
276 | +<!-- </LinearLayout>--> | ||
277 | +<!-- </androidx.core.widget.NestedScrollView>--> | ||
278 | + | ||
279 | + | ||
280 | +</LinearLayout> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
4 | + android:orientation="vertical" | ||
5 | + android:layout_width="match_parent" | ||
6 | + android:layout_height="match_parent"> | ||
7 | + | ||
8 | + <include | ||
9 | + layout="@layout/layout_tool_bar" /> | ||
10 | + | ||
11 | + <com.br_technology.securitytrain_master.view.ViewToolBar | ||
12 | + android:id="@+id/tool_bar" | ||
13 | + android:layout_width="match_parent" | ||
14 | + android:layout_height="wrap_content" | ||
15 | + app:toolTitle="消息通知" /> | ||
16 | + | ||
17 | + <androidx.recyclerview.widget.RecyclerView | ||
18 | + android:id="@+id/recyclerview" | ||
19 | + android:layout_width="match_parent" | ||
20 | + android:layout_height="match_parent" | ||
21 | + android:layout_marginStart="16dp" | ||
22 | + android:layout_marginEnd="16dp" | ||
23 | + android:overScrollMode="never" | ||
24 | + android:scrollbars="none" | ||
25 | + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" /> | ||
26 | + | ||
27 | + | ||
28 | +</LinearLayout> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
4 | + android:orientation="vertical" | ||
5 | + android:layout_width="match_parent" | ||
6 | + android:layout_height="match_parent"> | ||
7 | + | ||
8 | + <include | ||
9 | + layout="@layout/layout_tool_bar" /> | ||
10 | + | ||
11 | + <com.br_technology.securitytrain_master.view.ViewToolBar | ||
12 | + android:id="@+id/tool_bar" | ||
13 | + android:layout_width="match_parent" | ||
14 | + android:layout_height="wrap_content" | ||
15 | + app:toolTitle="消息通知" /> | ||
16 | + | ||
17 | + <LinearLayout | ||
18 | + android:background="@color/color_ef" | ||
19 | + android:orientation="vertical" | ||
20 | + android:layout_width="match_parent" | ||
21 | + android:layout_height="match_parent"> | ||
22 | + <androidx.recyclerview.widget.RecyclerView | ||
23 | + android:id="@+id/recyclerview" | ||
24 | + android:layout_width="match_parent" | ||
25 | + android:layout_height="match_parent" | ||
26 | + android:layout_marginStart="16dp" | ||
27 | + android:layout_marginEnd="16dp" | ||
28 | + android:overScrollMode="never" | ||
29 | + android:scrollbars="none" | ||
30 | + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" /> | ||
31 | + | ||
32 | + </LinearLayout> | ||
33 | + | ||
34 | +</LinearLayout> |
@@ -13,6 +13,7 @@ | @@ -13,6 +13,7 @@ | ||
13 | android:background="@drawable/solid_top_25_4"> | 13 | android:background="@drawable/solid_top_25_4"> |
14 | 14 | ||
15 | <ImageView | 15 | <ImageView |
16 | + android:id="@+id/iv_title" | ||
16 | android:layout_width="wrap_content" | 17 | android:layout_width="wrap_content" |
17 | android:layout_height="match_parent" | 18 | android:layout_height="match_parent" |
18 | android:layout_gravity="center" | 19 | android:layout_gravity="center" |
app/src/main/res/layout/fragment_course.xml
0 → 100644
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
4 | + xmlns:tools="http://schemas.android.com/tools" | ||
5 | + android:layout_width="match_parent" | ||
6 | + android:layout_height="match_parent" | ||
7 | + android:background="@color/white"> | ||
8 | + | ||
9 | + <LinearLayout | ||
10 | + android:layout_marginEnd="16dp" | ||
11 | + android:layout_marginStart="16dp" | ||
12 | + android:id="@+id/ll" | ||
13 | + android:layout_width="match_parent" | ||
14 | + android:layout_height="22dp" | ||
15 | + android:layout_alignParentBottom="true" | ||
16 | + android:layout_marginBottom="34dp" | ||
17 | + android:orientation="horizontal"> | ||
18 | + | ||
19 | + | ||
20 | + <ProgressBar | ||
21 | + android:id="@+id/pr_upload_value" | ||
22 | + style="@android:style/Widget.ProgressBar.Horizontal" | ||
23 | + android:layout_width="210dp" | ||
24 | + android:layout_height="20dp" | ||
25 | + android:layout_gravity="center_vertical" | ||
26 | + android:max="100" | ||
27 | + android:min="0" | ||
28 | + android:progressDrawable="@drawable/progressbar_lesson_time" | ||
29 | + tools:progress="50" /> | ||
30 | + | ||
31 | + <TextView | ||
32 | + android:layout_width="wrap_content" | ||
33 | + android:layout_height="wrap_content" | ||
34 | + android:layout_gravity="center_vertical" | ||
35 | + android:layout_marginStart="24dp" | ||
36 | + android:text="已学课时:6/12" | ||
37 | + android:textColor="@color/color_32" | ||
38 | + android:textSize="14sp" /> | ||
39 | + </LinearLayout> | ||
40 | + | ||
41 | + | ||
42 | + <androidx.recyclerview.widget.RecyclerView | ||
43 | + android:id="@+id/recyclerview" | ||
44 | + android:layout_width="match_parent" | ||
45 | + android:layout_height="match_parent" | ||
46 | + android:layout_above="@id/ll" | ||
47 | + android:layout_marginStart="16dp" | ||
48 | + android:layout_marginEnd="16dp" | ||
49 | + android:layout_marginBottom="32dp" | ||
50 | + android:overScrollMode="never" | ||
51 | + android:scrollbars="none" | ||
52 | + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" /> | ||
53 | + | ||
54 | +</RelativeLayout> |
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | - android:orientation="vertical" | ||
4 | android:layout_width="match_parent" | 3 | android:layout_width="match_parent" |
5 | - android:layout_height="match_parent"> | 4 | + android:layout_height="match_parent" |
5 | + android:orientation="vertical"> | ||
6 | 6 | ||
7 | <include layout="@layout/layout_tool_bar_theme" /> | 7 | <include layout="@layout/layout_tool_bar_theme" /> |
8 | 8 | ||
9 | <LinearLayout | 9 | <LinearLayout |
10 | - android:background="@mipmap/mine_bg" | ||
11 | - android:orientation="horizontal" | ||
12 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
13 | - android:layout_height="wrap_content"> | ||
14 | - | ||
15 | - <ImageView | ||
16 | - android:src="@mipmap/placeholder_head" | ||
17 | - android:layout_marginStart="16dp" | ||
18 | - android:layout_marginTop="105dp" | ||
19 | - android:layout_width="72dp" | ||
20 | - android:layout_height="72dp"/> | 11 | + android:layout_height="wrap_content" |
12 | + android:background="@mipmap/mine_bg" | ||
13 | + android:orientation="vertical"> | ||
21 | 14 | ||
22 | <LinearLayout | 15 | <LinearLayout |
23 | - android:layout_marginTop="95dp" | ||
24 | - android:layout_marginStart="20dp" | ||
25 | - android:layout_weight="1" | ||
26 | - android:orientation="vertical" | ||
27 | - android:layout_width="wrap_content" | ||
28 | - android:layout_height="match_parent"> | 16 | + android:orientation="horizontal" |
17 | + android:layout_width="match_parent" | ||
18 | + android:layout_height="wrap_content"> | ||
29 | 19 | ||
30 | <TextView | 20 | <TextView |
31 | - android:text="赵丽静" | ||
32 | - android:textColor="@color/white" | ||
33 | - android:textSize="28sp" | 21 | + android:layout_weight="1" |
34 | android:layout_width="wrap_content" | 22 | android:layout_width="wrap_content" |
35 | android:layout_height="wrap_content"/> | 23 | android:layout_height="wrap_content"/> |
36 | 24 | ||
37 | - <TextView | ||
38 | - android:layout_marginTop="8dp" | ||
39 | - android:drawablePadding="4dp" | ||
40 | - android:textSize="12sp" | ||
41 | - android:textColor="@color/white" | ||
42 | - android:drawableStart="@mipmap/mine_phone" | ||
43 | - android:text="15674678755" | ||
44 | - android:layout_width="wrap_content" | ||
45 | - android:layout_height="wrap_content"/> | ||
46 | - | ||
47 | - <TextView | ||
48 | - android:layout_marginTop="8dp" | ||
49 | - android:text="工程部-设备工程师" | ||
50 | - android:textColor="@color/white" | ||
51 | - android:textSize="12sp" | 25 | + <ImageView |
26 | + android:id="@+id/iv_message" | ||
27 | + android:layout_marginTop="37dp" | ||
28 | + android:layout_marginEnd="16dp" | ||
29 | + android:src="@mipmap/mine_message" | ||
52 | android:layout_width="wrap_content" | 30 | android:layout_width="wrap_content" |
53 | android:layout_height="wrap_content"/> | 31 | android:layout_height="wrap_content"/> |
54 | 32 | ||
55 | </LinearLayout> | 33 | </LinearLayout> |
56 | 34 | ||
57 | - <ImageView | ||
58 | - android:id="@+id/iv_edit_info" | ||
59 | - android:layout_marginEnd="16dp" | ||
60 | - android:layout_marginTop="95dp" | ||
61 | - android:src="@mipmap/mine_edit" | ||
62 | - android:background="@color/color_25" | ||
63 | - android:layout_width="wrap_content" | ||
64 | - android:layout_height="wrap_content"/> | ||
65 | 35 | ||
36 | + <LinearLayout | ||
37 | + android:layout_width="match_parent" | ||
38 | + android:layout_height="wrap_content" | ||
39 | + android:orientation="horizontal"> | ||
40 | + | ||
41 | + <ImageView | ||
42 | + android:layout_width="72dp" | ||
43 | + android:layout_height="72dp" | ||
44 | + android:layout_marginStart="16dp" | ||
45 | + android:layout_marginTop="26dp" | ||
46 | + android:src="@mipmap/placeholder_head" /> | ||
47 | + | ||
48 | + <LinearLayout | ||
49 | + android:layout_width="wrap_content" | ||
50 | + android:layout_height="match_parent" | ||
51 | + android:layout_marginStart="20dp" | ||
52 | + android:layout_marginTop="26dp" | ||
53 | + android:layout_weight="1" | ||
54 | + android:orientation="vertical"> | ||
55 | + | ||
56 | + <TextView | ||
57 | + android:layout_width="wrap_content" | ||
58 | + android:layout_height="wrap_content" | ||
59 | + android:text="赵丽静" | ||
60 | + android:textColor="@color/white" | ||
61 | + android:textSize="28sp" /> | ||
62 | + | ||
63 | + <TextView | ||
64 | + android:layout_width="wrap_content" | ||
65 | + android:layout_height="wrap_content" | ||
66 | + android:layout_marginTop="8dp" | ||
67 | + android:drawableStart="@mipmap/mine_phone" | ||
68 | + android:drawablePadding="4dp" | ||
69 | + android:text="15674678755" | ||
70 | + android:textColor="@color/white" | ||
71 | + android:textSize="12sp" /> | ||
72 | + | ||
73 | + <TextView | ||
74 | + android:layout_width="wrap_content" | ||
75 | + android:layout_height="wrap_content" | ||
76 | + android:layout_marginTop="8dp" | ||
77 | + android:text="工程部-设备工程师" | ||
78 | + android:textColor="@color/white" | ||
79 | + android:textSize="12sp" /> | ||
80 | + | ||
81 | + </LinearLayout> | ||
82 | + | ||
83 | + <ImageView | ||
84 | + android:id="@+id/iv_edit_info" | ||
85 | + android:layout_width="wrap_content" | ||
86 | + android:layout_height="wrap_content" | ||
87 | + android:layout_marginTop="30dp" | ||
88 | + android:layout_marginEnd="16dp" | ||
89 | + android:background="@color/color_25" | ||
90 | + android:src="@mipmap/mine_edit" /> | ||
91 | + | ||
92 | + </LinearLayout> | ||
66 | </LinearLayout> | 93 | </LinearLayout> |
67 | 94 | ||
68 | <LinearLayout | 95 | <LinearLayout |
69 | - android:orientation="horizontal" | ||
70 | android:layout_width="match_parent" | 96 | android:layout_width="match_parent" |
71 | - android:layout_height="wrap_content"> | 97 | + android:layout_height="wrap_content" |
98 | + android:orientation="horizontal"> | ||
72 | 99 | ||
73 | <RelativeLayout | 100 | <RelativeLayout |
74 | - android:layout_marginTop="20dp" | ||
75 | - android:layout_marginStart="24dp" | ||
76 | - android:layout_weight="1" | ||
77 | android:layout_width="wrap_content" | 101 | android:layout_width="wrap_content" |
78 | - android:layout_height="wrap_content"> | 102 | + android:layout_height="wrap_content" |
103 | + android:layout_marginStart="24dp" | ||
104 | + android:layout_marginTop="20dp" | ||
105 | + android:layout_weight="1"> | ||
79 | 106 | ||
80 | <TextView | 107 | <TextView |
81 | - android:textColor="@color/color_32" | ||
82 | - android:textSize="12sp" | ||
83 | - android:drawablePadding="8dp" | 108 | + android:id="@+id/tv_class_duty" |
109 | + android:layout_width="wrap_content" | ||
110 | + android:layout_height="wrap_content" | ||
84 | android:drawableTop="@mipmap/mine_banjirenwu" | 111 | android:drawableTop="@mipmap/mine_banjirenwu" |
112 | + android:drawablePadding="8dp" | ||
85 | android:text="班级任务" | 113 | android:text="班级任务" |
86 | - android:layout_width="wrap_content" | ||
87 | - android:layout_height="wrap_content"/> | 114 | + android:textColor="@color/color_32" |
115 | + android:textSize="12sp" /> | ||
88 | 116 | ||
89 | </RelativeLayout> | 117 | </RelativeLayout> |
90 | 118 | ||
91 | <RelativeLayout | 119 | <RelativeLayout |
92 | - android:layout_marginTop="20dp" | ||
93 | - android:layout_marginStart="24dp" | ||
94 | - android:layout_weight="1" | ||
95 | android:layout_width="wrap_content" | 120 | android:layout_width="wrap_content" |
96 | - android:layout_height="wrap_content"> | 121 | + android:layout_height="wrap_content" |
122 | + android:layout_marginStart="24dp" | ||
123 | + android:layout_marginTop="20dp" | ||
124 | + android:layout_weight="1"> | ||
97 | 125 | ||
98 | <TextView | 126 | <TextView |
99 | android:id="@+id/tv_offline_exercise" | 127 | android:id="@+id/tv_offline_exercise" |
100 | - android:textColor="@color/color_32" | ||
101 | - android:textSize="12sp" | ||
102 | - android:drawablePadding="8dp" | 128 | + android:layout_width="wrap_content" |
129 | + android:layout_height="wrap_content" | ||
103 | android:drawableTop="@mipmap/mine_xianxiapeixun" | 130 | android:drawableTop="@mipmap/mine_xianxiapeixun" |
131 | + android:drawablePadding="8dp" | ||
104 | android:text="线下培训" | 132 | android:text="线下培训" |
105 | - android:layout_width="wrap_content" | ||
106 | - android:layout_height="wrap_content"/> | 133 | + android:textColor="@color/color_32" |
134 | + android:textSize="12sp" /> | ||
107 | 135 | ||
108 | </RelativeLayout> | 136 | </RelativeLayout> |
109 | 137 | ||
110 | <RelativeLayout | 138 | <RelativeLayout |
111 | - android:layout_marginTop="20dp" | ||
112 | - android:layout_marginStart="24dp" | ||
113 | - android:layout_weight="1" | ||
114 | android:layout_width="wrap_content" | 139 | android:layout_width="wrap_content" |
115 | - android:layout_height="wrap_content"> | 140 | + android:layout_height="wrap_content" |
141 | + android:layout_marginStart="24dp" | ||
142 | + android:layout_marginTop="20dp" | ||
143 | + android:layout_weight="1"> | ||
116 | 144 | ||
117 | <TextView | 145 | <TextView |
118 | - android:textColor="@color/color_32" | ||
119 | - android:textSize="12sp" | ||
120 | - android:drawablePadding="8dp" | 146 | + android:id="@+id/tv_academic_feedback" |
147 | + android:layout_width="wrap_content" | ||
148 | + android:layout_height="wrap_content" | ||
121 | android:drawableTop="@mipmap/mine_xueqingfankui" | 149 | android:drawableTop="@mipmap/mine_xueqingfankui" |
150 | + android:drawablePadding="8dp" | ||
122 | android:text="学情反馈" | 151 | android:text="学情反馈" |
123 | - android:layout_width="wrap_content" | ||
124 | - android:layout_height="wrap_content"/> | 152 | + android:textColor="@color/color_32" |
153 | + android:textSize="12sp" /> | ||
125 | 154 | ||
126 | </RelativeLayout> | 155 | </RelativeLayout> |
127 | 156 | ||
128 | <RelativeLayout | 157 | <RelativeLayout |
129 | - android:layout_marginTop="20dp" | ||
130 | - android:layout_marginStart="24dp" | ||
131 | - android:layout_weight="1" | ||
132 | android:layout_width="wrap_content" | 158 | android:layout_width="wrap_content" |
133 | - android:layout_height="wrap_content"> | 159 | + android:layout_height="wrap_content" |
160 | + android:layout_marginStart="24dp" | ||
161 | + android:layout_marginTop="20dp" | ||
162 | + android:layout_weight="1"> | ||
134 | 163 | ||
135 | <TextView | 164 | <TextView |
136 | - android:textColor="@color/color_32" | ||
137 | - android:textSize="12sp" | ||
138 | - android:drawablePadding="8dp" | 165 | + android:id="@+id/tv_learning_report" |
166 | + android:layout_width="wrap_content" | ||
167 | + android:layout_height="wrap_content" | ||
139 | android:drawableTop="@mipmap/mine_xuexibaogao" | 168 | android:drawableTop="@mipmap/mine_xuexibaogao" |
169 | + android:drawablePadding="8dp" | ||
140 | android:text="学习报告" | 170 | android:text="学习报告" |
141 | - android:layout_width="wrap_content" | ||
142 | - android:layout_height="wrap_content"/> | 171 | + android:textColor="@color/color_32" |
172 | + android:textSize="12sp" /> | ||
143 | 173 | ||
144 | </RelativeLayout> | 174 | </RelativeLayout> |
145 | 175 | ||
@@ -148,28 +178,28 @@ | @@ -148,28 +178,28 @@ | ||
148 | 178 | ||
149 | <RelativeLayout | 179 | <RelativeLayout |
150 | android:id="@+id/rl_mine_cuoti" | 180 | android:id="@+id/rl_mine_cuoti" |
151 | - android:layout_marginTop="20dp" | ||
152 | android:layout_width="match_parent" | 181 | android:layout_width="match_parent" |
153 | - android:layout_height="52dp"> | 182 | + android:layout_height="52dp" |
183 | + android:layout_marginTop="20dp"> | ||
154 | 184 | ||
155 | <TextView | 185 | <TextView |
156 | - android:drawablePadding="12dp" | ||
157 | - android:drawableStart="@mipmap/mine_wodecuoti" | ||
158 | - android:layout_marginStart="16dp" | 186 | + android:layout_width="wrap_content" |
187 | + android:layout_height="wrap_content" | ||
159 | android:layout_centerVertical="true" | 188 | android:layout_centerVertical="true" |
160 | - android:textSize="14sp" | ||
161 | - android:textColor="@color/color_32" | 189 | + android:layout_marginStart="16dp" |
190 | + android:drawableStart="@mipmap/mine_wodecuoti" | ||
191 | + android:drawablePadding="12dp" | ||
162 | android:text="我的错题" | 192 | android:text="我的错题" |
163 | - android:layout_width="wrap_content" | ||
164 | - android:layout_height="wrap_content"/> | 193 | + android:textColor="@color/color_32" |
194 | + android:textSize="14sp" /> | ||
165 | 195 | ||
166 | <ImageView | 196 | <ImageView |
167 | - android:layout_centerVertical="true" | 197 | + android:layout_width="wrap_content" |
198 | + android:layout_height="wrap_content" | ||
168 | android:layout_alignParentEnd="true" | 199 | android:layout_alignParentEnd="true" |
200 | + android:layout_centerVertical="true" | ||
169 | android:layout_marginEnd="16dp" | 201 | android:layout_marginEnd="16dp" |
170 | - android:src="@mipmap/ic_arrow" | ||
171 | - android:layout_width="wrap_content" | ||
172 | - android:layout_height="wrap_content"/> | 202 | + android:src="@mipmap/ic_arrow" /> |
173 | 203 | ||
174 | 204 | ||
175 | </RelativeLayout> | 205 | </RelativeLayout> |
@@ -180,23 +210,23 @@ | @@ -180,23 +210,23 @@ | ||
180 | android:layout_height="52dp"> | 210 | android:layout_height="52dp"> |
181 | 211 | ||
182 | <TextView | 212 | <TextView |
183 | - android:drawablePadding="12dp" | ||
184 | - android:drawableStart="@mipmap/mine_datijilu" | ||
185 | - android:layout_marginStart="16dp" | 213 | + android:layout_width="wrap_content" |
214 | + android:layout_height="wrap_content" | ||
186 | android:layout_centerVertical="true" | 215 | android:layout_centerVertical="true" |
187 | - android:textSize="14sp" | ||
188 | - android:textColor="@color/color_32" | 216 | + android:layout_marginStart="16dp" |
217 | + android:drawableStart="@mipmap/mine_datijilu" | ||
218 | + android:drawablePadding="12dp" | ||
189 | android:text="答题记录" | 219 | android:text="答题记录" |
190 | - android:layout_width="wrap_content" | ||
191 | - android:layout_height="wrap_content"/> | 220 | + android:textColor="@color/color_32" |
221 | + android:textSize="14sp" /> | ||
192 | 222 | ||
193 | <ImageView | 223 | <ImageView |
194 | - android:layout_centerVertical="true" | 224 | + android:layout_width="wrap_content" |
225 | + android:layout_height="wrap_content" | ||
195 | android:layout_alignParentEnd="true" | 226 | android:layout_alignParentEnd="true" |
227 | + android:layout_centerVertical="true" | ||
196 | android:layout_marginEnd="16dp" | 228 | android:layout_marginEnd="16dp" |
197 | - android:src="@mipmap/ic_arrow" | ||
198 | - android:layout_width="wrap_content" | ||
199 | - android:layout_height="wrap_content"/> | 229 | + android:src="@mipmap/ic_arrow" /> |
200 | 230 | ||
201 | 231 | ||
202 | </RelativeLayout> | 232 | </RelativeLayout> |
@@ -207,23 +237,23 @@ | @@ -207,23 +237,23 @@ | ||
207 | android:layout_height="52dp"> | 237 | android:layout_height="52dp"> |
208 | 238 | ||
209 | <TextView | 239 | <TextView |
210 | - android:drawablePadding="12dp" | ||
211 | - android:drawableStart="@mipmap/mine_wodezhengjian" | ||
212 | - android:layout_marginStart="16dp" | 240 | + android:layout_width="wrap_content" |
241 | + android:layout_height="wrap_content" | ||
213 | android:layout_centerVertical="true" | 242 | android:layout_centerVertical="true" |
214 | - android:textSize="14sp" | ||
215 | - android:textColor="@color/color_32" | 243 | + android:layout_marginStart="16dp" |
244 | + android:drawableStart="@mipmap/mine_wodezhengjian" | ||
245 | + android:drawablePadding="12dp" | ||
216 | android:text="我的证件" | 246 | android:text="我的证件" |
217 | - android:layout_width="wrap_content" | ||
218 | - android:layout_height="wrap_content"/> | 247 | + android:textColor="@color/color_32" |
248 | + android:textSize="14sp" /> | ||
219 | 249 | ||
220 | <ImageView | 250 | <ImageView |
221 | - android:layout_centerVertical="true" | 251 | + android:layout_width="wrap_content" |
252 | + android:layout_height="wrap_content" | ||
222 | android:layout_alignParentEnd="true" | 253 | android:layout_alignParentEnd="true" |
254 | + android:layout_centerVertical="true" | ||
223 | android:layout_marginEnd="16dp" | 255 | android:layout_marginEnd="16dp" |
224 | - android:src="@mipmap/ic_arrow" | ||
225 | - android:layout_width="wrap_content" | ||
226 | - android:layout_height="wrap_content"/> | 256 | + android:src="@mipmap/ic_arrow" /> |
227 | 257 | ||
228 | 258 | ||
229 | </RelativeLayout> | 259 | </RelativeLayout> |
@@ -234,23 +264,23 @@ | @@ -234,23 +264,23 @@ | ||
234 | android:layout_height="52dp"> | 264 | android:layout_height="52dp"> |
235 | 265 | ||
236 | <TextView | 266 | <TextView |
237 | - android:drawablePadding="12dp" | ||
238 | - android:drawableStart="@mipmap/mine_wodeshoucang" | ||
239 | - android:layout_marginStart="16dp" | 267 | + android:layout_width="wrap_content" |
268 | + android:layout_height="wrap_content" | ||
240 | android:layout_centerVertical="true" | 269 | android:layout_centerVertical="true" |
241 | - android:textSize="14sp" | ||
242 | - android:textColor="@color/color_32" | 270 | + android:layout_marginStart="16dp" |
271 | + android:drawableStart="@mipmap/mine_wodeshoucang" | ||
272 | + android:drawablePadding="12dp" | ||
243 | android:text="我的收藏" | 273 | android:text="我的收藏" |
244 | - android:layout_width="wrap_content" | ||
245 | - android:layout_height="wrap_content"/> | 274 | + android:textColor="@color/color_32" |
275 | + android:textSize="14sp" /> | ||
246 | 276 | ||
247 | <ImageView | 277 | <ImageView |
248 | - android:layout_centerVertical="true" | 278 | + android:layout_width="wrap_content" |
279 | + android:layout_height="wrap_content" | ||
249 | android:layout_alignParentEnd="true" | 280 | android:layout_alignParentEnd="true" |
281 | + android:layout_centerVertical="true" | ||
250 | android:layout_marginEnd="16dp" | 282 | android:layout_marginEnd="16dp" |
251 | - android:src="@mipmap/ic_arrow" | ||
252 | - android:layout_width="wrap_content" | ||
253 | - android:layout_height="wrap_content"/> | 283 | + android:src="@mipmap/ic_arrow" /> |
254 | 284 | ||
255 | 285 | ||
256 | </RelativeLayout> | 286 | </RelativeLayout> |
@@ -261,23 +291,23 @@ | @@ -261,23 +291,23 @@ | ||
261 | android:layout_height="52dp"> | 291 | android:layout_height="52dp"> |
262 | 292 | ||
263 | <TextView | 293 | <TextView |
264 | - android:drawablePadding="12dp" | ||
265 | - android:drawableStart="@mipmap/mine_wodeliaotianjilu" | ||
266 | - android:layout_marginStart="16dp" | 294 | + android:layout_width="wrap_content" |
295 | + android:layout_height="wrap_content" | ||
267 | android:layout_centerVertical="true" | 296 | android:layout_centerVertical="true" |
268 | - android:textSize="14sp" | ||
269 | - android:textColor="@color/color_32" | 297 | + android:layout_marginStart="16dp" |
298 | + android:drawableStart="@mipmap/mine_wodeliaotianjilu" | ||
299 | + android:drawablePadding="12dp" | ||
270 | android:text="我的聊天记录" | 300 | android:text="我的聊天记录" |
271 | - android:layout_width="wrap_content" | ||
272 | - android:layout_height="wrap_content"/> | 301 | + android:textColor="@color/color_32" |
302 | + android:textSize="14sp" /> | ||
273 | 303 | ||
274 | <ImageView | 304 | <ImageView |
275 | - android:layout_centerVertical="true" | 305 | + android:layout_width="wrap_content" |
306 | + android:layout_height="wrap_content" | ||
276 | android:layout_alignParentEnd="true" | 307 | android:layout_alignParentEnd="true" |
308 | + android:layout_centerVertical="true" | ||
277 | android:layout_marginEnd="16dp" | 309 | android:layout_marginEnd="16dp" |
278 | - android:src="@mipmap/ic_arrow" | ||
279 | - android:layout_width="wrap_content" | ||
280 | - android:layout_height="wrap_content"/> | 310 | + android:src="@mipmap/ic_arrow" /> |
281 | 311 | ||
282 | 312 | ||
283 | </RelativeLayout> | 313 | </RelativeLayout> |
@@ -288,23 +318,23 @@ | @@ -288,23 +318,23 @@ | ||
288 | android:layout_height="52dp"> | 318 | android:layout_height="52dp"> |
289 | 319 | ||
290 | <TextView | 320 | <TextView |
291 | - android:drawablePadding="12dp" | ||
292 | - android:drawableStart="@mipmap/mine_tousuyujianyi" | ||
293 | - android:layout_marginStart="16dp" | 321 | + android:layout_width="wrap_content" |
322 | + android:layout_height="wrap_content" | ||
294 | android:layout_centerVertical="true" | 323 | android:layout_centerVertical="true" |
295 | - android:textSize="14sp" | ||
296 | - android:textColor="@color/color_32" | 324 | + android:layout_marginStart="16dp" |
325 | + android:drawableStart="@mipmap/mine_tousuyujianyi" | ||
326 | + android:drawablePadding="12dp" | ||
297 | android:text="投诉与建议" | 327 | android:text="投诉与建议" |
298 | - android:layout_width="wrap_content" | ||
299 | - android:layout_height="wrap_content"/> | 328 | + android:textColor="@color/color_32" |
329 | + android:textSize="14sp" /> | ||
300 | 330 | ||
301 | <ImageView | 331 | <ImageView |
302 | - android:layout_centerVertical="true" | 332 | + android:layout_width="wrap_content" |
333 | + android:layout_height="wrap_content" | ||
303 | android:layout_alignParentEnd="true" | 334 | android:layout_alignParentEnd="true" |
335 | + android:layout_centerVertical="true" | ||
304 | android:layout_marginEnd="16dp" | 336 | android:layout_marginEnd="16dp" |
305 | - android:src="@mipmap/ic_arrow" | ||
306 | - android:layout_width="wrap_content" | ||
307 | - android:layout_height="wrap_content"/> | 337 | + android:src="@mipmap/ic_arrow" /> |
308 | 338 | ||
309 | 339 | ||
310 | </RelativeLayout> | 340 | </RelativeLayout> |
@@ -315,23 +345,23 @@ | @@ -315,23 +345,23 @@ | ||
315 | android:layout_height="52dp"> | 345 | android:layout_height="52dp"> |
316 | 346 | ||
317 | <TextView | 347 | <TextView |
318 | - android:drawablePadding="12dp" | ||
319 | - android:drawableStart="@mipmap/mine_lianxikefu" | ||
320 | - android:layout_marginStart="16dp" | 348 | + android:layout_width="wrap_content" |
349 | + android:layout_height="wrap_content" | ||
321 | android:layout_centerVertical="true" | 350 | android:layout_centerVertical="true" |
322 | - android:textSize="14sp" | ||
323 | - android:textColor="@color/color_32" | 351 | + android:layout_marginStart="16dp" |
352 | + android:drawableStart="@mipmap/mine_lianxikefu" | ||
353 | + android:drawablePadding="12dp" | ||
324 | android:text="联系客服" | 354 | android:text="联系客服" |
325 | - android:layout_width="wrap_content" | ||
326 | - android:layout_height="wrap_content"/> | 355 | + android:textColor="@color/color_32" |
356 | + android:textSize="14sp" /> | ||
327 | 357 | ||
328 | <ImageView | 358 | <ImageView |
329 | - android:layout_centerVertical="true" | 359 | + android:layout_width="wrap_content" |
360 | + android:layout_height="wrap_content" | ||
330 | android:layout_alignParentEnd="true" | 361 | android:layout_alignParentEnd="true" |
362 | + android:layout_centerVertical="true" | ||
331 | android:layout_marginEnd="16dp" | 363 | android:layout_marginEnd="16dp" |
332 | - android:src="@mipmap/ic_arrow" | ||
333 | - android:layout_width="wrap_content" | ||
334 | - android:layout_height="wrap_content"/> | 364 | + android:src="@mipmap/ic_arrow" /> |
335 | 365 | ||
336 | 366 | ||
337 | </RelativeLayout> | 367 | </RelativeLayout> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + android:layout_width="match_parent" | ||
4 | + android:layout_height="wrap_content"> | ||
5 | + | ||
6 | + | ||
7 | + <ImageView | ||
8 | + android:id="@+id/iv_cover" | ||
9 | + android:layout_width="120dp" | ||
10 | + android:layout_height="64dp" | ||
11 | + android:layout_marginStart="16dp" | ||
12 | + android:layout_marginTop="16dp" | ||
13 | + android:scaleType="fitXY" | ||
14 | + android:src="@mipmap/ic_launcher" /> | ||
15 | + | ||
16 | + <TextView | ||
17 | + android:id="@+id/tv_title" | ||
18 | + android:layout_width="wrap_content" | ||
19 | + android:layout_height="wrap_content" | ||
20 | + android:layout_marginStart="16dp" | ||
21 | + android:layout_marginTop="16dp" | ||
22 | + android:layout_toEndOf="@id/iv_cover" | ||
23 | + android:text="报名班级" | ||
24 | + android:textColor="@color/color_32" | ||
25 | + android:textSize="14sp" /> | ||
26 | + | ||
27 | + <TextView | ||
28 | + android:id="@+id/tv_course_time" | ||
29 | + android:layout_width="wrap_content" | ||
30 | + android:layout_height="wrap_content" | ||
31 | + android:layout_below="@id/tv_title" | ||
32 | + android:layout_marginStart="16dp" | ||
33 | + android:layout_marginTop="8dp" | ||
34 | + android:layout_toEndOf="@id/iv_cover" | ||
35 | + android:text="已完成3课时" | ||
36 | + android:textColor="@color/color_96" | ||
37 | + android:textSize="12sp" /> | ||
38 | + | ||
39 | + <TextView | ||
40 | + android:id="@+id/tv_jiangshipingxi" | ||
41 | + android:layout_width="72dp" | ||
42 | + android:layout_height="28dp" | ||
43 | + android:layout_below="@id/tv_course_time" | ||
44 | + android:layout_alignParentEnd="true" | ||
45 | + android:layout_marginEnd="16dp" | ||
46 | + android:background="@drawable/solid_25_4" | ||
47 | + android:gravity="center" | ||
48 | + android:text="讲师评析" | ||
49 | + android:textColor="@color/white" | ||
50 | + android:textSize="12sp" /> | ||
51 | + | ||
52 | + <View | ||
53 | + android:layout_width="match_parent" | ||
54 | + android:layout_height="1dp" | ||
55 | + android:layout_below="@id/tv_jiangshipingxi" | ||
56 | + android:layout_marginStart="16dp" | ||
57 | + android:layout_marginTop="16dp" | ||
58 | + android:layout_marginEnd="16dp" | ||
59 | + android:background="@color/color_eb"> | ||
60 | + | ||
61 | + </View> | ||
62 | + | ||
63 | + | ||
64 | +</RelativeLayout> |
app/src/main/res/layout/item_course.xml
0 → 100644
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + android:layout_width="match_parent" | ||
4 | + android:layout_height="wrap_content" | ||
5 | + android:orientation="vertical"> | ||
6 | + | ||
7 | + <LinearLayout | ||
8 | + android:layout_width="match_parent" | ||
9 | + android:layout_height="258dp" | ||
10 | + android:layout_marginTop="16dp" | ||
11 | + android:background="@drawable/solid_eff2_4" | ||
12 | + android:orientation="vertical"> | ||
13 | + | ||
14 | + <FrameLayout | ||
15 | + android:layout_width="match_parent" | ||
16 | + android:layout_height="176dp" | ||
17 | + android:layout_margin="12dp"> | ||
18 | + | ||
19 | + <com.br_technology.securitytrain_master.view.MyVideoPlayer | ||
20 | + android:layout_width="match_parent" | ||
21 | + android:layout_height="176dp" | ||
22 | + android:layout_margin="12dp" /> | ||
23 | + | ||
24 | + <TextView | ||
25 | + android:layout_width="wrap_content" | ||
26 | + android:layout_height="wrap_content" | ||
27 | + android:layout_margin="12dp" | ||
28 | + android:background="@mipmap/complete_bg" | ||
29 | + android:gravity="center" | ||
30 | + android:text="已完成" | ||
31 | + android:textColor="@color/white" | ||
32 | + android:textSize="12sp" /> | ||
33 | + | ||
34 | + | ||
35 | + </FrameLayout> | ||
36 | + | ||
37 | + <TextView | ||
38 | + android:id="@+id/tv_title" | ||
39 | + android:layout_width="wrap_content" | ||
40 | + android:layout_height="wrap_content" | ||
41 | + android:layout_marginStart="12dp" | ||
42 | + android:text="【直播】课程名称课程名称课程名称" | ||
43 | + android:textColor="@color/color_32" | ||
44 | + android:textSize="14sp" /> | ||
45 | + | ||
46 | + <LinearLayout | ||
47 | + android:layout_width="match_parent" | ||
48 | + android:layout_height="wrap_content" | ||
49 | + android:orientation="horizontal"> | ||
50 | + | ||
51 | + <TextView | ||
52 | + android:id="@+id/tv_lesson" | ||
53 | + android:layout_width="wrap_content" | ||
54 | + android:layout_height="wrap_content" | ||
55 | + android:layout_marginStart="12dp" | ||
56 | + android:layout_marginTop="8dp" | ||
57 | + android:layout_marginBottom="12dp" | ||
58 | + android:layout_weight="1" | ||
59 | + android:text="12学时" | ||
60 | + android:textColor="@color/color_96" | ||
61 | + android:textSize="12sp" /> | ||
62 | + | ||
63 | + <TextView | ||
64 | + android:id="@+id/tv_time" | ||
65 | + android:layout_width="wrap_content" | ||
66 | + android:layout_height="wrap_content" | ||
67 | + android:layout_marginTop="8dp" | ||
68 | + android:layout_marginEnd="12dp" | ||
69 | + android:layout_marginBottom="12dp" | ||
70 | + android:layout_weight="1" | ||
71 | + android:gravity="end" | ||
72 | + android:text="2020-09-09 12:00" | ||
73 | + android:textColor="@color/color_96" | ||
74 | + android:textSize="12sp" /> | ||
75 | + | ||
76 | + </LinearLayout> | ||
77 | + | ||
78 | + </LinearLayout> | ||
79 | + | ||
80 | + | ||
81 | +</LinearLayout> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + android:layout_width="344dp" | ||
4 | + android:layout_height="77dp" | ||
5 | + android:layout_marginBottom="12dp" | ||
6 | + android:background="@drawable/solid_ff_4" | ||
7 | + android:layout_gravity="center_horizontal"> | ||
8 | + | ||
9 | + <TextView | ||
10 | + android:id="@+id/tv_title" | ||
11 | + android:layout_width="wrap_content" | ||
12 | + android:layout_height="wrap_content" | ||
13 | + android:layout_marginStart="16dp" | ||
14 | + android:layout_marginTop="16dp" | ||
15 | + android:text="考试问卷名称考试问卷" | ||
16 | + android:textColor="@color/color_32" | ||
17 | + android:textSize="14sp" /> | ||
18 | + | ||
19 | + <TextView | ||
20 | + android:id="@+id/tv_time" | ||
21 | + android:layout_width="wrap_content" | ||
22 | + android:layout_height="wrap_content" | ||
23 | + android:layout_below="@id/tv_title" | ||
24 | + android:layout_marginStart="16dp" | ||
25 | + android:layout_marginTop="8dp" | ||
26 | + android:layout_marginBottom="16dp" | ||
27 | + android:text="考试问卷名称考试问卷" | ||
28 | + android:textColor="@color/color_96" | ||
29 | + android:textSize="12sp" /> | ||
30 | + | ||
31 | + <TextView | ||
32 | + android:id="@+id/tv_status" | ||
33 | + android:layout_width="wrap_content" | ||
34 | + android:layout_height="wrap_content" | ||
35 | + android:layout_alignParentEnd="true" | ||
36 | + android:background="@mipmap/report_pass" | ||
37 | + android:gravity="center" | ||
38 | + android:text="通过" | ||
39 | + android:textColor="@color/white" | ||
40 | + android:textSize="14sp" /> | ||
41 | + | ||
42 | + <TextView | ||
43 | + android:id="@+id/tv_score" | ||
44 | + android:layout_width="wrap_content" | ||
45 | + android:layout_height="wrap_content" | ||
46 | + android:layout_alignParentEnd="true" | ||
47 | + android:layout_marginTop="35dp" | ||
48 | + android:layout_marginEnd="16dp" | ||
49 | + android:layout_marginBottom="16dp" | ||
50 | + android:text="95分" | ||
51 | + android:textColor="@color/color_32" | ||
52 | + android:textSize="18sp" | ||
53 | + android:textStyle="bold" /> | ||
54 | + | ||
55 | +</RelativeLayout> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + android:layout_width="match_parent" | ||
4 | + android:layout_height="wrap_content" | ||
5 | + android:background="@color/white" | ||
6 | + android:orientation="vertical"> | ||
7 | + | ||
8 | + <LinearLayout | ||
9 | + android:layout_width="match_parent" | ||
10 | + android:layout_height="wrap_content" | ||
11 | + android:orientation="horizontal"> | ||
12 | + | ||
13 | + | ||
14 | + <LinearLayout | ||
15 | + android:layout_width="wrap_content" | ||
16 | + android:layout_height="wrap_content" | ||
17 | + android:layout_weight="1" | ||
18 | + android:orientation="vertical"> | ||
19 | + | ||
20 | + | ||
21 | + <LinearLayout | ||
22 | + android:layout_width="wrap_content" | ||
23 | + android:layout_height="wrap_content" | ||
24 | + android:orientation="horizontal"> | ||
25 | + | ||
26 | + <TextView | ||
27 | + android:id="@+id/tv_type" | ||
28 | + android:layout_width="wrap_content" | ||
29 | + android:layout_height="wrap_content" | ||
30 | + android:layout_marginStart="16dp" | ||
31 | + android:layout_marginTop="16dp" | ||
32 | + android:text="(考试)" | ||
33 | + android:textColor="@color/color_25" | ||
34 | + android:textSize="14sp" /> | ||
35 | + | ||
36 | + <TextView | ||
37 | + android:id="@+id/tv_title" | ||
38 | + android:layout_width="wrap_content" | ||
39 | + android:layout_height="wrap_content" | ||
40 | + android:layout_marginStart="8dp" | ||
41 | + android:layout_marginTop="16dp" | ||
42 | + android:text="三岗培训第三次模拟考试" | ||
43 | + android:textColor="@color/color_32" | ||
44 | + android:textSize="14sp" /> | ||
45 | + | ||
46 | + </LinearLayout> | ||
47 | + | ||
48 | + <TextView | ||
49 | + android:id="@+id/tv_time" | ||
50 | + android:layout_width="wrap_content" | ||
51 | + android:layout_height="wrap_content" | ||
52 | + android:layout_marginStart="16dp" | ||
53 | + android:layout_marginTop="12dp" | ||
54 | + android:text="三岗培训第三次模拟考试" | ||
55 | + android:textColor="@color/color_96" | ||
56 | + android:textSize="12sp" /> | ||
57 | + | ||
58 | + </LinearLayout> | ||
59 | + | ||
60 | + <TextView | ||
61 | + android:id="@+id/tv_score" | ||
62 | + android:layout_width="wrap_content" | ||
63 | + android:layout_height="wrap_content" | ||
64 | + android:layout_marginTop="28dp" | ||
65 | + android:layout_marginEnd="16dp" | ||
66 | + android:text="+10" | ||
67 | + android:textColor="@color/color_25" | ||
68 | + android:textSize="20sp" /> | ||
69 | + | ||
70 | + </LinearLayout> | ||
71 | + | ||
72 | + <View | ||
73 | + android:layout_width="match_parent" | ||
74 | + android:layout_height="1dp" | ||
75 | + android:layout_marginStart="16dp" | ||
76 | + android:layout_marginTop="16dp" | ||
77 | + android:layout_marginEnd="16dp" | ||
78 | + android:background="@color/color_eb" /> | ||
79 | + | ||
80 | +</LinearLayout> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + android:layout_width="match_parent" | ||
4 | + android:layout_height="wrap_content"> | ||
5 | + | ||
6 | + <ImageView | ||
7 | + android:id="@+id/iv_icon" | ||
8 | + android:layout_width="wrap_content" | ||
9 | + android:layout_height="wrap_content" | ||
10 | + android:layout_marginStart="16dp" | ||
11 | + android:layout_marginTop="16dp" | ||
12 | + android:src="@mipmap/message_notice_icon" /> | ||
13 | + | ||
14 | + <TextView | ||
15 | + android:id="@+id/tv_title" | ||
16 | + android:layout_width="wrap_content" | ||
17 | + android:layout_height="wrap_content" | ||
18 | + android:layout_marginStart="12dp" | ||
19 | + android:layout_marginTop="16dp" | ||
20 | + android:layout_toEndOf="@id/iv_icon" | ||
21 | + android:text="平台通知" | ||
22 | + android:textColor="@color/color_32" | ||
23 | + android:textSize="14sp" | ||
24 | + android:textStyle="bold" /> | ||
25 | + | ||
26 | + <TextView | ||
27 | + android:id="@+id/tv_info" | ||
28 | + android:layout_width="wrap_content" | ||
29 | + android:layout_height="wrap_content" | ||
30 | + android:layout_below="@id/tv_title" | ||
31 | + android:layout_marginStart="12dp" | ||
32 | + android:layout_marginTop="8dp" | ||
33 | + android:layout_marginEnd="16dp" | ||
34 | + android:layout_toEndOf="@id/iv_icon" | ||
35 | + android:text="您的进度过慢,请抓紧时间学习并完成考试。否则会影响您的任职资格" | ||
36 | + android:textColor="@color/color_32" | ||
37 | + android:textSize="12sp" /> | ||
38 | + | ||
39 | + <TextView | ||
40 | + android:id="@+id/tv_time" | ||
41 | + android:layout_width="wrap_content" | ||
42 | + android:layout_height="wrap_content" | ||
43 | + android:layout_alignParentEnd="true" | ||
44 | + android:layout_marginTop="16dp" | ||
45 | + android:layout_marginEnd="16dp" | ||
46 | + android:text="06-12" | ||
47 | + android:textColor="@color/color_96" | ||
48 | + android:textSize="12sp" /> | ||
49 | + | ||
50 | + <View | ||
51 | + android:layout_width="match_parent" | ||
52 | + android:layout_height="1dp" | ||
53 | + android:layout_below="@id/tv_info" | ||
54 | + android:layout_marginStart="16dp" | ||
55 | + android:layout_marginTop="16dp" | ||
56 | + android:layout_marginEnd="16dp" | ||
57 | + android:background="@color/color_eb"> | ||
58 | + | ||
59 | + </View> | ||
60 | + | ||
61 | +</RelativeLayout> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + android:layout_width="match_parent" | ||
4 | + android:layout_height="wrap_content" | ||
5 | + android:orientation="horizontal"> | ||
6 | + | ||
7 | + <ImageView | ||
8 | + android:layout_width="wrap_content" | ||
9 | + android:layout_height="wrap_content" | ||
10 | + android:layout_marginStart="16dp" | ||
11 | + android:layout_marginTop="54dp" | ||
12 | + android:src="@mipmap/message_notice_icon" /> | ||
13 | + | ||
14 | + <TextView | ||
15 | + android:id="@+id/tv_info" | ||
16 | + android:padding="12dp" | ||
17 | + android:layout_width="wrap_content" | ||
18 | + android:layout_height="wrap_content" | ||
19 | + android:layout_marginStart="8dp" | ||
20 | + android:layout_marginTop="54dp" | ||
21 | + android:layout_marginEnd="44dp" | ||
22 | + android:background="@drawable/solid_ff_4" | ||
23 | + android:text="十一去哪玩有打算吗您的进度过慢,请抓紧时间学习并完成考试。否则会影响您的任职资格 " | ||
24 | + android:textColor="@color/color_252" | ||
25 | + android:textSize="15sp" /> | ||
26 | + | ||
27 | +</LinearLayout> |
8.2 KB
50.2 KB
9.8 KB
266.6 KB
4.7 KB
1.0 KB
936 字节
941 字节
7.5 KB
6.1 KB
5.2 KB
985 字节
1.1 KB
@@ -34,5 +34,8 @@ | @@ -34,5 +34,8 @@ | ||
34 | <color name="color_f7">#F7F8FA</color> | 34 | <color name="color_f7">#F7F8FA</color> |
35 | <color name="color_e3">#E3F1FF</color> | 35 | <color name="color_e3">#E3F1FF</color> |
36 | <color name="color_dcdee0">#DCDEE0</color> | 36 | <color name="color_dcdee0">#DCDEE0</color> |
37 | + <color name="color_4425FF">#4425FF</color> | ||
38 | + <color name="color_25CBFF">#25CBFF</color> | ||
39 | + | ||
37 | 40 | ||
38 | </resources> | 41 | </resources> |
@@ -65,4 +65,5 @@ | @@ -65,4 +65,5 @@ | ||
65 | <style name="MyTabText" parent="TextAppearance.Design.Tab"> | 65 | <style name="MyTabText" parent="TextAppearance.Design.Tab"> |
66 | <item name="android:textSize">14sp</item> | 66 | <item name="android:textSize">14sp</item> |
67 | </style> | 67 | </style> |
68 | + | ||
68 | </resources> | 69 | </resources> |
-
请 注册 或 登录 后发表评论