ui提交
This commit is contained in:
parent
f64498a1fa
commit
ee868568f7
@ -3,6 +3,7 @@ package com.tools.device.devcheck.adapter
|
|||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.tools.device.devcheck.dialog.AppDialogFragment
|
import com.tools.device.devcheck.dialog.AppDialogFragment
|
||||||
@ -28,13 +29,18 @@ class AppListAdapter: RecyclerView.Adapter<AppListAdapter.ListViewHolder>() {
|
|||||||
holder.binding.view.setOnClickListener {
|
holder.binding.view.setOnClickListener {
|
||||||
listener.onShowAppSelectDialog()
|
listener.onShowAppSelectDialog()
|
||||||
}
|
}
|
||||||
|
if(position==itemCount-1){
|
||||||
|
holder.binding.view2.visibility=View.VISIBLE
|
||||||
|
}else{
|
||||||
|
holder.binding.view2.visibility=View.GONE
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fun setOnclickListener(listener: OnShowDialogListener) {
|
fun setOnclickListener(listener: OnShowDialogListener) {
|
||||||
this.listener = listener
|
this.listener = listener
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getItemCount(): Int {
|
override fun getItemCount(): Int {
|
||||||
return 3
|
return 13
|
||||||
}
|
}
|
||||||
|
|
||||||
class ListViewHolder(val binding: ItemAppListBinding): RecyclerView.ViewHolder(binding.root)
|
class ListViewHolder(val binding: ItemAppListBinding): RecyclerView.ViewHolder(binding.root)
|
||||||
|
|||||||
@ -17,6 +17,7 @@ class AnalysisActivity : AppCompatActivity() {
|
|||||||
binding.timeShow.setOnClickListener {
|
binding.timeShow.setOnClickListener {
|
||||||
startActivity(Intent(this, CpuStatusActivity::class.java))
|
startActivity(Intent(this, CpuStatusActivity::class.java))
|
||||||
}
|
}
|
||||||
|
binding.backBtn.setOnClickListener { finish() }
|
||||||
initText()
|
initText()
|
||||||
initShow()
|
initShow()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,7 +24,6 @@ class AppsFragment : Fragment(),AppListAdapter.OnShowDialogListener {
|
|||||||
): View? {
|
): View? {
|
||||||
// Inflate the layout for this fragment
|
// Inflate the layout for this fragment
|
||||||
binding = FragmentAppsBinding.inflate(inflater, container, false)
|
binding = FragmentAppsBinding.inflate(inflater, container, false)
|
||||||
initButtons()
|
|
||||||
val adapter= AppListAdapter()
|
val adapter= AppListAdapter()
|
||||||
adapter.setOnclickListener(this)
|
adapter.setOnclickListener(this)
|
||||||
binding.recyclerView.adapter = adapter
|
binding.recyclerView.adapter = adapter
|
||||||
@ -41,44 +40,6 @@ class AppsFragment : Fragment(),AppListAdapter.OnShowDialogListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private fun initButtons() {
|
|
||||||
switchTab(0)
|
|
||||||
binding.llUser.setOnClickListener { switchTab(0) }
|
|
||||||
binding.llSystem.setOnClickListener { switchTab(1) }
|
|
||||||
binding.llAll.setOnClickListener { switchTab(2) }
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun switchTab(n: Int) {
|
|
||||||
when(n){
|
|
||||||
0->{
|
|
||||||
binding.back1.visibility = View.VISIBLE
|
|
||||||
binding.back2.visibility = View.INVISIBLE
|
|
||||||
binding.back3.visibility = View.INVISIBLE
|
|
||||||
binding.imgUser.isSelected = true
|
|
||||||
binding.imgSystem.isSelected = false
|
|
||||||
binding.imgAll.isSelected = false
|
|
||||||
binding.tvTitle.text=getString(R.string.user_apps)+"("+30+")"
|
|
||||||
}
|
|
||||||
1->{
|
|
||||||
binding.back1.visibility = View.INVISIBLE
|
|
||||||
binding.back2.visibility = View.VISIBLE
|
|
||||||
binding.back3.visibility = View.INVISIBLE
|
|
||||||
binding.imgUser.isSelected = false
|
|
||||||
binding.imgSystem.isSelected = true
|
|
||||||
binding.imgAll.isSelected = false
|
|
||||||
binding.tvTitle.text=getString(R.string.system_apps)+"("+30+")"
|
|
||||||
}
|
|
||||||
2->{
|
|
||||||
binding.back1.visibility = View.INVISIBLE
|
|
||||||
binding.back2.visibility = View.INVISIBLE
|
|
||||||
binding.back3.visibility = View.VISIBLE
|
|
||||||
binding.imgUser.isSelected = false
|
|
||||||
binding.imgSystem.isSelected = false
|
|
||||||
binding.imgAll.isSelected = true
|
|
||||||
binding.tvTitle.text=getString(R.string.installed_apps)+"("+30+")"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onShowAppSelectDialog() {
|
override fun onShowAppSelectDialog() {
|
||||||
dialogFragment = AppDialogFragment()
|
dialogFragment = AppDialogFragment()
|
||||||
|
|||||||
@ -7,10 +7,12 @@ 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.FragmentCameraBinding
|
import com.tools.device.devcheck.databinding.FragmentCameraBinding
|
||||||
|
import com.tools.device.devcheck.dialog.DialogCameraMore
|
||||||
|
|
||||||
class CameraFragment : Fragment() {
|
class CameraFragment : Fragment() {
|
||||||
private lateinit var binding:FragmentCameraBinding;
|
private lateinit var binding:FragmentCameraBinding;
|
||||||
// TODO: Rename and change types of parameters
|
private var dialogCamera0: DialogCameraMore? = null
|
||||||
|
private var dialogCamera1: DialogCameraMore? = null
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
@ -26,6 +28,14 @@ class CameraFragment : Fragment() {
|
|||||||
// Inflate the layout for this fragment
|
// Inflate the layout for this fragment
|
||||||
binding = FragmentCameraBinding.inflate(inflater, container, false)
|
binding = FragmentCameraBinding.inflate(inflater, container, false)
|
||||||
initText()
|
initText()
|
||||||
|
binding.rearMore.setOnClickListener {
|
||||||
|
dialogCamera0= dialogCamera0?:DialogCameraMore(0)
|
||||||
|
dialogCamera0?.show(childFragmentManager, "DialogCameraMore0")
|
||||||
|
}
|
||||||
|
binding.frontMore.setOnClickListener {
|
||||||
|
dialogCamera1= dialogCamera1?:DialogCameraMore(1)
|
||||||
|
dialogCamera1?.show(childFragmentManager, "DialogCameraMore1")
|
||||||
|
}
|
||||||
return binding.root
|
return binding.root
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -9,12 +9,16 @@ import android.view.ViewGroup
|
|||||||
import com.tools.device.devcheck.R
|
import com.tools.device.devcheck.R
|
||||||
import com.tools.device.devcheck.databinding.FragmentHardWareBinding
|
import com.tools.device.devcheck.databinding.FragmentHardWareBinding
|
||||||
import com.tools.device.devcheck.dialog.DialogBlueTooth
|
import com.tools.device.devcheck.dialog.DialogBlueTooth
|
||||||
|
import com.tools.device.devcheck.dialog.DialogDiskPart
|
||||||
|
import com.tools.device.devcheck.dialog.DialogExtension
|
||||||
import com.tools.device.devcheck.dialog.DialogInput
|
import com.tools.device.devcheck.dialog.DialogInput
|
||||||
|
|
||||||
class HardWareFragment : Fragment() {
|
class HardWareFragment : Fragment() {
|
||||||
private lateinit var binding: FragmentHardWareBinding
|
private lateinit var binding: FragmentHardWareBinding
|
||||||
private var dialogBlueTooth: DialogBlueTooth? = null
|
private var dialogBlueTooth: DialogBlueTooth? = null
|
||||||
private var dialogInput: DialogInput? = null
|
private var dialogInput: DialogInput? = null
|
||||||
|
private var dialogExtension: DialogExtension? = null
|
||||||
|
private var dialogDiskPart: DialogDiskPart? = null
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
@ -41,6 +45,14 @@ class HardWareFragment : Fragment() {
|
|||||||
dialogInput=dialogInput?: DialogInput()
|
dialogInput=dialogInput?: DialogInput()
|
||||||
dialogInput?.show(childFragmentManager, "Input")
|
dialogInput?.show(childFragmentManager, "Input")
|
||||||
}
|
}
|
||||||
|
binding.extensionShow.setOnClickListener {
|
||||||
|
dialogExtension=dialogExtension?: DialogExtension()
|
||||||
|
dialogExtension?.show(childFragmentManager, "Extention")
|
||||||
|
}
|
||||||
|
binding.disktext.setOnClickListener {
|
||||||
|
dialogDiskPart=dialogDiskPart?: DialogDiskPart()
|
||||||
|
dialogDiskPart?.show(childFragmentManager, "DiskPart")
|
||||||
|
}
|
||||||
initText()
|
initText()
|
||||||
return binding.root
|
return binding.root
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,11 +7,13 @@ 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.ActivitySensorEachBinding
|
import com.tools.device.devcheck.databinding.ActivitySensorEachBinding
|
||||||
|
import com.tools.device.devcheck.dialog.CustomPopView
|
||||||
|
|
||||||
class SensorEachActivity : AppCompatActivity() {
|
class SensorEachActivity : AppCompatActivity() {
|
||||||
companion object{
|
companion object{
|
||||||
const val TOP_TITLE = "title"
|
const val TOP_TITLE = "title"
|
||||||
}
|
}
|
||||||
|
private lateinit var customPopView: CustomPopView
|
||||||
private lateinit var binding: ActivitySensorEachBinding
|
private lateinit var binding: ActivitySensorEachBinding
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
@ -22,6 +24,12 @@ class SensorEachActivity : AppCompatActivity() {
|
|||||||
binding.imgBack.setOnClickListener {
|
binding.imgBack.setOnClickListener {
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
customPopView =CustomPopView(this,4,callback = {text->
|
||||||
|
|
||||||
|
})
|
||||||
|
binding.imageTool.setOnClickListener {
|
||||||
|
customPopView.show(binding.imageTool)
|
||||||
|
}
|
||||||
initText()
|
initText()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,7 @@ class TestActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun initClick() {
|
private fun initClick() {
|
||||||
|
binding.backBtn.setOnClickListener { finish() }
|
||||||
binding.toolItem1.root.setOnClickListener {
|
binding.toolItem1.root.setOnClickListener {
|
||||||
intent = Intent(this, TestOtherActivity::class.java)
|
intent = Intent(this, TestOtherActivity::class.java)
|
||||||
intent.putExtra(TestOtherActivity.TYPE_KEY, getString(R.string.flashlight))
|
intent.putExtra(TestOtherActivity.TYPE_KEY, getString(R.string.flashlight))
|
||||||
|
|||||||
@ -20,6 +20,7 @@ class TestOtherActivity : AppCompatActivity() {
|
|||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
binding = ActivityTestOtherBinding.inflate(layoutInflater)
|
binding = ActivityTestOtherBinding.inflate(layoutInflater)
|
||||||
setContentView(binding.root)
|
setContentView(binding.root)
|
||||||
|
binding.back.setOnClickListener { finish() }
|
||||||
when (intent.getStringExtra(TYPE_KEY)) {
|
when (intent.getStringExtra(TYPE_KEY)) {
|
||||||
getString(R.string.flashlight) -> {
|
getString(R.string.flashlight) -> {
|
||||||
binding.title.text = getString(R.string.flashlight)
|
binding.title.text = getString(R.string.flashlight)
|
||||||
|
|||||||
@ -42,7 +42,7 @@ class CustomPopView(context: Context,type: Int,private val callback: (String) ->
|
|||||||
setType()
|
setType()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setType() {//0:簇1或簇2 1:隐藏深度休眠 2:主页更多
|
private fun setType() {//0:簇1或簇2 1:隐藏深度休眠 2:主页更多 3:公制单位和重置 4:公制单位
|
||||||
when (type) {
|
when (type) {
|
||||||
0 -> {
|
0 -> {
|
||||||
binding.popCluster.visibility = View.VISIBLE
|
binding.popCluster.visibility = View.VISIBLE
|
||||||
@ -83,6 +83,13 @@ class CustomPopView(context: Context,type: Int,private val callback: (String) ->
|
|||||||
binding.popMore.visibility = View.VISIBLE
|
binding.popMore.visibility = View.VISIBLE
|
||||||
binding.llHide.visibility = View.GONE
|
binding.llHide.visibility = View.GONE
|
||||||
}
|
}
|
||||||
|
4->{
|
||||||
|
binding.popCluster.visibility = View.GONE
|
||||||
|
binding.popSleep.visibility = View.GONE
|
||||||
|
binding.popMore.visibility = View.VISIBLE
|
||||||
|
binding.llMore2.visibility = View.GONE
|
||||||
|
binding.llHide.visibility = View.GONE
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,36 @@
|
|||||||
|
package com.tools.device.devcheck.dialog
|
||||||
|
|
||||||
|
import android.graphics.Typeface
|
||||||
|
import android.os.Bundle
|
||||||
|
import android.text.SpannableString
|
||||||
|
import android.text.style.StyleSpan
|
||||||
|
import android.view.View
|
||||||
|
import com.tools.device.devcheck.R
|
||||||
|
import com.tools.device.devcheck.base.BaseDialogFragment
|
||||||
|
import com.tools.device.devcheck.databinding.DialogCameraMoreBinding
|
||||||
|
import com.tools.device.devcheck.databinding.DialogCpuInfoBinding
|
||||||
|
|
||||||
|
class DialogCameraMore(private val type:Int) :BaseDialogFragment<DialogCameraMoreBinding>(DialogCameraMoreBinding::inflate){
|
||||||
|
override fun getTitle(): String = if(type==0){
|
||||||
|
resources.getString(R.string.rear_camera_1)}
|
||||||
|
else{
|
||||||
|
resources.getString(R.string.front_camera_1)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun getIconRes(): Int? =9
|
||||||
|
|
||||||
|
override fun getDoubleBtn(): Boolean? = false
|
||||||
|
|
||||||
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onNegativeClick() {
|
||||||
|
super.onNegativeClick()
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onPositiveClick() {
|
||||||
|
super.onPositiveClick()
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,29 @@
|
|||||||
|
package com.tools.device.devcheck.dialog
|
||||||
|
|
||||||
|
import android.os.Bundle
|
||||||
|
import android.view.View
|
||||||
|
import com.tools.device.devcheck.R
|
||||||
|
import com.tools.device.devcheck.base.BaseDialogFragment
|
||||||
|
import com.tools.device.devcheck.databinding.DialogDiskPartBinding
|
||||||
|
import com.tools.device.devcheck.databinding.DialogExtentionBinding
|
||||||
|
|
||||||
|
class DialogDiskPart :BaseDialogFragment<DialogDiskPartBinding>(DialogDiskPartBinding::inflate){
|
||||||
|
override fun getTitle(): String = resources.getString(R.string.disk_partitions)
|
||||||
|
|
||||||
|
override fun getIconRes(): Int? =8
|
||||||
|
|
||||||
|
override fun getDoubleBtn(): Boolean? = false
|
||||||
|
|
||||||
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onNegativeClick() {
|
||||||
|
super.onNegativeClick()
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onPositiveClick() {
|
||||||
|
super.onPositiveClick()
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package com.tools.device.devcheck.dialog
|
||||||
|
|
||||||
|
import android.os.Bundle
|
||||||
|
import android.view.View
|
||||||
|
import com.tools.device.devcheck.R
|
||||||
|
import com.tools.device.devcheck.base.BaseDialogFragment
|
||||||
|
import com.tools.device.devcheck.databinding.DialogExtentionBinding
|
||||||
|
|
||||||
|
class DialogExtension :BaseDialogFragment<DialogExtentionBinding>(DialogExtentionBinding::inflate){
|
||||||
|
override fun getTitle(): String = resources.getString(R.string.extensions)
|
||||||
|
|
||||||
|
override fun getIconRes(): Int? =6
|
||||||
|
|
||||||
|
override fun getDoubleBtn(): Boolean? = false
|
||||||
|
|
||||||
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onNegativeClick() {
|
||||||
|
super.onNegativeClick()
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onPositiveClick() {
|
||||||
|
super.onPositiveClick()
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -10,10 +10,11 @@ import android.view.WindowManager
|
|||||||
import androidx.core.graphics.drawable.toDrawable
|
import androidx.core.graphics.drawable.toDrawable
|
||||||
import androidx.fragment.app.DialogFragment
|
import androidx.fragment.app.DialogFragment
|
||||||
import com.tools.device.devcheck.databinding.DialogAppClickBinding
|
import com.tools.device.devcheck.databinding.DialogAppClickBinding
|
||||||
|
import com.tools.device.devcheck.databinding.DialogTempBinding
|
||||||
|
|
||||||
class TempDialogFragment : DialogFragment() {
|
class TempDialogFragment : DialogFragment() {
|
||||||
|
|
||||||
private var _binding: DialogAppClickBinding? = null
|
private var _binding: DialogTempBinding? = null
|
||||||
private val baseBinding get() = _binding!!
|
private val baseBinding get() = _binding!!
|
||||||
|
|
||||||
|
|
||||||
@ -24,7 +25,7 @@ class TempDialogFragment : DialogFragment() {
|
|||||||
container: ViewGroup?,
|
container: ViewGroup?,
|
||||||
savedInstanceState: Bundle?
|
savedInstanceState: Bundle?
|
||||||
): View {
|
): View {
|
||||||
_binding = DialogAppClickBinding.inflate(inflater, container, false)
|
_binding = DialogTempBinding.inflate(inflater, container, false)
|
||||||
return baseBinding.root
|
return baseBinding.root
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
package com.tools.device.devcheck.main
|
package com.tools.device.devcheck.main
|
||||||
|
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
|
import android.view.View
|
||||||
import android.widget.ImageView
|
import android.widget.ImageView
|
||||||
import androidx.core.view.isVisible
|
import androidx.core.view.isVisible
|
||||||
import androidx.viewpager2.widget.ViewPager2
|
import androidx.viewpager2.widget.ViewPager2
|
||||||
@ -43,7 +44,7 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
|
|||||||
registerOnPageChangeCallback(object : ViewPager2.OnPageChangeCallback() {
|
registerOnPageChangeCallback(object : ViewPager2.OnPageChangeCallback() {
|
||||||
override fun onPageSelected(position: Int) {
|
override fun onPageSelected(position: Int) {
|
||||||
super.onPageSelected(position)
|
super.onPageSelected(position)
|
||||||
|
updateButtonVisibility(position)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}) { tab, position ->
|
}) { tab, position ->
|
||||||
@ -62,6 +63,67 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
|
|||||||
binding.imageTool.setOnClickListener {
|
binding.imageTool.setOnClickListener {
|
||||||
customPopView.show(binding.imageTool)
|
customPopView.show(binding.imageTool)
|
||||||
}
|
}
|
||||||
|
binding.searchIcon.setOnClickListener {
|
||||||
|
binding.textAppName.visibility= View.GONE
|
||||||
|
binding.imageTool.visibility= View.GONE
|
||||||
|
binding.searchIcon.visibility= View.GONE
|
||||||
|
binding.searchLayout.visibility= View.VISIBLE
|
||||||
|
}
|
||||||
|
binding.searchClose.setOnClickListener {
|
||||||
|
binding.textAppName.visibility= View.VISIBLE
|
||||||
|
binding.imageTool.visibility= View.VISIBLE
|
||||||
|
binding.searchIcon.visibility= View.VISIBLE
|
||||||
|
binding.searchLayout.visibility= View.GONE
|
||||||
|
}
|
||||||
|
initButtons()
|
||||||
|
}
|
||||||
|
private fun updateButtonVisibility(currentPosition: Int) {
|
||||||
|
if (currentPosition == 5) {
|
||||||
|
// 在 AppsFragment 时显示特殊按钮
|
||||||
|
binding.searchIcon.visibility = View.VISIBLE
|
||||||
|
binding.llBottom.visibility= View.VISIBLE
|
||||||
|
} else {
|
||||||
|
// 在其他 Fragment 时隐藏特殊按钮
|
||||||
|
binding.searchIcon.visibility = View.GONE
|
||||||
|
binding.llBottom.visibility= View.GONE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private fun initButtons() {
|
||||||
|
switchTab(0)
|
||||||
|
binding.llUser.setOnClickListener { switchTab(0) }
|
||||||
|
binding.llSystem.setOnClickListener { switchTab(1) }
|
||||||
|
binding.llAll.setOnClickListener { switchTab(2) }
|
||||||
|
}
|
||||||
|
private fun switchTab(n: Int) {
|
||||||
|
when(n){
|
||||||
|
0->{
|
||||||
|
binding.back1.visibility = View.VISIBLE
|
||||||
|
binding.back2.visibility = View.INVISIBLE
|
||||||
|
binding.back3.visibility = View.INVISIBLE
|
||||||
|
binding.imgUser.isSelected = true
|
||||||
|
binding.imgSystem.isSelected = false
|
||||||
|
binding.imgAll.isSelected = false
|
||||||
|
// binding.tvTitle.text=getString(R.string.user_apps)+"("+30+")"
|
||||||
|
}
|
||||||
|
1->{
|
||||||
|
binding.back1.visibility = View.INVISIBLE
|
||||||
|
binding.back2.visibility = View.VISIBLE
|
||||||
|
binding.back3.visibility = View.INVISIBLE
|
||||||
|
binding.imgUser.isSelected = false
|
||||||
|
binding.imgSystem.isSelected = true
|
||||||
|
binding.imgAll.isSelected = false
|
||||||
|
// binding.tvTitle.text=getString(R.string.system_apps)+"("+30+")"
|
||||||
|
}
|
||||||
|
2->{
|
||||||
|
binding.back1.visibility = View.INVISIBLE
|
||||||
|
binding.back2.visibility = View.INVISIBLE
|
||||||
|
binding.back3.visibility = View.VISIBLE
|
||||||
|
binding.imgUser.isSelected = false
|
||||||
|
binding.imgSystem.isSelected = false
|
||||||
|
binding.imgAll.isSelected = true
|
||||||
|
// binding.tvTitle.text=getString(R.string.installed_apps)+"("+30+")"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun initData() {
|
override fun initData() {
|
||||||
|
|||||||
BIN
app/src/main/res/drawable/main_close.png
Normal file
BIN
app/src/main/res/drawable/main_close.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 415 B |
BIN
app/src/main/res/drawable/search_icon.png
Normal file
BIN
app/src/main/res/drawable/search_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
@ -16,6 +16,7 @@
|
|||||||
android:background="@color/white"
|
android:background="@color/white"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
<ImageView
|
<ImageView
|
||||||
|
android:id="@+id/back_btn"
|
||||||
android:layout_width="50dp"
|
android:layout_width="50dp"
|
||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:src="@drawable/go_back"
|
android:src="@drawable/go_back"
|
||||||
|
|||||||
@ -38,7 +38,18 @@
|
|||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
style="@style/TextTitleBig"
|
style="@style/TextTitleBig"
|
||||||
|
android:visibility="visible"
|
||||||
android:text="@string/app_name" />
|
android:text="@string/app_name" />
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/search_icon"
|
||||||
|
android:layout_width="30dp"
|
||||||
|
android:layout_height="30dp"
|
||||||
|
android:src="@drawable/search_icon"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginEnd="20dp"
|
||||||
|
android:visibility="visible"
|
||||||
|
android:layout_toStartOf="@+id/image_tool"/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/image_tool"
|
android:id="@+id/image_tool"
|
||||||
android:layout_width="18dp"
|
android:layout_width="18dp"
|
||||||
@ -48,7 +59,46 @@
|
|||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:paddingHorizontal="7dp"
|
android:paddingHorizontal="7dp"
|
||||||
android:layout_marginEnd="10dp"
|
android:layout_marginEnd="10dp"
|
||||||
|
android:visibility="visible"
|
||||||
android:src="@drawable/more_point"/>
|
android:src="@drawable/more_point"/>
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/search_layout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="30dp"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:paddingHorizontal="10dp"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:layout_toEndOf="@+id/image_sidebar"
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:background="#B3B3B3" />
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="30dp"
|
||||||
|
android:layout_height="30dp"
|
||||||
|
android:src="@drawable/search_icon"
|
||||||
|
app:tint="#B3B3B3"
|
||||||
|
android:layout_marginEnd="20dp"/>
|
||||||
|
<EditText
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@null"
|
||||||
|
/>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/search_close"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:paddingVertical="9dp"
|
||||||
|
android:src="@drawable/main_close"/>
|
||||||
|
</LinearLayout>
|
||||||
|
</RelativeLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
||||||
@ -77,4 +127,127 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/llBottom"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:elevation="20dp"
|
||||||
|
android:background="@color/white"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/llUser"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:paddingVertical="13dp"
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
android:id="@+id/back1"
|
||||||
|
android:layout_width="44dp"
|
||||||
|
android:layout_height="44dp"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
android:background="@drawable/progress_oval"/>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imgUser"
|
||||||
|
android:layout_width="26dp"
|
||||||
|
android:layout_height="26dp"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/back1"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/back1"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
android:src="@drawable/user_ic_sel" />
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/tvUser"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="15sp"
|
||||||
|
style="@style/TextCheck"
|
||||||
|
android:layout_marginTop="5dp"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/back1"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/back1"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/back1"
|
||||||
|
android:text="@string/user"/>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/llSystem"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:paddingVertical="13dp"
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
android:id="@+id/back2"
|
||||||
|
android:layout_width="44dp"
|
||||||
|
android:layout_height="44dp"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
android:visibility="invisible"
|
||||||
|
android:background="@drawable/progress_oval"/>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imgSystem"
|
||||||
|
android:layout_width="26dp"
|
||||||
|
android:layout_height="26dp"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/back2"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/back2"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
android:src="@drawable/system_ic_sel" />
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/tvSystem"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="15sp"
|
||||||
|
style="@style/TextCheck"
|
||||||
|
android:layout_marginTop="5dp"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/back2"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/back2"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/back2"
|
||||||
|
android:text="@string/system"/>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/llAll"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:paddingVertical="13dp"
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
android:id="@+id/back3"
|
||||||
|
android:layout_width="44dp"
|
||||||
|
android:layout_height="44dp"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
android:visibility="invisible"
|
||||||
|
android:background="@drawable/progress_oval"/>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imgAll"
|
||||||
|
android:layout_width="26dp"
|
||||||
|
android:layout_height="26dp"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/back3"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/back3"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
android:src="@drawable/all_ic_sel" />
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/tvAll"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="15sp"
|
||||||
|
style="@style/TextCheck"
|
||||||
|
android:layout_marginTop="5dp"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/back3"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/back3"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/back3"
|
||||||
|
android:text="@string/all"/>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
|
|||||||
@ -16,6 +16,7 @@
|
|||||||
android:background="@color/white"
|
android:background="@color/white"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
<ImageView
|
<ImageView
|
||||||
|
android:id="@+id/back_btn"
|
||||||
android:layout_width="50dp"
|
android:layout_width="50dp"
|
||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:src="@drawable/go_back"
|
android:src="@drawable/go_back"
|
||||||
|
|||||||
@ -22,6 +22,7 @@
|
|||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
<ImageView
|
<ImageView
|
||||||
|
android:id="@+id/back"
|
||||||
android:layout_width="50dp"
|
android:layout_width="50dp"
|
||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:src="@drawable/go_back"
|
android:src="@drawable/go_back"
|
||||||
@ -275,6 +276,10 @@
|
|||||||
android:paddingVertical="7dp"
|
android:paddingVertical="7dp"
|
||||||
android:paddingHorizontal="42dp"
|
android:paddingHorizontal="42dp"
|
||||||
android:background="@drawable/is_working_btn" />
|
android:background="@drawable/is_working_btn" />
|
||||||
|
<View
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_weight="1"/>
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
style="@style/TextDialogSubTitle"
|
style="@style/TextDialogSubTitle"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -282,7 +287,6 @@
|
|||||||
android:text="@string/no"
|
android:text="@string/no"
|
||||||
android:paddingVertical="7dp"
|
android:paddingVertical="7dp"
|
||||||
android:paddingHorizontal="42dp"
|
android:paddingHorizontal="42dp"
|
||||||
android:layout_marginStart="72dp"
|
|
||||||
android:background="@drawable/is_working_btn" />
|
android:background="@drawable/is_working_btn" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
202
app/src/main/res/layout/dialog_camera_more.xml
Normal file
202
app/src/main/res/layout/dialog_camera_more.xml
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:paddingVertical="3dp">
|
||||||
|
|
||||||
|
<androidx.core.widget.NestedScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/tv1"
|
||||||
|
app:labelText="@string/megapixels"/>
|
||||||
|
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/tv2"
|
||||||
|
app:labelText="@string/resolution"/>
|
||||||
|
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/tv3"
|
||||||
|
app:labelText="@string/sensor_size"/>
|
||||||
|
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/tv4"
|
||||||
|
app:labelText="@string/pixel_size"/>
|
||||||
|
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/tv5"
|
||||||
|
app:labelText="Filter color arrangement"/>
|
||||||
|
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/tv6"
|
||||||
|
app:labelText="@string/aperture"/>
|
||||||
|
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/tv7"
|
||||||
|
app:labelText="@string/focal_length"/>
|
||||||
|
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/tv8"
|
||||||
|
app:labelText="@string/_35mm_equival_entfocal_length"/>
|
||||||
|
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/tv9"
|
||||||
|
app:labelText="@string/crop_factor"/>
|
||||||
|
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/tv10"
|
||||||
|
app:labelText="@string/field_of_view"/>
|
||||||
|
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/tv11"
|
||||||
|
app:labelText="@string/shutter_speed"/>
|
||||||
|
<com.tools.device.devcheck.custom.LabelValueCustomView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/tv12"
|
||||||
|
app:labelText="@string/iso_sensitivity_range"/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:paddingHorizontal="20dp">
|
||||||
|
<include layout="@layout/common_check_style" android:id="@+id/check1"/>
|
||||||
|
<include layout="@layout/common_check_style" android:id="@+id/check2"/>
|
||||||
|
<include layout="@layout/common_check_style" android:id="@+id/check3"/>
|
||||||
|
<include layout="@layout/common_check_style" android:id="@+id/check4"/>
|
||||||
|
<include layout="@layout/common_check_style" android:id="@+id/check5"/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentLeft"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Capabilities"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="High speed video"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentLeft"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Exposure modes"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Manual, Auto, Flash"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentLeft"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Autofocus modes"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Manual, Auto, Macro,
|
||||||
|
Continuous video, Continuous
|
||||||
|
picture"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentLeft"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="White balance modes"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Auto, Off, Incandescent,Fluorescent, Daylight, Cloudy"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
>
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentLeft"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Scene modes"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Face priority, Action, Portrait,Landscape, Night, Nightportrait, Theatre, Beach,Snow, Fireworks, Candlelight,High speed video"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
290
app/src/main/res/layout/dialog_disk_part.xml
Normal file
290
app/src/main/res/layout/dialog_disk_part.xml
Normal file
@ -0,0 +1,290 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:paddingVertical="3dp">
|
||||||
|
|
||||||
|
<androidx.core.widget.NestedScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingHorizontal="15dp"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="19sp"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:text="/"
|
||||||
|
/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_marginTop="11dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentLeft"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="19sp"
|
||||||
|
android:text="Partition"
|
||||||
|
android:textColor="#484848"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="20dp"
|
||||||
|
android:textSize="19sp"
|
||||||
|
android:text="@string/apps" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentLeft"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="19sp"
|
||||||
|
android:textColor="#484848"
|
||||||
|
android:text="Vendor"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="20dp"
|
||||||
|
android:textSize="19sp"
|
||||||
|
android:text="@string/apps"
|
||||||
|
tools:ignore="RelativeOverlap" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextDialogLabel"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="2.12GB"
|
||||||
|
android:textSize="21sp"
|
||||||
|
android:textStyle="normal"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/stor2"
|
||||||
|
style="@style/TextDialogLabel"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="read only"
|
||||||
|
android:textSize="21sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextTool21"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="2.22 GB used"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="normal" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/stor3"
|
||||||
|
style="@style/TextTool21"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="3.75 GB free"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="normal" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<SeekBar
|
||||||
|
android:id="@+id/seekbar5"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="10dp"
|
||||||
|
android:maxHeight="10dp"
|
||||||
|
android:minHeight="10dp"
|
||||||
|
android:padding="0dp"
|
||||||
|
android:progress="50"
|
||||||
|
android:progressDrawable="@drawable/progress_bg"
|
||||||
|
android:thumb="@drawable/progress_oval"
|
||||||
|
android:layout_marginBottom="40dp"
|
||||||
|
android:thumbOffset="0dp" />
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingHorizontal="15dp"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextSecondaryTitle"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="19sp"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:text="/"
|
||||||
|
/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_marginTop="11dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentLeft"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="19sp"
|
||||||
|
android:text="Partition"
|
||||||
|
android:textColor="#484848"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="20dp"
|
||||||
|
android:textSize="19sp"
|
||||||
|
android:text="@string/apps" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentLeft"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="19sp"
|
||||||
|
android:textColor="#484848"
|
||||||
|
android:text="Vendor"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextContentRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="20dp"
|
||||||
|
android:textSize="19sp"
|
||||||
|
android:text="@string/apps"
|
||||||
|
tools:ignore="RelativeOverlap" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextDialogLabel"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="2.12GB"
|
||||||
|
android:textSize="21sp"
|
||||||
|
android:textStyle="normal"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextDialogLabel"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="read only"
|
||||||
|
android:textSize="21sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextTool21"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="2.22 GB used"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="normal" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
style="@style/TextTool21"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="3.75 GB free"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="normal" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<SeekBar
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="10dp"
|
||||||
|
android:maxHeight="10dp"
|
||||||
|
android:minHeight="10dp"
|
||||||
|
android:padding="0dp"
|
||||||
|
android:progress="50"
|
||||||
|
android:progressDrawable="@drawable/progress_bg"
|
||||||
|
android:thumb="@drawable/progress_oval"
|
||||||
|
android:layout_marginBottom="40dp"
|
||||||
|
android:thumbOffset="0dp" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
140
app/src/main/res/layout/dialog_extention.xml
Normal file
140
app/src/main/res/layout/dialog_extention.xml
Normal file
@ -0,0 +1,140 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:paddingHorizontal="13dp"
|
||||||
|
android:paddingVertical="3dp">
|
||||||
|
|
||||||
|
<androidx.core.widget.NestedScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/textContent"
|
||||||
|
style="@style/TextDialogLabel"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="GL_EXT_debug_marker
|
||||||
|
GL_ARM_rgba8
|
||||||
|
GL_ARM_mali_shader_binary
|
||||||
|
GL_OES_depth24
|
||||||
|
GL_OES_depth_texture GL_O
|
||||||
|
ES_depth_texture_cube_map
|
||||||
|
GL_OES_packed_depth_stencil
|
||||||
|
GL_OES_rgb8_rgba8
|
||||||
|
GL_EXT_read_format_bgra
|
||||||
|
GL_OES_compressed_palet
|
||||||
|
ted_texture GL_OES_comp
|
||||||
|
ressed_ETC1_RGB8_texture
|
||||||
|
GL_OES_standard_derivatives
|
||||||
|
GL_OES_EGL_image
|
||||||
|
GL_OES_EGL_image_external
|
||||||
|
GL_OES_EGL_image_externa
|
||||||
|
L_essl3 GLLOES_EGL_sync
|
||||||
|
GL_OES_texture_npot
|
||||||
|
GL_OES_vertex_half_float GL_O
|
||||||
|
ES_required_internalformat
|
||||||
|
GL_OES_vertex_array_object
|
||||||
|
GL_OES_mapbuffer GL_EXT
|
||||||
|
texture_format_BGRA8888
|
||||||
|
GL_EXT_texture_rg GL_EXTtex
|
||||||
|
ture_type_2_10_10_10_REV
|
||||||
|
GL_OES_fbo_render_mipmap
|
||||||
|
GL_OES_element_index_uint
|
||||||
|
GL_EXT_shadow_samplers GL
|
||||||
|
LOES_texture_compression_astc
|
||||||
|
GL_KHR_texture_compress
|
||||||
|
ion_astc_Idr GL_KHR_textu
|
||||||
|
re_compression_astc_hdr
|
||||||
|
GL_KHR_texture_compression
|
||||||
|
astc_sliced_3d GL.EXT_texture_c
|
||||||
|
ompression_astc_decode_mode
|
||||||
|
GL_EXT_texture_compression
|
||||||
|
astc_decode_mode_rgb9e5
|
||||||
|
GL_KHR_debug GL EXT
|
||||||
|
occlusion_query_boolean
|
||||||
|
GL_EXT_disjoint_timer_query
|
||||||
|
GL_EXT_blend_minmax
|
||||||
|
GL_EXT_discard_framebuffer
|
||||||
|
GL_OES_get_program_binary
|
||||||
|
GL_OES_texture_3D
|
||||||
|
GL_EXT_texture_storage
|
||||||
|
GL_EXT_multisampled_rend
|
||||||
|
er_to_texture GL_EXT_multis
|
||||||
|
ampled_render_to_texture2
|
||||||
|
GL_OES_surfaceless_context
|
||||||
|
GL OES_texture_stencil8 GL
|
||||||
|
EXT_shader_pixel_local_storage
|
||||||
|
GL_ARM_shader_framebuffe
|
||||||
|
rfetch GL_ARM_shader_fram
|
||||||
|
ebuffer_fetch_depth_stencil
|
||||||
|
GL_ARM_mali_program_binary
|
||||||
|
GL_EXT_sRGB
|
||||||
|
GL_EXT_sRGB_write_control
|
||||||
|
GL_EXT_texture_sRGB_decode
|
||||||
|
GL_EXT_texture_sRGB_R8
|
||||||
|
GL_EXT_texture_sRGBRG8GL
|
||||||
|
KHR_blend_equation_advanced
|
||||||
|
GL_KHR_blend_equation_ad
|
||||||
|
vanced_coherent GL_OES_textur
|
||||||
|
e_storage_multisample_2d_array
|
||||||
|
GL_OES_shader_image_atomic
|
||||||
|
GL_EXT_robustness
|
||||||
|
GL_EXT_draw_buffers_indexed
|
||||||
|
GL_OES_draw_buffers_indexed
|
||||||
|
GL_EXTtexture_border_clamp
|
||||||
|
GL_OES_texture_border_clamp
|
||||||
|
GL_EXTtexture_cube_map_a
|
||||||
|
rray GL_OES_texture_cube_map
|
||||||
|
_array GL_OES_sample_variables
|
||||||
|
GL_OES_sample_shading
|
||||||
|
GL_OES_shader_multi
|
||||||
|
sample_interpolation
|
||||||
|
GL_EXTshader_io_blocks
|
||||||
|
GL_OES_shader_io_blocks
|
||||||
|
GL EXT tessellation shader
|
||||||
|
GL_OES_tessellation_shader
|
||||||
|
GL_EXT_primitive_bounding
|
||||||
|
box GL OES_primitive_boundin
|
||||||
|
g_box GL_EXT_geometry_shader
|
||||||
|
GL_OES_geometry_shader
|
||||||
|
GL_ANDROID_extension_p
|
||||||
|
ack_es31a GL_EXT_gpu_ shader5
|
||||||
|
GL_OES_gpu shader5
|
||||||
|
GL_EXT_texture_buffer
|
||||||
|
GL_OES_texture_buffer
|
||||||
|
GL_EXT_copy_image
|
||||||
|
GL_OES_copy_image
|
||||||
|
GL_EXTLshader_non_cons
|
||||||
|
tant_global_initializers
|
||||||
|
GL_EXT_color_buffer_half_float
|
||||||
|
GL_EXT_color_buffer_float
|
||||||
|
GL_EXTYUVtarget
|
||||||
|
GL_OVR_multiview
|
||||||
|
GL_OVR_multiview2
|
||||||
|
GL_OVR_multiview_multis
|
||||||
|
ampled_render_to_texture
|
||||||
|
GL_KHR_robustness
|
||||||
|
GL_KHR_robust_buffer_ac
|
||||||
|
cess_behavior GL_EXT_dra
|
||||||
|
w_elements_base_vertex GL_O
|
||||||
|
ES_draw_elements_base_vertex
|
||||||
|
GL_EXT_protected_textures
|
||||||
|
GL_EXT_buffer_storage
|
||||||
|
GL_EXT_external_buffer
|
||||||
|
GL_EXT_EGL_image_array
|
||||||
|
GL_EXT_clip_control"
|
||||||
|
android:textStyle="normal"
|
||||||
|
android:textSize="19sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
@ -202,7 +202,7 @@
|
|||||||
android:textSize="15sp"
|
android:textSize="15sp"
|
||||||
android:text="@string/apps"
|
android:text="@string/apps"
|
||||||
tools:ignore="RelativeOverlap" />
|
tools:ignore="RelativeOverlap" />
|
||||||
</LinearLayout>>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|||||||
@ -13,16 +13,15 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/llBottom"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:paddingHorizontal="@dimen/dashboard_fragment_padding_horizontal"
|
android:paddingHorizontal="@dimen/dashboard_fragment_padding_horizontal"
|
||||||
android:paddingTop="@dimen/dashboard_fragment_padding_vertical"
|
android:paddingTop="@dimen/dashboard_fragment_padding_vertical"
|
||||||
>
|
>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/dashboard_model_background"
|
android:background="@drawable/dashboard_model_background"
|
||||||
android:paddingVertical="15sp"
|
android:paddingVertical="15sp"
|
||||||
android:paddingHorizontal="20dp"
|
|
||||||
android:orientation="vertical">
|
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"
|
||||||
@ -31,6 +30,7 @@
|
|||||||
android:text="User apps (23)"
|
android:text="User apps (23)"
|
||||||
style="@style/TextDialogSubTitle"
|
style="@style/TextDialogSubTitle"
|
||||||
android:textSize="23sp"
|
android:textSize="23sp"
|
||||||
|
android:layout_marginHorizontal="20dp"
|
||||||
android:layout_marginBottom="16dp"
|
android:layout_marginBottom="16dp"
|
||||||
/>
|
/>
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
@ -41,129 +41,6 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/llBottom"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:elevation="20dp"
|
|
||||||
android:background="@color/white"
|
|
||||||
android:paddingBottom="30dp"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
|
||||||
android:id="@+id/llUser"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:paddingVertical="13dp"
|
|
||||||
>
|
|
||||||
<View
|
|
||||||
android:id="@+id/back1"
|
|
||||||
android:layout_width="44dp"
|
|
||||||
android:layout_height="44dp"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
android:background="@drawable/progress_oval"/>
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/imgUser"
|
|
||||||
android:layout_width="26dp"
|
|
||||||
android:layout_height="26dp"
|
|
||||||
app:layout_constraintTop_toTopOf="@+id/back1"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/back1"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
android:src="@drawable/user_ic_sel" />
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
|
||||||
android:id="@+id/tvUser"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textSize="15sp"
|
|
||||||
style="@style/TextCheck"
|
|
||||||
android:layout_marginTop="5dp"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/back1"
|
|
||||||
app:layout_constraintStart_toStartOf="@+id/back1"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/back1"
|
|
||||||
android:text="@string/user"/>
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
|
||||||
android:id="@+id/llSystem"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:paddingVertical="13dp"
|
|
||||||
>
|
|
||||||
<View
|
|
||||||
android:id="@+id/back2"
|
|
||||||
android:layout_width="44dp"
|
|
||||||
android:layout_height="44dp"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
android:visibility="invisible"
|
|
||||||
android:background="@drawable/progress_oval"/>
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/imgSystem"
|
|
||||||
android:layout_width="26dp"
|
|
||||||
android:layout_height="26dp"
|
|
||||||
app:layout_constraintTop_toTopOf="@+id/back2"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/back2"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
android:src="@drawable/system_ic_sel" />
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
|
||||||
android:id="@+id/tvSystem"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textSize="15sp"
|
|
||||||
style="@style/TextCheck"
|
|
||||||
android:layout_marginTop="5dp"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/back2"
|
|
||||||
app:layout_constraintStart_toStartOf="@+id/back2"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/back2"
|
|
||||||
android:text="@string/system"/>
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
|
||||||
android:id="@+id/llAll"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:paddingVertical="13dp"
|
|
||||||
>
|
|
||||||
<View
|
|
||||||
android:id="@+id/back3"
|
|
||||||
android:layout_width="44dp"
|
|
||||||
android:layout_height="44dp"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
android:visibility="invisible"
|
|
||||||
android:background="@drawable/progress_oval"/>
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/imgAll"
|
|
||||||
android:layout_width="26dp"
|
|
||||||
android:layout_height="26dp"
|
|
||||||
app:layout_constraintTop_toTopOf="@+id/back3"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/back3"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
android:src="@drawable/all_ic_sel" />
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
|
||||||
android:id="@+id/tvAll"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textSize="15sp"
|
|
||||||
style="@style/TextCheck"
|
|
||||||
android:layout_marginTop="5dp"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/back3"
|
|
||||||
app:layout_constraintStart_toStartOf="@+id/back3"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/back3"
|
|
||||||
android:text="@string/all"/>
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||||
@ -85,7 +85,7 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="15dp"
|
||||||
android:background="@drawable/dashboard_model_background"
|
android:background="@drawable/dashboard_model_background"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="15dp"
|
android:padding="15dp"
|
||||||
@ -134,7 +134,7 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="15dp"
|
||||||
android:background="@drawable/dashboard_model_background"
|
android:background="@drawable/dashboard_model_background"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="15dp"
|
android:padding="15dp"
|
||||||
@ -183,7 +183,7 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="15dp"
|
||||||
android:background="@drawable/dashboard_model_background"
|
android:background="@drawable/dashboard_model_background"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="15dp"
|
android:padding="15dp"
|
||||||
|
|||||||
@ -1,11 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-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_marginVertical="16dp"
|
android:orientation="vertical"
|
||||||
android:orientation="horizontal"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:id="@+id/view"
|
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginVertical="16dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingHorizontal="20dp"
|
||||||
|
android:id="@+id/view">
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="45dp"
|
android:layout_width="45dp"
|
||||||
android:layout_height="45dp"
|
android:layout_height="45dp"
|
||||||
@ -33,5 +37,9 @@
|
|||||||
android:textSize="15sp"
|
android:textSize="15sp"
|
||||||
android:text="com.apkcombo.app" />
|
android:text="com.apkcombo.app" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
<View
|
||||||
|
android:id="@+id/view2"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="100dp"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -278,5 +278,12 @@
|
|||||||
<string name="set_as">Set as:</string>
|
<string name="set_as">Set as:</string>
|
||||||
<string name="temperature1">Temperature1</string>
|
<string name="temperature1">Temperature1</string>
|
||||||
<string name="temperature2">Temperature2</string>
|
<string name="temperature2">Temperature2</string>
|
||||||
|
<string name="megapixels">Megapixels</string>
|
||||||
|
<string name="aperture">Aperture</string>
|
||||||
|
<string name="focal_length">Focal length</string>
|
||||||
|
<string name="_35mm_equival_entfocal_length">35mm equival entfocal length</string>
|
||||||
|
<string name="crop_factor">Crop factor</string>
|
||||||
|
<string name="field_of_view">Field of view</string>
|
||||||
|
<string name="iso_sensitivity_range">ISO sensitivity range</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
Loading…
Reference in New Issue
Block a user