skip to Main Content

Theme.AppCompat is not found in Android Studio

I need to use Theme.AppCompat.Light.NoActionBar, but Theme.AppCompat is not found in Android Studio how it looks I added implementation 'com.android.support:appcompat-v7:28.0.0' to gradle, but the problem still the same dependencies in gradle: dependencies { implementation 'androidx.core:core-ktx:1.10.1' // implementation 'androidx.room:room-ktx:2.5.1' kapt "androidx.room:room-compiler:2.5.1"…

VIEW QUESTION

How make endless loop between functions using kotlin for java android in android studio?

package com.example.flashlight import android.content.Context import android.hardware.camera2.CameraAccessException import android.hardware.camera2.CameraManager import android.os.Bundle import android.os.Handler import android.os.Looper import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity() { var flashLightStatus: Boolean = false override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) openFlashLight() while (true) { Handler(Looper.getMainLooper()).postDelayed({ //Do something…

VIEW QUESTION
Back To Top
Search