This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class IndexableRecyclerView extends RecyclerView implements ListIndexer.SectionCallback { | |
private ListIndexer indexer = null; | |
public IndexableRecyclerView(Context context) { | |
super(context); | |
init(); | |
} | |
public IndexableRecyclerView(Context context, AttributeSet attrs) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ListIndexer { | |
public static String[] ALPHABET = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" }; | |
private Paint paint; | |
private float height; | |
private float width; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author npontiff | |
* @since 5/20/2015 | |
* <p/> | |
* This class is used as a utility draw the backgrounds and borders underneath a {@link com.gotchosen.socialexchange.ui.recyclerviews.partdefinitions.PartDefinition} | |
*/ | |
public class PostBorderDrawable extends Drawable { | |
@Inject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class VoteCountView extends View { | |
//color constants | |
private static final @ColorRes int INACTIVE_BACKGROUND_COLOR = R.color.got_chosen_vote_gray; | |
private static final @ColorRes int ACTIVE_BACKGROUND_COLOR = R.color.got_chosen_blue; | |
private static final @ColorRes int DEFAULT_TEXT_COLOR = R.color.divider_color; | |
//Paint objects | |
private Paint mTextPaint; | |
private Paint mBackgroundRectPaint; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# android path | |
export ANDROID_SDK_ROOT=/Users/nicholaspontiff/Documents/Dev/Android/SDK/android-sdk-macosx/ | |
export ANDROID_NDK_ROOT=/Users/nicholaspontiff/Documents/Dev/Android/NDK/android-ndk-r10e/ | |
export PATH=${PATH}:${ANDROID_SDK_ROOT}:${ANDROID_SDK_ROOT}platform-tools/:${ANDROID_NDK_ROOT} |