Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toolbar refresh #185

Merged
merged 6 commits into from
Dec 6, 2017
Merged

toolbar refresh #185

merged 6 commits into from
Dec 6, 2017

Conversation

eoji
Copy link
Contributor

@eoji eoji commented Nov 28, 2017

what

Started with discovery as a first pass since it's most visible. AppBarLayout no longer has elevation, now has a divider whose alpha is based on how much the user has scrolled. The toolbar is only expanded when at the top of the list.

For fun, I got rid of the awkward selected state in the toolbar on pre 21 devices.

who is she

2017-11-28 17_52_05

@eoji eoji requested a review from swoopej November 30, 2017 02:14
Copy link
Contributor

@swoopej swoopej left a comment

Choose a reason for hiding this comment

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

👍 looks gooddddd

Copy link
Contributor

@luoser luoser left a comment

Choose a reason for hiding this comment

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

such a great solution izzy! makes our toolbar way more clean and functional. just a nonblocking comment but LGTM!

public AlphaBehavior() {
}

public AlphaBehavior(final Context context, final AttributeSet attrs) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice use of a custom view class!!!!!!! only comment here are to annotate the method params @NonNull

@@ -2,6 +2,5 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/dark_gray_click" android:state_focused="true" />
<item android:drawable="@color/dark_gray_click" android:state_pressed="true" />
<item android:drawable="@color/dark_gray_click" android:state_selected="true" />
Copy link
Contributor

Choose a reason for hiding this comment

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

aha this was showing the awkward selected state? thanks!

layout="@layout/horizontal_line_1dp_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_behavior="com.kickstarter.ui.toolbars.AlphaBehavior" />
Copy link
Contributor

Choose a reason for hiding this comment

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

sweeeeeeeeet 🍭

android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">

<android.support.design.widget.AppBarLayout
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for cleaning up this unneeded AppBarLayout!

@eoji
Copy link
Contributor Author

eoji commented Dec 6, 2017

More refresh

@eoji eoji merged commit 5d80ed4 into master Dec 6, 2017
@eoji eoji deleted the toolbar-refresh branch December 6, 2017 22:40
Rcureton pushed a commit that referenced this pull request Jul 31, 2018
* toolbar alpha when scrolling
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.

None yet

3 participants