You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
Thank you for reaching out to us. We just verified the code generated for basic activity template in the Android Studio stable version 3.5.3. Snackbar code is generated in the onCreate() method, inside setOnClickListener callback.
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
setSupportActionBar(toolbar)
fab.setOnClickListener { view ->
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show()
}
}
…ing#27)
* Library updates and minsdk
Updated deprecated ViewModelProviders
minsdk to 21
enabled databinding using buildFeatures
* Update build.gradle
* update jdk version.
* Use Proerty syntax
* New options to enable DataBinding using buildFeatures
Android Gradle plugin 4.0.0, to optimize the build performance, introduces a new way to enable build features, such as Data Binding. This uses the buildFeatures block to enable the features.
Minor Gradle updates
Library updates
Updated minSDK
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Maybe I missed something but starting from the Basic Activity template in studio 3.5.3 i do not find a Snackbar in the generated activity.
The text was updated successfully, but these errors were encountered: