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.support.v4.util.LongSparseArray; | |
import javax.inject.Inject; | |
/** | |
* Debouncer class will allow to avoid fast clicking into views | |
* | |
* @author Saul Diaz | |
*/ | |
public class Debouncer { |
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 com.google.android.*; | |
import com.anderwebs.Ander; | |
import com.warthon.Jake; | |
public class App extends AnderApp { | |
public void onCreate(Bundle bundle) { | |
Anderwebs.noHacks() | |
.runAtFps(60) | |
.noHexagonal() |
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
#!/bin/sh | |
#Usage: export.sh <name of file> <width> <height> | |
mkdir -p drawable-mdpi | |
mkdir -p drawable-hdpi | |
mkdir -p drawable-xhdpi | |
mkdir -p drawable-xxhdpi | |
mkdir -p drawable-xxxhdpi | |
inkscape $1 --export-png=./drawable-mdpi/${1%.*}.png -w$2 -h$3 --export-area-page |
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
<!-- For XML --> | |
<View | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:elevation="@dimen/elevation_level_3"> | |
<!-- Elevation is ignored in XMLs pre-Lollipop, but remember | |
that in those versions, to preserve Z-axis order in | |
layouts, Android handles it on a strict top-bottom | |
ordering (the lower, the higher) --> |
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
### Download Vysor App | |
https://play.google.com/store/apps/details?id=com.koushikdutta.vysor | |
- Execute Vysor on Phone | |
- Enable ADB Settings (Open Developer Options -> Back) | |
- Enable ADB Debugging | |
### Download ADB drivers & Install | |
https://adb.clockworkmod.com/ |
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
class RecyclerRendererAdapter : RecyclerView.Adapter() { | |
val factory : RendererFactory | |
/*...*/ | |
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder { | |
return factory.getRenderer(viewType, | |
..., | |
getInflater(parent.context).inflate(viewType, parent, false)) as RecyclerView.ViewHolder | |
} | |
} |
OlderNewer