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.
https://medium.com/mindorks/migrating-gradle-build-scripts-to-kotlin-dsl-89788a4e383a -> why you should migrate to kotlin-dsl
jaredsburrows/android-gif-search#85 -> most common error
gradle/kotlin-dsl-samples#1287
https://medium.com/lifesum-healthy-living-simplified/migrating-from-groovy-to-kotlin-based-gradle-build-scripts-in-android-e16e0e4c42ff -> kotlin android extensions experimental issue
gradle/kotlin-dsl-samples#644 -> kotlin android extensions experimental issue
How to convert a List to PagedList and vice-versa? - https://stackoverflow.com/a/50315638/3763032
How to delete/remove PagedListAdapter item - https://stackoverflow.com/a/51445240/3763032
Could not filter a PagedList? - https://stackoverflow.com/q/47689517/3763032
Paging Library Filter/Search - https://stackoverflow.com/a/49193372/3763032
#!/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!" |
Pakai android-ktx, biar makin manteb, banyak extension-nya atau, bikin extension sendiri
also, digabung sama the power of data binding makin dahsyat.
Reference:
https://proandroiddev.com/livedata-with-single-events-2395dea972a8
thread-safe support multiple live event (without duplication) support singeliveevent with extension toSingleEvent (to prevent multiple event) alternative EventWrapper from Google solution, and claimed has better approach for above use case @all
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
Tools bagus utk debugging buat nampilin fps apps. Bisa dipake salah satunya cek aktifitas scroll kita udh smooth banget atau engga.
https://github.com/friendlyrobotnyc/TinyDancer
Notes: digunakan cm utk masa development ya