Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

01.4 Learn to help yourself: no snackbar #27

Closed
jderijke opened this issue Feb 1, 2020 · 2 comments
Closed

01.4 Learn to help yourself: no snackbar #27

jderijke opened this issue Feb 1, 2020 · 2 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@jderijke
Copy link

jderijke commented Feb 1, 2020

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.

@android-dev-lxl android-dev-lxl self-assigned this Feb 6, 2020
@android-dev-lxl android-dev-lxl added the invalid This doesn't seem right label Feb 6, 2020
@android-dev-lxl android-dev-lxl added this to Needs triage in Bug fixing for Kotlin courses via automation Feb 6, 2020
@android-dev-lxl android-dev-lxl moved this from Needs triage to In progress in Bug fixing for Kotlin courses Feb 6, 2020
@android-dev-lxl android-dev-lxl assigned ghost Feb 6, 2020
@android-dev-lxl
Copy link
Contributor

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()
        }
    }

Bug fixing for Kotlin courses automation moved this from In progress to Closed Feb 6, 2020
@jderijke
Copy link
Author

jderijke commented Feb 6, 2020

retested, you are right, my bad

k12e5989 pushed a commit to k12e5989/android-kotlin-fundamentals-apps that referenced this issue Dec 2, 2020
…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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
Development

No branches or pull requests

2 participants