.. AndroidToolbox documentation master file, created by sphinx-quickstart on Sat Nov 18 14:12:40 2017.
Welcome to AndroidToolbox's documentation!¶
Tools I usually use in my android apps
Usage:¶
Add it to your build.gradle with:
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
and:
dependencies {
compile 'net.intari:AndroidToolbox:{latest version}'
}
Usage¶
Kotlin helpers¶
Write-once read-only properties:
private val glSurfaceViewDelegate = WriteOnceVal<GLSurfaceView>()
...
glSurfaceViewDelegate.writeOnce(MyGLSurfaceView(this))
// use glSurfaceViewDelegate as regular glSurfaceView
IllegalStateException will be thrown if it will actually be used before writeOnce call. It's better than Delegates.notNull because we can have r/o property (val) instead of r/w property (var) this way.
Logging extensions for any types (using CustomLogger). class.simpleName will be used as TAG.
"HelloWorld".logInfo("message")
this.logException(ex,"message to go with exception")
42.logVerbose("The Answer")
"20!8".logError("Replace and press any key")
1984.logWarning("Big brother watches you")
2000.logInfo("error2k")
2038.logVerbose("error2038")
"amazon".logDebug("debug aws code")
View extensions
Android base classes¶
BaseActivity
BaseActivityWithGNSSSupport
BaseViewModel
BaseActivityWithViewModelSupport
GNSSLocationService
Android 3D Graphics helpers¶
TextureHelper
TextResourceReader
MatrixHelper
ShaderHelper
Geometry
VertexArray
TODO: add more descriptions
Libs also needed¶
- CustomLogger (latest version)
- KalmanLocationManager (latest version)
- ...
TODO: note about libs we import (a lot of Rx ones) and requirements (Java 8)