Skip to content

Instantly share code, notes, and snippets.

Michele Lacorte michelelacorte

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.