-
Notifications
You must be signed in to change notification settings - Fork 992
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
toolbar refresh #185
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 looks gooddddd
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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" /> |
There was a problem hiding this comment.
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" /> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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!
* toolbar alpha when scrolling
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