View intents.kt
This file contains 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
private fun launchIntents(context: Context) { | |
val whatsappIntent = getWhatsappIntent(context) | |
val telegramIntent = getTelegramIntent(context) | |
val intents = listOfNotNull(whatsappIntent, telegramIntent) | |
val globalIntent = Intent() | |
val chooserIntent = Intent.createChooser(globalIntent, "Send message") | |
.putExtra(Intent.EXTRA_INITIAL_INTENTS, intents.toTypedArray()) |
View DropDownComponent.kt
This file contains 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.compose.foundation.layout.Column | |
import androidx.compose.foundation.layout.ColumnScope | |
import androidx.compose.foundation.layout.fillMaxWidth | |
import androidx.compose.foundation.layout.wrapContentWidth | |
import androidx.compose.material.* | |
import androidx.compose.material.icons.Icons | |
import androidx.compose.material.icons.filled.ArrowDropDown | |
import androidx.compose.material.icons.filled.ArrowDropUp | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.mutableStateOf |
View colors.kt
This file contains 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
fun Context.attributeColorWithAlpha( | |
@AttrRes overlayColorAttributeResId: Int, | |
@FloatRange(from = 0.0, to = 1.0) overlayAlpha: Float | |
): Int { | |
val surfaceColor = MaterialColors.getColor(this, R.attr.colorSurface, "Color surface not found") | |
val colorWithAlpha = MaterialColors.getColor(this, overlayColorAttributeResId, "Color attribute not found").let { | |
MaterialColors.compositeARGBWithAlpha(it, (255 * overlayAlpha).roundToInt()) | |
} | |
return MaterialColors.layer(surfaceColor, colorWithAlpha) | |
} |
View my_flow.kt
This file contains 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 SearchStoresMapViewModel( | |
private val storeCache: StoreCache, | |
private val mapper: StoreUiMapper | |
) : ViewModel() { | |
private val appliedFilters: MutableSet<OpenStatus> = mutableSetOf() | |
private val filtersChannel = BroadcastChannel<Set<OpenStatus>>(Channel.CONFLATED) | |
private val queryChannel = BroadcastChannel<String>(Channel.CONFLATED) |
View btn_bg_color_primary_selector.xml
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:color="?colorPrimary" android:state_enabled="true" /> | |
<item android:alpha="0.38" android:color="?colorPrimary" /> | |
</selector> |
View objects.json
This file contains 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
[ | |
{ | |
"id":"5c59c40e4d76972930399ab2", | |
"type":"animal", | |
"location":{ | |
"latitude":41.5697586228956, | |
"longitude":2.0374607342886923 | |
}, | |
"owner":false, | |
"found":false, |
View channels
This file contains 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
#EXTM3U | |
#EXTINF:-1,~ Spain TV ~ | |
#EXTINF:-1,3/24 | |
http://ccma-tva-int-abertis-live.hls.adaptive.level3.net/int/ngrp:324_mobil/chunklist_b548000.m3u8 | |
#EXTINF:-1,101 TV Malaga | |
http://cls.todostreaming.eu/101tv/livestream2/chunklist.m3u8 | |
#EXTINF:-1,7 Murcia | |
http://rtvmurcia_01-lh.akamaihd.net/i/rtvmurcia_1_0@507973/master.m3u8 | |
#EXTINF:-1,25 Televisio | |
http://cdnlive.shooowit.net/25televisiolive/amlst:25tv/chunklist_b300000.m3u8 |
View CoroutinesExt.kt
This file contains 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 io.reactivex.disposables.Disposable | |
import kotlinx.coroutines.CancellableContinuation | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.suspendCancellableCoroutine | |
import kotlinx.coroutines.withContext | |
import rx.Subscription | |
import kotlin.coroutines.resume | |
import kotlin.coroutines.resumeWithException | |
import io.reactivex.Completable as Rx2Completable | |
import io.reactivex.Flowable as Rx2Flowable |
View SpannableStringBuilderExtensions.kt
This file contains 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.graphics.Typeface.BOLD | |
import android.graphics.Typeface.ITALIC | |
import android.support.annotation.ColorInt | |
import android.text.Spannable.SPAN_INCLUSIVE_EXCLUSIVE | |
import android.text.SpannableStringBuilder | |
import android.text.SpannedString | |
import android.text.style.* | |
fun spannable(block: SpannableStringBuilder.() -> Unit): SpannableStringBuilder = SpannableStringBuilder().apply(block) |
View Kakao_output
This file contains 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
android.support.test.espresso.AmbiguousViewMatcherException: '(with id: com.******.dev:id/addressView)' matches multiple views in the hierarchy. | |
Problem views are marked with '****MATCHES****' below. | |
View Hierarchy: | |
+>DecorView{id=-1, visibility=VISIBLE, width=1080, height=1920, has-focus=true, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#81810100 wanim=0x1030465 needsMenuKey=2}, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=3} | |
| | |
+->LinearLayout{id=-1, visibility=VISIBLE, width=1080, height=1794, has-focus=true, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.widget.FrameLayout$LayoutParams@e45b57d, tag=null, root-is-layout-requested=false, ha |
NewerOlder