i don't even know
This commit is contained in:
parent
8294ccaf43
commit
35d28d2a63
@ -2,6 +2,9 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools">
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||||
|
|||||||
@ -1,21 +1,38 @@
|
|||||||
package org.pupes.tabletpccontrol
|
package org.pupes.tabletpccontrol
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
|
import android.widget.Switch
|
||||||
import com.lukelorusso.verticalseekbar.VerticalSeekBar
|
import com.lukelorusso.verticalseekbar.VerticalSeekBar
|
||||||
|
import javax.crypto.Cipher
|
||||||
|
import javax.crypto.spec.IvParameterSpec
|
||||||
|
import javax.crypto.spec.SecretKeySpec
|
||||||
|
import android.util.Base64
|
||||||
|
|
||||||
|
|
||||||
class MainActivity : AppCompatActivity() {
|
class MainActivity : AppCompatActivity() {
|
||||||
|
@SuppressLint("UseSwitchCompatOrMaterialCode")
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
setContentView(R.layout.activity_main)
|
setContentView(R.layout.activity_main)
|
||||||
|
|
||||||
val audioVerticalSeekBar = findViewById<VerticalSeekBar>(R.id.AudioVerticalSeekBar)
|
val audioVerticalSeekBar = findViewById<VerticalSeekBar>(R.id.AudioVerticalSeekBar)
|
||||||
|
val muteSwitch = findViewById<Switch>(R.id.MuteSwitch)
|
||||||
|
|
||||||
audioVerticalSeekBar.setOnProgressChangeListener { progress ->
|
audioVerticalSeekBar.setOnProgressChangeListener { progress ->
|
||||||
// Handle the progress value here
|
// Handle the progress value here
|
||||||
Log.d("VerticalSeekBar", "Current progress: $progress")
|
Log.d("VerticalSeekBar", "Current progress: $progress")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
muteSwitch.setOnCheckedChangeListener { _, isChecked ->
|
||||||
|
// Handle the switch state here
|
||||||
|
Log.d("Switch", "Switch is checked: $isChecked")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -37,7 +37,8 @@
|
|||||||
app:layout_constraintStart_toStartOf="@id/AudioVerticalSeekBar"
|
app:layout_constraintStart_toStartOf="@id/AudioVerticalSeekBar"
|
||||||
app:track="@drawable/switch_track"
|
app:track="@drawable/switch_track"
|
||||||
android:thumb="@drawable/switch_thumb"
|
android:thumb="@drawable/switch_thumb"
|
||||||
tools:ignore="UseSwitchCompatOrMaterialXml" />
|
tools:ignore="UseSwitchCompatOrMaterialXml"
|
||||||
|
/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/VolumeText"
|
android:id="@+id/VolumeText"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user