add more
This commit is contained in:
parent
7f207da9be
commit
ad4cc5c831
47
.idea/misc.xml
generated
47
.idea/misc.xml
generated
@ -1,5 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||||
|
<component name="NullableNotNullManager">
|
||||||
|
<option name="myDefaultNullable" value="androidx.annotation.Nullable" />
|
||||||
|
<option name="myDefaultNotNull" value="androidx.annotation.NonNull" />
|
||||||
|
<option name="myNullables">
|
||||||
|
<value>
|
||||||
|
<list size="15">
|
||||||
|
<item index="0" class="java.lang.String" itemvalue="org.jspecify.annotations.Nullable" />
|
||||||
|
<item index="1" class="java.lang.String" itemvalue="com.android.annotations.Nullable" />
|
||||||
|
<item index="2" class="java.lang.String" itemvalue="androidx.annotation.RecentlyNullable" />
|
||||||
|
<item index="3" class="java.lang.String" itemvalue="org.checkerframework.checker.nullness.compatqual.NullableDecl" />
|
||||||
|
<item index="4" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
|
||||||
|
<item index="5" class="java.lang.String" itemvalue="androidx.annotation.Nullable" />
|
||||||
|
<item index="6" class="java.lang.String" itemvalue="org.eclipse.jdt.annotation.Nullable" />
|
||||||
|
<item index="7" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
|
||||||
|
<item index="8" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
|
||||||
|
<item index="9" class="java.lang.String" itemvalue="jakarta.annotation.Nullable" />
|
||||||
|
<item index="10" class="java.lang.String" itemvalue="javax.annotation.CheckForNull" />
|
||||||
|
<item index="11" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
|
||||||
|
<item index="12" class="java.lang.String" itemvalue="org.checkerframework.checker.nullness.qual.Nullable" />
|
||||||
|
<item index="13" class="java.lang.String" itemvalue="org.checkerframework.checker.nullness.compatqual.NullableType" />
|
||||||
|
<item index="14" class="java.lang.String" itemvalue="android.annotation.Nullable" />
|
||||||
|
</list>
|
||||||
|
</value>
|
||||||
|
</option>
|
||||||
|
<option name="myNotNulls">
|
||||||
|
<value>
|
||||||
|
<list size="15">
|
||||||
|
<item index="0" class="java.lang.String" itemvalue="androidx.annotation.RecentlyNonNull" />
|
||||||
|
<item index="1" class="java.lang.String" itemvalue="org.checkerframework.checker.nullness.qual.NonNull" />
|
||||||
|
<item index="2" class="java.lang.String" itemvalue="org.jspecify.annotations.NonNull" />
|
||||||
|
<item index="3" class="java.lang.String" itemvalue="jakarta.annotation.Nonnull" />
|
||||||
|
<item index="4" class="java.lang.String" itemvalue="androidx.annotation.NonNull" />
|
||||||
|
<item index="5" class="java.lang.String" itemvalue="org.checkerframework.checker.nullness.compatqual.NonNullType" />
|
||||||
|
<item index="6" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
|
||||||
|
<item index="7" class="java.lang.String" itemvalue="com.android.annotations.NonNull" />
|
||||||
|
<item index="8" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
|
||||||
|
<item index="9" class="java.lang.String" itemvalue="org.checkerframework.checker.nullness.compatqual.NonNullDecl" />
|
||||||
|
<item index="10" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
|
||||||
|
<item index="11" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
|
||||||
|
<item index="12" class="java.lang.String" itemvalue="org.eclipse.jdt.annotation.NonNull" />
|
||||||
|
<item index="13" class="java.lang.String" itemvalue="android.annotation.NonNull" />
|
||||||
|
<item index="14" class="java.lang.String" itemvalue="lombok.NonNull" />
|
||||||
|
</list>
|
||||||
|
</value>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@ -44,6 +44,8 @@ dependencies {
|
|||||||
implementation(libs.material)
|
implementation(libs.material)
|
||||||
implementation(libs.androidx.activity)
|
implementation(libs.androidx.activity)
|
||||||
implementation(libs.androidx.constraintlayout)
|
implementation(libs.androidx.constraintlayout)
|
||||||
|
implementation(libs.androidx.navigation.fragment.ktx)
|
||||||
|
implementation(libs.androidx.navigation.ui.ktx)
|
||||||
testImplementation(libs.junit)
|
testImplementation(libs.junit)
|
||||||
androidTestImplementation(libs.androidx.junit)
|
androidTestImplementation(libs.androidx.junit)
|
||||||
androidTestImplementation(libs.androidx.espresso.core)
|
androidTestImplementation(libs.androidx.espresso.core)
|
||||||
|
|||||||
@ -12,6 +12,28 @@
|
|||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/Theme.DevCheck"
|
android:theme="@style/Theme.DevCheck"
|
||||||
tools:targetApi="31">
|
tools:targetApi="31">
|
||||||
|
<activity
|
||||||
|
android:name=".dashboard.CpuStatusActivity"
|
||||||
|
android:exported="false" />
|
||||||
|
<activity
|
||||||
|
android:name=".dashboard.TouchActivity"
|
||||||
|
android:exported="false" />
|
||||||
|
<activity
|
||||||
|
android:name=".dashboard.TestOtherActivity"
|
||||||
|
android:exported="false" />
|
||||||
|
<activity
|
||||||
|
android:name=".dashboard.AnalysisActivity"
|
||||||
|
android:exported="false" />
|
||||||
|
<activity
|
||||||
|
android:name=".dashboard.BlueToothActivity"
|
||||||
|
android:exported="false" />
|
||||||
|
<activity
|
||||||
|
android:name=".dashboard.ToolsActivity"
|
||||||
|
android:exported="false" />
|
||||||
|
<activity
|
||||||
|
android:name=".dashboard.TestActivity"
|
||||||
|
android:exported="false"
|
||||||
|
android:theme="@style/Theme.DevCheck" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".dashboard.ColorsActivity"
|
android:name=".dashboard.ColorsActivity"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
|
|||||||
@ -5,15 +5,16 @@ import android.view.LayoutInflater
|
|||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.tools.device.devcheck.databinding.ItemListBinding
|
import com.tools.device.devcheck.databinding.ItemListBinding
|
||||||
|
import com.tools.device.devcheck.databinding.ItemListCpuBinding
|
||||||
|
|
||||||
class ListAdapter: RecyclerView.Adapter<ListAdapter.ListViewHolder>() {
|
class CpuListAdapter: RecyclerView.Adapter<CpuListAdapter.ListViewHolder>() {
|
||||||
private lateinit var context: Context
|
private lateinit var context: Context
|
||||||
override fun onCreateViewHolder(
|
override fun onCreateViewHolder(
|
||||||
parent: ViewGroup,
|
parent: ViewGroup,
|
||||||
viewType: Int
|
viewType: Int
|
||||||
): ListViewHolder {
|
): ListViewHolder {
|
||||||
context = parent.context
|
context = parent.context
|
||||||
val binding= ItemListBinding.inflate(LayoutInflater.from(context), parent, false)
|
val binding= ItemListCpuBinding.inflate(LayoutInflater.from(context), parent, false)
|
||||||
return ListViewHolder(binding)
|
return ListViewHolder(binding)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28,5 +29,5 @@ class ListAdapter: RecyclerView.Adapter<ListAdapter.ListViewHolder>() {
|
|||||||
return 3
|
return 3
|
||||||
}
|
}
|
||||||
|
|
||||||
class ListViewHolder(val binding: ItemListBinding): RecyclerView.ViewHolder(binding.root)
|
class ListViewHolder(val binding: ItemListCpuBinding): RecyclerView.ViewHolder(binding.root)
|
||||||
}
|
}
|
||||||
@ -1,4 +1,32 @@
|
|||||||
package com.tools.device.devcheck.adapter
|
package com.tools.device.devcheck.adapter
|
||||||
|
|
||||||
class ListAdapter {
|
import android.content.Context
|
||||||
|
import android.view.LayoutInflater
|
||||||
|
import android.view.ViewGroup
|
||||||
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
|
import com.tools.device.devcheck.databinding.ItemListBinding
|
||||||
|
|
||||||
|
class ListAdapter: RecyclerView.Adapter<ListAdapter.ListViewHolder>() {
|
||||||
|
private lateinit var context: Context
|
||||||
|
override fun onCreateViewHolder(
|
||||||
|
parent: ViewGroup,
|
||||||
|
viewType: Int
|
||||||
|
): ListViewHolder {
|
||||||
|
context = parent.context
|
||||||
|
val binding= ItemListBinding.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: ItemListBinding): RecyclerView.ViewHolder(binding.root)
|
||||||
}
|
}
|
||||||
@ -6,16 +6,14 @@ import androidx.appcompat.app.AppCompatActivity
|
|||||||
import androidx.core.view.ViewCompat
|
import androidx.core.view.ViewCompat
|
||||||
import androidx.core.view.WindowInsetsCompat
|
import androidx.core.view.WindowInsetsCompat
|
||||||
import com.tools.device.devcheck.R
|
import com.tools.device.devcheck.R
|
||||||
|
import com.tools.device.devcheck.databinding.ActivityAnalysisBinding
|
||||||
|
|
||||||
class AnalysisActivity : AppCompatActivity() {
|
class AnalysisActivity : AppCompatActivity() {
|
||||||
|
private lateinit var binding: ActivityAnalysisBinding
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
enableEdgeToEdge()
|
binding = ActivityAnalysisBinding.inflate(layoutInflater)
|
||||||
setContentView(R.layout.activity_analysis)
|
setContentView(binding.root)
|
||||||
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
|
|
||||||
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
|
|
||||||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
|
|
||||||
insets
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5,17 +5,22 @@ import androidx.activity.enableEdgeToEdge
|
|||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.core.view.ViewCompat
|
import androidx.core.view.ViewCompat
|
||||||
import androidx.core.view.WindowInsetsCompat
|
import androidx.core.view.WindowInsetsCompat
|
||||||
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import com.tools.device.devcheck.R
|
import com.tools.device.devcheck.R
|
||||||
|
import com.tools.device.devcheck.adapter.ListAdapter
|
||||||
|
import com.tools.device.devcheck.databinding.ActivityBlueToothBinding
|
||||||
|
|
||||||
class BlueToothActivity : AppCompatActivity() {
|
class BlueToothActivity : AppCompatActivity() {
|
||||||
|
private lateinit var binding: ActivityBlueToothBinding
|
||||||
|
companion object{
|
||||||
|
val TITLE_KEY="title"
|
||||||
|
}
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
enableEdgeToEdge()
|
binding = ActivityBlueToothBinding.inflate(layoutInflater)
|
||||||
setContentView(R.layout.activity_blue_tooth)
|
setContentView(binding.root)
|
||||||
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
|
binding.recyclerView.adapter= ListAdapter()
|
||||||
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
|
binding.recyclerView.layoutManager= LinearLayoutManager(this)
|
||||||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
|
binding.titleText.text=intent.getStringExtra(TITLE_KEY)
|
||||||
insets
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,12 +1,15 @@
|
|||||||
package com.tools.device.devcheck.dashboard
|
package com.tools.device.devcheck.dashboard
|
||||||
|
|
||||||
|
import android.graphics.Color
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.view.View
|
||||||
import androidx.activity.enableEdgeToEdge
|
import androidx.activity.enableEdgeToEdge
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.core.view.ViewCompat
|
import androidx.core.view.ViewCompat
|
||||||
import androidx.core.view.WindowInsetsCompat
|
import androidx.core.view.WindowInsetsCompat
|
||||||
import com.tools.device.devcheck.R
|
import com.tools.device.devcheck.R
|
||||||
import com.tools.device.devcheck.databinding.ActivityColorsBinding
|
import com.tools.device.devcheck.databinding.ActivityColorsBinding
|
||||||
|
import androidx.core.graphics.toColorInt
|
||||||
|
|
||||||
class ColorsActivity : AppCompatActivity() {
|
class ColorsActivity : AppCompatActivity() {
|
||||||
private lateinit var binding:ActivityColorsBinding
|
private lateinit var binding:ActivityColorsBinding
|
||||||
@ -14,6 +17,19 @@ class ColorsActivity : AppCompatActivity() {
|
|||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
binding=ActivityColorsBinding.inflate(layoutInflater)
|
binding=ActivityColorsBinding.inflate(layoutInflater)
|
||||||
setContentView(binding.root)
|
setContentView(binding.root)
|
||||||
|
val colorList = listOf("#D9D9D9","#FF6262","#C3FF62","#62FFC8","#46CEFF","#9946FF","#FFE062","#FF9C46","#FF46D7","#101010")
|
||||||
|
binding.colorPage1.continueL.setOnClickListener {
|
||||||
|
binding.colorPage1.continueL.visibility= View.GONE
|
||||||
|
binding.colorPage1.colorL.visibility= View.VISIBLE
|
||||||
|
}
|
||||||
|
val colorView=listOf(binding.colorPage1.color1,binding.colorPage1.color2,binding.colorPage1.color3,binding.colorPage1.color4,binding.colorPage1.color5,binding.colorPage1.color6,binding.colorPage1.color7,binding.colorPage1.color8,binding.colorPage1.color9)
|
||||||
|
for (i in 0 until colorList.size-1) {
|
||||||
|
colorView[i].setOnClickListener { v->
|
||||||
|
binding.colorPage1.root.visibility= View.GONE
|
||||||
|
binding.colorPage2.root.visibility= View.VISIBLE
|
||||||
|
binding.colorPage2.view.setBackgroundColor(colorList[i].toColorInt())
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,21 +1,32 @@
|
|||||||
package com.tools.device.devcheck.dashboard
|
package com.tools.device.devcheck.dashboard
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.activity.enableEdgeToEdge
|
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.core.view.ViewCompat
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import androidx.core.view.WindowInsetsCompat
|
import com.tools.device.devcheck.adapter.CpuListAdapter
|
||||||
import com.tools.device.devcheck.R
|
import com.tools.device.devcheck.databinding.ActivityCpuStatusBinding
|
||||||
|
import com.tools.device.devcheck.dialog.CustomPopView
|
||||||
|
|
||||||
|
|
||||||
class CpuStatusActivity : AppCompatActivity() {
|
class CpuStatusActivity : AppCompatActivity() {
|
||||||
|
private lateinit var binding : ActivityCpuStatusBinding
|
||||||
|
private lateinit var customPopView: CustomPopView
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
enableEdgeToEdge()
|
binding = ActivityCpuStatusBinding.inflate(layoutInflater)
|
||||||
setContentView(R.layout.activity_cpu_status)
|
setContentView(binding.root)
|
||||||
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
|
customPopView =CustomPopView(this,callback = {text->
|
||||||
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
|
binding.popText.text = text
|
||||||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
|
})
|
||||||
insets
|
binding.popClick.setOnClickListener {
|
||||||
|
customPopView.show(binding.topTitle)
|
||||||
}
|
}
|
||||||
|
binding.cpuList.adapter= CpuListAdapter()
|
||||||
|
binding.cpuList.layoutManager= LinearLayoutManager(this)
|
||||||
}
|
}
|
||||||
|
override fun onDestroy() {
|
||||||
|
if (customPopView.isShowing()) {
|
||||||
|
customPopView.dismiss();
|
||||||
|
}
|
||||||
|
super.onDestroy()}
|
||||||
}
|
}
|
||||||
@ -1,5 +1,6 @@
|
|||||||
package com.tools.device.devcheck.dashboard
|
package com.tools.device.devcheck.dashboard
|
||||||
|
|
||||||
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@ -82,6 +83,9 @@ class DashboardFragment : BaseFragment<FragmentDashboardBinding>() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun initClick() {
|
private fun initClick() {
|
||||||
|
binding.layoutCpu.moduleCpu.setOnClickListener {
|
||||||
|
startActivity(Intent(requireContext(), CpuStatusActivity::class.java))
|
||||||
|
}
|
||||||
binding.layoutCenter.run {
|
binding.layoutCenter.run {
|
||||||
relayoutBattery.setOnClickListener {
|
relayoutBattery.setOnClickListener {
|
||||||
dialogBattery = dialogBattery ?: DialogBattery()
|
dialogBattery = dialogBattery ?: DialogBattery()
|
||||||
@ -96,6 +100,12 @@ class DashboardFragment : BaseFragment<FragmentDashboardBinding>() {
|
|||||||
dialogDisplay?.show(parentFragmentManager, "")
|
dialogDisplay?.show(parentFragmentManager, "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
binding.layoutBottom.relayoutTools.setOnClickListener {
|
||||||
|
startActivity(Intent(requireContext(), ToolsActivity::class.java))
|
||||||
|
}
|
||||||
|
binding.layoutBottom.relayoutTests.setOnClickListener {
|
||||||
|
startActivity(Intent(requireContext(), TestActivity::class.java))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -6,54 +6,81 @@ import android.view.LayoutInflater
|
|||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import com.tools.device.devcheck.R
|
import com.tools.device.devcheck.R
|
||||||
|
import com.tools.device.devcheck.databinding.FragmentHardWareBinding
|
||||||
|
|
||||||
// TODO: Rename parameter arguments, choose names that match
|
|
||||||
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
|
|
||||||
private const val ARG_PARAM1 = "param1"
|
|
||||||
private const val ARG_PARAM2 = "param2"
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A simple [Fragment] subclass.
|
|
||||||
* Use the [HardWareFragment.newInstance] factory method to
|
|
||||||
* create an instance of this fragment.
|
|
||||||
*/
|
|
||||||
class HardWareFragment : Fragment() {
|
class HardWareFragment : Fragment() {
|
||||||
// TODO: Rename and change types of parameters
|
private lateinit var binding: FragmentHardWareBinding
|
||||||
private var param1: String? = null
|
|
||||||
private var param2: String? = null
|
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
arguments?.let {
|
|
||||||
param1 = it.getString(ARG_PARAM1)
|
|
||||||
param2 = it.getString(ARG_PARAM2)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreateView(
|
override fun onCreateView(
|
||||||
inflater: LayoutInflater, container: ViewGroup?,
|
inflater: LayoutInflater, container: ViewGroup?,
|
||||||
savedInstanceState: Bundle?
|
savedInstanceState: Bundle?
|
||||||
): View? {
|
): View? {
|
||||||
// Inflate the layout for this fragment
|
binding = FragmentHardWareBinding.inflate(inflater, container, false)
|
||||||
return inflater.inflate(R.layout.fragment_hard_ware, container, false)
|
initText()
|
||||||
|
return binding.root
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun initText() {
|
||||||
|
//processor
|
||||||
|
binding.text1.textTitle.text = getString(R.string.vendor)
|
||||||
|
binding.text1.textContent.text=getString(R.string.apps)
|
||||||
|
binding.text2.textTitle.text = getString(R.string.hardware)
|
||||||
|
binding.text3.textTitle.text = getString(R.string.cores)
|
||||||
|
binding.text4.textTitle.text = getString(R.string.CPU)
|
||||||
|
binding.text5.textTitle.text = getString(R.string.process)
|
||||||
|
binding.text6.textTitle.text = getString(R.string.architecture)
|
||||||
|
binding.text7.textTitle.text = getString(R.string.ABI)
|
||||||
|
binding.text8.textTitle.text = getString(R.string.supported_ABls)
|
||||||
|
binding.text9.textTitle.text = getString(R.string.frequencies)
|
||||||
|
|
||||||
|
//gpu
|
||||||
|
binding.cpuText1.textTitle.text = getString(R.string.vendor)
|
||||||
|
binding.cpuText1.textContent.text=getString(R.string.apps)
|
||||||
|
binding.cpuText2.textTitle.text = getString(R.string.gpu)
|
||||||
|
binding.cpuText3.textTitle.text=getString(R.string.max_frequency)
|
||||||
|
binding.cpuText4.textTitle.text=getString(R.string.architecture)
|
||||||
|
binding.cpuText5.textTitle.text=getString(R.string.cores)
|
||||||
|
binding.cpuText6.textTitle.text=getString(R.string.total_l2)
|
||||||
|
binding.cpuText7.textTitle.text=getString(R.string.bus_width)
|
||||||
|
binding.cpuText8.textTitle.text=getString(R.string.vulkan_support)
|
||||||
|
binding.cpuText9.textTitle.text=getString(R.string.vulkan_API)
|
||||||
|
|
||||||
|
//display
|
||||||
|
binding.disText1.textTitle.text=getString(R.string.resolution)
|
||||||
|
binding.disText2.textTitle.text=getString(R.string.screen_density)
|
||||||
|
binding.disText3.textTitle.text=getString(R.string.screen_density_d)
|
||||||
|
binding.disText4.textTitle.text=getString(R.string.screen_size_e)
|
||||||
|
binding.disText5.textTitle.text=getString(R.string.aspect_ratio)
|
||||||
|
binding.disText6.textTitle.text=getString(R.string.refresh_rate)
|
||||||
|
binding.disText7.textTitle.text=getString(R.string.wide_color_gamut)
|
||||||
|
binding.disText8.textTitle.text=getString(R.string.hdr_support)
|
||||||
|
|
||||||
|
//memory
|
||||||
|
binding.memText1.textTitle.text=getString(R.string.ram_size)
|
||||||
|
|
||||||
|
//storage
|
||||||
|
binding.storText1.textTitle.text=getString(R.string.filesystem)
|
||||||
|
binding.storText2.textTitle.text=getString(R.string.block_size)
|
||||||
|
|
||||||
|
//Audio
|
||||||
|
binding.check1.content.text=getString(R.string.low_audio)
|
||||||
|
binding.check2.content.text=getString(R.string.pro_audio)
|
||||||
|
binding.check3.content.text=getString(R.string.midl)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
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 HardWareFragment.
|
|
||||||
*/
|
|
||||||
// TODO: Rename and change types and number of parameters
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun newInstance(param1: String, param2: String) =
|
fun newInstance() =
|
||||||
HardWareFragment().apply {
|
HardWareFragment().apply {
|
||||||
arguments = Bundle().apply {
|
arguments = Bundle().apply {
|
||||||
putString(ARG_PARAM1, param1)
|
|
||||||
putString(ARG_PARAM2, param2)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,61 +4,99 @@ import android.content.Intent
|
|||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import com.tools.device.devcheck.R
|
import com.tools.device.devcheck.R
|
||||||
import com.tools.device.devcheck.databinding.ActivityTextBinding
|
import com.tools.device.devcheck.databinding.ActivityTestBinding
|
||||||
import com.tools.device.devcheck.databinding.ActivityToolsBinding
|
|
||||||
|
|
||||||
class TextActivity : AppCompatActivity() {
|
class TestActivity : AppCompatActivity() {
|
||||||
private lateinit var binding: ActivityTextBinding
|
private lateinit var binding: ActivityTestBinding
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
binding=ActivityTextBinding.inflate(layoutInflater)
|
binding = ActivityTestBinding.inflate(layoutInflater)
|
||||||
setContentView(binding.root)
|
setContentView(binding.root)
|
||||||
initView()
|
initView()
|
||||||
initClick()
|
initClick()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun initClick() {
|
private fun initClick() {
|
||||||
|
binding.toolItem1.root.setOnClickListener {
|
||||||
|
intent = Intent(this, TestOtherActivity::class.java)
|
||||||
|
intent.putExtra(TestOtherActivity.TYPE_KEY, getString(R.string.flashlight))
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
binding.toolItem2.root.setOnClickListener {
|
||||||
|
intent = Intent(this, TestOtherActivity::class.java)
|
||||||
|
intent.putExtra(TestOtherActivity.TYPE_KEY, getString(R.string.vibration))
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
binding.toolItem3.root.setOnClickListener {
|
||||||
|
intent = Intent(this, TestOtherActivity::class.java)
|
||||||
|
intent.putExtra(TestOtherActivity.TYPE_KEY, getString(R.string.buttons))
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
binding.toolItem4.root.setOnClickListener {
|
||||||
|
intent = Intent(this, TouchActivity::class.java)
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
binding.toolItem5.root.setOnClickListener {
|
binding.toolItem5.root.setOnClickListener {
|
||||||
intent=Intent(this, ColorsActivity::class.java)
|
intent = Intent(this, ColorsActivity::class.java)
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
binding.toolItem6.root.setOnClickListener {
|
||||||
|
intent = Intent(this, TestOtherActivity::class.java)
|
||||||
|
intent.putExtra(TestOtherActivity.TYPE_KEY, getString(R.string.backlight))
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
binding.toolItem7.root.setOnClickListener {
|
||||||
|
intent = Intent(this, TestOtherActivity::class.java)
|
||||||
|
intent.putExtra(TestOtherActivity.TYPE_KEY, getString(R.string.light_sensor))
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
binding.toolItem8.root.setOnClickListener {
|
||||||
|
intent = Intent(this, TestOtherActivity::class.java)
|
||||||
|
intent.putExtra(TestOtherActivity.TYPE_KEY, getString(R.string.proximity))
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
binding.toolItem9.root.setOnClickListener {
|
||||||
|
intent = Intent(this, TestOtherActivity::class.java)
|
||||||
|
intent.putExtra(TestOtherActivity.TYPE_KEY, getString(R.string.accelerometer))
|
||||||
startActivity(intent)
|
startActivity(intent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun initView(){
|
private fun initView() {
|
||||||
binding.toolItem1.ivIcon.setImageResource(R.drawable.flash)
|
binding.toolItem1.ivIcon.setImageResource(R.drawable.flash)
|
||||||
binding.toolItem1.tvLabel.text=getString(R.string.flashlight)
|
binding.toolItem1.tvLabel.text = getString(R.string.flashlight)
|
||||||
binding.toolItem1.ivEnd.setImageResource(R.drawable.vector)
|
binding.toolItem1.ivEnd.setImageResource(R.drawable.vector)
|
||||||
|
|
||||||
binding.toolItem2.ivIcon.setImageResource(R.drawable.vibration)
|
binding.toolItem2.ivIcon.setImageResource(R.drawable.vibration)
|
||||||
binding.toolItem2.tvLabel.text=getString(R.string.vibration)
|
binding.toolItem2.tvLabel.text = getString(R.string.vibration)
|
||||||
binding.toolItem2.ivEnd.setImageResource(R.drawable.vector)
|
binding.toolItem2.ivEnd.setImageResource(R.drawable.vector)
|
||||||
|
|
||||||
binding.toolItem3.ivIcon.setImageResource(R.drawable.button)
|
binding.toolItem3.ivIcon.setImageResource(R.drawable.button)
|
||||||
binding.toolItem3.tvLabel.text=getString(R.string.buttons)
|
binding.toolItem3.tvLabel.text = getString(R.string.buttons)
|
||||||
binding.toolItem3.ivEnd.setImageResource(R.drawable.vector)
|
binding.toolItem3.ivEnd.setImageResource(R.drawable.vector)
|
||||||
|
|
||||||
binding.toolItem4.ivIcon.setImageResource(R.drawable.multi)
|
binding.toolItem4.ivIcon.setImageResource(R.drawable.multi)
|
||||||
binding.toolItem4.tvLabel.text=getString(R.string.multitouch)
|
binding.toolItem4.tvLabel.text = getString(R.string.multitouch)
|
||||||
binding.toolItem4.ivEnd.setImageResource(R.drawable.vector)
|
binding.toolItem4.ivEnd.setImageResource(R.drawable.vector)
|
||||||
|
|
||||||
binding.toolItem5.ivIcon.setImageResource(R.drawable.display)
|
binding.toolItem5.ivIcon.setImageResource(R.drawable.display)
|
||||||
binding.toolItem5.tvLabel.text=getString(R.string.displays)
|
binding.toolItem5.tvLabel.text = getString(R.string.displays)
|
||||||
binding.toolItem5.ivEnd.setImageResource(R.drawable.vector)
|
binding.toolItem5.ivEnd.setImageResource(R.drawable.vector)
|
||||||
|
|
||||||
binding.toolItem6.ivIcon.setImageResource(R.drawable.back)
|
binding.toolItem6.ivIcon.setImageResource(R.drawable.back)
|
||||||
binding.toolItem6.tvLabel.text=getString(R.string.backlight)
|
binding.toolItem6.tvLabel.text = getString(R.string.backlight)
|
||||||
binding.toolItem6.ivEnd.setImageResource(R.drawable.vector)
|
binding.toolItem6.ivEnd.setImageResource(R.drawable.vector)
|
||||||
|
|
||||||
binding.toolItem7.ivIcon.setImageResource(R.drawable.light)
|
binding.toolItem7.ivIcon.setImageResource(R.drawable.light)
|
||||||
binding.toolItem7.tvLabel.text=getString(R.string.light_sensor)
|
binding.toolItem7.tvLabel.text = getString(R.string.light_sensor)
|
||||||
binding.toolItem7.ivEnd.setImageResource(R.drawable.vector)
|
binding.toolItem7.ivEnd.setImageResource(R.drawable.vector)
|
||||||
|
|
||||||
binding.toolItem8.ivIcon.setImageResource(R.drawable.proxi)
|
binding.toolItem8.ivIcon.setImageResource(R.drawable.proxi)
|
||||||
binding.toolItem8.tvLabel.text=getString(R.string.proximity)
|
binding.toolItem8.tvLabel.text = getString(R.string.proximity)
|
||||||
binding.toolItem8.ivEnd.setImageResource(R.drawable.vector)
|
binding.toolItem8.ivEnd.setImageResource(R.drawable.vector)
|
||||||
|
|
||||||
binding.toolItem9.ivIcon.setImageResource(R.drawable.acceler)
|
binding.toolItem9.ivIcon.setImageResource(R.drawable.acceler)
|
||||||
binding.toolItem9.tvLabel.text=getString(R.string.accelerometer)
|
binding.toolItem9.tvLabel.text = getString(R.string.accelerometer)
|
||||||
binding.toolItem9.ivEnd.setImageResource(R.drawable.vector)
|
binding.toolItem9.ivEnd.setImageResource(R.drawable.vector)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,21 +1,63 @@
|
|||||||
package com.tools.device.devcheck.dashboard
|
package com.tools.device.devcheck.dashboard
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.view.View
|
||||||
import androidx.activity.enableEdgeToEdge
|
import androidx.activity.enableEdgeToEdge
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.core.view.ViewCompat
|
import androidx.core.view.ViewCompat
|
||||||
import androidx.core.view.WindowInsetsCompat
|
import androidx.core.view.WindowInsetsCompat
|
||||||
import com.tools.device.devcheck.R
|
import com.tools.device.devcheck.R
|
||||||
|
import com.tools.device.devcheck.databinding.ActivityTestOtherBinding
|
||||||
|
|
||||||
|
class TestOtherActivity : AppCompatActivity() {
|
||||||
|
private lateinit var binding: ActivityTestOtherBinding
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
var TYPE_KEY = "type"
|
||||||
|
}
|
||||||
|
|
||||||
class TextOtherActivity : AppCompatActivity() {
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
enableEdgeToEdge()
|
binding = ActivityTestOtherBinding.inflate(layoutInflater)
|
||||||
setContentView(R.layout.activity_text_other)
|
setContentView(binding.root)
|
||||||
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
|
when (intent.getStringExtra(TYPE_KEY)) {
|
||||||
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
|
getString(R.string.flashlight) -> {
|
||||||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
|
binding.title.text = getString(R.string.flashlight)
|
||||||
insets
|
binding.icon.setImageResource(R.drawable.big_icon_1)
|
||||||
|
}
|
||||||
|
|
||||||
|
getString(R.string.vibration) -> {
|
||||||
|
binding.title.text = getString(R.string.vibration)
|
||||||
|
binding.icon.setImageResource(R.drawable.big_icon_2)
|
||||||
|
}
|
||||||
|
|
||||||
|
getString(R.string.buttons) -> {
|
||||||
|
binding.title.text = getString(R.string.buttons)
|
||||||
|
binding.icon.setImageResource(R.drawable.big_icon_3)
|
||||||
|
binding.button.visibility = View.VISIBLE
|
||||||
|
binding.titleDialog.text=getString(R.string.did_you_get_feedback)
|
||||||
|
}
|
||||||
|
|
||||||
|
getString(R.string.backlight) -> {
|
||||||
|
binding.title.text = getString(R.string.backlight)
|
||||||
|
binding.icon.setImageResource(R.drawable.big_icon_4)
|
||||||
|
binding.backLight.visibility = View.VISIBLE
|
||||||
|
binding.titleDialog.text=getString(R.string.did_you_get_feedback)
|
||||||
|
}
|
||||||
|
getString(R.string.light_sensor)->{
|
||||||
|
binding.title.text = getString(R.string.light_sensor)
|
||||||
|
binding.icon.visibility = View.GONE
|
||||||
|
binding.sensor.visibility = View.VISIBLE
|
||||||
|
}
|
||||||
|
getString(R.string.proximity)->{
|
||||||
|
binding.title.text = getString(R.string.proximity)
|
||||||
|
binding.icon.visibility = View.GONE
|
||||||
|
binding.proximity.visibility = View.VISIBLE
|
||||||
|
}
|
||||||
|
getString(R.string.accelerometer)->{
|
||||||
|
binding.title.text = getString(R.string.accelerometer)
|
||||||
|
binding.icon.visibility = View.GONE
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,21 +1,63 @@
|
|||||||
package com.tools.device.devcheck.dashboard
|
package com.tools.device.devcheck.dashboard
|
||||||
|
|
||||||
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.util.Log
|
||||||
|
import android.view.View
|
||||||
import androidx.activity.enableEdgeToEdge
|
import androidx.activity.enableEdgeToEdge
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.core.view.ViewCompat
|
import androidx.core.view.ViewCompat
|
||||||
import androidx.core.view.WindowInsetsCompat
|
import androidx.core.view.WindowInsetsCompat
|
||||||
import com.tools.device.devcheck.R
|
import com.tools.device.devcheck.R
|
||||||
|
import com.tools.device.devcheck.databinding.ActivityToolsBinding
|
||||||
|
import androidx.core.view.isVisible
|
||||||
|
|
||||||
class ToolsActivity : AppCompatActivity() {
|
class ToolsActivity : AppCompatActivity() {
|
||||||
|
private lateinit var binding: ActivityToolsBinding
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
enableEdgeToEdge()
|
binding = ActivityToolsBinding.inflate(layoutInflater)
|
||||||
setContentView(R.layout.activity_tools)
|
setContentView(binding.root)
|
||||||
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
|
binding.toolItem1.ivIcon.setImageResource(R.drawable.key)
|
||||||
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
|
binding.toolItem1.tvLabel.text=getString(R.string.root_check)
|
||||||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
|
binding.noDevice.visibility=View.GONE
|
||||||
insets
|
|
||||||
|
binding.toolItem2.ivIcon.setImageResource(R.drawable.blue_tooth)
|
||||||
|
binding.toolItem2.tvLabel.text=getString(R.string.bluetooth)
|
||||||
|
binding.llBlue.visibility=View.GONE
|
||||||
|
|
||||||
|
|
||||||
|
binding.toolItem3.ivIcon.setImageResource(R.drawable.cpu)
|
||||||
|
binding.toolItem3.tvLabel.text=getString(R.string.cpu_analysis)
|
||||||
|
initView()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun initView() {
|
||||||
|
binding.toolItem1.root.setOnClickListener {
|
||||||
|
var isExpand = binding.noDevice.isVisible
|
||||||
|
if(isExpand){
|
||||||
|
binding.noDevice.visibility=View.GONE
|
||||||
|
}else{
|
||||||
|
binding.noDevice.visibility=View.VISIBLE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
binding.toolItem2.root.setOnClickListener {
|
||||||
|
var isExpand = binding.llBlue.isVisible
|
||||||
|
if(isExpand){
|
||||||
|
binding.llBlue.visibility=View.GONE
|
||||||
|
}else{
|
||||||
|
binding.llBlue.visibility=View.VISIBLE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
binding.llPair.setOnClickListener {
|
||||||
|
intent=Intent(this, BlueToothActivity::class.java)
|
||||||
|
intent.putExtra(BlueToothActivity.TITLE_KEY, getString(R.string.paired_devices))
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
binding.llNear.setOnClickListener {
|
||||||
|
intent=Intent(this, BlueToothActivity::class.java)
|
||||||
|
intent.putExtra(BlueToothActivity.TITLE_KEY, getString(R.string.nearby_devices))
|
||||||
|
startActivity(intent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -6,16 +6,13 @@ import androidx.appcompat.app.AppCompatActivity
|
|||||||
import androidx.core.view.ViewCompat
|
import androidx.core.view.ViewCompat
|
||||||
import androidx.core.view.WindowInsetsCompat
|
import androidx.core.view.WindowInsetsCompat
|
||||||
import com.tools.device.devcheck.R
|
import com.tools.device.devcheck.R
|
||||||
|
import com.tools.device.devcheck.databinding.ActivityTouchBinding
|
||||||
|
|
||||||
class TouchActivity : AppCompatActivity() {
|
class TouchActivity : AppCompatActivity() {
|
||||||
|
private lateinit var binding: ActivityTouchBinding
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
enableEdgeToEdge()
|
binding = ActivityTouchBinding.inflate(layoutInflater)
|
||||||
setContentView(R.layout.activity_touch)
|
setContentView(binding.root)
|
||||||
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
|
|
||||||
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
|
|
||||||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
|
|
||||||
insets
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,4 +1,80 @@
|
|||||||
package com.tools.device.devcheck.dialog
|
package com.tools.device.devcheck.dialog
|
||||||
|
|
||||||
class CustomPopView {
|
import android.annotation.SuppressLint
|
||||||
|
import android.content.Context
|
||||||
|
import android.graphics.Color
|
||||||
|
import android.graphics.drawable.ColorDrawable
|
||||||
|
import android.view.LayoutInflater
|
||||||
|
import android.view.View
|
||||||
|
import android.view.ViewGroup
|
||||||
|
import android.widget.PopupWindow
|
||||||
|
import com.tools.device.devcheck.R
|
||||||
|
import com.tools.device.devcheck.databinding.PopupLayoutBinding
|
||||||
|
import androidx.core.graphics.drawable.toDrawable
|
||||||
|
|
||||||
|
class CustomPopView(context: Context,private val callback: (String) -> Unit) {
|
||||||
|
private val context: Context = context
|
||||||
|
private lateinit var popupWindow: PopupWindow
|
||||||
|
private lateinit var binding: PopupLayoutBinding
|
||||||
|
|
||||||
|
init {
|
||||||
|
initPopupWindow()
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressLint("ServiceCast")
|
||||||
|
private fun initPopupWindow() {
|
||||||
|
// 初始化布局
|
||||||
|
val inflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
|
||||||
|
binding = PopupLayoutBinding.inflate(inflater)
|
||||||
|
|
||||||
|
// 设置PopupWindow
|
||||||
|
popupWindow = PopupWindow(
|
||||||
|
binding.root,
|
||||||
|
ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||||
|
ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||||
|
true
|
||||||
|
)
|
||||||
|
|
||||||
|
// 设置背景和动画
|
||||||
|
popupWindow.setBackgroundDrawable(Color.TRANSPARENT.toDrawable())
|
||||||
|
popupWindow.animationStyle = R.style.PopupAnimation
|
||||||
|
|
||||||
|
binding.text1.setOnClickListener {
|
||||||
|
dismiss()
|
||||||
|
callback.invoke(binding.text1.text.toString())
|
||||||
|
}
|
||||||
|
binding.text2.setOnClickListener {
|
||||||
|
dismiss()
|
||||||
|
callback.invoke(binding.text2.text.toString())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 显示PopView
|
||||||
|
fun show(anchorView: View) {
|
||||||
|
if (::popupWindow.isInitialized && !popupWindow.isShowing) {
|
||||||
|
popupWindow.showAsDropDown(anchorView)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 在指定位置显示
|
||||||
|
fun showAtLocation(parent: View, gravity: Int, x: Int, y: Int) {
|
||||||
|
if (::popupWindow.isInitialized && !popupWindow.isShowing) {
|
||||||
|
popupWindow.showAtLocation(parent, gravity, x, y)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 隐藏PopView
|
||||||
|
fun dismiss() {
|
||||||
|
if (::popupWindow.isInitialized && popupWindow.isShowing) {
|
||||||
|
popupWindow.dismiss()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 设置PopView内容
|
||||||
|
fun setContent(text: String) {
|
||||||
|
}
|
||||||
|
|
||||||
|
// 判断是否正在显示
|
||||||
|
fun isShowing(): Boolean {
|
||||||
|
return ::popupWindow.isInitialized && popupWindow.isShowing
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -10,6 +10,7 @@ import com.tools.device.devcheck.R
|
|||||||
import com.tools.device.devcheck.dashboard.BatteryFragment
|
import com.tools.device.devcheck.dashboard.BatteryFragment
|
||||||
import com.tools.device.devcheck.dashboard.CameraFragment
|
import com.tools.device.devcheck.dashboard.CameraFragment
|
||||||
import com.tools.device.devcheck.dashboard.DashboardFragment
|
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.NetworkFragment
|
||||||
import com.tools.device.devcheck.dashboard.SystemShowFragment
|
import com.tools.device.devcheck.dashboard.SystemShowFragment
|
||||||
import com.tools.device.devcheck.databinding.ActivityMainBinding
|
import com.tools.device.devcheck.databinding.ActivityMainBinding
|
||||||
@ -27,7 +28,7 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
|
|||||||
adapter = ViewPagerAdapter(
|
adapter = ViewPagerAdapter(
|
||||||
this@MainActivity, listOf(
|
this@MainActivity, listOf(
|
||||||
DashboardFragment.newInstance(),
|
DashboardFragment.newInstance(),
|
||||||
DashboardFragment.newInstance(),
|
HardWareFragment.newInstance(),
|
||||||
SystemShowFragment.newInstance(),
|
SystemShowFragment.newInstance(),
|
||||||
BatteryFragment.newInstance(),
|
BatteryFragment.newInstance(),
|
||||||
NetworkFragment.newInstance(),
|
NetworkFragment.newInstance(),
|
||||||
|
|||||||
@ -1,4 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<scale
|
||||||
|
android:fromXScale="0.8"
|
||||||
|
android:toXScale="1.0"
|
||||||
|
android:fromYScale="0.8"
|
||||||
|
android:toYScale="1.0"
|
||||||
|
android:pivotX="50%"
|
||||||
|
android:pivotY="50%"
|
||||||
|
android:duration="200" />
|
||||||
|
<alpha
|
||||||
|
android:fromAlpha="0.0"
|
||||||
|
android:toAlpha="1.0"
|
||||||
|
android:duration="200" />
|
||||||
</set>
|
</set>
|
||||||
@ -1,4 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<scale
|
||||||
|
android:fromXScale="1.0"
|
||||||
|
android:toXScale="0.8"
|
||||||
|
android:fromYScale="1.0"
|
||||||
|
android:toYScale="0.8"
|
||||||
|
android:pivotX="50%"
|
||||||
|
android:pivotY="50%"
|
||||||
|
android:duration="200" />
|
||||||
|
<alpha
|
||||||
|
android:fromAlpha="1.0"
|
||||||
|
android:toAlpha="0.0"
|
||||||
|
android:duration="200" />
|
||||||
</set>
|
</set>
|
||||||
@ -1,4 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||||
|
<corners android:radius="19dp"/>
|
||||||
|
<solid android:color="@color/module_title_color"/>
|
||||||
|
|
||||||
</selector>
|
</shape>
|
||||||
@ -1,4 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||||
|
<stroke android:width="1dp" android:color="@color/module_title_color"/>
|
||||||
|
<corners android:radius="7dp"/>
|
||||||
|
|
||||||
</shape>
|
</shape>
|
||||||
@ -1,4 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||||
|
<corners android:radius="10dp"/>
|
||||||
</selector>
|
<solid android:color="@color/white"/>
|
||||||
|
</shape>
|
||||||
@ -1,20 +1,29 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:id="@android:id/background">
|
<item
|
||||||
|
android:id="@android:id/background"
|
||||||
|
android:bottom="0dp"
|
||||||
|
android:top="0dp">
|
||||||
<shape>
|
<shape>
|
||||||
<corners android:radius="10dp" />
|
<corners android:radius="5dp" />
|
||||||
<solid android:color="#F5F5F5" />
|
<solid android:color="#AAD7D2" />
|
||||||
|
<!-- 明确设置高度 -->
|
||||||
|
<size android:height="10dp" />
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
<item android:id="@android:id/progress">
|
<item
|
||||||
|
android:id="@android:id/progress"
|
||||||
|
android:bottom="0dp"
|
||||||
|
android:top="0dp">
|
||||||
<clip>
|
<clip>
|
||||||
<shape>
|
<shape>
|
||||||
<corners android:radius="10dp" />
|
<corners android:radius="5dp" />
|
||||||
|
<size android:height="10dp" />
|
||||||
<gradient
|
<gradient
|
||||||
android:angle="0"
|
android:angle="0"
|
||||||
android:endColor="@color/primary_text"
|
android:centerColor="#3B948A"
|
||||||
android:centerColor="@color/primary_text"
|
android:endColor="#3B948A"
|
||||||
android:startColor="@color/secondary_text" />
|
android:startColor="#3B948A" />
|
||||||
</shape>
|
</shape>
|
||||||
</clip>
|
</clip>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@ -1,9 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:shape="oval">
|
android:shape="oval">
|
||||||
<solid android:color="@color/primary_text" />
|
<solid android:color="#3B948A"/>
|
||||||
<stroke android:color="@color/white" android:width="1dp"/>
|
|
||||||
<size
|
|
||||||
android:width="20dp"
|
|
||||||
android:height="20dp" />
|
|
||||||
</shape>
|
</shape>
|
||||||
@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||||
<stroke android:width="1dp" android:color="@color/module_title_color"/>
|
<stroke android:width="1dp" android:color="#40000000"/>
|
||||||
<corners android:radius="7dp"/>
|
<corners android:topRightRadius="10dp" android:topLeftRadius="10dp"/>
|
||||||
|
<solid android:color="@color/white"/>
|
||||||
|
|
||||||
</shape>
|
</shape>
|
||||||
@ -5,6 +5,61 @@
|
|||||||
android:id="@+id/main"
|
android:id="@+id/main"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:background="#EDEDED"
|
||||||
tools:context=".dashboard.BlueToothActivity">
|
tools:context=".dashboard.BlueToothActivity">
|
||||||
|
<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="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="10dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="50dp"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:src="@drawable/go_back"
|
||||||
|
android:padding="13dp"
|
||||||
|
/>
|
||||||
|
<View
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="1dp"/>
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="50dp"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:src="@drawable/setting"
|
||||||
|
android:padding="5dp" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingHorizontal="20dp"
|
||||||
|
android:paddingVertical="10dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/title_text"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/paired_devices"
|
||||||
|
style="@style/TextDeviceBig"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:background="#BFBFBF"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/recyclerView"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/top_bar"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginVertical="12dp"/>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/main"
|
android:id="@+id/main"
|
||||||
@ -7,132 +7,44 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
tools:context=".dashboard.ColorsActivity">
|
tools:context=".dashboard.ColorsActivity">
|
||||||
|
<include layout="@layout/color_page_1" android:id="@+id/color_page_1"/>
|
||||||
|
<include layout="@layout/color_page_2" android:id="@+id/color_page_2" android:visibility="gone"/>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:background="#101010"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:visibility="gone"
|
|
||||||
android:orientation="vertical">
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="21dp"
|
|
||||||
android:gravity="center_horizontal"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/TextSecondaryTitle"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
android:text="@string/number_of_touches"
|
|
||||||
/>
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
|
||||||
android:id="@+id/num"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/TextSecondaryTitle"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
android:text="8"
|
|
||||||
android:textAlignment="center"
|
|
||||||
/>
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center_horizontal"
|
|
||||||
android:paddingHorizontal="36dp"
|
|
||||||
android:layout_marginTop="60dp"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="115dp"
|
|
||||||
android:layout_height="115dp"
|
|
||||||
android:src="@drawable/color1"/>
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="115dp"
|
|
||||||
android:layout_height="115dp"
|
|
||||||
android:layout_marginStart="15dp"
|
|
||||||
android:src="@drawable/color2"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center_horizontal"
|
|
||||||
android:paddingHorizontal="36dp"
|
|
||||||
android:layout_marginTop="15dp"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="115dp"
|
|
||||||
android:layout_height="115dp"
|
|
||||||
android:src="@drawable/color3"/>
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="115dp"
|
|
||||||
android:layout_height="115dp"
|
|
||||||
android:layout_marginStart="15dp"
|
|
||||||
android:src="@drawable/color4"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center_horizontal"
|
|
||||||
android:paddingHorizontal="36dp"
|
|
||||||
android:layout_marginTop="15dp"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="115dp"
|
|
||||||
android:layout_height="115dp"
|
|
||||||
android:src="@drawable/color5"/>
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="115dp"
|
|
||||||
android:layout_height="115dp"
|
|
||||||
android:layout_marginStart="15dp"
|
|
||||||
android:src="@drawable/color6"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center_horizontal"
|
|
||||||
android:paddingHorizontal="36dp"
|
|
||||||
android:layout_marginTop="15dp"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="115dp"
|
|
||||||
android:layout_height="115dp"
|
|
||||||
android:src="@drawable/color7"/>
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="115dp"
|
|
||||||
android:layout_height="115dp"
|
|
||||||
android:layout_marginStart="15dp"
|
|
||||||
android:src="@drawable/color8"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="115dp"
|
|
||||||
android:layout_height="115dp"
|
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:src="@drawable/color9"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:paddingHorizontal="36dp"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:background="#101010">
|
android:orientation="vertical">
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/does_everything"
|
||||||
style="@style/TextSecondaryTitle"
|
style="@style/TextSecondaryTitle"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textAlignment="center"
|
android:layout_marginBottom="28dp"
|
||||||
android:text="@string/screen_will_change"
|
|
||||||
/>
|
/>
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
style="@style/TextSecondaryTitle"
|
android:layout_marginBottom="18dp"
|
||||||
android:textColor="@color/white"
|
android:orientation="horizontal">
|
||||||
android:textAlignment="center"
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:layout_marginTop="17dp"
|
style="@style/TextDialogSubTitle"
|
||||||
android:text="@string/tap_to_continue"
|
android:layout_width="wrap_content"
|
||||||
/>
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/yes"
|
||||||
|
android:paddingVertical="7dp"
|
||||||
|
android:paddingHorizontal="42dp"
|
||||||
|
android:background="@drawable/is_working_btn" />
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextDialogSubTitle"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/no"
|
||||||
|
android:paddingVertical="7dp"
|
||||||
|
android:paddingHorizontal="42dp"
|
||||||
|
android:layout_marginStart="72dp"
|
||||||
|
android:background="@drawable/is_working_btn" />
|
||||||
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@ -5,6 +5,113 @@
|
|||||||
android:id="@+id/main"
|
android:id="@+id/main"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:background="#EDEDED"
|
||||||
tools:context=".dashboard.CpuStatusActivity">
|
tools:context=".dashboard.CpuStatusActivity">
|
||||||
|
<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:id="@+id/topTitle"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="10dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
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/cpu_status"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:layout_marginStart="5dp"
|
||||||
|
style="@style/TextTool25"/>
|
||||||
|
<View
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_weight="1"/>
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="18dp"
|
||||||
|
android:paddingHorizontal="10dp"
|
||||||
|
android:src="@drawable/edit_line"/>
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="35dp"
|
||||||
|
android:layout_height="23dp"
|
||||||
|
android:paddingHorizontal="10dp"
|
||||||
|
android:src="@drawable/more_point"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingHorizontal="30dp"
|
||||||
|
android:paddingVertical="13dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/pop_click"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/pop_text"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/TextDialogLabel"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:text="@string/first_cluster"/>
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="15dp"
|
||||||
|
android:layout_height="10dp"
|
||||||
|
android:layout_marginStart="38dp"
|
||||||
|
android:src="@drawable/open_pop"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<View
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="1dp"/>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/reset"
|
||||||
|
android:textStyle="bold"
|
||||||
|
style="@style/TextDialogLabel"/>
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@drawable/dashboard_model_background"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/top_bar"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_marginHorizontal="8dp">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/cpu_time_in_state"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:layout_marginStart="19dp"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
style="@style/TextBtnTitle"/>
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:id="@+id/cpu_list"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@ -6,7 +6,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="#EDEDED"
|
android:background="#EDEDED"
|
||||||
tools:context=".dashboard.TextActivity">
|
tools:context=".dashboard.TestActivity">
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/top_bar"
|
android:id="@+id/top_bar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -57,15 +57,15 @@
|
|||||||
android:paddingBottom="10dp"
|
android:paddingBottom="10dp"
|
||||||
android:background="@drawable/dashboard_model_background"
|
android:background="@drawable/dashboard_model_background"
|
||||||
android:layout_marginTop="16dp">
|
android:layout_marginTop="16dp">
|
||||||
<include layout="@layout/common_text_item" android:id="@+id/tool_item_1"/>
|
<include layout="@layout/common_test_item" android:id="@+id/tool_item_1"/>
|
||||||
<include layout="@layout/common_text_item" android:id="@+id/tool_item_2"/>
|
<include layout="@layout/common_test_item" android:id="@+id/tool_item_2"/>
|
||||||
<include layout="@layout/common_text_item" android:id="@+id/tool_item_3"/>
|
<include layout="@layout/common_test_item" android:id="@+id/tool_item_3"/>
|
||||||
<include layout="@layout/common_text_item" android:id="@+id/tool_item_4"/>
|
<include layout="@layout/common_test_item" android:id="@+id/tool_item_4"/>
|
||||||
<include layout="@layout/common_text_item" android:id="@+id/tool_item_5"/>
|
<include layout="@layout/common_test_item" android:id="@+id/tool_item_5"/>
|
||||||
<include layout="@layout/common_text_item" android:id="@+id/tool_item_6"/>
|
<include layout="@layout/common_test_item" android:id="@+id/tool_item_6"/>
|
||||||
<include layout="@layout/common_text_item" android:id="@+id/tool_item_7"/>
|
<include layout="@layout/common_test_item" android:id="@+id/tool_item_7"/>
|
||||||
<include layout="@layout/common_text_item" android:id="@+id/tool_item_8"/>
|
<include layout="@layout/common_test_item" android:id="@+id/tool_item_8"/>
|
||||||
<include layout="@layout/common_text_item" android:id="@+id/tool_item_9"/>
|
<include layout="@layout/common_test_item" android:id="@+id/tool_item_9"/>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@ -5,6 +5,286 @@
|
|||||||
android:id="@+id/main"
|
android:id="@+id/main"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context=".dashboard.TextOtherActivity">
|
android:background="#EDEDED"
|
||||||
|
tools:context=".dashboard.TestOtherActivity">
|
||||||
|
<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/flashlight"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:layout_marginStart="5dp"
|
||||||
|
style="@style/TextTool25"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:background="#BFBFBF"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/icon"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:src="@drawable/big_icon_4"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
android:visibility="visible"
|
||||||
|
/>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/press_each"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/icon"/>
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/backLight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/icon"
|
||||||
|
android:layout_marginTop="30dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<SeekBar
|
||||||
|
android:id="@+id/seekbar"
|
||||||
|
android:layout_width="282dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:max="10"
|
||||||
|
android:maxHeight="10dp"
|
||||||
|
android:minHeight="10dp"
|
||||||
|
android:thumbOffset="0dp"
|
||||||
|
android:padding="0dp"
|
||||||
|
android:progress="2"
|
||||||
|
android:progressDrawable="@drawable/progress_bg"
|
||||||
|
android:thumb="@drawable/progress_oval" />
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/slide_to_adjust"
|
||||||
|
android:textColor="@color/right_color"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:layout_marginTop="18dp" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/sensor"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/top_bar"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="47dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/bigTextSensor"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="313.0 lx"
|
||||||
|
android:textStyle="normal"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textSize="59sp"
|
||||||
|
/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Min:"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:textColor="@color/right_color"
|
||||||
|
/>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/sensorMin"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="184.0 lx"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:textColor="@color/right_color"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Avg:"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:textColor="@color/right_color"
|
||||||
|
/>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/sensorAvg"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="184.0 lx"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:textColor="@color/right_color"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Max:"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:textColor="@color/right_color"
|
||||||
|
/>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/sensorMax"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="184.0 lx"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:textColor="@color/right_color"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/proximity"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/top_bar"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginTop="47dp"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:orientation="vertical"
|
||||||
|
>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/bigTextProximity"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="5.0 cm"
|
||||||
|
android:textStyle="normal"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textSize="59sp"
|
||||||
|
/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/status_1"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:textColor="@color/right_color"
|
||||||
|
/>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/proximityText1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Far"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:textColor="@color/right_color"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/proximityText2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/cover_the_top"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:textColor="@color/right_color"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
android:layout_marginHorizontal="8dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingVertical="15dp"
|
||||||
|
android:elevation="10dp"
|
||||||
|
android:background="@drawable/top_radius_bg"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:paddingHorizontal="25dp">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/title_dialog"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/is_it_working"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textColor="@color/right_color"
|
||||||
|
android:layout_marginBottom="28dp"
|
||||||
|
/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextDialogSubTitle"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/yes"
|
||||||
|
android:paddingVertical="7dp"
|
||||||
|
android:paddingHorizontal="42dp"
|
||||||
|
android:background="@drawable/is_working_btn" />
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextDialogSubTitle"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/no"
|
||||||
|
android:paddingVertical="7dp"
|
||||||
|
android:paddingHorizontal="42dp"
|
||||||
|
android:layout_marginStart="72dp"
|
||||||
|
android:background="@drawable/is_working_btn" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@ -5,6 +5,127 @@
|
|||||||
android:id="@+id/main"
|
android:id="@+id/main"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:background="#EDEDED"
|
||||||
tools:context=".dashboard.ToolsActivity">
|
tools:context=".dashboard.ToolsActivity">
|
||||||
|
<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">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="50dp"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:src="@drawable/go_back"
|
||||||
|
android:padding="13dp"
|
||||||
|
android:layout_margin="10dp"/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingHorizontal="20dp"
|
||||||
|
android:paddingVertical="10dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/tests"
|
||||||
|
style="@style/TextDeviceBig"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:background="#BFBFBF"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/tool1"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/top_bar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="8dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:background="@drawable/dashboard_model_background"
|
||||||
|
android:layout_marginTop="16dp">
|
||||||
|
<include layout="@layout/common_tool_item" android:id="@+id/tool_item_1"/>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/noDevice"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/device_is_not"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:paddingBottom="48dp"
|
||||||
|
style="@style/TextTool25"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/tool2"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/tool1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="8dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:background="@drawable/dashboard_model_background"
|
||||||
|
android:layout_marginTop="12dp">
|
||||||
|
<include layout="@layout/common_tool_item" android:id="@+id/tool_item_2"/>
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/llBlue"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/llPair"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginStart="76dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/tvPair"
|
||||||
|
style="@style/TextTool21"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="start"
|
||||||
|
android:text="@string/paired_devices" />
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="11dp"
|
||||||
|
android:layout_height="17dp"
|
||||||
|
android:layout_marginStart="52dp"
|
||||||
|
android:src="@drawable/go_on"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/llNear"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginStart="76dp"
|
||||||
|
android:layout_marginTop="17dp"
|
||||||
|
android:paddingBottom="27dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/tvNear"
|
||||||
|
style="@style/TextTool21"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="start"
|
||||||
|
android:text="@string/nearby_devices" />
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="11dp"
|
||||||
|
android:layout_height="17dp"
|
||||||
|
android:layout_marginStart="45dp"
|
||||||
|
android:src="@drawable/go_on"/>
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/tool2"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="8dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:background="@drawable/dashboard_model_background"
|
||||||
|
android:layout_marginTop="12dp">
|
||||||
|
<include layout="@layout/common_tool_item" android:id="@+id/tool_item_3"/>
|
||||||
|
</LinearLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@ -5,6 +5,68 @@
|
|||||||
android:id="@+id/main"
|
android:id="@+id/main"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:background="#101010"
|
||||||
tools:context=".dashboard.TouchActivity">
|
tools:context=".dashboard.TouchActivity">
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="21dp"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="@string/number_of_touches"
|
||||||
|
/>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/num"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="8"
|
||||||
|
android:textAlignment="center"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/is_it_working"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:layout_marginBottom="28dp"
|
||||||
|
/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="18dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextDialogSubTitle"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/yes"
|
||||||
|
android:paddingVertical="7dp"
|
||||||
|
android:paddingHorizontal="42dp"
|
||||||
|
android:background="@drawable/is_working_btn" />
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextDialogSubTitle"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/no"
|
||||||
|
android:paddingVertical="7dp"
|
||||||
|
android:paddingHorizontal="42dp"
|
||||||
|
android:layout_marginStart="72dp"
|
||||||
|
android:background="@drawable/is_working_btn" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@ -1,6 +1,146 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:orientation="vertical"
|
||||||
|
android:layout_height="match_parent">
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
<LinearLayout
|
||||||
|
android:id="@+id/colorL"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="#101010"
|
||||||
|
android:visibility="visible"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="21dp"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="@string/number_of_touches"
|
||||||
|
/>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/num"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="8"
|
||||||
|
android:textAlignment="center"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:paddingHorizontal="36dp"
|
||||||
|
android:layout_marginTop="60dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/color1"
|
||||||
|
android:layout_width="115dp"
|
||||||
|
android:layout_height="115dp"
|
||||||
|
android:src="@drawable/color1"/>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/color2"
|
||||||
|
android:layout_width="115dp"
|
||||||
|
android:layout_height="115dp"
|
||||||
|
android:layout_marginStart="15dp"
|
||||||
|
android:src="@drawable/color2"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:paddingHorizontal="36dp"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/color3"
|
||||||
|
android:layout_width="115dp"
|
||||||
|
android:layout_height="115dp"
|
||||||
|
android:src="@drawable/color3"/>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/color4"
|
||||||
|
android:layout_width="115dp"
|
||||||
|
android:layout_height="115dp"
|
||||||
|
android:layout_marginStart="15dp"
|
||||||
|
android:src="@drawable/color4"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:paddingHorizontal="36dp"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/color5"
|
||||||
|
android:layout_width="115dp"
|
||||||
|
android:layout_height="115dp"
|
||||||
|
android:src="@drawable/color5"/>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/color6"
|
||||||
|
android:layout_width="115dp"
|
||||||
|
android:layout_height="115dp"
|
||||||
|
android:layout_marginStart="15dp"
|
||||||
|
android:src="@drawable/color6"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:paddingHorizontal="36dp"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/color7"
|
||||||
|
android:layout_width="115dp"
|
||||||
|
android:layout_height="115dp"
|
||||||
|
android:src="@drawable/color7"/>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/color8"
|
||||||
|
android:layout_width="115dp"
|
||||||
|
android:layout_height="115dp"
|
||||||
|
android:layout_marginStart="15dp"
|
||||||
|
android:src="@drawable/color8"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/color9"
|
||||||
|
android:layout_width="115dp"
|
||||||
|
android:layout_height="115dp"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:src="@drawable/color9"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/continueL"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:paddingHorizontal="36dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:gravity="center"
|
||||||
|
android:visibility="visible"
|
||||||
|
android:background="#101010">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:text="@string/screen_will_change"
|
||||||
|
/>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:layout_marginTop="17dp"
|
||||||
|
android:text="@string/tap_to_continue"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
@ -1,6 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
<ImageView
|
||||||
|
android:id="@+id/image"
|
||||||
|
android:layout_width="23dp"
|
||||||
|
android:layout_height="23dp"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
|
android:src="@drawable/check_false" />
|
||||||
|
|
||||||
|
<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="20dp"
|
||||||
|
android:text="@string/apps"
|
||||||
|
android:textStyle="bold"
|
||||||
|
tools:ignore="RelativeOverlap" />
|
||||||
|
</LinearLayout>
|
||||||
@ -1,6 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="wrap_content"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/textTitle"
|
||||||
|
style="@style/TextContentLeft"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/model"
|
||||||
|
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:text="@string/apps"
|
||||||
|
tools:ignore="RelativeOverlap" />
|
||||||
|
</LinearLayout>
|
||||||
@ -2,8 +2,8 @@
|
|||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingVertical="12dp"
|
android:paddingVertical="22dp"
|
||||||
android:paddingHorizontal="14dp"
|
android:paddingHorizontal="27dp"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
|
||||||
@ -11,7 +11,7 @@
|
|||||||
android:id="@+id/iv_icon"
|
android:id="@+id/iv_icon"
|
||||||
android:layout_width="30dp"
|
android:layout_width="30dp"
|
||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
android:src="@drawable/flash"/>
|
android:src="@drawable/key"/>
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/tv_label"
|
android:id="@+id/tv_label"
|
||||||
style="@style/TextTool21"
|
style="@style/TextTool21"
|
||||||
@ -21,10 +21,5 @@
|
|||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:layout_marginStart="18dp"
|
android:layout_marginStart="18dp"
|
||||||
android:text="spppppppeee" />
|
android:text="spppppppeee" />
|
||||||
<ImageView
|
|
||||||
android:id="@+id/iv_end"
|
|
||||||
android:layout_width="26dp"
|
|
||||||
android:layout_height="26dp"
|
|
||||||
android:src="@drawable/vector"/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -44,6 +44,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/module_cpu"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/common_module_interval_medium"
|
android:layout_marginTop="@dimen/common_module_interval_medium"
|
||||||
|
|||||||
@ -44,8 +44,8 @@
|
|||||||
android:layout_weight="1" />
|
android:layout_weight="1" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="23dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="23dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:src="@drawable/setting" />
|
android:src="@drawable/setting" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -168,7 +168,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -192,7 +191,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -216,7 +214,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -240,7 +237,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -264,7 +260,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
|
|||||||
@ -117,7 +117,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -141,7 +140,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -165,7 +163,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -189,7 +186,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -213,7 +209,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -237,7 +232,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -259,7 +253,6 @@
|
|||||||
style="@style/TextContentLeft"
|
style="@style/TextContentLeft"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/optical_image_stabilization"
|
android:text="@string/optical_image_stabilization"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
@ -282,7 +275,6 @@
|
|||||||
style="@style/TextContentLeft"
|
style="@style/TextContentLeft"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/flash"
|
android:text="@string/flash"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -44,8 +44,8 @@
|
|||||||
android:layout_weight="1" />
|
android:layout_weight="1" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="23dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="23dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:src="@drawable/setting" />
|
android:src="@drawable/setting" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -141,8 +141,8 @@
|
|||||||
android:layout_weight="1" />
|
android:layout_weight="1" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="23dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="23dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:src="@drawable/setting" />
|
android:src="@drawable/setting" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -171,7 +171,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -212,7 +211,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -237,7 +235,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -262,7 +259,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -287,7 +283,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -312,7 +307,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -337,7 +331,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -362,7 +355,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -387,7 +379,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -412,7 +403,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -446,7 +436,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -471,7 +460,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -496,7 +484,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -521,7 +508,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -546,7 +532,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -571,7 +556,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -596,7 +580,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -621,7 +604,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -646,7 +628,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -671,7 +652,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -695,17 +675,16 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="23dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="23dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:src="@drawable/check_false" />
|
android:src="@drawable/check_false" />
|
||||||
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/hard1"
|
android:id="@+id/hard1"
|
||||||
style="@style/TextContentLeft"
|
style="@style/TextCheck"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
@ -719,17 +698,16 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="23dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="23dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:src="@drawable/check_false" />
|
android:src="@drawable/check_false" />
|
||||||
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/hard2"
|
android:id="@+id/hard2"
|
||||||
style="@style/TextContentLeft"
|
style="@style/TextCheck"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
@ -743,17 +721,16 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="23dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="23dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:src="@drawable/check_false" />
|
android:src="@drawable/check_false" />
|
||||||
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/hard3"
|
android:id="@+id/hard3"
|
||||||
style="@style/TextContentLeft"
|
style="@style/TextCheck"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
@ -767,17 +744,16 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="23dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="23dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:src="@drawable/check_false" />
|
android:src="@drawable/check_false" />
|
||||||
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/hard4"
|
android:id="@+id/hard4"
|
||||||
style="@style/TextContentLeft"
|
style="@style/TextCheck"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
@ -791,17 +767,16 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="23dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="23dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:src="@drawable/check_false" />
|
android:src="@drawable/check_false" />
|
||||||
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/hard5"
|
android:id="@+id/hard5"
|
||||||
style="@style/TextContentLeft"
|
style="@style/TextCheck"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
@ -815,17 +790,16 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="23dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="23dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:src="@drawable/check_false" />
|
android:src="@drawable/check_false" />
|
||||||
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/hard6"
|
android:id="@+id/hard6"
|
||||||
style="@style/TextContentLeft"
|
style="@style/TextCheck"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
@ -847,13 +821,11 @@
|
|||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/pubShow"
|
android:id="@+id/pubShow"
|
||||||
style="@style/TextModuleTitle"
|
style="@style/TextButteryRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/show"
|
android:text="@string/show"
|
||||||
android:paddingTop="15dp"
|
|
||||||
android:paddingHorizontal="10dp"
|
android:paddingHorizontal="10dp"
|
||||||
android:textStyle="bold"
|
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -888,8 +860,8 @@
|
|||||||
android:layout_weight="1" />
|
android:layout_weight="1" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="23dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="23dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:src="@drawable/setting" />
|
android:src="@drawable/setting" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -912,7 +884,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -936,7 +907,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -960,7 +930,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -991,7 +960,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -1022,7 +990,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -1046,7 +1013,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -1070,7 +1036,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -1101,7 +1066,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -1125,7 +1089,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -1149,7 +1112,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -1173,7 +1135,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -1204,7 +1165,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
@ -1228,7 +1188,6 @@
|
|||||||
style="@style/TextContentRight"
|
style="@style/TextContentRight"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
|
|||||||
@ -315,7 +315,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:layout_gravity="center"
|
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
<View
|
<View
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
@ -348,7 +347,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:layout_gravity="center"
|
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
<View
|
<View
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
@ -381,7 +379,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:layout_gravity="center"
|
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -429,7 +426,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:layout_gravity="center"
|
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -451,7 +447,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:layout_gravity="center"
|
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
@ -481,7 +476,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:layout_gravity="center"
|
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -504,7 +498,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:layout_gravity="center"
|
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -527,7 +520,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:layout_gravity="center"
|
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -550,7 +542,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:layout_gravity="center"
|
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -573,7 +564,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:layout_gravity="center"
|
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -596,7 +586,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
android:layout_gravity="center"
|
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@ -3,6 +3,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:background="@drawable/dashboard_model_background"
|
android:background="@drawable/dashboard_model_background"
|
||||||
android:padding="22dp"
|
android:padding="22dp"
|
||||||
|
android:layout_marginHorizontal="8dp"
|
||||||
|
android:layout_marginVertical="4dp"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/tvName"
|
android:id="@+id/tvName"
|
||||||
|
|||||||
@ -2,26 +2,48 @@
|
|||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:background="@drawable/dashboard_model_background"
|
android:background="@drawable/dashboard_model_background"
|
||||||
android:padding="22dp"
|
android:padding="6dp"
|
||||||
android:layout_marginHorizontal="8dp"
|
android:layout_marginHorizontal="6dp"
|
||||||
android:layout_marginVertical="4dp"
|
android:layout_marginVertical="4dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/tvName"
|
android:id="@+id/tvName"
|
||||||
style="@style/TextTool21"
|
style="@style/TextDialogContent"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:gravity="start"
|
||||||
|
android:text="Total" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/tvNum"
|
||||||
|
style="@style/TextDialogContent"
|
||||||
|
android:textSize="13sp"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:text="NUCBOX_K8" />
|
android:textStyle="bold"
|
||||||
<View
|
android:text="00:35:37" />
|
||||||
android:layout_width="0dp"
|
<SeekBar
|
||||||
android:layout_height="1dp"
|
android:id="@+id/seekbar"
|
||||||
android:layout_weight="1"/>
|
android:layout_width="142dp"
|
||||||
|
android:layout_height="8dp"
|
||||||
|
android:maxHeight="8dp"
|
||||||
|
android:minHeight="8dp"
|
||||||
|
android:thumbOffset="0dp"
|
||||||
|
android:padding="0dp"
|
||||||
|
android:progress="50"
|
||||||
|
android:progressDrawable="@drawable/progress_bg"
|
||||||
|
android:thumb="@drawable/progress_oval" />
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/tvNum"
|
android:id="@+id/tvPercent"
|
||||||
style="@style/TextTool21"
|
style="@style/TextDialogContent"
|
||||||
android:layout_width="135dp"
|
android:textSize="13sp"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:text="D0:12:55:2C:43:FB" />
|
android:textStyle="bold"
|
||||||
|
android:text="50.0%" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -1,6 +1,32 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/popup_container"
|
||||||
android:layout_height="match_parent">
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@drawable/popup_background"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:elevation="5dp"
|
||||||
|
android:layout_margin="5dp"
|
||||||
|
android:padding="16dp">
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/text1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/TextDialogLabel"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:text="@string/first_cluster"/>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/text2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/TextDialogLabel"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:text="@string/second_cluster"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</LinearLayout>
|
||||||
@ -12,6 +12,7 @@
|
|||||||
<color name="cpu_module_content_color">#444544</color>
|
<color name="cpu_module_content_color">#444544</color>
|
||||||
<color name="left_color">#626262</color>
|
<color name="left_color">#626262</color>
|
||||||
<color name="right_color">#757575</color>
|
<color name="right_color">#757575</color>
|
||||||
|
<color name="check_color">#484848</color>
|
||||||
<color name="dialog_label_color">#666666</color>
|
<color name="dialog_label_color">#666666</color>
|
||||||
<color name="dialog_value_color">#757575</color>
|
<color name="dialog_value_color">#757575</color>
|
||||||
</resources>
|
</resources>
|
||||||
@ -115,7 +115,7 @@
|
|||||||
<string name="dns1">DNS1</string>
|
<string name="dns1">DNS1</string>
|
||||||
<string name="dns2">DNS2</string>
|
<string name="dns2">DNS2</string>
|
||||||
<string name="public_ip">Public IP</string>
|
<string name="public_ip">Public IP</string>
|
||||||
<string name="show">Show</string>
|
<string name="show">SHOW</string>
|
||||||
<string name="ok">ok</string>
|
<string name="ok">ok</string>
|
||||||
<string name="mobile_data">Mobile Data</string>
|
<string name="mobile_data">Mobile Data</string>
|
||||||
<string name="dual_sim_dual_standby">Dual SIM dual standby</string>
|
<string name="dual_sim_dual_standby">Dual SIM dual standby</string>
|
||||||
@ -146,6 +146,73 @@
|
|||||||
<string name="number_of_touches">Number of touches:</string>
|
<string name="number_of_touches">Number of touches:</string>
|
||||||
<string name="screen_will_change">Screen will change colors. Look forburn-in or any pixels that stand out</string>
|
<string name="screen_will_change">Screen will change colors. Look forburn-in or any pixels that stand out</string>
|
||||||
<string name="tap_to_continue">Tap to continue</string>
|
<string name="tap_to_continue">Tap to continue</string>
|
||||||
|
<string name="tests">Tests</string>
|
||||||
|
<string name="reset">RESET</string>
|
||||||
|
<string name="flashlight">Flashlight</string>
|
||||||
|
<string name="vibration">Vibration</string>
|
||||||
|
<string name="buttons">Buttons</string>
|
||||||
|
<string name="multitouch">Multitouch</string>
|
||||||
|
<string name="displays">Display</string>
|
||||||
|
<string name="backlight">Backlight</string>
|
||||||
|
<string name="light_sensor">Light sensor</string>
|
||||||
|
<string name="proximity">Proximity</string>
|
||||||
|
<string name="accelerometer">Accelerometer</string>
|
||||||
|
<string name="root_check">Root check</string>
|
||||||
|
<string name="bluetooth">Bluetooth</string>
|
||||||
|
<string name="cpu_analysis">CPU Analysis</string>
|
||||||
|
<string name="device_is_not">Device is not rooted</string>
|
||||||
|
<string name="nearby_devices">Nearby devices</string>
|
||||||
|
<string name="paired_devices">Paired devices</string>
|
||||||
|
<string name="is_it_working">Is it working?</string>
|
||||||
|
<string name="yes">Yes</string>
|
||||||
|
<string name="no">No</string>
|
||||||
|
<string name="does_everything">Does everything look okay?</string>
|
||||||
|
<string name="did_you_get_feedback">Did you get feedback for each button?</string>
|
||||||
|
<string name="press_each">Press each volume button</string>
|
||||||
|
<string name="slide_to_adjust">Slide to adjust brightness</string>
|
||||||
|
<string name="cover_the_top">Cover the top portion of the screen</string>
|
||||||
|
<string name="status_1">Status:</string>
|
||||||
|
<string name="second_cluster">Second cluster</string>
|
||||||
|
<string name="first_cluster">First cluster</string>
|
||||||
|
<string name="cpu_time_in_state">CPU time-in-state</string>
|
||||||
|
<string name="processor">Processor</string>
|
||||||
|
<string name="cores">Cores</string>
|
||||||
|
<string name="CPU">CPU</string>
|
||||||
|
<string name="process">Process</string>
|
||||||
|
<string name="ABI">ABI</string>
|
||||||
|
<string name="supported_ABls">Supported ABls</string>
|
||||||
|
<string name="frequencies">Frequencies</string>
|
||||||
|
<string name="total_l2">Total L2 cache size</string>
|
||||||
|
<string name="bus_width">Bus width</string>
|
||||||
|
<string name="vulkan_support">Vulkan support</string>
|
||||||
|
<string name="vulkan_API">Vulkan API version</string>
|
||||||
|
<string name="extensions">Extensions</string>
|
||||||
|
<string name="memory">Memory</string>
|
||||||
|
<string name="screen_density_d">Screen density (dpi)</string>
|
||||||
|
<string name="screen_size_e">Screen size (estimated)</string>
|
||||||
|
<string name="refresh_rate">Refresh rate</string>
|
||||||
|
<string name="wide_color_gamut">Wide color gamut</string>
|
||||||
|
<string name="hdr_support">HDR support</string>
|
||||||
|
<string name="ram_size">RAM size</string>
|
||||||
|
<string name="zram">ZRAM</string>
|
||||||
|
<string name="size">Size</string>
|
||||||
|
<string name="filesystem">Filesystem</string>
|
||||||
|
<string name="block_size">Block size</string>
|
||||||
|
<string name="apps_and_data">Apps and data</string>
|
||||||
|
<string name="system">System</string>
|
||||||
|
<string name="free">Free</string>
|
||||||
|
<string name="internal_storage">Internal storage</string>
|
||||||
|
<string name="disk_partitions">Disk partitions</string>
|
||||||
|
<string name="bluetooth_support">Bluetooth support</string>
|
||||||
|
<string name="audio">Audio</string>
|
||||||
|
<string name="low_audio">Low latency audio</string>
|
||||||
|
<string name="pro_audio">Pro audio support</string>
|
||||||
|
<string name="midl">MIDl support</string>
|
||||||
|
<string name="codecs">Codecs</string>
|
||||||
|
<string name="other">Other</string>
|
||||||
|
<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>
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
@ -83,6 +83,14 @@
|
|||||||
<item name="android:textColor">@color/left_color</item>
|
<item name="android:textColor">@color/left_color</item>
|
||||||
<!-- <item name="fontFamily">@font/semibold</item>-->
|
<!-- <item name="fontFamily">@font/semibold</item>-->
|
||||||
</style>
|
</style>
|
||||||
|
<!-- 判断框字体-->
|
||||||
|
<style name="TextCheck" 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/check_color</item>
|
||||||
|
<!-- <item name="fontFamily">@font/semibold</item>-->
|
||||||
|
</style>
|
||||||
<!-- Dialog标题-->
|
<!-- Dialog标题-->
|
||||||
<style name="TextDialog" parent="TextAppearance.Material3.BodyLarge">
|
<style name="TextDialog" parent="TextAppearance.Material3.BodyLarge">
|
||||||
<item name="android:textSize">21sp</item>
|
<item name="android:textSize">21sp</item>
|
||||||
@ -163,6 +171,23 @@
|
|||||||
<item name="fontFamily">@font/arimo</item>
|
<item name="fontFamily">@font/arimo</item>
|
||||||
<item name="android:textStyle">bold</item>
|
<item name="android:textStyle">bold</item>
|
||||||
<item name="android:textColor">@color/module_title_color</item>
|
<item name="android:textColor">@color/module_title_color</item>
|
||||||
<!-- <item name="fontFamily">@font/semibold</item>-->
|
</style>
|
||||||
|
<!-- tool左边字体-->
|
||||||
|
<style name="TextTool21">
|
||||||
|
<item name="android:textSize">21sp</item>
|
||||||
|
<item name="android:textColor">@color/dialog_value_color</item>
|
||||||
|
<item name="fontFamily">@font/arimo</item>
|
||||||
|
<item name="android:textStyle">bold</item>
|
||||||
|
</style>
|
||||||
|
<!-- 工具大字体-->
|
||||||
|
<style name="TextTool25" >
|
||||||
|
<item name="android:textSize">25sp</item>
|
||||||
|
<item name="fontFamily">@font/arimo</item>
|
||||||
|
<item name="android:textColor">@color/module_title_color</item>
|
||||||
|
<item name="android:textStyle">bold</item>
|
||||||
|
</style>
|
||||||
|
<style name="PopupAnimation" parent="android:Animation">
|
||||||
|
<item name="android:windowEnterAnimation">@anim/popup_enter</item>
|
||||||
|
<item name="android:windowExitAnimation">@anim/popup_exit</item>
|
||||||
</style>
|
</style>
|
||||||
</resources>
|
</resources>
|
||||||
@ -9,6 +9,8 @@ appcompat = "1.7.1"
|
|||||||
material = "1.12.0"
|
material = "1.12.0"
|
||||||
activity = "1.10.1"
|
activity = "1.10.1"
|
||||||
constraintlayout = "2.2.1"
|
constraintlayout = "2.2.1"
|
||||||
|
navigationFragmentKtx = "2.9.3"
|
||||||
|
navigationUiKtx = "2.9.3"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
||||||
@ -19,6 +21,8 @@ androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version
|
|||||||
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
|
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
|
||||||
androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
|
androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
|
||||||
androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
|
androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
|
||||||
|
androidx-navigation-fragment-ktx = { group = "androidx.navigation", name = "navigation-fragment-ktx", version.ref = "navigationFragmentKtx" }
|
||||||
|
androidx-navigation-ui-ktx = { group = "androidx.navigation", name = "navigation-ui-ktx", version.ref = "navigationUiKtx" }
|
||||||
|
|
||||||
[plugins]
|
[plugins]
|
||||||
android-application = { id = "com.android.application", version.ref = "agp" }
|
android-application = { id = "com.android.application", version.ref = "agp" }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user