作者 liyan

我的页面基本完成剩余三个页面

正在显示 71 个修改的文件 包含 2240 行增加174 行删除
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
... ...
... ... @@ -103,6 +103,14 @@
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize|uiMode"
android:screenOrientation="portrait" />
<activity android:name=".ui.mine.activity.LearningReportActivity"/>
<activity android:name=".ui.mine.activity.LearningReportDetailActivity"/>
<activity android:name=".ui.mine.activity.MessageNoticeActivity"/>
<activity android:name=".ui.mine.activity.MessageNoticeDetailActivity"/>
<activity android:name=".ui.mine.activity.ComplaintsAndSuggestionsActivity"/>
<activity android:name=".ui.mine.activity.ComplaintsAndSuggestionsSuccessActivity"/>
<activity android:name=".ui.mine.activity.ClassDutyActivity"/>
</application>
... ...
package com.br_technology.securitytrain_master.ui.mine.activity
import android.widget.AdapterView
import com.br_technology.securitytrain_master.R
import com.br_technology.securitytrain_master.databinding.ActivityAcademicFeedbackBinding
import com.br_technology.securitytrain_master.ui.home.adapter.VideoCourseListAdapter
import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse
import com.br_technology.securitytrain_master.ui.mine.adapter.AcademicFeedbackAdapter
import com.br_technology.securitytrain_master.ui.mine.viewmodel.AcademicFeedbackViewModel
import com.br_technology.securitytrain_master.view.DialogSureCancel
import com.br_technology.securitytrain_master.view.DialogTitle
import com.br_technology.securitytrain_master.view.listener.DialogListener
import com.br_technology.securitytrain_master.view.listener.OnItemClickListener
import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity
/**
... ... @@ -20,6 +29,28 @@ class AcademicFeedbackActivity :
override fun initData() {
super.initData()
binding.apply {
val academicFeedbackAdapter = AcademicFeedbackAdapter()
val list = mutableListOf(
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "1.1", "张钧-三岗职位培训班"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "1.1", "张钧-三岗职位培训班"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "1.1", "张钧-三岗职位培训班"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "1.1", "张钧-三岗职位培训班"),
)
recyclerview.adapter = academicFeedbackAdapter
academicFeedbackAdapter.addList(list)
academicFeedbackAdapter.addListener(object : OnItemClickListener<VideoCourse> {
override fun onClick(position: Int, data: VideoCourse) {
DialogTitle(this@AcademicFeedbackActivity)
.setImageTitle(R.mipmap.jiangshipingxi_bg)
.setInfo("烦得很工蜂都是第三方还是对方号是否得换个始发地和啥地方还是对方恢复单身")
.hideCompleteButton(true)
.show()
}
})
}
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.activity
import android.view.View
import androidx.core.content.ContextCompat
import androidx.fragment.app.FragmentPagerAdapter
import com.br_technology.securitytrain_master.R
import com.br_technology.securitytrain_master.base.view.BasePagerAdapter
import com.br_technology.securitytrain_master.databinding.ActivityClassDutyBinding
import com.br_technology.securitytrain_master.ui.mine.fragment.CourseFragment
import com.br_technology.securitytrain_master.ui.mine.viewmodel.ClassDutyViewModel
import com.br_technology.securitytrain_master.view.ClassifyPop
import com.br_technology.securitytrain_master.view.listener.ToolBarClickListener
import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity
/**
* Time: 8/3/2021 11:15
* Author: Captain
* Description: 初见时你很迷人
* 班级任务
*/
class ClassDutyActivity :
BaseLifeCycleActivity<ClassDutyViewModel, ActivityClassDutyBinding>(ActivityClassDutyBinding::inflate) {
private val classifyPop by lazy {
ClassifyPop(this)
}
override fun initDataObserver() {
}
override fun initData() {
super.initData()
binding.apply {
toolBar.setRightText("全部")
toolBar.setRightTextDrawable(
ContextCompat.getDrawable(
baseContext,
R.mipmap.down_arrow
)
)
// 点击事件
toolBar.addRightListener(object : ToolBarClickListener {
override fun onClick(view: View) {
if (!classifyPop.isShowing) {
classifyPop.showAsDropDown(view)
}
}
})
val searchResultAdapter = BasePagerAdapter(
supportFragmentManager,
FragmentPagerAdapter.BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT
)
val list =
listOf(
CourseFragment(),
CourseFragment(),
CourseFragment()
)
val titles = listOf("课程", "练习", "考试")
searchResultAdapter.addData(list)
searchResultAdapter.addTitle(titles)
viewPager.adapter = searchResultAdapter
tabLayout.setupWithViewPager(viewPager)
}
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.activity
import android.widget.RadioGroup
import com.br_technology.securitytrain_master.R
import com.br_technology.securitytrain_master.databinding.ActivityComplaintsAndSuggestionsBinding
import com.br_technology.securitytrain_master.ui.mine.viewmodel.ComplaintsAndSuggestionsViewModel
import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity
/**
* Time: 8/3/2021 9:36
* Author: Captain
* Description: 初见时你很迷人
* 投诉与建议
*/
class ComplaintsAndSuggestionsActivity :
BaseLifeCycleActivity<ComplaintsAndSuggestionsViewModel, ActivityComplaintsAndSuggestionsBinding>(
ActivityComplaintsAndSuggestionsBinding::inflate
) {
var isSwitchOn: Boolean = false
override fun initDataObserver() {
}
override fun initData() {
super.initData()
binding.apply {
//radiobutton
radioGroup.setOnCheckedChangeListener(object : RadioGroup.OnCheckedChangeListener {
override fun onCheckedChanged(group: RadioGroup?, checkedId: Int) {
when (checkedId) {
R.id.rb_pingtai_jianyi -> {
//平台建议
rbPingtaiJianyi.setButtonDrawable(R.mipmap.tousuyujianyi_sel)
rbQiyeJianyi.setButtonDrawable(R.mipmap.tousuyujianyi_unsel)
}
R.id.rb_qiye_jianyi -> {
//企业建议
rbPingtaiJianyi.setButtonDrawable(R.mipmap.tousuyujianyi_unsel)
rbQiyeJianyi.setButtonDrawable(R.mipmap.tousuyujianyi_sel)
}
}
}
})
//switch开关
ivSwitch.setOnClickListener({
if (isSwitchOn == true) {
isSwitchOn = false
ivSwitch.setImageResource(R.mipmap.switch_unsel)
} else {
isSwitchOn = true
ivSwitch.setImageResource(R.mipmap.switch_sel)
}
})
//提交信息
tvUpload.setOnClickListener({
//请求接口成功之后跳转到提交成功页面
startActivity(ComplaintsAndSuggestionsSuccessActivity::class.java)
})
}
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.activity
import com.br_technology.securitytrain_master.databinding.ActivityComplaintsAndSuggestionsSuccessBinding
import com.br_technology.securitytrain_master.ui.mine.viewmodel.ComplaintsAndSuggestionsSuccessViewModel
import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity
/**
* Time: 8/3/2021 10:59
* Author: Captain
* Description: 初见时你很迷人
*/
class ComplaintsAndSuggestionsSuccessActivity :
BaseLifeCycleActivity<ComplaintsAndSuggestionsSuccessViewModel, ActivityComplaintsAndSuggestionsSuccessBinding>(
ActivityComplaintsAndSuggestionsSuccessBinding::inflate
) {
override fun initDataObserver() {
}
override fun initData() {
super.initData()
binding.apply {
}
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.activity
import android.view.View
import androidx.core.content.ContextCompat
import com.br_technology.securitytrain_master.R
import com.br_technology.securitytrain_master.databinding.ActivityLearningReportBinding
import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse
import com.br_technology.securitytrain_master.ui.mine.adapter.AcademicFeedbackAdapter
import com.br_technology.securitytrain_master.ui.mine.adapter.LearningReportAdapter
import com.br_technology.securitytrain_master.ui.mine.viewmodel.LearningReportViewModel
import com.br_technology.securitytrain_master.view.ClassifyPop
import com.br_technology.securitytrain_master.view.DialogTitle
import com.br_technology.securitytrain_master.view.listener.OnItemClickListener
import com.br_technology.securitytrain_master.view.listener.ToolBarClickListener
import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity
/**
* Time: 8/2/2021 15:52
* Author: Captain
* Description: 初见时你很迷人
* 学习报告
*/
class LearningReportActivity :
BaseLifeCycleActivity<LearningReportViewModel, ActivityLearningReportBinding>(
ActivityLearningReportBinding::inflate
) {
private val classifyPop by lazy {
ClassifyPop(this)
}
override fun initDataObserver() {
}
override fun initData() {
super.initData()
binding.apply {
toolBar.setRightText("全部")
toolBar.setRightTextDrawable(
ContextCompat.getDrawable(
baseContext,
R.mipmap.down_arrow
)
)
toolBar.addRightListener(object : ToolBarClickListener {
override fun onClick(view: View) {
if (!classifyPop.isShowing) {
classifyPop.showAsDropDown(view)
}
}
})
val learningReportAdapter = LearningReportAdapter()
val list = mutableListOf(
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "(考试)", "+10"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "(考试)", "+10"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "(考试)", "+10"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "(考试)", "+10"),
)
recyclerview.adapter = learningReportAdapter
learningReportAdapter.addList(list)
tvCreateReport.setOnClickListener({
startActivity(LearningReportDetailActivity::class.java)
})
}
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.activity
import com.br_technology.securitytrain_master.R
import com.br_technology.securitytrain_master.databinding.ActivityLearningReportDetailBinding
import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse
import com.br_technology.securitytrain_master.ui.mine.adapter.LearningReportDetailAdapter
import com.br_technology.securitytrain_master.ui.mine.adapter.MockExaminationAdapter
import com.br_technology.securitytrain_master.ui.mine.viewmodel.LearningReportDetailViewModel
import com.gyf.immersionbar.ImmersionBar
import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity
/**
* Time: 8/2/2021 16:46
* Author: Captain
* Description: 初见时你很迷人
* 生成学习报告详情页面
*/
class LearningReportDetailActivity :
BaseLifeCycleActivity<LearningReportDetailViewModel, ActivityLearningReportDetailBinding>(
ActivityLearningReportDetailBinding::inflate
) {
override fun initDataObserver() {
}
override fun initView() {
super.initView()
ImmersionBar.with(this@LearningReportDetailActivity).statusBarDarkFont(false).init();
}
override fun initData() {
super.initData()
binding.apply {
toolBar.setTitleColor(resources.getColor(R.color.white))
toolBar.setBackImg(R.mipmap.ic_back_white)
val learningReportDetailAdapter = LearningReportDetailAdapter()
val list = mutableListOf(
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "45分", "通过"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "68分", "通过"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "100分", "通过"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "99分", "通过"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "99分", "通过"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "99分", "通过"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "99分", "通过"),
VideoCourse(R.mipmap.banner, "01:45:00", "自动化制作课程", "99分", "通过"),
)
recyclerview.adapter = learningReportDetailAdapter
learningReportDetailAdapter.addList(list)
}
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.activity
import com.br_technology.securitytrain_master.R
import com.br_technology.securitytrain_master.databinding.ActivityMessageNoticeBinding
import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse
import com.br_technology.securitytrain_master.ui.mine.adapter.LearningReportDetailAdapter
import com.br_technology.securitytrain_master.ui.mine.adapter.MessageNoticeAdapter
import com.br_technology.securitytrain_master.ui.mine.viewmodel.MessageNoticeViewModel
import com.br_technology.securitytrain_master.view.listener.OnItemClickListener
import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity
/**
* Time: 8/2/2021 17:46
* Author: Captain
* Description: 初见时你很迷人
*/
class MessageNoticeActivity :
BaseLifeCycleActivity<MessageNoticeViewModel, ActivityMessageNoticeBinding>(
ActivityMessageNoticeBinding::inflate
) {
override fun initDataObserver() {
}
override fun initData() {
super.initData()
binding.apply {
val messageNoticeAdapter = MessageNoticeAdapter()
val list = mutableListOf(
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "45分", "平台通知"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "68分", "平台通知"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "100分", "平台通知"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知"),
)
recyclerview.adapter = messageNoticeAdapter
messageNoticeAdapter.addList(list)
messageNoticeAdapter.addListener(object : OnItemClickListener<VideoCourse> {
override fun onClick(position: Int, data: VideoCourse) {
startActivity(MessageNoticeDetailActivity::class.java)
}
})
}
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.activity
import com.br_technology.securitytrain_master.R
import com.br_technology.securitytrain_master.databinding.ActivityMessageNoticeDetailBinding
import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse
import com.br_technology.securitytrain_master.ui.mine.adapter.MessageNoticeAdapter
import com.br_technology.securitytrain_master.ui.mine.adapter.MessageNoticeDetailAdapter
import com.br_technology.securitytrain_master.ui.mine.viewmodel.MessageNoticeDetailViewModel
import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleActivity
/**
* Time: 8/3/2021 9:03
* Author: Captain
* Description: 初见时你很迷人
*/
class MessageNoticeDetailActivity :
BaseLifeCycleActivity<MessageNoticeDetailViewModel, ActivityMessageNoticeDetailBinding>(
ActivityMessageNoticeDetailBinding::inflate
) {
override fun initDataObserver() {
}
override fun initData() {
super.initData()
binding.apply {
val messageNoticeDetailAdapter = MessageNoticeDetailAdapter()
val list = mutableListOf(
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "45分", "平台通知详情"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "68分", "平台通知详情"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "100分", "平台通知详情"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知详情"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知详情"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知详情"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知详情"),
VideoCourse(R.mipmap.banner, "01:45", "自动化制作课程", "99分", "平台通知详情"),
)
recyclerview.adapter = messageNoticeDetailAdapter
messageNoticeDetailAdapter.addList(list)
}
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import com.br_technology.securitytrain_master.base.view.BaseAdapter
import com.br_technology.securitytrain_master.databinding.ItemAcademicFeedbackBinding
import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse
/**
* Time: 8/2/2021 15:05
* Author: Captain
* Description: 初见时你很迷人
*/
class AcademicFeedbackAdapter : BaseAdapter<VideoCourse, ItemAcademicFeedbackBinding>() {
override fun getViewBinding(
context: Context,
parent: ViewGroup,
viewType: Int,
from: LayoutInflater
): ItemAcademicFeedbackBinding {
return ItemAcademicFeedbackBinding.inflate(from, parent, false)
}
override fun onBind(holder: ItemAcademicFeedbackBinding, position: Int, data: VideoCourse) {
holder.tvTitle.text = data.courseName
holder.tvCourseTime.text = data.lesson
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import com.br_technology.securitytrain_master.base.view.BaseAdapter
import com.br_technology.securitytrain_master.databinding.ItemCourseBinding
import com.br_technology.securitytrain_master.databinding.ItemLearningReportBinding
import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse
/**
* Time: 8/3/2021 11:29
* Author: Captain
* Description: 初见时你很迷人
*/
class CourseAdapter : BaseAdapter<VideoCourse,ItemCourseBinding>() {
override fun getViewBinding(
context: Context,
parent: ViewGroup,
viewType: Int,
from: LayoutInflater
): ItemCourseBinding {
return ItemCourseBinding.inflate(from, parent, false)
}
override fun onBind(holder: ItemCourseBinding, position: Int, data: VideoCourse) {
holder.tvTitle.text = data.courseName
holder.tvTime.text = data.head
holder.tvLesson.text = data.lesson
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import com.br_technology.securitytrain_master.base.view.BaseAdapter
import com.br_technology.securitytrain_master.databinding.ItemAcademicFeedbackBinding
import com.br_technology.securitytrain_master.databinding.ItemLearningReportBinding
import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse
/**
* Time: 8/2/2021 16:37
* Author: Captain
* Description: 初见时你很迷人
*/
class LearningReportAdapter : BaseAdapter<VideoCourse,ItemLearningReportBinding>() {
override fun getViewBinding(
context: Context,
parent: ViewGroup,
viewType: Int,
from: LayoutInflater
): ItemLearningReportBinding {
return ItemLearningReportBinding.inflate(from, parent, false)
}
override fun onBind(holder: ItemLearningReportBinding, position: Int, data: VideoCourse) {
holder.tvTitle.text = data.courseName
holder.tvTime.text = data.lesson
holder.tvType.text = data.head
holder.tvScore.text = data.name
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import com.br_technology.securitytrain_master.base.view.BaseAdapter
import com.br_technology.securitytrain_master.databinding.ItemExamForAllBinding
import com.br_technology.securitytrain_master.databinding.ItemLearningReportBinding
import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse
/**
* Time: 8/2/2021 17:42
* Author: Captain
* Description: 初见时你很迷人
*/
class LearningReportDetailAdapter : BaseAdapter<VideoCourse,ItemExamForAllBinding>() {
override fun getViewBinding(
context: Context,
parent: ViewGroup,
viewType: Int,
from: LayoutInflater
): ItemExamForAllBinding {
return ItemExamForAllBinding.inflate(from, parent, false)
}
override fun onBind(holder: ItemExamForAllBinding, position: Int, data: VideoCourse) {
holder.tvTitle.text = data.courseName
holder.tvTime.text = data.lesson
holder.tvStatus.text = data.name
holder.tvScore.text = data.head
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import com.br_technology.securitytrain_master.base.view.BaseAdapter
import com.br_technology.securitytrain_master.databinding.ItemExamForAllBinding
import com.br_technology.securitytrain_master.databinding.ItemMessageNoticeBinding
import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse
/**
* Time: 8/3/2021 8:55
* Author: Captain
* Description: 初见时你很迷人
*/
class MessageNoticeAdapter : BaseAdapter<VideoCourse,ItemMessageNoticeBinding>() {
override fun getViewBinding(
context: Context,
parent: ViewGroup,
viewType: Int,
from: LayoutInflater
): ItemMessageNoticeBinding {
return ItemMessageNoticeBinding.inflate(from, parent, false)
}
override fun onBind(holder: ItemMessageNoticeBinding, position: Int, data: VideoCourse) {
holder.tvTitle.text = data.courseName
holder.tvTime.text = data.lesson
holder.tvInfo.text = data.name
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import com.br_technology.securitytrain_master.base.view.BaseAdapter
import com.br_technology.securitytrain_master.databinding.ItemMessageNoticeBinding
import com.br_technology.securitytrain_master.databinding.ItemMessageNoticeDetailBinding
import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse
/**
* Time: 8/3/2021 9:31
* Author: Captain
* Description: 初见时你很迷人
*/
class MessageNoticeDetailAdapter : BaseAdapter<VideoCourse,ItemMessageNoticeDetailBinding>() {
override fun getViewBinding(
context: Context,
parent: ViewGroup,
viewType: Int,
from: LayoutInflater
): ItemMessageNoticeDetailBinding {
return ItemMessageNoticeDetailBinding.inflate(from, parent, false)
}
override fun onBind(holder: ItemMessageNoticeDetailBinding, position: Int, data: VideoCourse) {
holder.tvInfo.text = data.name
}
}
\ No newline at end of file
... ...
... ... @@ -26,7 +26,7 @@ class MyCredentialsAdapter : BaseAdapter<RecommendData, ItemMyCredentialsUploadB
parent: ViewGroup,
viewType: Int,
from: LayoutInflater
): ViewBinding {
): ItemMyCredentialsUploadBinding {
return ItemMyCredentialsUploadBinding.inflate(from, parent, false)
}
... ... @@ -40,10 +40,6 @@ class MyCredentialsAdapter : BaseAdapter<RecommendData, ItemMyCredentialsUploadB
if (holder is ItemMyCredentialsUploadBinding) {
holder.ivBg.glideRound(data.pic, 16)
} else if (holder is ItemMycredentialsShowBinding) {
holder.ivBg.glideRound(data.pic, 16)
holder.tvName.text = data.name
holder.tvTime.text = data.info
}
}
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.fragment
import com.br_technology.securitytrain_master.R
import com.br_technology.securitytrain_master.databinding.FragmentCourseBinding
import com.br_technology.securitytrain_master.ui.home.pojo.VideoCourse
import com.br_technology.securitytrain_master.ui.mine.adapter.CourseAdapter
import com.br_technology.securitytrain_master.ui.mine.adapter.MockExaminationAdapter
import com.br_technology.securitytrain_master.ui.mine.viewmodel.CourseViewModel
import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleFragment
/**
* Time: 8/3/2021 11:24
* Author: Captain
* Description: 初见时你很迷人
*/
class CourseFragment :
BaseLifeCycleFragment<CourseViewModel, FragmentCourseBinding>(FragmentCourseBinding::inflate) {
override fun initDataObserver() {
}
override fun initData() {
super.initData()
binding.apply {
val courseAdapter = CourseAdapter()
val list = mutableListOf(
VideoCourse(R.mipmap.banner, "12学时", "[直播]自动化制作课程", "2020-09-09 12:00", "张钧-三岗职位培训班"),
VideoCourse(R.mipmap.banner, "12学时", "[直播]自动化制作课程", "2020-09-09 12:00", "张钧-三岗职位培训班"),
VideoCourse(R.mipmap.banner, "12学时", "[直播]自动化制作课程", "2020-09-09 12:00", "张钧-三岗职位培训班"),
VideoCourse(R.mipmap.banner, "12学时", "[直播]自动化制作课程", "2020-09-09 12:00", "张钧-三岗职位培训班"),
)
recyclerview.adapter = courseAdapter
courseAdapter.addList(list)
prUploadValue.setProgress(70)
}
}
}
\ No newline at end of file
... ...
... ... @@ -33,16 +33,33 @@ class MineFragment
rlMineLianxikefu.setOnClickListener(this@MineFragment)
tvOfflineExercise.setOnClickListener(this@MineFragment)
tvAcademicFeedback.setOnClickListener(this@MineFragment)
tvLearningReport.setOnClickListener(this@MineFragment)
tvClassDuty.setOnClickListener(this@MineFragment)
ivMessage.setOnClickListener(this@MineFragment)
}
}
override fun onClick(v: View?) {
when (v!!.id) {
R.id.iv_message -> {
startActivity(MessageNoticeActivity::class.java)
}
R.id.tv_class_duty -> {
startActivity(ClassDutyActivity::class.java)
}
R.id.tv_academic_feedback -> {
startActivity(AcademicFeedbackActivity::class.java)
}
R.id.tv_offline_exercise -> {
//线下培训
startActivity(OfflineExerciseActivity::class.java)
}
R.id.tv_learning_report -> {
startActivity(LearningReportActivity::class.java)
}
R.id.iv_edit_info -> {
//编辑个人信息
startActivity(EditPersonalInfoActivity::class.java)
... ... @@ -73,6 +90,7 @@ class MineFragment
R.id.rl_mine_tousuyujianyi -> {
//投诉与建议
startActivity(ComplaintsAndSuggestionsActivity::class.java)
}
R.id.rl_mine_lianxikefu -> {
... ...
package com.br_technology.securitytrain_master.ui.mine.repository
import androidx.lifecycle.MutableLiveData
import com.br_technology.securitytrain_master.base.common.State
import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository
/**
* Time: 8/3/2021 11:16
* Author: Captain
* Description: 初见时你很迷人
*/
class ClassDutyRepository(val loadState: MutableLiveData<State>) : ApiRepository() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.repository
import androidx.lifecycle.MutableLiveData
import com.br_technology.securitytrain_master.base.common.State
import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository
/**
* Time: 8/3/2021 10:09
* Author: Captain
* Description: 初见时你很迷人
*/
class ComplaintsAndSuggestionsRepository(val loadState: MutableLiveData<State>) : ApiRepository() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.repository
import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository
/**
* Time: 8/3/2021 10:59
* Author: Captain
* Description: 初见时你很迷人
*/
class ComplaintsAndSuggestionsSuccessRepository : ApiRepository() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.repository
import androidx.lifecycle.MutableLiveData
import com.br_technology.securitytrain_master.base.common.State
import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository
/**
* Time: 8/3/2021 11:25
* Author: Captain
* Description: 初见时你很迷人
*/
class CourseRepository(val loadState: MutableLiveData<State>) : ApiRepository() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.repository
import androidx.lifecycle.MutableLiveData
import com.br_technology.securitytrain_master.base.common.State
import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository
/**
* Time: 8/2/2021 16:47
* Author: Captain
* Description: 初见时你很迷人
*/
class LearningReportDetailRepository(val loadState: MutableLiveData<State>) : ApiRepository() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.repository
import androidx.lifecycle.MutableLiveData
import com.br_technology.securitytrain_master.base.common.State
import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository
/**
* Time: 8/2/2021 15:52
* Author: Captain
* Description: 初见时你很迷人
*/
class LearningReportRepository(val loadState: MutableLiveData<State>) : ApiRepository() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.repository
import androidx.lifecycle.MutableLiveData
import com.br_technology.securitytrain_master.base.common.State
import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository
/**
* Time: 8/3/2021 9:29
* Author: Captain
* Description: 初见时你很迷人
*/
class MessageNoticeDetailRepository(val loadState: MutableLiveData<State>) : ApiRepository() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.repository
import androidx.lifecycle.MutableLiveData
import com.br_technology.securitytrain_master.base.common.State
import com.wjx.android.wanandroidmvvm.base.repository.ApiRepository
/**
* Time: 8/2/2021 18:00
* Author: Captain
* Description: 初见时你很迷人
*/
class MessageNoticeRepository(val loadState: MutableLiveData<State>) : ApiRepository() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.viewmodel
import com.br_technology.securitytrain_master.ui.mine.repository.ClassDutyRepository
import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel
/**
* Time: 8/3/2021 11:16
* Author: Captain
* Description: 初见时你很迷人
*/
class ClassDutyViewModel : BaseViewModel<ClassDutyRepository>() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.viewmodel
import com.br_technology.securitytrain_master.ui.mine.repository.ComplaintsAndSuggestionsSuccessRepository
import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel
/**
* Time: 8/3/2021 11:00
* Author: Captain
* Description: 初见时你很迷人
*/
class ComplaintsAndSuggestionsSuccessViewModel : BaseViewModel<ComplaintsAndSuggestionsSuccessRepository>() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.viewmodel
import com.br_technology.securitytrain_master.ui.mine.repository.ComplaintsAndSuggestionsRepository
import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel
/**
* Time: 8/3/2021 10:09
* Author: Captain
* Description: 初见时你很迷人
*/
class ComplaintsAndSuggestionsViewModel : BaseViewModel<ComplaintsAndSuggestionsRepository>() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.viewmodel
import com.br_technology.securitytrain_master.ui.mine.repository.CourseRepository
import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel
/**
* Time: 8/3/2021 11:25
* Author: Captain
* Description: 初见时你很迷人
*/
class CourseViewModel : BaseViewModel<CourseRepository>() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.viewmodel
import com.br_technology.securitytrain_master.ui.mine.activity.LearningReportDetailActivity
import com.br_technology.securitytrain_master.ui.mine.repository.LearningReportDetailRepository
import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel
/**
* Time: 8/2/2021 16:47
* Author: Captain
* Description: 初见时你很迷人
*/
class LearningReportDetailViewModel : BaseViewModel<LearningReportDetailRepository>() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.viewmodel
import com.br_technology.securitytrain_master.ui.mine.repository.LearningReportRepository
import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel
/**
* Time: 8/2/2021 15:52
* Author: Captain
* Description: 初见时你很迷人
*/
class LearningReportViewModel : BaseViewModel<LearningReportRepository>() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.viewmodel
import com.br_technology.securitytrain_master.ui.mine.repository.MessageNoticeDetailRepository
import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel
/**
* Time: 8/3/2021 9:29
* Author: Captain
* Description: 初见时你很迷人
*/
class MessageNoticeDetailViewModel : BaseViewModel<MessageNoticeDetailRepository>() {
}
\ No newline at end of file
... ...
package com.br_technology.securitytrain_master.ui.mine.viewmodel
import com.br_technology.securitytrain_master.ui.mine.repository.MessageNoticeRepository
import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel
/**
* Time: 8/2/2021 18:01
* Author: Captain
* Description: 初见时你很迷人
*/
class MessageNoticeViewModel : BaseViewModel<MessageNoticeRepository>() {
}
\ No newline at end of file
... ...
... ... @@ -8,5 +8,5 @@ import com.wjx.android.wanandroidmvvm.base.viewmodel.BaseViewModel
* Author: Captain
* Description: 初见时你很迷人
*/
class MyCredentialDetailViewModel : BaseViewModel<MyCredentialsDetailRepository> {
class MyCredentialDetailViewModel : BaseViewModel<MyCredentialsDetailRepository>() {
}
\ No newline at end of file
... ...
... ... @@ -34,8 +34,8 @@ class DialogTitle(context: Context) : Dialog(context, R.style.UserDefaultDialog)
setContentView(binding.root)
val attributes = window?.attributes
attributes?.width = binding.root.screenWidth() - 80.dp2px()
// 点击区域外不取消
setCanceledOnTouchOutside(false)
// 点击区域外取消
setCanceledOnTouchOutside(true)
binding.apply {
// 确定
... ... @@ -73,6 +73,22 @@ class DialogTitle(context: Context) : Dialog(context, R.style.UserDefaultDialog)
return this
}
fun setImageTitle(ivTitle: Int): DialogTitle {
binding.ivTitle.setImageResource(ivTitle)
return this
}
fun hideCompleteButton(boolean: Boolean): DialogTitle {
if (boolean) {
binding.complete.visibility = View.GONE
} else {
binding.complete.visibility = View.VISIBLE
}
return this
}
fun setInfo(title: String): DialogTitle {
binding.info.text = title
binding.info.visibility = View.VISIBLE
... ...
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<corners android:radius="10dp" />
<solid android:color="@color/color_eff2"/>
</shape>
</item>
<item android:id="@android:id/progress">
<clip
android:clipOrientation="horizontal"
android:gravity="start">
<shape>
<corners android:radius="10dp" />
<gradient
android:startColor="@color/color_4425FF"
android:endColor="@color/color_25CBFF"
android:angle="45"
/>
</shape>
</clip>
</item>
</layer-list>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/white" />
<corners android:radius="16dp" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<include layout="@layout/layout_tool_bar" />
<com.br_technology.securitytrain_master.view.ViewToolBar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:toolTitle="学情反馈" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"
android:overScrollMode="never"
android:scrollbars="none"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" >
</androidx.recyclerview.widget.RecyclerView>
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/layout_tool_bar" />
<com.br_technology.securitytrain_master.view.ViewToolBar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:toolTitle="班级任务" />
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
style="@style/SearchTab"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:overScrollMode="never"
app:tabMode="auto"
app:tabSelectedTextColor="@color/color_252"
app:tabTextColor="@color/color_96" />
<View
android:layout_width="match_parent"
android:layout_height="8dp"
android:background="@color/color_f7"></View>
<androidx.viewpager.widget.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.viewpager.widget.ViewPager>
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/layout_tool_bar" />
<com.br_technology.securitytrain_master.view.ViewToolBar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:toolTitle="投诉与建议" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:text="投诉类型"
android:textColor="@color/color_32"
android:textSize="18sp"
android:textStyle="bold" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginStart="16dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="16dp"
android:background="@drawable/solid_eff2_8"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="16dp"
android:layout_weight="1"
android:text="内容与建议"
android:textColor="@color/color_32"
android:textSize="14sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginEnd="16dp"
android:src="@mipmap/ic_arrow" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="24dp"
android:text="具体问题"
android:textColor="@color/color_32"
android:textSize="18sp"
android:textStyle="bold" />
<EditText
android:layout_width="match_parent"
android:layout_height="142dp"
android:layout_marginStart="16dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="16dp"
android:background="@drawable/solid_eff2_8"
android:gravity="start"
android:hint="请填写具体意见"
android:padding="16dp"
android:textColor="@color/color_32"
android:textColorHint="@color/color_96"
android:textSize="14sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="24dp"
android:text="手机号"
android:textColor="@color/color_32"
android:textSize="18sp"
android:textStyle="bold" />
<EditText
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginStart="16dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="16dp"
android:background="@drawable/solid_eff2_8"
android:gravity="start"
android:hint="请填写具体意见"
android:padding="16dp"
android:textColor="@color/color_32"
android:textColorHint="@color/color_96"
android:textSize="14sp" />
<RadioGroup
android:id="@+id/radio_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rb_pingtai_jianyi"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:button="@mipmap/tousuyujianyi_sel"
android:paddingStart="8dp"
android:text="平台建议"
android:textColor="@color/color_32"
android:textSize="14sp" />
<RadioButton
android:id="@+id/rb_qiye_jianyi"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="48dp"
android:layout_marginTop="16dp"
android:button="@mipmap/tousuyujianyi_unsel"
android:paddingStart="8dp"
android:text="企业建议"
android:textColor="@color/color_32"
android:textSize="14sp" />
</RadioGroup>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginStart="16dp"
android:layout_marginTop="24dp"
android:layout_marginEnd="16dp"
android:background="@drawable/solid_eff2_8"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="16dp"
android:layout_weight="1"
android:text="是否匿名提交"
android:textColor="@color/color_32"
android:textSize="14sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/iv_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginEnd="16dp"
android:src="@mipmap/switch_unsel" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="horizontal">
</LinearLayout>
<TextView
android:id="@+id/tv_upload"
android:layout_width="343dp"
android:layout_height="44dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="40dp"
android:layout_marginBottom="42dp"
android:background="@drawable/solid_25_4"
android:gravity="center"
android:text="提交信息"
android:textColor="@color/white"
android:textSize="16sp" />
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<include layout="@layout/layout_tool_bar" />
<com.br_technology.securitytrain_master.view.ViewToolBar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:toolTitle="投诉与建议" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="80dp"
android:src="@mipmap/tousuyujianyi_bg" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="24dp"
android:text="提交成功"
android:textColor="@color/color_252"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="8dp"
android:text="您的反馈已提交成功,请您电话保持通畅。"
android:textColor="@color/color_96"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_ensure"
android:layout_width="118dp"
android:layout_height="40dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="56dp"
android:background="@drawable/solid_25_4"
android:gravity="center"
android:text="确定"
android:textColor="@color/white"
android:textSize="15sp" />
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/include"
layout="@layout/layout_tool_bar" />
<com.br_technology.securitytrain_master.view.ViewToolBar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/include"
app:toolTitle="学习报告" />
<RelativeLayout
android:id="@+id/rl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tool_bar"
android:background="@mipmap/learning_report_top_bg">
<ImageView
android:id="@+id/iv_head"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_centerInParent="true"
android:src="@mipmap/placeholder_head" />
<TextView
android:layout_width="115dp"
android:layout_height="32dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="144dp"
android:background="@drawable/solid_ff_16"
android:gravity="center"
android:text="积分220"
android:textColor="@color/color_25"
android:textSize="14sp" />
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/rl"
android:nestedScrollingEnabled="false"
android:overScrollMode="never"
android:scrollbars="none"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager">
</androidx.recyclerview.widget.RecyclerView>
<TextView
android:id="@+id/tv_create_report"
android:layout_width="343dp"
android:layout_height="44dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="42dp"
android:background="@drawable/solid_25_4"
android:gravity="center"
android:text="生成报告"
android:textColor="@color/white"
android:textSize="16sp" />
</RelativeLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/color_25"
android:orientation="vertical">
<include layout="@layout/layout_tool_bar_theme" />
<com.br_technology.securitytrain_master.view.ViewToolBar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/color_25"
app:toolTitle="学习报告" />
<!-- <androidx.core.widget.NestedScrollView-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent">-->
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:orientation="vertical">-->
<FrameLayout
android:layout_width="344dp"
android:layout_height="375dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="15dp">
<LinearLayout
android:layout_width="344dp"
android:layout_height="343dp"
android:layout_marginTop="32dp"
android:background="@drawable/solid_ff_4"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="41dp"
android:background="@mipmap/create_learning_report_top_bg"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="16dp"
android:text="结业"
android:textColor="@color/color_e8"
android:textSize="24sp"
android:textStyle="bold" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:background="@color/color_eb">
</View>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="15dp"
android:layout_weight="1"
android:text="班级名称"
android:textColor="@color/color_96"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginEnd="16dp"
android:layout_weight="1"
android:gravity="end"
android:text="三岗人员培训资格"
android:textColor="@color/color_32"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="15dp"
android:layout_weight="1"
android:text="培训类型"
android:textColor="@color/color_96"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginEnd="16dp"
android:layout_weight="1"
android:gravity="end"
android:text="三岗培训"
android:textColor="@color/color_32"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="15dp"
android:layout_weight="1"
android:text="时间"
android:textColor="@color/color_96"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginEnd="16dp"
android:layout_weight="1"
android:gravity="end"
android:text="2021/07/08-2021/07/09"
android:textColor="@color/color_32"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="15dp"
android:layout_weight="1"
android:text="培训单位"
android:textColor="@color/color_96"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginEnd="16dp"
android:layout_weight="1"
android:gravity="end"
android:text="天津百荣培训中心"
android:textColor="@color/color_32"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="15dp"
android:layout_weight="1"
android:text="培训学时"
android:textColor="@color/color_96"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginEnd="16dp"
android:layout_weight="1"
android:gravity="end"
android:text="12学时"
android:textColor="@color/color_32"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
<ImageView
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_gravity="center_horizontal"
android:src="@mipmap/placeholder_head" />
</FrameLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_marginTop="24dp"
android:orientation="horizontal">
<TextView
android:id="@+id/tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="考试汇总"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold" />
<View
android:layout_width="16dp"
android:layout_height="1dp"
android:layout_centerVertical="true"
android:layout_marginEnd="8dp"
android:layout_toStartOf="@id/tv"
android:background="@color/white">
</View>
<View
android:layout_width="16dp"
android:layout_height="1dp"
android:layout_centerVertical="true"
android:layout_marginStart="8dp"
android:layout_toEndOf="@id/tv"
android:background="@color/white">
</View>
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="37dp"
android:overScrollMode="never"
android:scrollbars="none"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
<!-- </LinearLayout>-->
<!-- </androidx.core.widget.NestedScrollView>-->
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
layout="@layout/layout_tool_bar" />
<com.br_technology.securitytrain_master.view.ViewToolBar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:toolTitle="消息通知" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:overScrollMode="never"
android:scrollbars="none"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
layout="@layout/layout_tool_bar" />
<com.br_technology.securitytrain_master.view.ViewToolBar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:toolTitle="消息通知" />
<LinearLayout
android:background="@color/color_ef"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:overScrollMode="never"
android:scrollbars="none"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
... ...
... ... @@ -13,6 +13,7 @@
android:background="@drawable/solid_top_25_4">
<ImageView
android:id="@+id/iv_title"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<LinearLayout
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
android:id="@+id/ll"
android:layout_width="match_parent"
android:layout_height="22dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="34dp"
android:orientation="horizontal">
<ProgressBar
android:id="@+id/pr_upload_value"
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_width="210dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:max="100"
android:min="0"
android:progressDrawable="@drawable/progressbar_lesson_time"
tools:progress="50" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="24dp"
android:text="已学课时:6/12"
android:textColor="@color/color_32"
android:textSize="14sp" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/ll"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="32dp"
android:overScrollMode="never"
android:scrollbars="none"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</RelativeLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/layout_tool_bar_theme" />
<LinearLayout
android:background="@mipmap/mine_bg"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:src="@mipmap/placeholder_head"
android:layout_marginStart="16dp"
android:layout_marginTop="105dp"
android:layout_width="72dp"
android:layout_height="72dp"/>
android:layout_height="wrap_content"
android:background="@mipmap/mine_bg"
android:orientation="vertical">
<LinearLayout
android:layout_marginTop="95dp"
android:layout_marginStart="20dp"
android:layout_weight="1"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="match_parent">
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="赵丽静"
android:textColor="@color/white"
android:textSize="28sp"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:layout_marginTop="8dp"
android:drawablePadding="4dp"
android:textSize="12sp"
android:textColor="@color/white"
android:drawableStart="@mipmap/mine_phone"
android:text="15674678755"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:layout_marginTop="8dp"
android:text="工程部-设备工程师"
android:textColor="@color/white"
android:textSize="12sp"
<ImageView
android:id="@+id/iv_message"
android:layout_marginTop="37dp"
android:layout_marginEnd="16dp"
android:src="@mipmap/mine_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
<ImageView
android:id="@+id/iv_edit_info"
android:layout_marginEnd="16dp"
android:layout_marginTop="95dp"
android:src="@mipmap/mine_edit"
android:background="@color/color_25"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_width="72dp"
android:layout_height="72dp"
android:layout_marginStart="16dp"
android:layout_marginTop="26dp"
android:src="@mipmap/placeholder_head" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="20dp"
android:layout_marginTop="26dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="赵丽静"
android:textColor="@color/white"
android:textSize="28sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:drawableStart="@mipmap/mine_phone"
android:drawablePadding="4dp"
android:text="15674678755"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="工程部-设备工程师"
android:textColor="@color/white"
android:textSize="12sp" />
</LinearLayout>
<ImageView
android:id="@+id/iv_edit_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:layout_marginEnd="16dp"
android:background="@color/color_25"
android:src="@mipmap/mine_edit" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:orientation="horizontal">
<RelativeLayout
android:layout_marginTop="20dp"
android:layout_marginStart="24dp"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="20dp"
android:layout_weight="1">
<TextView
android:textColor="@color/color_32"
android:textSize="12sp"
android:drawablePadding="8dp"
android:id="@+id/tv_class_duty"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@mipmap/mine_banjirenwu"
android:drawablePadding="8dp"
android:text="班级任务"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="@color/color_32"
android:textSize="12sp" />
</RelativeLayout>
<RelativeLayout
android:layout_marginTop="20dp"
android:layout_marginStart="24dp"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="20dp"
android:layout_weight="1">
<TextView
android:id="@+id/tv_offline_exercise"
android:textColor="@color/color_32"
android:textSize="12sp"
android:drawablePadding="8dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@mipmap/mine_xianxiapeixun"
android:drawablePadding="8dp"
android:text="线下培训"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="@color/color_32"
android:textSize="12sp" />
</RelativeLayout>
<RelativeLayout
android:layout_marginTop="20dp"
android:layout_marginStart="24dp"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="20dp"
android:layout_weight="1">
<TextView
android:textColor="@color/color_32"
android:textSize="12sp"
android:drawablePadding="8dp"
android:id="@+id/tv_academic_feedback"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@mipmap/mine_xueqingfankui"
android:drawablePadding="8dp"
android:text="学情反馈"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="@color/color_32"
android:textSize="12sp" />
</RelativeLayout>
<RelativeLayout
android:layout_marginTop="20dp"
android:layout_marginStart="24dp"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="20dp"
android:layout_weight="1">
<TextView
android:textColor="@color/color_32"
android:textSize="12sp"
android:drawablePadding="8dp"
android:id="@+id/tv_learning_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@mipmap/mine_xuexibaogao"
android:drawablePadding="8dp"
android:text="学习报告"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="@color/color_32"
android:textSize="12sp" />
</RelativeLayout>
... ... @@ -148,28 +178,28 @@
<RelativeLayout
android:id="@+id/rl_mine_cuoti"
android:layout_marginTop="20dp"
android:layout_width="match_parent"
android:layout_height="52dp">
android:layout_height="52dp"
android:layout_marginTop="20dp">
<TextView
android:drawablePadding="12dp"
android:drawableStart="@mipmap/mine_wodecuoti"
android:layout_marginStart="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:textSize="14sp"
android:textColor="@color/color_32"
android:layout_marginStart="16dp"
android:drawableStart="@mipmap/mine_wodecuoti"
android:drawablePadding="12dp"
android:text="我的错题"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="@color/color_32"
android:textSize="14sp" />
<ImageView
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="16dp"
android:src="@mipmap/ic_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:src="@mipmap/ic_arrow" />
</RelativeLayout>
... ... @@ -180,23 +210,23 @@
android:layout_height="52dp">
<TextView
android:drawablePadding="12dp"
android:drawableStart="@mipmap/mine_datijilu"
android:layout_marginStart="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:textSize="14sp"
android:textColor="@color/color_32"
android:layout_marginStart="16dp"
android:drawableStart="@mipmap/mine_datijilu"
android:drawablePadding="12dp"
android:text="答题记录"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="@color/color_32"
android:textSize="14sp" />
<ImageView
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="16dp"
android:src="@mipmap/ic_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:src="@mipmap/ic_arrow" />
</RelativeLayout>
... ... @@ -207,23 +237,23 @@
android:layout_height="52dp">
<TextView
android:drawablePadding="12dp"
android:drawableStart="@mipmap/mine_wodezhengjian"
android:layout_marginStart="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:textSize="14sp"
android:textColor="@color/color_32"
android:layout_marginStart="16dp"
android:drawableStart="@mipmap/mine_wodezhengjian"
android:drawablePadding="12dp"
android:text="我的证件"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="@color/color_32"
android:textSize="14sp" />
<ImageView
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="16dp"
android:src="@mipmap/ic_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:src="@mipmap/ic_arrow" />
</RelativeLayout>
... ... @@ -234,23 +264,23 @@
android:layout_height="52dp">
<TextView
android:drawablePadding="12dp"
android:drawableStart="@mipmap/mine_wodeshoucang"
android:layout_marginStart="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:textSize="14sp"
android:textColor="@color/color_32"
android:layout_marginStart="16dp"
android:drawableStart="@mipmap/mine_wodeshoucang"
android:drawablePadding="12dp"
android:text="我的收藏"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="@color/color_32"
android:textSize="14sp" />
<ImageView
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="16dp"
android:src="@mipmap/ic_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:src="@mipmap/ic_arrow" />
</RelativeLayout>
... ... @@ -261,23 +291,23 @@
android:layout_height="52dp">
<TextView
android:drawablePadding="12dp"
android:drawableStart="@mipmap/mine_wodeliaotianjilu"
android:layout_marginStart="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:textSize="14sp"
android:textColor="@color/color_32"
android:layout_marginStart="16dp"
android:drawableStart="@mipmap/mine_wodeliaotianjilu"
android:drawablePadding="12dp"
android:text="我的聊天记录"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="@color/color_32"
android:textSize="14sp" />
<ImageView
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="16dp"
android:src="@mipmap/ic_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:src="@mipmap/ic_arrow" />
</RelativeLayout>
... ... @@ -288,23 +318,23 @@
android:layout_height="52dp">
<TextView
android:drawablePadding="12dp"
android:drawableStart="@mipmap/mine_tousuyujianyi"
android:layout_marginStart="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:textSize="14sp"
android:textColor="@color/color_32"
android:layout_marginStart="16dp"
android:drawableStart="@mipmap/mine_tousuyujianyi"
android:drawablePadding="12dp"
android:text="投诉与建议"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="@color/color_32"
android:textSize="14sp" />
<ImageView
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="16dp"
android:src="@mipmap/ic_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:src="@mipmap/ic_arrow" />
</RelativeLayout>
... ... @@ -315,23 +345,23 @@
android:layout_height="52dp">
<TextView
android:drawablePadding="12dp"
android:drawableStart="@mipmap/mine_lianxikefu"
android:layout_marginStart="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:textSize="14sp"
android:textColor="@color/color_32"
android:layout_marginStart="16dp"
android:drawableStart="@mipmap/mine_lianxikefu"
android:drawablePadding="12dp"
android:text="联系客服"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="@color/color_32"
android:textSize="14sp" />
<ImageView
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="16dp"
android:src="@mipmap/ic_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:src="@mipmap/ic_arrow" />
</RelativeLayout>
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/iv_cover"
android:layout_width="120dp"
android:layout_height="64dp"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:scaleType="fitXY"
android:src="@mipmap/ic_launcher" />
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_toEndOf="@id/iv_cover"
android:text="报名班级"
android:textColor="@color/color_32"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_course_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_title"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_toEndOf="@id/iv_cover"
android:text="已完成3课时"
android:textColor="@color/color_96"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_jiangshipingxi"
android:layout_width="72dp"
android:layout_height="28dp"
android:layout_below="@id/tv_course_time"
android:layout_alignParentEnd="true"
android:layout_marginEnd="16dp"
android:background="@drawable/solid_25_4"
android:gravity="center"
android:text="讲师评析"
android:textColor="@color/white"
android:textSize="12sp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@id/tv_jiangshipingxi"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:background="@color/color_eb">
</View>
</RelativeLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="258dp"
android:layout_marginTop="16dp"
android:background="@drawable/solid_eff2_4"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="176dp"
android:layout_margin="12dp">
<com.br_technology.securitytrain_master.view.MyVideoPlayer
android:layout_width="match_parent"
android:layout_height="176dp"
android:layout_margin="12dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="12dp"
android:background="@mipmap/complete_bg"
android:gravity="center"
android:text="已完成"
android:textColor="@color/white"
android:textSize="12sp" />
</FrameLayout>
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="【直播】课程名称课程名称课程名称"
android:textColor="@color/color_32"
android:textSize="14sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_lesson"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="12dp"
android:layout_weight="1"
android:text="12学时"
android:textColor="@color/color_96"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginEnd="12dp"
android:layout_marginBottom="12dp"
android:layout_weight="1"
android:gravity="end"
android:text="2020-09-09 12:00"
android:textColor="@color/color_96"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="344dp"
android:layout_height="77dp"
android:layout_marginBottom="12dp"
android:background="@drawable/solid_ff_4"
android:layout_gravity="center_horizontal">
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:text="考试问卷名称考试问卷"
android:textColor="@color/color_32"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_title"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="16dp"
android:text="考试问卷名称考试问卷"
android:textColor="@color/color_96"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:background="@mipmap/report_pass"
android:gravity="center"
android:text="通过"
android:textColor="@color/white"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_score"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginTop="35dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp"
android:text="95分"
android:textColor="@color/color_32"
android:textSize="18sp"
android:textStyle="bold" />
</RelativeLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:text="(考试)"
android:textColor="@color/color_25"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="16dp"
android:text="三岗培训第三次模拟考试"
android:textColor="@color/color_32"
android:textSize="14sp" />
</LinearLayout>
<TextView
android:id="@+id/tv_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="12dp"
android:text="三岗培训第三次模拟考试"
android:textColor="@color/color_96"
android:textSize="12sp" />
</LinearLayout>
<TextView
android:id="@+id/tv_score"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="28dp"
android:layout_marginEnd="16dp"
android:text="+10"
android:textColor="@color/color_25"
android:textSize="20sp" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:background="@color/color_eb" />
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/iv_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:src="@mipmap/message_notice_icon" />
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:layout_marginTop="16dp"
android:layout_toEndOf="@id/iv_icon"
android:text="平台通知"
android:textColor="@color/color_32"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_title"
android:layout_marginStart="12dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:layout_toEndOf="@id/iv_icon"
android:text="您的进度过慢,请抓紧时间学习并完成考试。否则会影响您的任职资格"
android:textColor="@color/color_32"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:text="06-12"
android:textColor="@color/color_96"
android:textSize="12sp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@id/tv_info"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:background="@color/color_eb">
</View>
</RelativeLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="54dp"
android:src="@mipmap/message_notice_icon" />
<TextView
android:id="@+id/tv_info"
android:padding="12dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="54dp"
android:layout_marginEnd="44dp"
android:background="@drawable/solid_ff_4"
android:text="十一去哪玩有打算吗您的进度过慢,请抓紧时间学习并完成考试。否则会影响您的任职资格 "
android:textColor="@color/color_252"
android:textSize="15sp" />
</LinearLayout>
\ No newline at end of file
... ...
... ... @@ -34,5 +34,8 @@
<color name="color_f7">#F7F8FA</color>
<color name="color_e3">#E3F1FF</color>
<color name="color_dcdee0">#DCDEE0</color>
<color name="color_4425FF">#4425FF</color>
<color name="color_25CBFF">#25CBFF</color>
</resources>
\ No newline at end of file
... ...
... ... @@ -65,4 +65,5 @@
<style name="MyTabText" parent="TextAppearance.Design.Tab">
<item name="android:textSize">14sp</item>
</style>
</resources>
\ No newline at end of file
... ...