Skip to content

Instantly share code, notes, and snippets.


Avishay Peretz avisper

View GitHub Profile
avisper / DbClient.kt
Created Jul 27, 2020
MyCrashlyics some classes
View DbClient.kt
interface IDbClient {
fun saveCrashReport(throwable: Throwable)
fun loadExceptions( ): List<ExceptionEntity>
class DbClient(context: Context) : IDbClient {
avisper / CompoundButtonGroupActivity.kt
Last active Dec 11, 2019
MixedCompoundButtonGroup resolve the one and only selected button in CompoundButton (CheckBox, RadioButton, Switch, ToggleButton) group
View CompoundButtonGroupActivity.kt
package your.project.package
import android.os.Bundle
import android.widget.CompoundButton
import android.widget.Toast
import your.project.package.R
class CompoundButtonGroupActivity : AppCompatActivity() {
private lateinit var mixedCompoundButtonGroup: MixedCompoundButtonGroup
avisper / MultiRowsRadioGroup.kt
Last active Dec 11, 2019
MultiRowsRadioGroup is a RadioGroups container with different columns or rows
View MultiRowsRadioGroup.kt
package your.project.package
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.RadioGroup
You can’t perform that action at this time.