add all fragment
@ -12,6 +12,12 @@
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.DevCheck"
|
||||
tools:targetApi="31">
|
||||
<activity
|
||||
android:name=".dashboard.TemperatureActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".dashboard.AppsActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".dashboard.CpuStatusActivity"
|
||||
android:exported="false" />
|
||||
|
||||
@ -0,0 +1,45 @@
|
||||
package com.tools.device.devcheck.adapter
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Context
|
||||
import android.view.LayoutInflater
|
||||
import android.view.ViewGroup
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.tools.device.devcheck.dashboard.AppDialogFragment
|
||||
import com.tools.device.devcheck.databinding.ItemAppListBinding
|
||||
import com.tools.device.devcheck.databinding.ItemListBinding
|
||||
|
||||
class AppListAdapter: RecyclerView.Adapter<AppListAdapter.ListViewHolder>() {
|
||||
private lateinit var context: Context
|
||||
private lateinit var listener: OnShowDialogListener
|
||||
override fun onCreateViewHolder(
|
||||
parent: ViewGroup,
|
||||
viewType: Int
|
||||
): ListViewHolder {
|
||||
context = parent.context
|
||||
val binding= ItemAppListBinding.inflate(LayoutInflater.from(context), parent, false)
|
||||
return ListViewHolder(binding)
|
||||
}
|
||||
|
||||
override fun onBindViewHolder(
|
||||
holder: ListViewHolder,
|
||||
position: Int
|
||||
) {
|
||||
holder.binding.view.setOnClickListener {
|
||||
listener.onShowAppSelectDialog()
|
||||
}
|
||||
}
|
||||
fun setOnclickListener(listener: OnShowDialogListener) {
|
||||
this.listener = listener
|
||||
}
|
||||
|
||||
override fun getItemCount(): Int {
|
||||
return 3
|
||||
}
|
||||
|
||||
class ListViewHolder(val binding: ItemAppListBinding): RecyclerView.ViewHolder(binding.root)
|
||||
interface OnShowDialogListener {
|
||||
fun onShowAppSelectDialog()
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.tools.device.devcheck.adapter
|
||||
|
||||
import android.content.Context
|
||||
import android.view.LayoutInflater
|
||||
import android.view.ViewGroup
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.tools.device.devcheck.databinding.ItemCommonTempBinding
|
||||
import com.tools.device.devcheck.databinding.ItemListBinding
|
||||
|
||||
class TempAdapter: RecyclerView.Adapter<TempAdapter.ListViewHolder>() {
|
||||
private lateinit var context: Context
|
||||
override fun onCreateViewHolder(
|
||||
parent: ViewGroup,
|
||||
viewType: Int
|
||||
): ListViewHolder {
|
||||
context = parent.context
|
||||
val binding= ItemCommonTempBinding.inflate(LayoutInflater.from(context), parent, false)
|
||||
return ListViewHolder(binding)
|
||||
}
|
||||
|
||||
override fun onBindViewHolder(
|
||||
holder: ListViewHolder,
|
||||
position: Int
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
override fun getItemCount(): Int {
|
||||
return 3
|
||||
}
|
||||
|
||||
class ListViewHolder(val binding: ItemCommonTempBinding): RecyclerView.ViewHolder(binding.root)
|
||||
}
|
||||
@ -10,6 +10,7 @@ import android.view.WindowManager
|
||||
import androidx.core.graphics.drawable.toDrawable
|
||||
import androidx.fragment.app.DialogFragment
|
||||
import androidx.viewbinding.ViewBinding
|
||||
import com.tools.device.devcheck.R
|
||||
import com.tools.device.devcheck.databinding.DialogBaseBinding
|
||||
|
||||
abstract class BaseDialogFragment<VB : ViewBinding>(
|
||||
@ -22,6 +23,7 @@ abstract class BaseDialogFragment<VB : ViewBinding>(
|
||||
protected val binding get() = _contentBinding!!
|
||||
|
||||
abstract fun getTitle(): String
|
||||
|
||||
open fun getIconRes(): Int? = null
|
||||
|
||||
|
||||
@ -45,8 +47,19 @@ abstract class BaseDialogFragment<VB : ViewBinding>(
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
baseBinding.dialogTitle.text = getTitle()
|
||||
getIconRes()?.let {
|
||||
baseBinding.imageIcon.setImageResource(it)
|
||||
getIconRes()?.let {iconRes ->
|
||||
when (iconRes) {
|
||||
1 -> baseBinding.imageIcon.setImageResource(R.drawable.battery_ic) // 替换为实际的资源ID
|
||||
2 -> baseBinding.imageIcon.setImageResource(R.drawable.wifi)
|
||||
3 -> baseBinding.imageIcon.setImageResource(R.drawable.app_full_ic)
|
||||
4 -> baseBinding.imageIcon.setImageResource(R.drawable.display)
|
||||
5 -> baseBinding.imageIcon.setImageResource(R.drawable.blue_tooth_ic)
|
||||
6 -> baseBinding.imageIcon.setImageResource(R.drawable.mem_ic)
|
||||
7-> baseBinding.imageIcon.setImageResource(R.drawable.setting_ic)
|
||||
8 -> baseBinding.imageIcon.setImageResource(R.drawable.storyge)
|
||||
// 添加更多数字对应的图片...
|
||||
else -> baseBinding.imageIcon.setImageResource(R.drawable.main_logo)
|
||||
}
|
||||
baseBinding.imageIcon.visibility = View.VISIBLE
|
||||
}
|
||||
baseBinding.textCancel.setOnClickListener {
|
||||
|
||||
@ -0,0 +1,64 @@
|
||||
package com.tools.device.devcheck.dashboard
|
||||
|
||||
import android.graphics.Color
|
||||
import android.os.Bundle
|
||||
import android.view.Gravity
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.view.WindowManager
|
||||
import androidx.core.graphics.drawable.toDrawable
|
||||
import androidx.fragment.app.DialogFragment
|
||||
import androidx.viewbinding.ViewBinding
|
||||
import com.tools.device.devcheck.R
|
||||
import com.tools.device.devcheck.databinding.DialogAppClickBinding
|
||||
import com.tools.device.devcheck.databinding.DialogBaseBinding
|
||||
|
||||
class AppDialogFragment : DialogFragment() {
|
||||
|
||||
private var _binding: DialogAppClickBinding? = null
|
||||
private val baseBinding get() = _binding!!
|
||||
|
||||
|
||||
open fun onPositiveClick() {}
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater,
|
||||
container: ViewGroup?,
|
||||
savedInstanceState: Bundle?
|
||||
): View {
|
||||
_binding = DialogAppClickBinding.inflate(inflater, container, false)
|
||||
return baseBinding.root
|
||||
}
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
baseBinding.textCancel.setOnClickListener {
|
||||
onPositiveClick()
|
||||
dismiss()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onStart() {
|
||||
super.onStart()
|
||||
dialog?.window?.let { window ->
|
||||
window.setBackgroundDrawable(Color.TRANSPARENT.toDrawable())
|
||||
|
||||
val params = window.attributes
|
||||
val displayMetrics = resources.displayMetrics
|
||||
val margin = (10 * displayMetrics.density).toInt()
|
||||
params.width = displayMetrics.widthPixels - margin * 2
|
||||
params.height = WindowManager.LayoutParams.WRAP_CONTENT
|
||||
window.attributes = params
|
||||
window.setGravity(Gravity.CENTER)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDestroyView() {
|
||||
super.onDestroyView()
|
||||
_binding = null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,86 @@
|
||||
package com.tools.device.devcheck.dashboard
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.Fragment
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import com.tools.device.devcheck.R
|
||||
import com.tools.device.devcheck.adapter.AppListAdapter
|
||||
import com.tools.device.devcheck.databinding.FragmentAppsBinding
|
||||
|
||||
class AppsFragment : Fragment(),AppListAdapter.OnShowDialogListener {
|
||||
private lateinit var binding: FragmentAppsBinding
|
||||
private lateinit var dialogFragment: AppDialogFragment
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
}
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?
|
||||
): View? {
|
||||
// Inflate the layout for this fragment
|
||||
binding = FragmentAppsBinding.inflate(inflater, container, false)
|
||||
initButtons()
|
||||
val adapter= AppListAdapter()
|
||||
adapter.setOnclickListener(this)
|
||||
binding.recyclerView.adapter = adapter
|
||||
binding.recyclerView.layoutManager = LinearLayoutManager(requireContext())
|
||||
return binding.root
|
||||
}
|
||||
|
||||
companion object {
|
||||
@JvmStatic
|
||||
fun newInstance() =
|
||||
AppsFragment().apply {
|
||||
arguments = Bundle().apply {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
private fun initButtons() {
|
||||
switchTab(0)
|
||||
binding.llUser.setOnClickListener { switchTab(0) }
|
||||
binding.llSystem.setOnClickListener { switchTab(1) }
|
||||
binding.llAll.setOnClickListener { switchTab(2) }
|
||||
}
|
||||
|
||||
private fun switchTab(n: Int) {
|
||||
when(n){
|
||||
0->{
|
||||
binding.back1.visibility = View.VISIBLE
|
||||
binding.back2.visibility = View.INVISIBLE
|
||||
binding.back3.visibility = View.INVISIBLE
|
||||
binding.imgUser.isSelected = true
|
||||
binding.imgSystem.isSelected = false
|
||||
binding.imgAll.isSelected = false
|
||||
binding.tvTitle.text=getString(R.string.user_apps)+"("+30+")"
|
||||
}
|
||||
1->{
|
||||
binding.back1.visibility = View.INVISIBLE
|
||||
binding.back2.visibility = View.VISIBLE
|
||||
binding.back3.visibility = View.INVISIBLE
|
||||
binding.imgUser.isSelected = false
|
||||
binding.imgSystem.isSelected = true
|
||||
binding.imgAll.isSelected = false
|
||||
binding.tvTitle.text=getString(R.string.system_apps)+"("+30+")"
|
||||
}
|
||||
2->{
|
||||
binding.back1.visibility = View.INVISIBLE
|
||||
binding.back2.visibility = View.INVISIBLE
|
||||
binding.back3.visibility = View.VISIBLE
|
||||
binding.imgUser.isSelected = false
|
||||
binding.imgSystem.isSelected = false
|
||||
binding.imgAll.isSelected = true
|
||||
binding.tvTitle.text=getString(R.string.installed_apps)+"("+30+")"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onShowAppSelectDialog() {
|
||||
dialogFragment = AppDialogFragment()
|
||||
dialogFragment?.show(requireActivity().supportFragmentManager, "AppDialogFragment")
|
||||
}
|
||||
}
|
||||
@ -21,6 +21,11 @@ class DashboardFragment : BaseFragment<FragmentDashboardBinding>() {
|
||||
private var dialogBattery: DialogBattery? = null
|
||||
private var dialogNetwork: DialogNetwork? = null
|
||||
private var dialogDisplay: DialogDisplay? = null
|
||||
private var dialogOperating: DialogOperating? = null
|
||||
private var dialogAppInstall: DialogAppInstall? = null
|
||||
private var dialogMemory: DialogMemory? = null
|
||||
private var dialogStorage: DialogStorage? = null
|
||||
|
||||
|
||||
companion object {
|
||||
@JvmStatic
|
||||
@ -83,7 +88,7 @@ class DashboardFragment : BaseFragment<FragmentDashboardBinding>() {
|
||||
}
|
||||
|
||||
private fun initClick() {
|
||||
binding.layoutCpu.moduleCpu.setOnClickListener {
|
||||
binding.layoutCpu.showCpu.setOnClickListener {
|
||||
startActivity(Intent(requireContext(), CpuStatusActivity::class.java))
|
||||
}
|
||||
binding.layoutCenter.run {
|
||||
@ -99,13 +104,32 @@ class DashboardFragment : BaseFragment<FragmentDashboardBinding>() {
|
||||
dialogDisplay = dialogDisplay?: DialogDisplay()
|
||||
dialogDisplay?.show(parentFragmentManager, "")
|
||||
}
|
||||
relayoutApps.setOnClickListener {
|
||||
dialogAppInstall = dialogAppInstall ?: DialogAppInstall()
|
||||
dialogAppInstall?.show(parentFragmentManager, "")
|
||||
}
|
||||
binding.layoutBottom.relayoutTools.setOnClickListener {
|
||||
relayoutRam.setOnClickListener {
|
||||
dialogMemory = dialogMemory ?: DialogMemory()
|
||||
dialogMemory?.show(parentFragmentManager, "")
|
||||
}
|
||||
relayoutStorage.setOnClickListener {
|
||||
dialogStorage = dialogStorage ?: DialogStorage()
|
||||
dialogStorage?.show(parentFragmentManager, "")
|
||||
}
|
||||
}
|
||||
binding.layoutBottom.run {
|
||||
relayoutTools.setOnClickListener {
|
||||
startActivity(Intent(requireContext(), ToolsActivity::class.java))
|
||||
}
|
||||
binding.layoutBottom.relayoutTests.setOnClickListener {
|
||||
relayoutTests.setOnClickListener {
|
||||
startActivity(Intent(requireContext(), TestActivity::class.java))
|
||||
}
|
||||
relayoutPhoneInfo.setOnClickListener {
|
||||
dialogOperating = dialogOperating ?: DialogOperating()
|
||||
dialogOperating?.show(parentFragmentManager, "")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package com.tools.device.devcheck.dashboard
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import com.tools.device.devcheck.R
|
||||
import com.tools.device.devcheck.base.BaseDialogFragment
|
||||
import com.tools.device.devcheck.databinding.DialogAppInstallBinding
|
||||
import com.tools.device.devcheck.databinding.DialogBatteryBinding
|
||||
import com.tools.device.devcheck.databinding.DialogNetworkBinding
|
||||
|
||||
class DialogAppInstall :BaseDialogFragment<DialogAppInstallBinding>(DialogAppInstallBinding::inflate){
|
||||
override fun getTitle(): String = resources.getString(R.string.installed_apps)
|
||||
|
||||
override fun getIconRes(): Int=3
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
}
|
||||
|
||||
override fun onNegativeClick() {
|
||||
super.onNegativeClick()
|
||||
|
||||
}
|
||||
|
||||
override fun onPositiveClick() {
|
||||
super.onPositiveClick()
|
||||
}
|
||||
}
|
||||
@ -9,9 +9,7 @@ import com.tools.device.devcheck.databinding.DialogBatteryBinding
|
||||
class DialogBattery :BaseDialogFragment<DialogBatteryBinding>(DialogBatteryBinding::inflate){
|
||||
override fun getTitle(): String = resources.getString(R.string.battery)
|
||||
|
||||
override fun getIconRes(): Int? {
|
||||
return super.getIconRes()
|
||||
}
|
||||
override fun getIconRes(): Int? =1
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
@ -11,9 +11,7 @@ import com.tools.device.devcheck.databinding.DialogNetworkBinding
|
||||
class DialogDisplay :BaseDialogFragment<DialogDisplayBinding>(DialogDisplayBinding::inflate){
|
||||
override fun getTitle(): String = resources.getString(R.string.display)
|
||||
|
||||
override fun getIconRes(): Int? {
|
||||
return super.getIconRes()
|
||||
}
|
||||
override fun getIconRes(): Int=4
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
@ -0,0 +1,28 @@
|
||||
package com.tools.device.devcheck.dashboard
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import com.tools.device.devcheck.R
|
||||
import com.tools.device.devcheck.base.BaseDialogFragment
|
||||
import com.tools.device.devcheck.databinding.DialogBatteryBinding
|
||||
import com.tools.device.devcheck.databinding.DialogMemoryBinding
|
||||
import com.tools.device.devcheck.databinding.DialogNetworkBinding
|
||||
|
||||
class DialogMemory :BaseDialogFragment<DialogMemoryBinding>(DialogMemoryBinding::inflate){
|
||||
override fun getTitle(): String = resources.getString(R.string.memory)
|
||||
|
||||
override fun getIconRes(): Int=6
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
}
|
||||
|
||||
override fun onNegativeClick() {
|
||||
super.onNegativeClick()
|
||||
|
||||
}
|
||||
|
||||
override fun onPositiveClick() {
|
||||
super.onPositiveClick()
|
||||
}
|
||||
}
|
||||
@ -10,9 +10,7 @@ import com.tools.device.devcheck.databinding.DialogNetworkBinding
|
||||
class DialogNetwork :BaseDialogFragment<DialogNetworkBinding>(DialogNetworkBinding::inflate){
|
||||
override fun getTitle(): String = resources.getString(R.string.network)
|
||||
|
||||
override fun getIconRes(): Int? {
|
||||
return super.getIconRes()
|
||||
}
|
||||
override fun getIconRes(): Int=2
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
@ -0,0 +1,28 @@
|
||||
package com.tools.device.devcheck.dashboard
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import com.tools.device.devcheck.R
|
||||
import com.tools.device.devcheck.base.BaseDialogFragment
|
||||
import com.tools.device.devcheck.databinding.DialogBatteryBinding
|
||||
import com.tools.device.devcheck.databinding.DialogOperatingBinding
|
||||
|
||||
class DialogOperating :BaseDialogFragment<DialogOperatingBinding>(DialogOperatingBinding::inflate){
|
||||
override fun getTitle(): String = resources.getString(R.string.operating_system)
|
||||
|
||||
override fun getIconRes(): Int? =7
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
}
|
||||
|
||||
override fun onNegativeClick() {
|
||||
super.onNegativeClick()
|
||||
|
||||
}
|
||||
|
||||
override fun onPositiveClick() {
|
||||
super.onPositiveClick()
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.tools.device.devcheck.dashboard
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import com.tools.device.devcheck.R
|
||||
import com.tools.device.devcheck.base.BaseDialogFragment
|
||||
import com.tools.device.devcheck.databinding.DialogBatteryBinding
|
||||
import com.tools.device.devcheck.databinding.DialogStorageBinding
|
||||
|
||||
class DialogStorage :BaseDialogFragment<DialogStorageBinding>(DialogStorageBinding::inflate){
|
||||
override fun getTitle(): String = resources.getString(R.string.storage)
|
||||
|
||||
override fun getIconRes(): Int? =8
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
}
|
||||
|
||||
override fun onNegativeClick() {
|
||||
super.onNegativeClick()
|
||||
|
||||
}
|
||||
|
||||
override fun onPositiveClick() {
|
||||
super.onPositiveClick()
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.tools.device.devcheck.dashboard
|
||||
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.Fragment
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import com.tools.device.devcheck.R
|
||||
import com.tools.device.devcheck.databinding.FragmentSensorsBinding
|
||||
|
||||
class SensorsFragment : Fragment() {
|
||||
private lateinit var binding: FragmentSensorsBinding
|
||||
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
}
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?
|
||||
): View? {
|
||||
// Inflate the layout for this fragment
|
||||
binding = FragmentSensorsBinding.inflate(inflater, container, false)
|
||||
initView()
|
||||
binding.sensor1.root.setOnClickListener {
|
||||
val intent = Intent(requireContext(), TemperatureActivity::class.java)
|
||||
startActivity(intent)
|
||||
}
|
||||
return binding.root
|
||||
}
|
||||
|
||||
private fun initView() {
|
||||
binding.sensor1.sensorName.text=getString(R.string.temperatures)
|
||||
binding.sensor2.sensorName.text=getString(R.string.accelerometer)
|
||||
binding.sensor3.sensorName.text=getString(R.string.magnetic_field)
|
||||
binding.sensor4.sensorName.text=getString(R.string.orientation)
|
||||
binding.sensor5.sensorName.text=getString(R.string.light)
|
||||
binding.sensor6.sensorName.text=getString(R.string.proximity)
|
||||
binding.sensor7.sensorName.text=getString(R.string.gravity)
|
||||
binding.sensor8.sensorName.text=getString(R.string.linear_acceleration)
|
||||
binding.sensor9.sensorName.text=getString(R.string.rotation_vector)
|
||||
binding.sensor10.sensorName.text=getString(R.string.step_counter)
|
||||
|
||||
binding.hallText1.textTitle.text=getString(R.string.manufacturer)
|
||||
binding.hallText2.textTitle.text=getString(R.string.type)
|
||||
binding.hallText3.textTitle.text=getString(R.string.resolution)
|
||||
binding.hallText4.textTitle.text=getString(R.string.maximum_range)
|
||||
binding.hallText5.textTitle.text=getString(R.string.power)
|
||||
binding.hallText6.textTitle.text=getString(R.string.wakeup_sensor)
|
||||
|
||||
binding.signText1.textTitle.text=getString(R.string.manufacturer)
|
||||
binding.signText2.textTitle.text=getString(R.string.type)
|
||||
binding.signText3.textTitle.text=getString(R.string.resolution)
|
||||
binding.signText4.textTitle.text=getString(R.string.maximum_range)
|
||||
binding.signText5.textTitle.text=getString(R.string.power)
|
||||
binding.signText6.textTitle.text=getString(R.string.wakeup_sensor)
|
||||
|
||||
binding.geoText1.textTitle.text=getString(R.string.manufacturer)
|
||||
binding.geoText2.textTitle.text=getString(R.string.type)
|
||||
binding.geoText3.textTitle.text=getString(R.string.resolution)
|
||||
binding.geoText4.textTitle.text=getString(R.string.maximum_range)
|
||||
binding.geoText5.textTitle.text=getString(R.string.power)
|
||||
binding.geoText6.textTitle.text=getString(R.string.wakeup_sensor)
|
||||
|
||||
binding.rpcText1.textTitle.text=getString(R.string.manufacturer)
|
||||
binding.rpcText2.textTitle.text=getString(R.string.type)
|
||||
binding.rpcText3.textTitle.text=getString(R.string.resolution)
|
||||
binding.rpcText4.textTitle.text=getString(R.string.maximum_range)
|
||||
binding.rpcText5.textTitle.text=getString(R.string.power)
|
||||
binding.rpcText6.textTitle.text=getString(R.string.wakeup_sensor)
|
||||
|
||||
}
|
||||
|
||||
companion object {
|
||||
/**
|
||||
* Use this factory method to create a new instance of
|
||||
* this fragment using the provided parameters.
|
||||
*
|
||||
* @param param1 Parameter 1.
|
||||
* @param param2 Parameter 2.
|
||||
* @return A new instance of fragment SensorsFragment.
|
||||
*/
|
||||
// TODO: Rename and change types and number of parameters
|
||||
@JvmStatic
|
||||
fun newInstance() =
|
||||
SensorsFragment().apply {
|
||||
arguments = Bundle().apply {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.tools.device.devcheck.dashboard
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.activity.enableEdgeToEdge
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.core.view.ViewCompat
|
||||
import androidx.core.view.WindowInsetsCompat
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import com.tools.device.devcheck.R
|
||||
import com.tools.device.devcheck.adapter.TempAdapter
|
||||
import com.tools.device.devcheck.databinding.ActivityTemperatureBinding
|
||||
|
||||
class TemperatureActivity : AppCompatActivity() {
|
||||
private lateinit var binding: ActivityTemperatureBinding
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
binding = ActivityTemperatureBinding.inflate(layoutInflater)
|
||||
setContentView(binding.root)
|
||||
binding.rvTemperature.adapter = TempAdapter()
|
||||
binding.rvTemperature.layoutManager =LinearLayoutManager(this)
|
||||
}
|
||||
}
|
||||
@ -7,11 +7,13 @@ import androidx.viewpager2.widget.ViewPager2
|
||||
import com.google.android.material.tabs.TabLayoutMediator
|
||||
import com.tools.device.devcheck.base.BaseActivity
|
||||
import com.tools.device.devcheck.R
|
||||
import com.tools.device.devcheck.dashboard.AppsFragment
|
||||
import com.tools.device.devcheck.dashboard.BatteryFragment
|
||||
import com.tools.device.devcheck.dashboard.CameraFragment
|
||||
import com.tools.device.devcheck.dashboard.DashboardFragment
|
||||
import com.tools.device.devcheck.dashboard.HardWareFragment
|
||||
import com.tools.device.devcheck.dashboard.NetworkFragment
|
||||
import com.tools.device.devcheck.dashboard.SensorsFragment
|
||||
import com.tools.device.devcheck.dashboard.SystemShowFragment
|
||||
import com.tools.device.devcheck.databinding.ActivityMainBinding
|
||||
|
||||
@ -32,9 +34,9 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
|
||||
SystemShowFragment.newInstance(),
|
||||
BatteryFragment.newInstance(),
|
||||
NetworkFragment.newInstance(),
|
||||
DashboardFragment.newInstance(),
|
||||
AppsFragment.newInstance(),
|
||||
CameraFragment.newInstance(),
|
||||
DashboardFragment.newInstance()
|
||||
SensorsFragment.newInstance()
|
||||
)
|
||||
)
|
||||
registerOnPageChangeCallback(object : ViewPager2.OnPageChangeCallback() {
|
||||
|
||||
BIN
app/src/main/res/drawable/all_false.png
Normal file
|
After Width: | Height: | Size: 680 B |
5
app/src/main/res/drawable/all_ic_sel.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/all_true" android:state_selected="true"/>
|
||||
<item android:drawable="@drawable/all_false"/>
|
||||
</selector>
|
||||
BIN
app/src/main/res/drawable/all_true.png
Normal file
|
After Width: | Height: | Size: 462 B |
BIN
app/src/main/res/drawable/app_full_ic.png
Normal file
|
After Width: | Height: | Size: 418 B |
BIN
app/src/main/res/drawable/app_ic.png
Normal file
|
After Width: | Height: | Size: 465 B |
BIN
app/src/main/res/drawable/app_install.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
app/src/main/res/drawable/battery_ic.png
Normal file
|
After Width: | Height: | Size: 547 B |
BIN
app/src/main/res/drawable/blue_tooth_ic.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
@ -2,6 +2,6 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/forground_color"/>
|
||||
<corners android:radius="@dimen/dashboard_model_background_corners"/>
|
||||
<corners android:radius="10dp"/>
|
||||
|
||||
</shape>
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/forground_color"/>
|
||||
<corners android:topLeftRadius="10dp" android:topRightRadius="10dp"/>
|
||||
|
||||
</shape>
|
||||
7
app/src/main/res/drawable/dashboard_model_left_both.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/forground_color"/>
|
||||
<corners android:topLeftRadius="@dimen/dashboard_model_background_corners" android:bottomLeftRadius="@dimen/dashboard_model_background_corners"/>
|
||||
|
||||
</shape>
|
||||
7
app/src/main/res/drawable/dashboard_tool_background.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/forground_color"/>
|
||||
<corners android:topRightRadius="@dimen/dashboard_model_background_corners" android:bottomRightRadius="@dimen/dashboard_model_background_corners"/>
|
||||
|
||||
</shape>
|
||||
BIN
app/src/main/res/drawable/display_ic.png
Normal file
|
After Width: | Height: | Size: 629 B |
BIN
app/src/main/res/drawable/go_sensor.png
Normal file
|
After Width: | Height: | Size: 397 B |
5
app/src/main/res/drawable/green_rec.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="#31766E"/>
|
||||
|
||||
</shape>
|
||||
BIN
app/src/main/res/drawable/item_point.png
Normal file
|
After Width: | Height: | Size: 352 B |
BIN
app/src/main/res/drawable/main_logo.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
app/src/main/res/drawable/mem_ic.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
app/src/main/res/drawable/per_no.png
Normal file
|
After Width: | Height: | Size: 930 B |
BIN
app/src/main/res/drawable/per_special.png
Normal file
|
After Width: | Height: | Size: 762 B |
BIN
app/src/main/res/drawable/per_yes.png
Normal file
|
After Width: | Height: | Size: 825 B |
BIN
app/src/main/res/drawable/radius_bg.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
app/src/main/res/drawable/setting_ic.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
app/src/main/res/drawable/storyge.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
app/src/main/res/drawable/stroke_bg.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
app/src/main/res/drawable/system_false.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
5
app/src/main/res/drawable/system_ic_sel.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/system_true" android:state_selected="true"/>
|
||||
<item android:drawable="@drawable/system_false"/>
|
||||
</selector>
|
||||
BIN
app/src/main/res/drawable/system_true.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
app/src/main/res/drawable/test_ic.png
Normal file
|
After Width: | Height: | Size: 933 B |
BIN
app/src/main/res/drawable/tool_ic.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
app/src/main/res/drawable/user_false.png
Normal file
|
After Width: | Height: | Size: 963 B |
5
app/src/main/res/drawable/user_ic_sel.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/user_true" android:state_selected="true"/>
|
||||
<item android:drawable="@drawable/user_false"/>
|
||||
</selector>
|
||||
BIN
app/src/main/res/drawable/user_true.png
Normal file
|
After Width: | Height: | Size: 620 B |
BIN
app/src/main/res/drawable/wifi_ic.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/font/candal.ttf
Normal file
@ -29,28 +29,26 @@
|
||||
android:layout_alignBottom="@id/text_app_name"
|
||||
android:contentDescription="Sidebar"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
android:src="@drawable/main_logo" />
|
||||
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/text_app_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="55dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center"
|
||||
android:text="@string/app_name"
|
||||
android:textColor="@color/main_app_name"
|
||||
android:textSize="@dimen/size_main_app_name" />
|
||||
|
||||
style="@style/TextTitleBig"
|
||||
android:text="@string/app_name" />
|
||||
<ImageView
|
||||
android:id="@+id/image_tool"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@id/text_app_name"
|
||||
android:layout_alignBottom="@id/text_app_name"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:contentDescription="Tool"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
android:paddingHorizontal="7dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:src="@drawable/more_point"/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
@ -61,14 +59,14 @@
|
||||
android:background="@color/forground_color"
|
||||
app:tabGravity="center"
|
||||
app:layout_collapseMode="pin"
|
||||
app:tabIndicatorColor="@color/main_tab_indicatorColor"
|
||||
app:tabIndicatorColor="@color/module_title_color"
|
||||
app:tabIndicatorFullWidth="true"
|
||||
app:tabIndicatorHeight="@dimen/tab_indicator_height"
|
||||
app:tabMaxWidth="100dp"
|
||||
app:tabMinWidth="100dp"
|
||||
app:tabMode="scrollable"
|
||||
app:tabRippleColor="@null"
|
||||
app:tabSelectedTextColor="@color/main_tab_selected"
|
||||
app:tabSelectedTextColor="@color/module_title_color"
|
||||
app:tabTextColor="@color/main_tab_unselected" />
|
||||
|
||||
|
||||
|
||||
63
app/src/main/res/layout/activity_temperature.xml
Normal file
@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/main"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/background_color"
|
||||
tools:context=".dashboard.TemperatureActivity">
|
||||
<LinearLayout
|
||||
android:id="@+id/top_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:src="@drawable/go_back"
|
||||
android:padding="13dp"
|
||||
/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/temperatures"
|
||||
android:textStyle="normal"
|
||||
android:layout_marginStart="5dp"
|
||||
style="@style/TextTool25"/>
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="1dp"
|
||||
/>
|
||||
<ImageView
|
||||
android:id="@+id/image_tool"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="7dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:src="@drawable/more_point"/>
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#BFBFBF"/>
|
||||
</LinearLayout>
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_temperature"
|
||||
app:layout_constraintTop_toBottomOf="@+id/top_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="13dp"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
27
app/src/main/res/layout/common_check_style1.xml
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_marginTop="5dp"
|
||||
android:orientation="horizontal"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/per_no" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/content"
|
||||
style="@style/TextCheck"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="@string/apps"
|
||||
android:textSize="15sp"
|
||||
android:textColor="#E75757"
|
||||
android:textStyle="bold"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
</LinearLayout>
|
||||
@ -3,9 +3,9 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="20dp"
|
||||
android:paddingStart="25dp"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingEnd="20dp">
|
||||
android:paddingEnd="25dp">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/tv_sub_title"
|
||||
@ -13,7 +13,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginBottom="15dp" />
|
||||
android:text="333"
|
||||
android:layout_marginBottom="6dp" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/tv_label"
|
||||
@ -22,6 +23,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/tv_sub_title"
|
||||
android:gravity="start"
|
||||
android:textSize="15sp"
|
||||
android:text="sppppppppppppppppppppp" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
@ -33,6 +35,7 @@
|
||||
android:layout_marginStart="35dp"
|
||||
android:layout_toEndOf="@id/tv_label"
|
||||
android:gravity="center"
|
||||
android:textSize="15sp"
|
||||
android:text="sppppppppppppppppppppp" />
|
||||
|
||||
</RelativeLayout>
|
||||
41
app/src/main/res/layout/common_sensor_style.xml
Normal file
@ -0,0 +1,41 @@
|
||||
<?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"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:paddingHorizontal="18dp"
|
||||
android:paddingVertical="15dp"
|
||||
android:layout_marginVertical="8dp"
|
||||
android:background="@drawable/dashboard_model_background"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/sensor_name"
|
||||
style="@style/TextTool25"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="normal"
|
||||
android:gravity="start"
|
||||
android:text="spppppppeee" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/sensor_value"
|
||||
style="@style/TextContentRight"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="start"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="spppppppeee" />
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:layout_width="11dp"
|
||||
android:layout_height="18dp"
|
||||
android:src="@drawable/go_sensor"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@ -12,9 +12,9 @@
|
||||
android:id="@+id/relayout_tests"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/dashboard_model_background"
|
||||
android:background="@drawable/dashboard_model_left_both"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="@dimen/dashboard_model_padding_horizontal"
|
||||
android:paddingVertical="@dimen/dashboard_model_padding_vertical"
|
||||
app:layout_constraintHorizontal_weight="1"
|
||||
@ -24,14 +24,16 @@
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="22dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
android:layout_height="35dp"
|
||||
android:src="@drawable/test_ic" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextContent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingVertical="@dimen/dashboard_model_title_padding_vertical"
|
||||
android:textSize="21sp"
|
||||
android:textStyle="normal"
|
||||
android:text="@string/test"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
|
||||
@ -43,9 +45,9 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/common_module_interval_small"
|
||||
android:background="@drawable/dashboard_model_background"
|
||||
android:background="@drawable/dashboard_tool_background"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="@dimen/dashboard_model_padding_horizontal"
|
||||
android:paddingVertical="@dimen/dashboard_model_padding_vertical"
|
||||
app:layout_constraintHorizontal_weight="1"
|
||||
@ -55,8 +57,8 @@
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="22dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
android:layout_height="35dp"
|
||||
android:src="@drawable/tool_ic" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextContent"
|
||||
@ -64,11 +66,14 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingVertical="@dimen/dashboard_model_title_padding_vertical"
|
||||
android:text="@string/tools"
|
||||
android:textSize="21sp"
|
||||
android:textStyle="normal"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/relayout_phone_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/common_module_interval_medium"
|
||||
@ -77,11 +82,15 @@
|
||||
android:paddingVertical="@dimen/dashboard_model_padding_vertical"
|
||||
app:layout_constraintTop_toBottomOf="@id/relayout_tests">
|
||||
|
||||
<ImageView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/phone_logo"
|
||||
android:layout_width="54dp"
|
||||
android:layout_height="54dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
style="@style/TextDeviceLogo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="OPPO"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_centerVertical="true"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
@ -97,6 +106,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="20dp"
|
||||
android:text="Xiaomi Mi"
|
||||
android:textSize="28sp"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
@ -115,6 +125,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="20dp"
|
||||
android:textStyle="bold"
|
||||
android:text="Xiaomi Mi"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
|
||||
@ -141,10 +152,10 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/im_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@drawable/module_oval" />
|
||||
android:src="@drawable/item_point" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/common_module_interval_medium"
|
||||
android:layout_marginTop="@dimen/dashboard_model_padding_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
@ -29,19 +29,19 @@
|
||||
tools:ignore="RelativeOverlap" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="3dp"
|
||||
android:layout_height="5dp"
|
||||
android:layout_alignTop="@id/title_battery"
|
||||
android:layout_alignBottom="@id/title_battery"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@drawable/module_oval" />
|
||||
android:src="@drawable/item_point" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_battery"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="33dp"
|
||||
android:layout_below="@id/title_battery"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
android:src="@drawable/battery_ic" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/battery_content"
|
||||
@ -79,19 +79,19 @@
|
||||
tools:ignore="RelativeOverlap" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="3dp"
|
||||
android:layout_height="5dp"
|
||||
android:layout_alignTop="@id/title_network"
|
||||
android:layout_alignBottom="@id/title_network"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@drawable/module_oval" />
|
||||
android:src="@drawable/item_point" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_network"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="33dp"
|
||||
android:layout_below="@id/title_network"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
android:src="@drawable/wifi_ic" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/network_content"
|
||||
@ -131,19 +131,20 @@
|
||||
tools:ignore="RelativeOverlap" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="3dp"
|
||||
android:layout_height="5dp"
|
||||
android:layout_alignTop="@id/title_apps"
|
||||
android:layout_alignBottom="@id/title_apps"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@drawable/module_oval" />
|
||||
android:src="@drawable/item_point" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_apps"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="33dp"
|
||||
android:padding="3dp"
|
||||
android:layout_below="@id/title_apps"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
android:src="@drawable/app_ic" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/apps_content"
|
||||
@ -181,19 +182,19 @@
|
||||
tools:ignore="RelativeOverlap" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="3dp"
|
||||
android:layout_height="5dp"
|
||||
android:layout_alignTop="@id/title_display"
|
||||
android:layout_alignBottom="@id/title_display"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@drawable/module_oval" />
|
||||
android:src="@drawable/item_point" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_display"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="33dp"
|
||||
android:layout_below="@id/title_display"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
android:src="@drawable/display_ic" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/display_content"
|
||||
@ -233,19 +234,19 @@
|
||||
tools:ignore="RelativeOverlap" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="3dp"
|
||||
android:layout_height="5dp"
|
||||
android:layout_alignTop="@id/title_ram"
|
||||
android:layout_alignBottom="@id/title_ram"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@drawable/module_oval" />
|
||||
android:src="@drawable/item_point" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_ram"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="33dp"
|
||||
android:layout_below="@id/title_ram"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
android:src="@drawable/radius_bg" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/ram_content"
|
||||
@ -283,19 +284,19 @@
|
||||
tools:ignore="RelativeOverlap" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="3dp"
|
||||
android:layout_height="5dp"
|
||||
android:layout_alignTop="@id/title_storage"
|
||||
android:layout_alignBottom="@id/title_storage"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@drawable/module_oval" />
|
||||
android:src="@drawable/item_point" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_storage"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="33dp"
|
||||
android:layout_below="@id/title_storage"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
android:src="@drawable/stroke_bg" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/storage_content"
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/showCpu"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/dashboard_model_background"
|
||||
@ -20,16 +21,18 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingVertical="@dimen/dashboard_model_title_padding_vertical"
|
||||
android:textSize="16sp"
|
||||
android:text="@string/cpu_status"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_alignTop="@id/title_cpu"
|
||||
android:layout_alignBottom="@id/title_cpu"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@drawable/module_oval" />
|
||||
android:paddingHorizontal="5dp"
|
||||
android:src="@drawable/item_point" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_cpu"
|
||||
@ -54,9 +57,10 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/end_im"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/module_oval"
|
||||
android:src="@drawable/item_point"
|
||||
android:paddingHorizontal="5dp"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
193
app/src/main/res/layout/dialog_app_click.xml
Normal file
@ -0,0 +1,193 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
|
||||
android:background="@drawable/dashboard_model_background"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image_icon"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="25dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<View
|
||||
android:id="@+id/view_line"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="80dp"
|
||||
android:background="@color/module_title_color"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/dialog_title"
|
||||
style="@style/TextBig"
|
||||
android:textSize="24sp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="25dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="@string/screenreader"
|
||||
app:layout_constraintLeft_toRightOf="@id/image_icon"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:paddingBottom="16dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/view_line">
|
||||
<!-- 子类内容容器 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/contentContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
android:orientation="vertical"
|
||||
>
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv1"
|
||||
app:valueText="com.bjbyhd.screenreader-huawei"
|
||||
app:labelText="@string/package_name"/>
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv2"
|
||||
app:labelText="@string/version"/>
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv3"
|
||||
app:labelText="@string/target_sdk"/>
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv4"
|
||||
app:labelText="@string/minimum_sdk"/>
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv5"
|
||||
app:labelText="@string/installer_type"/>
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv6"
|
||||
app:labelText="@string/installed"/>
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv7"
|
||||
app:labelText="@string/size"/>
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv8"
|
||||
app:labelText="@string/uid"/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="25dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:orientation="vertical">
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/extension1"
|
||||
style="@style/TextContentLeft"
|
||||
android:layout_width="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/permissions"
|
||||
android:textStyle="bold" />
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:src="@drawable/per_yes"
|
||||
android:layout_marginEnd="10dp"
|
||||
/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextContentRight"
|
||||
android:layout_width="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/allowed"
|
||||
android:textColor="#878787"
|
||||
android:textStyle="bold" />
|
||||
<ImageView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:src="@drawable/per_no"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextContentRight"
|
||||
android:layout_width="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/not_allowed"
|
||||
android:textColor="#878787"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:src="@drawable/per_special"
|
||||
android:layout_marginEnd="10dp"
|
||||
/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextContentRight"
|
||||
android:layout_width="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/special_access"
|
||||
android:textColor="#878787"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
<include layout="@layout/common_check_style1" android:id="@+id/check1"/>
|
||||
<include layout="@layout/common_check_style1" android:id="@+id/check2"/>
|
||||
<include layout="@layout/common_check_style1" android:id="@+id/check3"/>
|
||||
<include layout="@layout/common_check_style1" android:id="@+id/check4"/>
|
||||
<include layout="@layout/common_check_style1" android:id="@+id/check5"/>
|
||||
<include layout="@layout/common_check_style1" android:id="@+id/check6"/>
|
||||
<include layout="@layout/common_check_style1" android:id="@+id/check7"/>
|
||||
<include layout="@layout/common_check_style1" android:id="@+id/check8"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/text_cancel"
|
||||
style="@style/TextBtnTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp"
|
||||
android:text="@string/cancel"
|
||||
android:layout_marginEnd="20dp"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/contentContainer"/>
|
||||
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
65
app/src/main/res/layout/dialog_app_install.xml
Normal file
@ -0,0 +1,65 @@
|
||||
<?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"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
<ImageView
|
||||
android:id="@+id/imgProgress"
|
||||
android:layout_width="170dp"
|
||||
android:layout_height="170dp"
|
||||
android:src="@drawable/app_install"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/TextContent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:text="74 Total"/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imgProgress"
|
||||
android:layout_marginTop="28dp"
|
||||
android:gravity="center_vertical|end"
|
||||
android:orientation="horizontal">
|
||||
<View
|
||||
android:layout_width="7dp"
|
||||
android:layout_height="7dp"
|
||||
android:background="@drawable/green_rec"/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/system_apps"
|
||||
style="@style/TextTool21"
|
||||
android:layout_marginStart="7dp"
|
||||
android:textSize="13sp"/>
|
||||
<View
|
||||
android:layout_width="7dp"
|
||||
android:layout_height="7dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@drawable/green_rec"/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/user_apps"
|
||||
style="@style/TextTool21"
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_marginEnd="53dp"
|
||||
android:textSize="13sp"/>
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</LinearLayout>
|
||||
@ -8,11 +8,11 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image_icon"
|
||||
android:layout_width="45dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="25dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
app:layout_constraintBottom_toTopOf="@id/view_line"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
@ -20,18 +20,19 @@
|
||||
android:id="@+id/view_line"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="60dp"
|
||||
android:layout_marginTop="80dp"
|
||||
android:background="@color/module_title_color"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/dialog_title"
|
||||
style="@style/TextBig"
|
||||
android:textSize="24sp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="25dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="@string/app_name"
|
||||
app:layout_constraintBottom_toTopOf="@id/view_line"
|
||||
app:layout_constraintLeft_toRightOf="@id/image_icon"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
@ -63,8 +64,10 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:text="@string/settings"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/contentContainer" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
192
app/src/main/res/layout/dialog_memory.xml
Normal file
@ -0,0 +1,192 @@
|
||||
<?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"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="15dp"
|
||||
android:paddingTop="15dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_marginTop="20dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextContentLeft"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/ram"
|
||||
android:textSize="21sp"
|
||||
android:textStyle="bold" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextContentLeft"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/size_"
|
||||
android:textSize="20sp"
|
||||
android:layout_marginStart="5dp"
|
||||
android:textStyle="normal" />
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="1dp"/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/textContent"
|
||||
style="@style/TextContentRight"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="20dp"
|
||||
android:text="@string/apps"
|
||||
android:textSize="16sp"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextDialogLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/ram"
|
||||
android:textSize="21sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/ram1"
|
||||
style="@style/TextDialogLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="5.97 GB"
|
||||
android:textSize="25sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextTool21"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="2.22 GB used"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/ram2"
|
||||
style="@style/TextTool21"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="3.75 GB free"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<SeekBar
|
||||
android:id="@+id/seekbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp"
|
||||
android:maxHeight="10dp"
|
||||
android:minHeight="10dp"
|
||||
android:padding="0dp"
|
||||
android:progress="50"
|
||||
android:progressDrawable="@drawable/progress_bg"
|
||||
android:thumb="@drawable/progress_oval"
|
||||
android:thumbOffset="0dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="15dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextDialogLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/zram"
|
||||
android:textSize="21sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/ram3"
|
||||
style="@style/TextDialogLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="5.97 GB"
|
||||
android:textSize="25sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="15dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextTool21"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="2.22 GB used"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/ram4"
|
||||
style="@style/TextTool21"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="3.75 GB free"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<SeekBar
|
||||
android:id="@+id/seekbar2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp"
|
||||
android:maxHeight="10dp"
|
||||
android:minHeight="10dp"
|
||||
android:padding="0dp"
|
||||
android:progress="50"
|
||||
android:progressDrawable="@drawable/progress_bg"
|
||||
android:thumb="@drawable/progress_oval"
|
||||
android:thumbOffset="0dp" />
|
||||
</LinearLayout>
|
||||
47
app/src/main/res/layout/dialog_operating.xml
Normal file
@ -0,0 +1,47 @@
|
||||
<?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="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv1_battery_level"
|
||||
app:labelText="@string/android_version"/>
|
||||
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv2_temperature"
|
||||
app:labelText="@string/security_patch"/>
|
||||
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv3_status"
|
||||
app:labelText="@string/build"/>
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv4_technology"
|
||||
app:labelText="@string/emui"
|
||||
app:valueText="EmotionUl 13.0.0"/>
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv5_health"
|
||||
app:labelText="@string/kernel"/>
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv6_voltage"
|
||||
app:labelText="@string/architecture"/>
|
||||
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tv7_capacity"
|
||||
app:labelText="@string/instruction_sets"/>
|
||||
</LinearLayout>
|
||||
279
app/src/main/res/layout/dialog_storage.xml
Normal file
@ -0,0 +1,279 @@
|
||||
<?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="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginHorizontal="15dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextDialogLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="28.01 GB used"
|
||||
android:textSize="17sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/stor1"
|
||||
style="@style/TextDialogLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="128 GB total"
|
||||
android:textSize="17sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<SeekBar
|
||||
android:id="@+id/seekbar3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp"
|
||||
android:maxHeight="10dp"
|
||||
android:minHeight="10dp"
|
||||
android:padding="0dp"
|
||||
android:progress="50"
|
||||
android:progressDrawable="@drawable/progress_bg"
|
||||
android:thumb="@drawable/progress_oval"
|
||||
android:thumbOffset="0dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="15dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:src="@drawable/radius1" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextDialogSubTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="11dp"
|
||||
android:text="@string/apps_and_data"
|
||||
android:textSize="15sp"
|
||||
android:textColor="@color/dialog_value_color" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/radius1"
|
||||
style="@style/TextDialogSubTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="11dp"
|
||||
android:text="18.77 GB"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/dialog_value_color" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:src="@drawable/radius2" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextDialogSubTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="11dp"
|
||||
android:text="@string/system"
|
||||
android:textSize="15sp"
|
||||
android:textColor="@color/dialog_value_color" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/radius2"
|
||||
style="@style/TextDialogSubTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="11dp"
|
||||
android:text="18.77 GB"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/dialog_value_color" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:src="@drawable/radius3" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextDialogSubTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="11dp"
|
||||
android:text="@string/free"
|
||||
android:textSize="15sp"
|
||||
android:textColor="@color/dialog_value_color" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/radius3"
|
||||
style="@style/TextDialogSubTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="11dp"
|
||||
android:text="18.77 GB"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/dialog_value_color" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextSecondaryTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="30dp"
|
||||
android:textSize="15sp"
|
||||
android:text="@string/internal_storage"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_marginTop="20dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/textTitle"
|
||||
style="@style/TextContentLeft"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="18sp"
|
||||
android:text="@string/filesystem"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/textContent"
|
||||
style="@style/TextContentRight"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="20dp"
|
||||
android:textSize="15sp"
|
||||
android:text="@string/apps"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
</LinearLayout>>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextDialogLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="/data"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/stor2"
|
||||
style="@style/TextDialogLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="119 GB"
|
||||
android:textSize="25sp"
|
||||
android:textStyle="bold"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/TextTool21"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="2.22 GB used"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="normal" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/stor3"
|
||||
style="@style/TextTool21"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="3.75 GB free"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="normal" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<SeekBar
|
||||
android:id="@+id/seekbar5"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp"
|
||||
android:maxHeight="10dp"
|
||||
android:minHeight="10dp"
|
||||
android:padding="0dp"
|
||||
android:progress="50"
|
||||
android:progressDrawable="@drawable/progress_bg"
|
||||
android:thumb="@drawable/progress_oval"
|
||||
android:layout_marginBottom="40dp"
|
||||
android:thumbOffset="0dp" />
|
||||
</LinearLayout>
|
||||
169
app/src/main/res/layout/fragment_apps.xml
Normal file
@ -0,0 +1,169 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:background="#EDEDED"
|
||||
tools:context=".dashboard.AppsFragment">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@+id/llBottom"
|
||||
android:paddingHorizontal="@dimen/dashboard_fragment_padding_horizontal"
|
||||
android:paddingTop="@dimen/dashboard_fragment_padding_vertical"
|
||||
>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/dashboard_model_background"
|
||||
android:paddingVertical="15sp"
|
||||
android:paddingHorizontal="20dp"
|
||||
android:orientation="vertical">
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:id="@+id/tvTitle"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="User apps (23)"
|
||||
style="@style/TextDialogSubTitle"
|
||||
android:textSize="23sp"
|
||||
android:layout_marginBottom="16dp"
|
||||
/>
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/recyclerView"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/llBottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:elevation="20dp"
|
||||
android:background="@color/white"
|
||||
android:paddingBottom="30dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:orientation="horizontal">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/llUser"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="13dp"
|
||||
>
|
||||
<View
|
||||
android:id="@+id/back1"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="44dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:background="@drawable/progress_oval"/>
|
||||
<ImageView
|
||||
android:id="@+id/imgUser"
|
||||
android:layout_width="26dp"
|
||||
android:layout_height="26dp"
|
||||
app:layout_constraintTop_toTopOf="@+id/back1"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/back1"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:src="@drawable/user_ic_sel" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/tvUser"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold"
|
||||
android:textSize="15sp"
|
||||
style="@style/TextCheck"
|
||||
android:layout_marginTop="5dp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/back1"
|
||||
app:layout_constraintStart_toStartOf="@+id/back1"
|
||||
app:layout_constraintEnd_toEndOf="@+id/back1"
|
||||
android:text="@string/user"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/llSystem"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="13dp"
|
||||
>
|
||||
<View
|
||||
android:id="@+id/back2"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="44dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:visibility="invisible"
|
||||
android:background="@drawable/progress_oval"/>
|
||||
<ImageView
|
||||
android:id="@+id/imgSystem"
|
||||
android:layout_width="26dp"
|
||||
android:layout_height="26dp"
|
||||
app:layout_constraintTop_toTopOf="@+id/back2"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/back2"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:src="@drawable/system_ic_sel" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/tvSystem"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold"
|
||||
android:textSize="15sp"
|
||||
style="@style/TextCheck"
|
||||
android:layout_marginTop="5dp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/back2"
|
||||
app:layout_constraintStart_toStartOf="@+id/back2"
|
||||
app:layout_constraintEnd_toEndOf="@+id/back2"
|
||||
android:text="@string/system"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/llAll"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="13dp"
|
||||
>
|
||||
<View
|
||||
android:id="@+id/back3"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="44dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:visibility="invisible"
|
||||
android:background="@drawable/progress_oval"/>
|
||||
<ImageView
|
||||
android:id="@+id/imgAll"
|
||||
android:layout_width="26dp"
|
||||
android:layout_height="26dp"
|
||||
app:layout_constraintTop_toTopOf="@+id/back3"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/back3"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:src="@drawable/all_ic_sel" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/tvAll"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold"
|
||||
android:textSize="15sp"
|
||||
style="@style/TextCheck"
|
||||
android:layout_marginTop="5dp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/back3"
|
||||
app:layout_constraintStart_toStartOf="@+id/back3"
|
||||
app:layout_constraintEnd_toEndOf="@+id/back3"
|
||||
android:text="@string/all"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
@ -218,7 +218,7 @@
|
||||
tools:ignore="RelativeOverlap" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- simple-->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
237
app/src/main/res/layout/fragment_sensors.xml
Normal file
@ -0,0 +1,237 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".dashboard.SensorsFragment">
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="visible"
|
||||
android:paddingHorizontal="@dimen/dashboard_fragment_padding_horizontal"
|
||||
android:paddingBottom="@dimen/dashboard_fragment_padding_vertical"
|
||||
android:paddingTop="@dimen/dashboard_fragment_padding_horizontal"
|
||||
android:background="@color/background_color">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="visible"
|
||||
android:orientation="vertical">
|
||||
<include layout="@layout/common_sensor_style" android:id="@+id/sensor1"/>
|
||||
<include layout="@layout/common_sensor_style" android:id="@+id/sensor2"/>
|
||||
<include layout="@layout/common_sensor_style" android:id="@+id/sensor3"/>
|
||||
<include layout="@layout/common_sensor_style" android:id="@+id/sensor4"/>
|
||||
<include layout="@layout/common_sensor_style" android:id="@+id/sensor5"/>
|
||||
<include layout="@layout/common_sensor_style" android:id="@+id/sensor6"/>
|
||||
<include layout="@layout/common_sensor_style" android:id="@+id/sensor7"/>
|
||||
<include layout="@layout/common_sensor_style" android:id="@+id/sensor8"/>
|
||||
<include layout="@layout/common_sensor_style" android:id="@+id/sensor9"/>
|
||||
<include layout="@layout/common_sensor_style" android:id="@+id/sensor10"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/dashboard_model_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="15dp"
|
||||
android:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/titleHall"
|
||||
style="@style/TextDeviceBig"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/hall_sensor"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
</LinearLayout>
|
||||
|
||||
<include
|
||||
android:id="@+id/hallText1"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/hallText2"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/hallText3"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/hallText4"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/hallText5"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/hallText6"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/dashboard_model_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="15dp"
|
||||
android:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/titleSign"
|
||||
style="@style/TextDeviceBig"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/signifcant_motion"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
</LinearLayout>
|
||||
|
||||
<include
|
||||
android:id="@+id/signText1"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/signText2"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/signText3"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/signText4"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/signText5"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/signText6"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/dashboard_model_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="15dp"
|
||||
android:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/titleGeo"
|
||||
style="@style/TextDeviceBig"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/geomagnetic_rotation_vector"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
</LinearLayout>
|
||||
|
||||
<include
|
||||
android:id="@+id/geoText1"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/geoText2"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/geoText3"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/geoText4"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/geoText5"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/geoText6"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/dashboard_model_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="15dp"
|
||||
android:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/titleRpc"
|
||||
style="@style/TextDeviceBig"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/rpc_sensor"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
</LinearLayout>
|
||||
|
||||
<include
|
||||
android:id="@+id/rpcText1"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/rpcText2"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/rpcText3"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/rpcText4"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/rpcText5"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
<include
|
||||
android:id="@+id/rpcText6"
|
||||
layout="@layout/common_text_style" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
37
app/src/main/res/layout/item_app_list.xml
Normal file
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginVertical="16dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/view"
|
||||
android:layout_height="wrap_content">
|
||||
<ImageView
|
||||
android:layout_width="45dp"
|
||||
android:layout_height="45dp"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:orientation="vertical">
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/tvName"
|
||||
style="@style/TextTool21"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="start"
|
||||
android:textSize="19sp"
|
||||
android:text="APKCombo Installer" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/tvNum"
|
||||
style="@style/TextContent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="start"
|
||||
android:textSize="15sp"
|
||||
android:text="com.apkcombo.app" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
33
app/src/main/res/layout/item_common_temp.xml
Normal file
@ -0,0 +1,33 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_marginBottom="13dp"
|
||||
android:background="@drawable/dashboard_model_background"
|
||||
android:paddingHorizontal="18dp"
|
||||
android:layout_marginHorizontal="8dp"
|
||||
android:paddingVertical="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/textTitle"
|
||||
style="@style/TextDialogContent"
|
||||
android:layout_width="wrap_content"
|
||||
android:textSize="18sp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="flash_led"
|
||||
android:textStyle="bold" />
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="1dp"/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/textContent"
|
||||
style="@style/TextContentLeft"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="NA℃"
|
||||
android:textColor="@color/tem_right_color"
|
||||
tools:ignore="RelativeOverlap" />
|
||||
</LinearLayout>
|
||||
@ -3,16 +3,15 @@
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
<color name="main_app_name">#1E8C29</color>
|
||||
<color name="main_tab_unselected">#C3C0C0</color>
|
||||
<color name="main_tab_unselected">#7F7F7F</color>
|
||||
<color name="main_tab_selected">#1E8C29</color>
|
||||
<color name="main_tab_indicatorColor">#1E8C29</color>
|
||||
<color name="forground_color">#FFFFFF</color>
|
||||
<color name="background_color">#EDEDED</color>
|
||||
<color name="module_title_color">#3B948A</color>
|
||||
<color name="cpu_module_content_color">#444544</color>
|
||||
<color name="left_color">#626262</color>
|
||||
<color name="right_color">#757575</color>
|
||||
<color name="check_color">#484848</color>
|
||||
<color name="dialog_label_color">#666666</color>
|
||||
<color name="dialog_value_color">#757575</color>
|
||||
<color name="tem_right_color">#2B2B2B</color>
|
||||
</resources>
|
||||
@ -2,7 +2,7 @@
|
||||
<resources>
|
||||
<dimen name="size_main_app_name">20sp</dimen>
|
||||
<dimen name="size_main_tab_title">15sp</dimen>
|
||||
<dimen name="size_module_title">13sp</dimen>
|
||||
<dimen name="size_module_title">14sp</dimen>
|
||||
|
||||
|
||||
|
||||
@ -12,8 +12,8 @@
|
||||
|
||||
<dimen name="tab_indicator_height">3dp</dimen>
|
||||
<dimen name="dashboard_model_title_padding_vertical">3dp</dimen>
|
||||
<dimen name="dashboard_model_background_corners">13dp</dimen>
|
||||
<dimen name="dashboard_model_background_corners_small">2dp</dimen>
|
||||
<dimen name="dashboard_model_background_corners">10dp</dimen>
|
||||
<dimen name="dashboard_model_background_corners_small">0dp</dimen>
|
||||
|
||||
<dimen name="dashboard_fragment_padding_horizontal">8dp</dimen>
|
||||
<dimen name="dashboard_fragment_padding_vertical">15dp</dimen>
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
<dimen name="dashboard_cpu_content_item_padding_vertical">8dp</dimen>
|
||||
|
||||
<dimen name="common_module_interval_small">3dp</dimen>
|
||||
<dimen name="common_module_interval_small">5dp</dimen>
|
||||
<dimen name="common_module_interval_medium">7dp</dimen>
|
||||
<dimen name="common_module_interval_large">10dp</dimen>
|
||||
</resources>
|
||||
@ -213,6 +213,42 @@
|
||||
<string name="input_devices">Input devices</string>
|
||||
<string name="bluetooth_4_features">Bluetooth 4 features</string>
|
||||
<string name="bluetooth_5_features">Bluetooth 5 features</string>
|
||||
|
||||
<string name="security_patch">Security patch</string>
|
||||
<string name="build">Build</string>
|
||||
<string name="emui">EMUI</string>
|
||||
<string name="instruction_sets">Instruction sets</string>
|
||||
<string name="system_apps">System apps</string>
|
||||
<string name="user_apps">User apps</string>
|
||||
<string name="installed_apps">Installed apps</string>
|
||||
<string name="size_">size</string>
|
||||
<string name="user">User</string>
|
||||
<string name="all">All</string>
|
||||
<string name="screenreader">ScreenReader</string>
|
||||
<string name="package_name">Package name</string>
|
||||
<string name="target_sdk">Target SDK</string>
|
||||
<string name="minimum_sdk">Minimum SDK</string>
|
||||
<string name="installer_type">Installer type</string>
|
||||
<string name="installed">Installed</string>
|
||||
<string name="uid">UID</string>
|
||||
<string name="permissions">Permissions</string>
|
||||
<string name="allowed">= Allowed</string>
|
||||
<string name="special_access">= Special access</string>
|
||||
<string name="not_allowed">= Not allowed</string>
|
||||
<string name="temperatures">Temperatures</string>
|
||||
<string name="magnetic_field">Magnetic field</string>
|
||||
<string name="orientation">Orientation</string>
|
||||
<string name="light">Light</string>
|
||||
<string name="gravity">Gravity</string>
|
||||
<string name="linear_acceleration">Linear acceleration</string>
|
||||
<string name="rotation_vector">Rotation vector</string>
|
||||
<string name="step_counter">Step counter</string>
|
||||
<string name="hall_sensor">HALL sensor</string>
|
||||
<string name="type">Type</string>
|
||||
<string name="maximum_range">Maximum range</string>
|
||||
<string name="power">Power</string>
|
||||
<string name="wakeup_sensor">Wakeup sensor</string>
|
||||
<string name="signifcant_motion">Signifcant Motion</string>
|
||||
<string name="geomagnetic_rotation_vector">Geomagnetic Rotation Vector</string>
|
||||
<string name="rpc_sensor">RPC sensor</string>
|
||||
|
||||
</resources>
|
||||
@ -1,30 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
|
||||
<!-- 超大字号-->
|
||||
<style name="TextTitleBig">
|
||||
<item name="android:textSize">30sp</item>
|
||||
<item name="fontFamily">@font/candal</item>
|
||||
<item name="android:textColor">@color/module_title_color</item>
|
||||
</style>
|
||||
<!-- Dashboard面板 -->
|
||||
|
||||
<!-- 页面上每个模块的模块名字-->
|
||||
<style name="TextModuleTitle" parent="TextAppearance.Material3.BodyLarge">
|
||||
<item name="android:textSize">@dimen/size_module_title</item>
|
||||
<item name="android:textColor">@color/module_title_color</item>
|
||||
<item name="fontFamily">@font/semibold</item>
|
||||
<!-- <item name="android:fontFamily">sans-serif</item> <!– 老版本 fallback –>-->
|
||||
<item name="fontFamily">@font/arimo</item>
|
||||
</style>
|
||||
|
||||
<!-- CPU status 内容显示-->
|
||||
<style name="TextCPUContent" parent="TextAppearance.Material3.BodyLarge">
|
||||
<item name="android:textSize">20sp</item>
|
||||
<item name="android:textColor">@color/cpu_module_content_color</item>
|
||||
<item name="fontFamily">@font/semibold</item>
|
||||
<item name="android:textSize">23sp</item>
|
||||
<item name="android:textColor">@color/dialog_value_color</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
<item name="fontFamily">@font/arimo</item>
|
||||
<!-- <item name="android:fontFamily">sans-serif</item> <!– 老版本 fallback –>-->
|
||||
</style>
|
||||
|
||||
<!-- 模块通用内容显示-->
|
||||
<style name="TextContent" parent="TextAppearance.Material3.BodyLarge">
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="fontFamily">@font/arimo</item>
|
||||
<item name="android:textColor">@color/cpu_module_content_color</item>
|
||||
<item name="android:textStyle">normal</item>
|
||||
<item name="android:textColor">@color/dialog_value_color</item>
|
||||
<!-- <item name="fontFamily">@font/semibold</item>-->
|
||||
</style>
|
||||
|
||||
@ -39,7 +44,7 @@
|
||||
|
||||
<!-- 首页弹窗内容副标题-->
|
||||
<style name="TextDialogSubTitle" parent="TextAppearance.Material3.BodyLarge">
|
||||
<item name="android:textSize">15sp</item>
|
||||
<item name="android:textSize">20sp</item>
|
||||
<item name="android:textColor">@color/module_title_color</item>
|
||||
<item name="fontFamily">@font/arimo</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
@ -49,6 +54,7 @@
|
||||
<style name="TextDialogLabel" parent="TextAppearance.Material3.BodyLarge">
|
||||
<item name="android:textSize">17sp</item>
|
||||
<item name="fontFamily">@font/arimo</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
<item name="android:textColor">@color/dialog_label_color</item>
|
||||
</style>
|
||||
|
||||
@ -56,6 +62,7 @@
|
||||
<style name="TextDialogContent" parent="TextAppearance.Material3.BodyLarge">
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="fontFamily">@font/arimo</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
<item name="android:textColor">@color/dialog_value_color</item>
|
||||
|
||||
</style>
|
||||
@ -63,6 +70,7 @@
|
||||
<style name="TextBtnTitle" parent="TextAppearance.Material3.BodyLarge">
|
||||
<item name="android:textSize">19sp</item>
|
||||
<item name="fontFamily">@font/arimo</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
<item name="android:textColor">@color/module_title_color</item>
|
||||
<!-- <item name="android:fontFamily">sans-serif</item> <!– 老版本 fallback –>-->
|
||||
</style>
|
||||
@ -95,7 +103,7 @@
|
||||
<style name="TextDialog" parent="TextAppearance.Material3.BodyLarge">
|
||||
<item name="android:textSize">21sp</item>
|
||||
<item name="fontFamily">@font/arimo</item>
|
||||
<item name="android:textColor">@color/cpu_module_content_color</item>
|
||||
<item name="android:textColor">@color/dialog_value_color</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
<!--小字体-->
|
||||
@ -190,4 +198,10 @@
|
||||
<item name="android:windowEnterAnimation">@anim/popup_enter</item>
|
||||
<item name="android:windowExitAnimation">@anim/popup_exit</item>
|
||||
</style>
|
||||
|
||||
<!-- 自定义 DialogFragment 的样式 -->
|
||||
<style name="BottomSheetDialogStyle" parent="Theme.AppCompat.Light.Dialog">
|
||||
<item name="android:windowIsFloating">false</item> <!-- 使对话框全屏显示 -->
|
||||
<item name="android:windowSoftInputMode">stateAlwaysHidden</item> <!-- 隐藏软键盘 -->
|
||||
</style>
|
||||
</resources>
|
||||