Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Mochamad Iqbal Dwi Cahyo mochadwi

💭
I may be slow to respond.
  • Bandung
Block or report user

Report or block mochadwi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mochadwi
mochadwi / README.md
Last active Sep 5, 2019
Certification - Mochamad Iqbal Dwi Cahyo
View README.md

1. Mindorks Bootcamp - Android for Professionals

Building an Instagram apps, understanding the reactive programming (RxJava), clean architecture with MVVM, latest technology of android architecture components, a dependency injection with Dagger.

Mindorks Bootcamp

2. Kotlin Jetbrains TheAkademy - Kotlin for Android

Coming soon.

Kotlin Jetbrains TheAkademy

3. Dicoding - Kotlin Associate

Coming soon.

@mochadwi
mochadwi / adapter.kt
Last active Jul 14, 2019
ObservableField vs. LiveData
View adapter.kt
class Adapter(list: ArrayList<String>) : RecyclerView.ViewHolder(binding.root) {
// 02. using observablefield
// variable binding is your item.xml, generated into -> ItemBinding
lateinit val binding: ItemBinding // this should be defined on your project.
fun changeVariableA(msg: String) {
binding.apply {
message = msg
executePendingBindings() // directly tells the binding to be updated, without delay
}
@mochadwi
mochadwi / README.md
Created May 12, 2019
Android - Data Binding Error
View README.md
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
Android - Paging Libray Troubleshoot
View README.md
@mochadwi
mochadwi / config_release.sh
Created Apr 23, 2019
Crashlytics - config_release.sh
View 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 Apr 22, 2019
Data Binding - Custom Spannable String
View README.md
You can’t perform that action at this time.