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 android.content.Context | |
| import android.content.ContextWrapper | |
| import androidx.datastore.core.DataStore | |
| import androidx.datastore.preferences.core.Preferences | |
| import androidx.datastore.preferences.core.edit | |
| import kotlinx.coroutines.flow.Flow | |
| import kotlinx.coroutines.flow.map | |
| private typealias PreferenceKey<T> = Preferences.Key<T> |
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 test; | |
| import android.arch.lifecycle.LiveData; | |
| import android.content.BroadcastReceiver; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.IntentFilter; | |
| import android.net.ConnectivityManager; | |
| import android.net.NetworkInfo; |
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
| <templateSet group="Custom"> | |
| <template name="live" value="private val _$first$ = MutableLiveData<$second$>() val $first$ : LiveData<$second$> = _$first$" description="Live Data POJO" toReformat="false" toShortenFQNames="true"> | |
| <variable name="first" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <variable name="second" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <context> | |
| <option name="KOTLIN" value="true" /> | |
| </context> | |
| </template> | |
| <template name="loggeri" value="Logging.info("$TAG$", "$METHOD_NAME$: $content$");" toReformat="false" toShortenFQNames="true"> | |
| <variable name="TAG" expression="kotlinClassName()" defaultValue="" alwaysStopAt="true" /> |
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 android.annotation.SuppressLint | |
| import android.content.Context | |
| import android.graphics.* | |
| import android.graphics.drawable.Drawable | |
| import android.util.AttributeSet | |
| import android.view.View | |
| import com.example.shadowtestproject.R | |
| class CustomBlurView( | |
| context: Context, |
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 android.annotation.SuppressLint | |
| import androidx.appcompat.app.AppCompatActivity | |
| import android.os.Bundle | |
| import kotlinx.android.synthetic.main.activity_main.* | |
| class MainActivity : AppCompatActivity() { | |
| var count = 0 |
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
| <androidx.constraintlayout.widget.ConstraintLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| tools:context=".MainActivity"> | |
| <RadioButton | |
| android:id="@+id/radio1" |
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
| class HelperRadioGroup @JvmOverloads constructor( | |
| context: Context, | |
| attributeSet: AttributeSet? = null, | |
| defStyleAttr: Int = 0 | |
| ) : ConstraintHelper(context, attributeSet, defStyleAttr) { | |
| private lateinit var radioButtonGroup: Array<CompoundButton?> | |
| private var mProtectFromCheckedChange = false | |
| private var mCheckedId = -1 |
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
| class HelperRadioGroup @JvmOverloads constructor( | |
| context: Context, | |
| attributeSet: AttributeSet? = null, | |
| defStyleAttr: Int = 0 | |
| ) : ConstraintHelper(context, attributeSet, defStyleAttr) { | |
| private lateinit var radioButtonGroup: Array<CompoundButton?> | |
| private var mProtectFromCheckedChange = false | |
| private var mCheckedId = -1 |
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
| class HelperRadioGroup @JvmOverloads constructor( | |
| context: Context, | |
| attributeSet: AttributeSet? = null, | |
| defStyleAttr: Int = 0 | |
| ) : ConstraintHelper(context, attributeSet, defStyleAttr) { | |
| private lateinit var radioButtonGroup: Array<CompoundButton?> | |
| private var mProtectFromCheckedChange = false | |
| private var mCheckedId = -1 |
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
| LISTVIEW.addItemDecoration(DividerItemDecoration(context, LinearLayoutManager(context).orientation)) |
NewerOlder