For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
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 FragmentObserver extends Observable { | |
@Override | |
public void notifyObservers() { | |
setChanged(); // Set the changed flag to true, otherwise observers won't be notified. | |
super.notifyObservers(); | |
} | |
} |
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
package com.your.package | |
import android.app.Dialog | |
import android.os.Bundle | |
import com.your.package.R | |
import com.google.android.material.bottomsheet.BottomSheetDialog | |
import com.google.android.material.bottomsheet.BottomSheetDialogFragment | |
/** | |
* BottomSheetDialog fragment that uses a custom |
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
--- !https://twitter.com/PoliceNG/status/1204006677990821888?s=19 | |
states: | |
- state : abia | |
phones: | |
- '0803541540' | |
- '08079210003' | |
- '08079210004' | |
- '08079210005' | |
- state : adamawa | |
phones: |
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
import androidx.fragment.app.FragmentActivity | |
class LoggerCrashHandler(private val app: FragmentActivity) : Thread.UncaughtExceptionHandler { | |
private val defaultUEH: Thread.UncaughtExceptionHandler? = | |
Thread.getDefaultUncaughtExceptionHandler() | |
override fun uncaughtException(t: Thread, e: Throwable) { | |
var arr = e.stackTrace | |
var report = "$e\n\n" | |
report += "--------- Stack trace ---------\n\n" |