Skip to content

Instantly share code, notes, and snippets.

View mochadwi's full-sized avatar
💭
I may be slow to respond.

Mochamad Iqbal Dwi Cahyo mochadwi

💭
I may be slow to respond.
View GitHub Profile
@mochadwi
mochadwi / README.md
Created May 12, 2019 12:10
Android - Data Binding Error
java.lang.RuntimeException: Unable to start activity ComponentInfo{io.mochadwi.go.development/io.mochadwi.view.weather.WeatherActivity}: java.lang.IllegalStateException: Required DataBindingComponent is null in class CustomLoadingBindingImpl. A BindingAdapter in io.mochadwi.util.binding.ProgressBinding is not static and requires an object to use, retrieved from the DataBindingComponent. If you don't use an inflation method taking a DataBindingComponent, use DataBindingUtil.setDefaultComponent or make all BindingAdapter methods static.
@mochadwi
mochadwi / README.md
Created May 7, 2019 16:50
Android - Paging Libray Troubleshoot
@mochadwi
mochadwi / config_release.sh
Created April 23, 2019 12:39
Crashlytics - config_release.sh
#!/bin/sh
releasenotes="app/release-notes.txt"
ls -al
cat $releasenotes
if [ -f "$releasenotes" ]
then
echo "$releasenotes found."
echo "deleting $releasenotes..."
rm $releasenotes
echo "$releasenotes deleted successfully!"
@mochadwi
mochadwi / README.md
Last active April 22, 2019 15:59
Data Binding - Custom Spannable String
@mochadwi
mochadwi / README.md
Created April 13, 2019 15:57
SingeLiveEvent recommended
@mochadwi
mochadwi / README.md
Created April 12, 2019 19:05
Android - Data binding static value

https://stackoverflow.com/a/44675483/3763032 Buat yang mau set static value (primitive data type, object, etc) without using model, or any java API di xml:

app:customBinding="@{static_value}" app:customBinding='@{"static_value"}'

thanks @radhikayusuf

@mochadwi
mochadwi / README.md
Created April 12, 2019 19:03
Android - Check FPS