Skip to content

Conversation

@addiegupta
Copy link
Contributor

Fixes #869
Changes:
The snackbar is now visible above the bottom navigation view

Screenshots for the change:

pr 870

app:layout_behavior="@string/appbar_scrolling_view_behavior" />

<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/mainSnackbar"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are naming the CoordinatorLayout as mainSnackbar Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That coordinatorLayout is being used to show the snackbar in the main activity. What should i rename it to?

import com.google.android.material.snackbar.Snackbar
import kotlinx.android.synthetic.main.activity_main.navigation
import kotlinx.android.synthetic.main.activity_main.navigationAuth
import kotlinx.android.synthetic.main.activity_main.*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoid wildcard imports

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Will replace it with multiple imports

@addiegupta
Copy link
Contributor Author

I have pushed another commit please review

<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/mainSnackbarCoordinatorLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not good, make it the wrapping element

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have pushed another commit. Please let me know if I still need to make changes to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants