Currently I'm starting a new Activity and calling finish on a current one.
Is there any flag that can be passed to Intent that enables finishing current Activity without a need to call finish manually from code?
So I have a Login Activity
This Activity inflates a login.xml layout which has a USER_NAME and PASSWORD EditText Views, when I enter the Username and Password and click the Login Button I start a new Activity.
The …
I find out that we can use cool flags that scroll both toolbar and even content by using layout_scrollFlags. In my case, I have a layout like this:
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.…