Skip to content

Instantly share code, notes, and snippets.

Michele Lacorte michelelacorte

Block or report user

Report or block michelelacorte

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@michelelacorte
michelelacorte / shortcutsAnim.txt
Last active Nov 9, 2017
New App Shortcuts animation (PopupContainerWithArrow.java class)
View shortcutsAnim.txt
/*Code from commit
https://github.com/Deletescape-Media/Lawnchair/blob/alpha/app/src/main/java/ch/deletescape/lawnchair/popup/PopupContainerWithArrow.java
*/
private Point startPoint(int y) {
int x;
x = mIsLeftAligned != mIsRtl ? R.dimen.popup_arrow_horizontal_center_start : R.dimen.popup_arrow_horizontal_center_end;
x = getResources().getDimensionPixelSize(x);
if (!mIsLeftAligned) {
x = getMeasuredWidth() - x;
}
You can’t perform that action at this time.