Skip to content

Instantly share code, notes, and snippets.

Sevastyan Savanyuk Sevastyan

Block or report user

Report or block Sevastyan

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
@Sevastyan
Sevastyan / format.sh
Created Feb 9, 2019
Modified `format.sh` script
View format.sh
#!/bin/sh
# ------------------------------------------------------
# Android Studio formatting script.
# ------------------------------------------------------
IDE_BIN_HOME="${0%/*}"
export STUDIO_PROPERTIES=$IDE_BIN_HOME/format.properties
filesToFormat=$(cat -)
@Sevastyan
Sevastyan / ItemDecoration.java
Created Jan 30, 2018 — forked from mandybess/ItemDecoration.java
RecyclerView extension that "sticks" items in the center on scroll
View ItemDecoration.java
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;
public class ItemDecoration extends RecyclerView.ItemDecoration {
/**
*
* {@link #startPadding} and {@link #endPadding} are final and required on initialization
* because {@link android.support.v7.widget.RecyclerView.ItemDecoration} are drawn
You can’t perform that action at this time.