skip to Main Content

Android Studio – how to fix setOpenableLayout in layout Navigation Drawer Activity

i have a problem why is setOpenableLayout not working? mAppBarConfiguration = new AppBarConfiguration.Builder( R.id.nav_home, R.id.nav_gallery, R.id.nav_slideshow) .setOpenableLayout(drawer) .build(); show error : error: cannot find symbol .setOpenableLayout(drawer) ^ symbol: method setOpenableLayout(DrawerLayout) location: class Builder maybe someone here can help me

VIEW QUESTION

Android Studio – Change activity's button state from fragment

Here I have code from both my activity and my fragment: Activity: class Activity0: AppCompatActivity() { private lateinit var binding: Activity0Binding override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding = Activity0Binding.inflate(layoutInflater) setContentView(binding.root) binding.popUpButton.setOnClickListener { supportFragmentManager.commit { replace(R.id.quiz_fragment_container, Activity0FragmentNull()) } binding.popUpButton.isEnabled =…

VIEW QUESTION

Android Studio – android project its getting some error related to ANDROID_SDK_HOME

(when i try to run the project )error is Build file 'C:UsersjupunDesktoptrid-7codecanyon-22842942-trid-city-guide-android-native-with-admin-panel-firebaseTrid-Android-PackageAndroid codeTrid-CityGuide_v7appbuild.gradle' line: 1 A problem occurred evaluating project ':app'. Failed to apply plugin 'com.android.internal.application'. ANDROID_SDK_HOME is set to the root of your SDK: C:UsersjupunAppDataLocalAndroidSdk ANDROID_SDK_HOME was meant to…

VIEW QUESTION
Back To Top
Search