package com.xyzshell.myphoneinfo.dialog

import android.graphics.Typeface
import android.os.Bundle
import android.text.SpannableString
import android.text.style.StyleSpan
import android.view.View
import com.xyzshell.myphoneinfo.R
import com.xyzshell.myphoneinfo.base.BaseDialogFragment
import com.xyzshell.myphoneinfo.databinding.DialogCpuInfoBinding
import com.xyzshell.myphoneinfo.databinding.DialogInputBinding

class DialogInput :BaseDialogFragment<DialogInputBinding>(DialogInputBinding::inflate){
    override fun getTitle(): String  = resources.getString(R.string.input_devices)

    override fun getIconRes(): Int? =10

    override fun getDoubleBtn(): Boolean? = false

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        binding.text1.textTitle.text = "input_mt_wrapper"
        binding.text1.textContent.text = "Input Device 1:\n" +
                "input_mt_wrapper\n" +
                "Descriptor:\n" +
                "a988c03908bee014d816\n" +
                "71ffdd909090304130b5\n" +
                "Generation: 14\n" +
                "Location: built-in\n" +
                "Keyboard Type:\n" +
                "non-alphabetic\n" +
                "Has Vibrator: false\n" +
                "Has mic: false\n" +
                "Sources: 0x1103\n" +
                "(keyboard touchscreen)\n" +
                "AXISX:\n" +
                "source=0x1002 min=0.0\n" +
                "max=719.0 flat=0.0\n" +
                "fuzz=0.0 resolution=0.0\n" +
                "AXISY:\n" +
                "source=0x1002 min=0.0\n" +
                "max=1559.0 flat=0.0\n" +
                "fuzz=0.0 resolution=0.0\n" +
                "AXIS PRESSURE:\n" +
                "source-0x1002 min=0.0\n" +
                "max=1.0 flat=0.0 fuzz=0.0\n" +
                "resolution=0.0\n" +
                "AXIS_SIZE:\n" +
                "source=0x1002 min=0.0\n" +
                "max=1.0 flat=0.0 fuzz=0.0\n" +
                "resolution=0.0\n" +
                "AXIS TOUCH_MAJOR:\n" +
                "source=0x1002 min=0.0\n" +
                "max=1718.1385 flat=0.0\n" +
                "fuzz=0.0 resolution=0.0\n" +
                "AXISTOUCH_MINOR:\n" +
                "source=0x1002 min=0.0\n" +
                "max=1718.1385 flat=0.0\n" +
                "fuzz=0.0 resolution=0.0\n" +
                "AXIS TOOL MAJOR:\n" +
                "source=0×1002 min=0.0\n" +
                "max=1718.1385 flat=0.0\n" +
                "fuzz=0.0 resolution=0.0\n" +
                "AXIS TOOL MINOR:\n" +
                "source=0x1002 min=0.0\n" +
                "max=1718.1385 flat-0.0\n" +
                "fuzz=0.0 resolution=0.0\n" +
                "AXIS_ORIENTATION:\n" +
                "source=0x1002\n" +
                "min=-1.5707964\n" +
                "max=1.5707964 flat=0.0\n" +
                "fuzz=0.0 resolution=0.0"
    }

    override fun onNegativeClick() {
        super.onNegativeClick()

    }

    override fun onPositiveClick() {
        super.onPositiveClick()
    }
}