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
configurations { | |
debugArchives | |
releaseArchives | |
} | |
artifacts { | |
def path = "${project.rootDir}/library/build/outputs/aar/" | |
debugArchives file: file(path + "${project.getName()}-debug.aar") | |
releaseArchives file: file(path + "${project.getName()}-release.aar") | |
} |
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
package com.aashreys.walls.ui.utils; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.drawable.Drawable; | |
import android.os.Build; | |
import android.util.AttributeSet; | |
import android.widget.ImageView; |
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
import android.animation.Animator; | |
import android.animation.AnimatorSet; | |
import android.animation.ObjectAnimator; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.os.Build; | |
import android.support.annotation.ColorRes; | |
import android.support.annotation.DrawableRes; |
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 ChromeTabUtils { | |
public static void openUrl(Context context, String url) { | |
if (isChromeTabSupported(context)) { | |
// Build intent to open Chrome Tab | |
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder(); | |
builder.setToolbarColor(getColor(context, R.color.toolbarBackground)); | |
CustomTabsIntent customTabsIntent = builder.build(); | |
customTabsIntent.launchUrl(context, Uri.parse(url)); | |
} else { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<attr name="selectableItemBackgroundBorderlessCompat" /> | |
</resources> |
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 EndlessScrollAdapter extends RecyclerView.Adapter<EndlessScrollAdapter.ImageViewHolder> { | |
private static final String TAG = EndlessScrollAdapter.class.getSimpleName(); | |
private int loadingThreshold = 5; // Default value | |
private LoadMoreCallback loadMoreCallback; | |
public EndlessScrollAdapter() {} |
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
<resources> | |
<dimen name="spacing_xxs">2dp</dimen> | |
<dimen name="spacing_xs">4dp</dimen> | |
<dimen name="spacing_small">8dp</dimen> | |
<dimen name="spacing_medium">16dp</dimen> | |
<dimen name="spacing_large">24dp</dimen> | |
<dimen name="spacing_xl">32dp</dimen> | |
<dimen name="spacing_xxl">48dp</dimen> | |
<dimen name="spacing_xxxl">72dp</dimen> |
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 AspectRatioImageView extends ImageView { | |
private float widthToHeightRatio; | |
public AspectRatioImageView(Context context) { | |
super(context); | |
} | |
public AspectRatioImageView(Context context, AttributeSet attrs) { | |
super(context, 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
/** | |
* A simple class for managing application migration across updates. | |
* | |
* Created by aashreys on 24/04/17. | |
*/ | |
public class Migrator { | |
private static final String KEY_LAST_VERSION = "migrator_key_last_version"; |
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
/* | |
* Copyright {2017} {Aashrey Kamal Sharma} | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
OlderNewer