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
| //Gradle Dependency: | |
| //In your build gradle | |
| dependencies { | |
| compile 'com.willowtreeapps:oak-library:1.3.3' | |
| } | |
| //Maven Dependency: | |
| //In your pom.xml |
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
| repositories{ | |
| flatDir{ | |
| dirs 'libs' | |
| } | |
| mavenCentral() | |
| } | |
| dependencies { | |
| compile '**PACKAGE NAME**:**NAME OF AAR**:**VERSION**@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
| //give up |
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
| 100% - FF | |
| 95% - F2 | |
| 90% - E6 | |
| 85% - D9 | |
| 80% - CC | |
| 75% - BF | |
| 70% - B3 | |
| 65% - A6 | |
| 60% - 99 | |
| 55% - 8C |
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 long getFreeMemory() { | |
| File externalStorageDir = Environment.getExternalStorageDirectory(); | |
| StatFs statFs = new StatFs(externalStorageDir.getAbsolutePath()); | |
| long blocks = statFs.getAvailableBlocks(); | |
| long free = (blocks * statFs.getBlockSize()) / 1024 / 1024; | |
| return free; | |
| } |
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 CommitEditText extends AppCompatEditText { | |
| private CommitListener commitListener; | |
| public CommitEditText(Context context) { | |
| super(context); | |
| } | |
| public CommitEditText(Context context, AttributeSet attrs, int defStyleAttr) { | |
| super(context, attrs, defStyleAttr); | |
| } |
OlderNewer