file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
sample/app/src/main/java/app/cash/paraphrase/sample/app/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright (C) 2023 Cash App
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
app/src/main/java/com/frogobox/movie/mvvm/tv/SearchTvShowActivity.kt | unknown_repo | kotlin | package com.frogobox.movie.mvvm.tv
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.LinearLayoutManager
import com.frogobox.base.source.model.TvShow
import com.frogobox.base.adapter.TvShowAdapter
import com.frog... |
kirinmaru-android/src/main/java/stream/reconfig/kirinmaru/android/ui/navigation/FragmentNavigator.kt | unknown_repo | kotlin | package stream.reconfig.kirinmaru.android.ui.navigation
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentActivity
import android.view.Menu
import android.view.MenuItem
import stream.reconfig.kirinmaru.android.R
import stream.reconfig.kirinmaru.android.parcel.toParce... |
app/src/main/java/com/mrwinston/deadcellscomp/view/MainActivity.kt | unknown_repo | kotlin | package com.mrwinston.deadcellscomp.view
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.FragmentActivity
import com.google.android.material.bottomnavigation.BottomNavigationView
import com.google.firebase.auth.FirebaseAuth
import com.mrwinston.deadcellscomp.MyApplication
import com.mrwin... |
app/src/main/java/com/testaudiencesdk/MainActivity.kt | unknown_repo | kotlin | package com.testaudiencesdk
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.text.TextUtils
import android.util.Log
import android.view.View
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import com.livebroadcasterapi.LiveBroadcast
im... |
feature/inbox/src/main/java/easydone/feature/inbox/InboxScreen.kt | unknown_repo | kotlin | package easydone.feature.inbox
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.fo... |
feature/inbox/src/main/java/easydone/feature/inbox/InboxScreen.kt | unknown_repo | kotlin | package easydone.feature.inbox
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.fo... |
meistercharts-canvas/src/commonMain/kotlin/com/meistercharts/zoom/ZoomAndTranslationModifiersBuilder.kt | unknown_repo | kotlin | /**
* Copyright 2023 Neckar IT GmbH, Mössingen, Germany
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
common/ui/compose/src/main/java/app/tivi/common/compose/ui/GradientScrim.kt | unknown_repo | kotlin | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
app/src/main/java/kt/mobile/dayscountercompose/ui/composables/ShowProgress.kt | unknown_repo | kotlin | package kt.mobile.dayscountercompose.ui.composables
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.LinearProgressIndicator
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.to... |
app/src/main/java/com/example/fallingaccident/MainViewModel.kt | unknown_repo | kotlin | package com.example.fallingaccident
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.fallingaccident.ui.main.*
import dagger.hilt.android.lifecycle.HiltViewModel
import com.example.fallingaccident.ui.main.*
import kotlinx.coroutines.flow.*
import javax.inject.Inject
@Hil... |
indicatorview/src/main/java/com/nguyen/indicatorview/IndicatorListener.kt | unknown_repo | kotlin | package com.nguyen.indicatorview
import androidx.viewpager.widget.ViewPager
interface IndicatorListener {
@Throws(PagesLessException::class)
fun setViewPager(viewPager: ViewPager)
fun setAnimateDuration(duration: Long)
fun setRadiusSelected(radius: Int)
fun setRadiusUnselected(radius: Int)
... |
app/src/main/java/co/nimblehq/compose/crypto/ui/screens/detail/DetailScreen.kt | unknown_repo | kotlin | package co.nimblehq.compose.crypto.ui.screens.detail
import android.content.res.Configuration
import android.widget.Toast
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import and... |
test/react-native/features/fixtures/scenario-launcher/android/src/main/java/com/bugsnag/reactnative/test/ConfigFileReader.kt | unknown_repo | kotlin | package com.reactnative.module
import android.content.Context
import android.util.Log
import org.json.JSONObject
import java.io.File
import java.io.IOException
const val CONFIG_FILE_TIMEOUT = 5000
class ConfigFileReader {
fun getMazeRunnerAddress(context: Context): String {
val configFile = File("/data/... |
app/src/main/java/com/bangkit/faniabdullah_jetpack/utils/EspressoIdlingResource.kt | unknown_repo | kotlin | package com.programmergabut.solatkuy.util
import androidx.test.espresso.idling.CountingIdlingResource
object EspressoIdlingResource {
private const val RESOURCE = "GLOBAL"
val espressoTestIdlingResource = CountingIdlingResource(RESOURCE)
fun increment() {
espressoTestIdlingResource.increment()
... |
app/src/main/java/com/example/giveback/Chatting/ChatActivity.kt | unknown_repo | kotlin | package com.example.giveback.Chatting
import android.annotation.SuppressLint
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Build
import androidx.appcompat.app.AppCompatActivit... |
app/src/main/java/com/tktkokym/currencyviewer/adapter/BindingAdapter.kt | unknown_repo | kotlin | package com.tktkokym.currencyviewer.adapter
import android.widget.TextView
import androidx.databinding.BindingAdapter
import com.tktkokym.currencyviewer.util.getTargetCurrency
import java.text.NumberFormat
@BindingAdapter("numberWithComma")
fun setNumberWithComma(textView :TextView, number: Double) {
textView.tex... |
payment-sdk/src/main/java/payment/sdk/android/aaniPay/AaniPayLauncherContract.kt | unknown_repo | kotlin | package payment.sdk.android.aaniPay
import android.content.Context
import android.content.Intent
import androidx.activity.result.contract.ActivityResultContract
internal class AaniPayLauncherContract :
ActivityResultContract<AaniPayLauncher.Config, AaniPayLauncher.Result>() {
override fun createIntent(contex... |
dispatch-sample/src/main/java/dispatch/sample/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright (C) 2021 <NAME>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
appreader/src/androidTest/java/com/ul/ims/gmdl/reader/activity/NfcEngagementActivityTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
collect_app/src/androidTest/java/org/odk/collect/android/feature/external/InstanceUploadActionTest.kt | unknown_repo | kotlin | package org.odk.collect.android.feature.external
import android.content.Intent
import androidx.test.core.app.ApplicationProvider.getApplicationContext
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
import org.junit.runner.RunWith
import... |
frontend/android-feedme-app/app/src/main/java/com/mobilesystems/feedme/ui/profile/UserFoodPrefListFragment.kt | unknown_repo | kotlin | package com.mobilesystems.feedme.ui.profile
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.Lin... |
app/src/main/kotlin/io/nichijou/tujian/ui/bing/BingAdapter.kt | unknown_repo | kotlin | package io.nichijou.tujian.ui.bing
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.paging.PagedListAdapter
import androidx.palette.graphics.Palette
import androidx.recyclerview.widget.RecyclerView
import com.facebook.drawee.drawable.ProgressBarDrawable
import c... |
adapty-ui/src/main/java/com/adapty/ui/internal/PaywallUiManager.kt | unknown_repo | kotlin | package com.adapty.ui.internal
import androidx.annotation.RestrictTo
import androidx.constraintlayout.widget.ConstraintSet
import androidx.constraintlayout.widget.ConstraintSet.*
import com.adapty.models.AdaptyPaywall
import com.adapty.models.AdaptyPaywallProduct
import com.adapty.models.AdaptyViewConfiguration.Compon... |
app/src/main/java/com/plusappslc/plusfit/ui/screens/cadastrousuario/CadastroUsuarioViewModel.kt | unknown_repo | kotlin | package com.plusappslc.plusfit.ui.screens.cadastrousuario
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import com.plusappslc.plusfit.repository.FirebaseAuthRepository
import com.plusappslc.plusfit.repository.Resource
private const val TAG = "Cad... |
ktlint-core/src/test/kotlin/com/pinterest/ktlint/core/VisitorProviderTest.kt | unknown_repo | kotlin | package com.pinterest.ktlint.core
import com.pinterest.ktlint.core.ast.ElementType.FILE
import com.pinterest.ktlint.core.ast.ElementType.IMPORT_LIST
import com.pinterest.ktlint.core.ast.ElementType.PACKAGE_DIRECTIVE
import com.pinterest.ktlint.core.internal.VisitorProvider
import com.pinterest.ktlint.core.internal.ini... |
app/src/main/java/com/berd/qscore/features/main/MainViewModel.kt | unknown_repo | kotlin | package com.berd.qscore.features.main
import android.os.Parcelable
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.viewModelScope
import com.berd.qscore.features.login.LoginManager
import com.berd.qscore.features.main.MainViewModel.MainAction
import com.berd.qscore.features.main.MainViewModel.Main... |
app/src/main/java/eu/kanade/tachiyomi/ui/browse/feed/FeedTab.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.ui.browse.feed
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Add
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectA... |
legacy/storage/src/test/java/com/fsck/k9/storage/TestApp.kt | unknown_repo | kotlin | package com.fsck.k9.storage
import android.app.Application
import com.fsck.k9.AppConfig
import com.fsck.k9.Core
import com.fsck.k9.CoreResourceProvider
import com.fsck.k9.DI
import com.fsck.k9.K9
import com.fsck.k9.coreModules
import com.fsck.k9.crypto.EncryptionExtractor
import com.fsck.k9.preferences.K9StoragePersis... |
app/src/main/java/dev/arkbuilders/arkmemo/media/ArkMediaPlayer.kt | unknown_repo | kotlin | package dev.arkbuilders.arkmemo.media
import android.media.MediaPlayer
interface ArkMediaPlayer:
MediaPlayer.OnCompletionListener,
MediaPlayer.OnPreparedListener,
MediaPlayer.OnSeekCompleteListener {
fun init(path: String, onCompletion: () -> Unit, onPrepared: () -> Unit)
fun play()
fun sto... |
Firebase_take1/app/src/main/java/com/paheco/firebase_take1/MainActivity.kt | unknown_repo | kotlin | package com.paheco.firebase_take1
import FruitAdapter
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.EditText
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
imp... |
basick/src/main/java/com/mozhimen/basick/manifestk/permission/scoped/helpers/InvisibleProxyFragmentScoped.kt | unknown_repo | kotlin | package com.mozhimen.basick.manifestk.permission.scoped.helpers
import android.annotation.SuppressLint
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import androidx.documentfile.provider.DocumentFile
import androidx.fragment.app.Fragment
import com.mozhimen.basic... |
app/gps_alarm/src/main/java/com/gps_alarm/ui/util/NavigationUtils.kt | unknown_repo | kotlin | package com.gps_alarm.ui.util
import androidx.navigation.NavType
import androidx.navigation.navArgument
import androidx.navigation.navDeepLink
val alarmDeepLink = listOf(
navDeepLink {
uriPattern = "gps_alarm://alarm_detail/{longitude}/{latitude}"
}
)
val alarmDetailArgument = listOf(
navArgument(... |
app/src/main/java/com/mazaira/searchtv/util/extensions/ActionBarExtension.kt | unknown_repo | kotlin | package com.mazaira.searchtv.util.extensions
import android.content.Context
import android.graphics.Color
import androidx.appcompat.app.ActionBar
import androidx.core.content.ContextCompat
import com.mazaira.searchtv.R
fun ActionBar.titleLogo(context: Context) {
setDisplayShowHomeEnabled(true)
setDisplayHom... |
app/src/main/java/com/sample/android/app/ui/DetailFragment.kt | unknown_repo | kotlin | package com.sample.android.app.ui
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.postDelayed
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.fragment.fin... |
modules/modules_home/src/main/java/com/cl/modules_home/adapter/HomeEnvirPopAdapter.kt | unknown_repo | kotlin | package com.cl.modules_home.adapter
import android.graphics.Color
import androidx.databinding.DataBindingUtil
import com.cl.common_base.bean.EnvironmentInfoData.Environment
import com.bbgo.module_home.R
import com.bbgo.module_home.databinding.HomeEnvirItemPopBinding
import com.chad.library.adapter.base.BaseQuickAdapte... |
libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/utils/Snackbar.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
app/src/main/java/com/github/zsoltk/pokedex/common/HorizontalRuler.kt | unknown_repo | kotlin | package com.github.zsoltk.pokedex.common
import androidx.compose.Composable
import androidx.ui.graphics.Color
import androidx.ui.layout.Arrangement
import androidx.ui.layout.Container
import androidx.ui.layout.LayoutWidth
import androidx.ui.layout.Row
import androidx.ui.layout.Spacer
import androidx.ui.material.Surfac... |
feature-account-impl/src/main/java/jp/co/soramitsu/feature_account_impl/presentation/account/export/di/WalletExportComponent.kt | unknown_repo | kotlin | package jp.co.soramitsu.feature_account_impl.presentation.account.export.di
import androidx.fragment.app.Fragment
import dagger.BindsInstance
import dagger.Subcomponent
import jp.co.soramitsu.common.di.scope.ScreenScope
import jp.co.soramitsu.feature_account_impl.presentation.account.export.WalletExportFragment
@Subc... |
demo/src/main/java/com/brimanning/demo/MainActivity.kt | unknown_repo | kotlin | package com.brimanning.demo
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.brimanning.foundation.ApplicationManager
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
su... |
app/src/main/java/wannabit/io/cosmostaion/ui/main/setting/SettingBottomAdapter.kt | unknown_repo | kotlin | package wannabit.io.cosmostaion.ui.main.setting
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.Recycle... |
playground/site/src/jsMain/kotlin/playground/pages/Echo.kt | unknown_repo | kotlin | package playground.pages
import androidx.compose.runtime.*
import com.varabyte.kobweb.core.Page
import com.varabyte.kobweb.silk.components.forms.Button
import com.varabyte.kobweb.silk.components.forms.TextInput
import com.varabyte.kobweb.streams.rememberApiStream
import org.jetbrains.compose.web.dom.P
import org.jetbr... |
app/src/main/java/my/dictionary/free/view/user/dictionary/words/DictionaryWordsFragment.kt | unknown_repo | kotlin | package my.dictionary.free.view.user.dictionary.words
import android.annotation.SuppressLint
import android.app.SearchManager
import android.os.Bundle
import android.os.CountDownTimer
import android.util.Log
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.vie... |
bwell-kotlin-android/app/src/main/java/com/bwell/sampleapp/activities/NavigationActivity.kt | unknown_repo | kotlin | package com.bwell.sampleapp.activities
import android.annotation.SuppressLint
import android.os.Bundle
import com.google.android.material.navigation.NavigationView
import androidx.navigation.findNavController
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.navigateUp
import androidx.nav... |
feature-assets/src/main/java/io/novafoundation/nova/feature_assets/presentation/send/confirm/ConfirmSendFragment.kt | unknown_repo | kotlin | package io.novafoundation.nova.feature_assets.presentation.send.confirm
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import io.novafoundation.nova.common.base.BaseFragment
import io.novafoundation.nova.common.di.FeatureUtils
import io.novafoundation.nova.common.mixin.hints.... |
Aplicativo-Android/app/src/main/java/br/com/marketpricescan/util/ProdutoAdaptador.kt | unknown_repo | kotlin | package br.com.marketpricescan.util
import android.app.AlertDialog
import android.content.Context
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import andro... |
ksp-processors/src/main/kotlin/generation/bitflags/BitFlagsGeneration.kt | unknown_repo | kotlin | package dev.kord.ksp.generation.bitflags
import com.google.devtools.ksp.symbol.KSFile
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.KModifier.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import com.squareup.kotlinpoet.SET
import com.squareup.kotlinpoet.ksp.... |
designsystem/src/main/java/com/fintonic/designsystem/components/text/Text.kt | unknown_repo | kotlin | package com.fintonic.designsystem.components.text
import androidx.compose.foundation.text.BasicText
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.TextLayoutResult
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.style.TextAlign
i... |
Fall2024/lab-solutions/Lab5/ThreadingLabSkeleton/app/src/main/java/mobiledev/unb/ca/threadinglab/DetailActivity.kt | unknown_repo | kotlin | package mobiledev.unb.ca.threadinglab
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.method.ScrollingMovementMethod
import android.widget.TextView
class DetailActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(... |
app/src/main/java/com/core/app/base/activity/BaseFragmentActivity.kt | unknown_repo | kotlin | package com.core.app.base.activity
import android.view.View
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
abstract class BaseFragmentActivity<VDB : ViewDataBinding> : BaseActivity() {
protected lateinit var binding: VDB
override fun onCreateView(): View? {
o... |
app/src/main/java/com/yikwing/ykquickdev/api/entity/ChapterBean.kt | unknown_repo | kotlin | package com.yikwing.ykquickdev.api.entity
import androidx.annotation.Keep
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.squareup.moshi.JsonClass
@Entity(tableName = "t_chapter")
@JsonClass(generateAdapter = true)
@Keep
data class ChapterBean(
@ColumnInfo(n... |
app/src/main/java/ir/esmaeili/stopcar/utils/TouchableWrapper.kt | unknown_repo | kotlin | package ir.esmaeili.stopcar.utils
import android.content.Context
import android.util.Log
import android.view.MotionEvent
import android.widget.FrameLayout
class TouchableWrapper(
context: Context
) : FrameLayout(context) {
companion object {
const val TAG: String = "TouchableWrapper"
}
privat... |
app/src/main/java/tech/tokku_engineer/todoappsample_kotlin/utils/Format.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020 tokku5552
*
* This software is released under the MIT License.
* https://opensource.org/licenses/mit-license.php
*
*/
package tech.tokku_engineer.todoappsample_kotlin.utils
import android.annotation.SuppressLint
import java.text.SimpleDateFormat
import java.util.*
@SuppressLint("SimpleD... |
picturechargingedit/src/main/java/com/r/picturechargingedit/model/pixelation/RectPathModel.kt | unknown_repo | kotlin | package com.r.picturechargingedit.model.pixelation
import android.graphics.RectF
import kotlin.math.abs
/**
*
* Author: romanvysotsky
* Created: 20.08.20
*/
class RectPathModel: RectPath {
private val rects = mutableListOf<RectF>()
private var previousRect = RectF()
override fun getRects(): List<R... |
app/src/main/java/com/example/pip/MediaVM.kt | unknown_repo | kotlin | package com.example.pip
import android.app.Application
import android.content.ContentResolver
import android.database.Cursor
import android.graphics.Bitmap
import android.os.Build
import android.provider.BaseColumns
import android.provider.MediaStore
import android.util.Log
import android.util.Size
import androidx.lif... |
cookbook/src/main/java/com/sababado/rolo/cookbook/utils/ContactHelper.kt | unknown_repo | kotlin | package com.sababado.rolo.cookbook.utils
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.annotation.StringRes
import com.sababado.rolo.cookbook.R
import java.io.File
class ContactHelper {
companion object {
/**
* Start the dialer with a phone n... |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Khanacademy.kt | unknown_repo | kotlin | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
impor... |
baseKit/src/main/java/me/shetj/base/tools/app/WindowKit.kt | unknown_repo | kotlin | package me.shetj.base.tools.app
import android.app.Activity
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.repeatOnLifecycle
import androi... |
ts-socket/src/main/kotlin/cn/tursom/socket/server/NioServer.kt | unknown_repo | kotlin | package cn.tursom.socket.server
import cn.tursom.channel.AsyncProtocol
import cn.tursom.core.coroutine.GlobalScope
import cn.tursom.niothread.NioProtocol
import cn.tursom.niothread.NioThread
import cn.tursom.socket.AsyncSocket
import cn.tursom.socket.NioSocket
import kotlinx.coroutines.CoroutineScope
import kotlinx.co... |
app/src/main/java/cn/cqautotest/sunnybeach/app/PagingTitleBarFragment.kt | unknown_repo | kotlin | package cn.cqautotest.sunnybeach.app
import androidx.annotation.CallSuper
import androidx.lifecycle.lifecycleScope
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.RecyclerView
import cn.cqautotest.sunnybeach.R
import cn.cqautotest.sunnybeach.action.StatusAction
import cn.cqautotest.sunnybe... |
app/src/main/kotlin/app/newproj/lbrytv/data/remotemediator/FeaturedVideosRemoteMediator.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2022 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... |
Android/EasyBudget/app/src/main/java/com/benoitletondor/easybudgetapp/view/premium/view/SubscribeView.kt | unknown_repo | kotlin | /*
* Copyright 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
feature/more/src/main/java/com/azhapps/listapp/more/ui/DeveloperOptionsScreen.kt | unknown_repo | kotlin | package com.azhapps.listapp.more.ui
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
impor... |
components/remote-controls/setup/impl/src/main/kotlin/com/flipperdevices/remotecontrols/impl/setup/composable/components/PointFlipperComposable.kt | unknown_repo | kotlin | package com.flipperdevices.remotecontrols.impl.setup.composable.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import ... |
QuickBaseLib/src/main/java/cn/chawloo/base/popup/M7Popup.kt | unknown_repo | kotlin | package cn.chawloo.base.popup
import android.content.Context
import androidx.core.content.ContextCompat
import androidx.core.text.color
import cn.chawloo.base.R
import cn.chawloo.base.ext.size
import cn.chawloo.base.ext.sp
/**
* 显示通用确认弹窗
*/
fun showConfirmWindow(
c: Context,
title: String = "温馨提示",
cont... |
app/src/main/java/com/tickr/tickr/ui/activities/bookmark/BookmarkAdapter.kt | unknown_repo | kotlin | package com.tickr.tickr.ui.activities.bookmark
import android.app.Activity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com... |
making_recyclerviews_with_jetpack_compose/app/src/main/java/io/applit/composerecyclerview/RecyclerViewSection.kt | unknown_repo | kotlin | package io.applit.composerecyclerview
import io.applit.composerecyclerview.model.PostData
import io.applit.composerecyclerview.model.Product
import androidx.compose.ui.graphics.Color
sealed class RecyclerViewSection
data class Interstitial(val title: String, val description: String, val backgroundColor: Color) :
... |
core/src/main/java/contacts/core/profile/ProfileInsert.kt | unknown_repo | kotlin | package contacts.core.profile
import android.accounts.Account
import android.content.ContentResolver
import android.provider.ContactsContract
import contacts.core.*
import contacts.core.entities.NewRawContact
import contacts.core.entities.cursor.rawContactsCursor
import contacts.core.entities.table.ProfileUris
import ... |
app/src/main/java/com/example/jetmusic/ui/viewmodels/MainViewModel.kt | unknown_repo | kotlin | package com.example.jetmusic.ui.viewmodels
import android.support.v4.media.MediaBrowserCompat
import android.support.v4.media.MediaMetadataCompat.METADATA_KEY_MEDIA_ID
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifec... |
app/src/main/java/com/shicheeng/copymanga/fm/reader/noraml/ReaderPageFragment.kt | unknown_repo | kotlin | package com.shicheeng.copymanga.fm.reader.noraml
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.lifecycleScope
import androidx.viewpager2.widget.ViewPager2
import com.shicheeng.copymanga.data.MangaReaderPage
import com.shiche... |
app/src/main/java/life/chenshi/keepaccounts/ui/setting/SettingFragment.kt | unknown_repo | kotlin | package life.chenshi.keepaccounts.ui.setting
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleSc... |
feature/logbook/src/main/java/com/loryblu/feature/logbook/navigation/LogbookNavigation.kt | unknown_repo | kotlin | package com.loryblu.feature.logbook.navigation
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runti... |
codebase/android/app/src/main/java/com/makeappssimple/abhimanyu/catfact/android/ui/home/HomeFragment.kt | unknown_repo | kotlin | package com.makeappssimple.abhimanyu.catfact.android.ui.home
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import com.makeappssimple.abhimanyu.ca... |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/WindowMaximize.kt | unknown_repo | kotlin | package compose.icons.lineawesomeicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... |
build-logic/convention/src/main/kotlin/com/pantelisstampoulis/plugin/RoomPlugin.kt | unknown_repo | kotlin | package com.example.modern_architecture_template
import androidx.room.gradle.RoomExtension
import com.google.devtools.ksp.gradle.KspExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
class AndroidRoomConventionPlugin : ... |
akommons-bindings/src/androidTest/java/com/dewarder/akommons/binding/view/FragmentViewTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
gto-support-picasso/src/test/kotlin/org/ccci/gto/android/common/picasso/widget/TextViewDrawableStartTargetTest.kt | unknown_repo | kotlin | package org.ccci.gto.android.common.picasso.widget
import android.graphics.drawable.Drawable
import android.widget.TextView
import org.junit.Assert.assertSame
import org.junit.Before
import org.junit.Test
import org.mockito.kotlin.any
import org.mockito.kotlin.clearInvocations
import org.mockito.kotlin.doReturn
import... |
app/src/main/java/com/xw/repo/bouncescrollviewsample/MainActivity.kt | unknown_repo | kotlin | package com.xw.repo.bouncescrollviewsample
import android.content.Intent
import android.content.res.Resources
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import kotlinx.android.synthetic.main.activity_... |
GaiaXAndroidJS/src/main/kotlin/com/alibaba/gaiax/js/support/module/GaiaXJSNativeEventModule.kt | unknown_repo | kotlin | package com.alibaba.gaiax.provider.module.js
import androidx.annotation.Keep
import com.alibaba.fastjson.JSONObject
import com.alibaba.gaiax.js.GaiaXJSManager
import com.alibaba.gaiax.js.api.GaiaXJSBaseModule
import com.alibaba.gaiax.js.api.IGaiaXPromise
import com.alibaba.gaiax.js.api.annotation.GaiaXPromiseMethod
im... |
design-kit/src/main/java/com/fayaz/todo_jc/design_kit/theme/Type.kt | unknown_repo | kotlin | package com.fayaz.todo_jc.design_kit.theme
import androidx.compose.material.Typography
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
// Set of Material typography styles to start with
val TodoAppTy... |
ui/src/main/java/com/fibelatti/ui/foundation/StableList.kt | unknown_repo | kotlin | package com.fibelatti.ui.foundation
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.Stable
/**
* An [Immutable] class that wraps a [List] of [T] in order to provide stability to a composable
* when needed. The given [value] is assumed to be immutable.
*/
@Stable
data class StableList<T>(v... |
libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/components/preferences/PreferenceScreen.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
ui/common/src/main/java/ly/david/ui/common/MusicBrainzResourceExt.kt | unknown_repo | kotlin | package ly.david.ui.common
import androidx.annotation.StringRes
import ly.david.data.network.MusicBrainzResource
/**
* Returns an appropriate string resource for this [MusicBrainzResource].
*/
@StringRes
fun MusicBrainzResource.getDisplayTextRes(): Int {
return when (this) {
MusicBrainzResource.AREA -> ... |
detail/src/main/java/com/novina/navigation/feature/detail/ui/DetailFragment.kt | unknown_repo | kotlin | package com.novina.navigation.feature.detail.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.novina.navigation.feature.detail.R
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class D... |
app/src/main/java/com/bitvolper/yogazzz/presentation/accountsetup/SelectCurrentBodyShapeScreen.kt | unknown_repo | kotlin | package com.bitvolper.yogazzz.presentation.accountsetup
import android.content.res.Configuration
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.Image
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.isSystemInDarkTheme
import andro... |
groupchannel-user-online/src/main/java/com/sendbird/chat/sample/groupchannel/useronline/ui/main/MainActivity.kt | unknown_repo | kotlin | package com.sendbird.chat.sample.groupchannel.operators.ui.main
import androidx.fragment.app.Fragment
import com.sendbird.chat.module.ui.base.BaseMainActivity
import com.sendbird.chat.sample.groupchannel.operators.ui.groupchannel.GroupChannelListFragment
class MainActivity : BaseMainActivity() {
override fun getF... |
app/src/main/java/com/kylecorry/trail_sense/tools/tides/infrastructure/persistence/TideTableEntity.kt | unknown_repo | kotlin | package com.kylecorry.trail_sense.tools.tides.infrastructure.persistence
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.kylecorry.sol.science.oceanography.Tide
import com.kylecorry.sol.units.Coordinate
import com.kylecorry.trail_sense.shared.database.Identifiable... |
lib/src/main/java/com/kuliahin/compose/calendarview/ui/CalendarBody.kt | unknown_repo | kotlin | package com.kuliahin.compose.calendarview.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.... |
busybee-android/src/main/java/io/americanexpress/busybee/android/internal/BusyBeeIdlingResource.kt | unknown_repo | kotlin | /*
* Copyright 2019 American Express Travel Related Services Company, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
module/bookmark/src/main/java/jp/hazuki/yuzubrowser/bookmark/view/AddBookmarkSiteDialog.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017-2019 Hazuki
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
ui/shared/styles/src/main/kotlin/com/francescsoftware/weathersample/ui/shared/styles/Theme.kt | unknown_repo | kotlin | package com.francescsoftware.weathersample.ui.shared.styles
import android.os.Build
import androidx.annotation.ChecksSdkIntAtLeast
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.d... |
compose-designer/src/com/android/tools/idea/compose/preview/animation/AnimationPreview.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
app/src/main/java/com/dima/ticketholder/ui/widgets/ToggleableRadioButton.kt | unknown_repo | kotlin | package com.dima.ticketholder.ui.widgets
import android.content.Context
import android.util.AttributeSet
import android.widget.RadioGroup
import androidx.appcompat.widget.AppCompatRadioButton
class ToggleableRadioButton : AppCompatRadioButton {
constructor(context: Context?) : super(context)
constructor(cont... |
android/app/src/main/java/com/pda/screenshotmatcher2/views/fragments/rotationFragments/GalleryPreviewFragment.kt | unknown_repo | kotlin | package com.pda.screenshotmatcher2.views.fragments.rotationFragments
import android.os.Build
import android.os.Bundle
import android.view.HapticFeedbackConstants
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.ImageView
i... |
app/src/main/java/com/vr/app/sh/ui/base/DayViewModelFactory.kt | unknown_repo | kotlin | package com.vr.app.sh.ui.base
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.vr.app.sh.domain.UseCase.GetLessonsInDay
import com.vr.app.sh.domain.UseCase.GetListQuestions
import com.vr.app.sh.domain.UseCase.GetListTestsInClass
import com.vr.app... |
src/main/java/com/nativedevps/support/utility/view/ActivityFragmentUtils.kt | unknown_repo | kotlin | package com.nativedevps.support.utility.view
/**
* Various extension functions for AppCompatActivity.
*/
import android.app.Activity
import androidx.annotation.IdRes
import androidx.annotation.NonNull
import androidx.appcompat.app.ActionBar
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.ap... |
app/src/main/java/com/rivaldy/id/mvvmtemplateapp/utils/NumberTextWatcher.kt | unknown_repo | kotlin | package com.rivaldy.id.mvvmtemplateapp.utils
import android.text.Editable
import android.text.TextWatcher
import android.widget.EditText
import java.text.DecimalFormat
import java.text.ParseException
/**
* Created by rivaldy on 06/08/21
* Find me on my Github -> https://github.com/im-o
**/
class NumberTextWatcher... |
app/src/main/java/com/paularolim/movieapp/ui/navigation/NavigationGraph.kt | unknown_repo | kotlin | package com.paularolim.movieapp.ui.navigation
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.paularolim.movieapp.ui... |
audio-sdk/src/main/kotlin/com/leovp/audio/aac/AacDecoder.kt | unknown_repo | kotlin | @file:Suppress("unused", "MemberVisibilityCanBePrivate")
package com.leovp.audio.aac
import android.media.MediaCodec
import android.media.MediaFormat
import com.leovp.audio.base.iters.IDecodeCallback
import com.leovp.audio.mediacodec.BaseMediaCodecSynchronous
import com.leovp.audio.mediacodec.iter.IAudioMediaCodec.Co... |
Particle-Editor-Basic/src/jvmMain/kotlin/daylightnebula/particle/editor/BasicColors.kt | unknown_repo | kotlin | package daylightnebula.particle.editor
import androidx.compose.ui.graphics.Color
object BasicColors {
val background = Color(34, 40, 49)
val textViewBackground = Color(17, 19, 23)
val elementBackground = Color(48, 71, 94)
val highlightedElementBackground = Color(74, 111, 148)
val foreground = Colo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.