file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/rkbapps/neetflix/adapter/series/SeasonAdapter.kt | unknown_repo | kotlin | package com.rkbapps.neetflix.adapter.series
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.rkbapps.neetflix.activityes.SeasonsDetailsActivity... |
app/src/main/java/com/example/storyapplication/room/TypeEntity.kt | unknown_repo | kotlin | package com.example.storyapplication.room
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "type_table")
data class TypeEntity(
@PrimaryKey
@ColumnInfo(name = "index")
val index: Int,
@ColumnInfo(name = "type")
val type: String,
@... |
simplecanvaslib/src/main/java/com/phaulson/simplecanvaslib/data/DrawItem.kt | unknown_repo | kotlin | package com.phaulson.simplecanvaslib.data
import android.graphics.Paint
import android.graphics.Path
internal data class DrawItem(var path: Path, var paint: Paint, var x: Float, var y: Float) |
presentation/src/main/java/kr/genti/presentation/main/create/PoseFragment.kt | unknown_repo | kotlin | package kr.genti.presentation.main.create
import android.os.Bundle
import android.view.View
import androidx.activity.OnBackPressedCallback
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController
import dagger.hilt.android.AndroidEntryPoint
import kr.genti.core.base.BaseFra... |
data/src/main/java/com/example/template/cache/model/PostEntity.kt | unknown_repo | kotlin | package com.example.template.cache.model
import androidx.room.*
import com.example.template.cache.tools.BaseEntityItem
import com.example.template.model.Post
@Entity(
tableName = PostEntity.TABLE_NAME,
foreignKeys = [
ForeignKey(
entity = UserEntity::class,
parentColumns = [Use... |
app/src/main/java/app/evolute/compose/feature/social/presentation/screen/home/component/HomeItemComponent.kt | unknown_repo | kotlin | package app.evolute.compose.feature.social.presentation.screen.home.component
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose... |
app/src/main/java/com/xeniac/fifaultimateteamcoin_dsfut_sell_fut/feature_onboarding/presentation/OnboardingScreen.kt | unknown_repo | kotlin | package com.xeniac.fifaultimateteamcoin_dsfut_sell_fut.feature_onboarding.presentation
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.MaterialTheme
import androidx.compo... |
app/src/main/java/tech/bitcube/template/internal/TaskDeferred.kt | unknown_repo | kotlin | package tech.bitcube.template.internal
import com.google.android.gms.tasks.Task
import kotlinx.coroutines.CompletableDeferred
suspend fun <T> Task<T>.asDeferred(): T {
val deferred = CompletableDeferred<T>()
this.addOnSuccessListener { result ->
deferred.complete(result)
}
this.addOnFailureL... |
src/functionalTest/kotlin/com/autonomousapps/fixtures/sources.kt | unknown_repo | kotlin | // Copyright (c) 2024. <NAME>.
// SPDX-License-Identifier: Apache-2.0
@file:JvmName("Sources")
package com.autonomousapps.fixtures
val DEFAULT_APP_SOURCES = mapOf("MainActivity.kt" to """
package $DEFAULT_PACKAGE_NAME
import androidx.appcompat.app.AppCompatActivity
class ... |
app/src/main/java/de/jannis_jahr/motioncapturingapp/utils/NetworkUtils.kt | unknown_repo | kotlin | package de.jannis_jahr.motioncapturingapp.utils
import android.content.SharedPreferences
import com.google.gson.GsonBuilder
import de.jannis_jahr.motioncapturingapp.network.services.MocapService
import de.jannis_jahr.motioncapturingapp.network.services.authentication.BasicAuthInterceptor
import de.jannis_jahr.motionca... |
app/src/main/java/com/kirakishou/photoexchange/service/ReceivePhotosService.kt | unknown_repo | kotlin | package com.kirakishou.photoexchange.service
import android.app.*
import android.content.Context
import android.content.Intent
import android.os.Binder
import android.os.Build
import android.os.IBinder
import android.support.annotation.RequiresApi
import android.support.v4.app.NotificationCompat
import com.kirakishou.... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/TimeDuration45.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
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.vector.ImageVector
import androidx.compose.ui.graphics.vector... |
tencentlog/src/main/java/com/yxf/tencentlog/TencentLogWriter.kt | unknown_repo | kotlin | package com.yxf.tencentlog
import android.util.Log
import com.yxf.tencentlog.proto.Cls
import com.yxf.tencentlog.proto.Cls.LogGroup
import com.yxf.tencentlog.proto.Cls.LogGroupList
import com.yxf.tencentlog.sign.QcloudClsSignature
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotli... |
app/src/main/java/com/apaluk/streamtheater/ui/media/player/PlayerScreen.kt | unknown_repo | kotlin | package com.apaluk.streamtheater.ui.media.player
import android.net.Uri
import android.view.View
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
import android.widget.FrameLayout
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layou... |
tool-timber/src/main/kotlin/com/infinum/sentinel/ui/tools/TimberTool.kt | unknown_repo | kotlin | package com.infinum.sentinel.ui.tools
import android.content.Intent
import android.view.View
import com.infinum.sentinel.R
import com.infinum.sentinel.Sentinel
import com.infinum.sentinel.ui.logger.LoggerActivity
/**
* Specific wrapper tool around Timber.
*
* Tool Activity will launch with no additional flags.
*/... |
Hilt/app/src/main/java/com/example/hilt/Repository.kt | unknown_repo | kotlin | package com.example.hilt
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
class Repository {
private var _test: MutableLiveData<TestClass> = MutableLiveData()
var test: LiveData<TestClass> = _test
private var _shared: MutableLiveData<String> = MutableLiveData()
var shared:... |
adapter_endless/src/main/java/com/utsman/adapter/endless/EndlessLoaderAdapter.kt | unknown_repo | kotlin | /*
* Created by <NAME> on 8/11/19 6:44 AM
* Copyright (c) 2019 . All rights reserved.
* Last modified 8/11/19 6:44 AM
*/
package com.utsman.adapter.endless
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.ViewGroup
@Suppress("UNCHECKED_CAST")
ab... |
app/src/main/java/com/aliernfrog/lactool/Constant.kt | unknown_repo | kotlin | package com.aliernfrog.lactool
import android.os.Build
import android.os.Environment
import com.aliernfrog.lactool.data.PrefEditItem
import com.aliernfrog.lactool.data.Social
const val experimentalSettingsRequiredClicks = 10
const val githubRepoURL = "https://github.com/aliernfrog/lac-tool"
val externalStorageRoot =... |
app/src/main/java/com/example/topnews/firebase/MyFirebaseMessagingService.kt | unknown_repo | kotlin | package com.example.topnews.firebase
import android.R
import android.app.Notification
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Intent
import com.example.topnews.NewsActivity
import com.google.firebase.messaging.FirebaseMessagingService
import com.google.firebase.me... |
app/src/main/java/com/example/notably/ui/notification/MyFirebaseMessagingService.kt | unknown_repo | kotlin | package com.example.notably.ui.notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.graphics.BitmapFactory
import android.os.Build
import android.os.Bundle
import android.u... |
modules/appctx/src/androidMain/kotlin/splitties/init/AppCtxInitializer.kt | unknown_repo | kotlin | /*
* Copyright 2019-2021 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package splitties.init
import android.app.Application
import android.content.Context
import androidx.annotation.Keep
import androidx.startup.Initializer
/**
* Initializes [appCtx] so it can be u... |
app/src/main/java/com/telen/easylineup/player/PlayerDetailsFragment.kt | unknown_repo | kotlin | /*
Copyright (c) <NAME>. 2010-2024
*/
package com.telen.easylineup.player
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ArrayAdapter
import androidx.fragment.app.viewModels
import androidx.... |
shared_resources/src/main/java/com/thewizrd/shared_resources/actions/RemoteAction.kt | unknown_repo | kotlin | package com.thewizrd.shared_resources.actions
import android.os.*
import androidx.annotation.Keep
import com.thewizrd.shared_resources.utils.JSONParser
const val ACTION_PERFORMACTION = "SimpleWear.wearsettings.action.PERFORM_ACTION"
const val EXTRA_ACTION_DATA = "SimpleWear.wearsettings.extra.ACTION_DATA"
const val E... |
app/src/main/java/com/zyf/color/util/BitmapUtil.kt | unknown_repo | kotlin | package com.zyf.color.util
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Matrix
import android.media.ExifInterface
import android.util.Log
import java.io.File
import java.io.FileOutputStream
import java.io.IOException
/**
* Bitmap压缩工具
*/
object BitmapUtil {
priva... |
app/src/main/java/com/bb/blockbuster/persistence/CartDao.kt | unknown_repo | kotlin | package com.bb.blockbuster.persistence
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.bb.blockbuster.model.Cart
import com.bb.blockbuster.model.Movie
@Dao
interface CartDao {
@Insert(onConflict = OnConflictStrategy.IGNORE)
su... |
app/src/main/java/com/musical/instrument/simulator/app/utils/AdsInter.kt | unknown_repo | kotlin | package com.musical.instrument.simulator.app.utils
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.os.Build
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import a... |
app/src/main/java/com/example/spotifyclone/ui/fragments/SongFragment.kt | unknown_repo | kotlin | package com.example.spotifyclone.ui.fragments
import android.os.Bundle
import android.support.v4.media.session.PlaybackStateCompat
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.SeekBar
import android.widget.SeekBar.OnSeekBarChangeListener
import android... |
app/src/main/kotlin/net/yuzumone/bergamio/view/RecyclerItemClickListener.kt | unknown_repo | kotlin | package net.yuzumone.bergamio.view
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.GestureDetector
import android.view.MotionEvent
import android.view.View
class RecyclerItemClickListener(context: Context,
private val listener: RecyclerI... |
library/src/main/java/com/qautomatron/kopi/library/element/Element.kt | unknown_repo | kotlin | package com.qautomatron.kopi.library.element
import android.view.View
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.Root
import androidx.test.espresso.ViewInteraction
import androidx.test.espresso.matcher.RootMatchers
import androidx.test.espresso.matcher.ViewMatchers
import org.hamcrest.... |
app/src/main/java/com/emrekose/videogames/ui/favorites/FavGamesRecyclerViewAdapter.kt | unknown_repo | kotlin | package com.emrekose.videogames.ui.favorites
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.emrekose.videogames.common.BaseDiffCallback
import com.emrekose.videogames.databinding.ItemGameBindin... |
Mobile/Demos/QuoteOfDay/android/app/src/main/java/palbp/laboratory/demos/quoteofday/QuoteOfDayApplication.kt | unknown_repo | kotlin | package palbp.laboratory.demos.quoteofday
import android.app.Application
import android.util.Log
import androidx.work.*
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import kotlinx.coroutines.delay
import okhttp3.Cache
import okhttp3.OkHttpClient
import palbp.laboratory.demos.quoteofday.quotes.*
impor... |
core/src/main/java/com/mataku/scrobscrob/core/entity/TopArtistInfo.kt | unknown_repo | kotlin | package com.mataku.scrobscrob.core.entity
import androidx.compose.runtime.Immutable
import kotlinx.collections.immutable.ImmutableList
@Immutable
data class TopArtistInfo(
val name: String,
val imageList: ImmutableList<Image>,
val topTags: ImmutableList<Tag>,
val playCount: String,
val url: String,
var im... |
uilib/src/main/java/dev/entao/kan/page/Cmd.kt | unknown_repo | kotlin | package dev.entao.kan.page
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import dev.entao.kan.ext.textS
import dev.entao.kan.widget.ActionMenuItemInfo
class Cmd(var cmd: String = genCmd) {
init {
if (cmd.isEmpty()) {
cmd = genCmd
}
}
lateinit var view: View
// var... |
app/src/main/java/net/dcnnt/fragments/OpenerFragment.kt | unknown_repo | kotlin | package net.dcnnt.fragments
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.Toolbar
import androidx.core.os.bun... |
app/src/main/java/com/epicqueststudios/cocktails/presentation/views/MainScreenList.kt | unknown_repo | kotlin | package com.epicqueststudios.cocktails.presentation.views
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding... |
mobile_client/app/src/main/java/epitech/area/Tools/InfoService.kt | unknown_repo | kotlin | package epitech.area.Tools
import android.util.Log
import com.github.kittinunf.fuel.core.FuelManager
import com.github.kittinunf.fuel.httpGet
import epitech.area.Storages.*
class InfoService {
private object Holder { val INSTANCE = InfoService() }
companion object {
val instance: InfoService by lazy... |
app/src/main/java/dev/pinaki/mubifotd/landing/di/LandingSubContainer.kt | unknown_repo | kotlin | package dev.pinaki.mubifotd.landing.di
import android.content.Context
import dev.pinaki.mubifotd.di.module.AlarmModule
import dev.pinaki.mubifotd.di.module.InteractorModule
import dev.pinaki.mubifotd.landing.LandingScreenViewController
import kotlinx.coroutines.CoroutineScope
class LandingSubContainer(
private va... |
app/src/main/java/com/spindox/composetemplate/utility/Utils.kt | unknown_repo | kotlin | package com.spindox.composetemplate.utility
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.runtime.Composable
import com.spindox.composetemplate.enums.ThemeAppearance
@Composable
fun isDarkTheme(themeAppearance: ThemeAppearance): Boolean {
return when (themeAppearance) {
Th... |
composeApp/src/androidMain/kotlin/com/appmilla/kmpjetpackdemo/di/AndroidModule.kt | unknown_repo | kotlin | package com.appmilla.kmpjetpackdemo.di
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import data.repositories.createDataStore
import org.koin.dsl.module
val androidModule =
module {
single { dataStore(get()) }
}
fun data... |
app/src/main/java/com/example/codenote/NotesRVAdapter.kt | unknown_repo | kotlin | package com.example.codenote
import android.content.Context
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
class NotesRVAdapter(private val context: Context, priva... |
app/src/main/java/com/example/codenote/NotesRVAdapter.kt | unknown_repo | kotlin | package com.example.codenote
import android.content.Context
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
class NotesRVAdapter(private val context: Context, priva... |
app/src/main/java/com/themoviedbdemo/module/popular/view/PopularFragment.kt | unknown_repo | kotlin | package com.themoviedbdemo.module.popular.view
import android.os.Bundle
import android.support.v4.widget.SwipeRefreshLayout
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.View
import com.themoviedbdemo.R
import com.themoviedbdemo.base.BaseFragment... |
app/src/main/java/com/stslex/cnotes/shortcut/ShortcutBuilderImpl.kt | unknown_repo | kotlin | package com.stslex.cnotes.shortcut
import android.content.Context
import st.slex.feature_main.ui.ShortcutBuilder
import com.stslex.core.error.AppLogger
class ShortcutBuilderImpl(
private val context: Context
) : ShortcutBuilder {
private val listOfShortcuts: List<ShortcutAction> by lazy {
listOf(AppS... |
app/src/main/java/tech/danielwaiguru/qhalamovies/utils/BindingAdapter.kt | unknown_repo | kotlin | package tech.danielwaiguru.qhalamovies.utils
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import tech.danielwaiguru.qhalamovies.common.extensions.loadImage
@BindingAdapter("loadImageFromUrl")
fun bindImageFromUrl(view: ImageView, imageUrl: String?) {
if (!imageUrl.isNullOrEmpty()) {
... |
app/src/main/java/com/umer/beehiveclient/bottomSheets/BackupOptionsSheet.kt | unknown_repo | kotlin | package com.umer.beehiveclient.bottomSheets
import android.content.Context
import com.google.android.material.bottomsheet.BottomSheetDialog
import com.umer.beehiveclient.databinding.BackupOptionBottomSheetBinding
import com.umer.beehiveclient.listeners.BackupOptionListener
class BackupOptionsSheet(context: Context, p... |
app/src/main/kotlin/com/greenlionsoft/cleanlistadapterdemo/composed/ComposedPresenterActivity.kt | unknown_repo | kotlin | package com.greenlionsoft.cleanlistadapterdemo.composed
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import android.widget.Toast
import com.greenlionsoft.cleanlist.lib.ComposedCleanListAdapter
import com.greenlionsoft.cleanlist.lib.Com... |
utils/src/main/java/top/xuqingquan/utils/ProcessUtils.kt | unknown_repo | kotlin | @file:JvmName("ProcessUtils")
package top.xuqingquan.utils
import android.Manifest
import android.annotation.SuppressLint
import android.app.ActivityManager
import android.app.ActivityManager.RunningAppProcessInfo
import android.app.AppOpsManager
import android.app.Application
import android.app.usage.UsageStats
impo... |
example/src/main/java/com/crowdin/platform/example/adapter/SampleAdapter.kt | unknown_repo | kotlin | package com.crowdin.platform.example.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.crowdin.platform.example.R
internal class SampleAdapter(private var dataArray: Array<String>) :
RecyclerView.Adap... |
codeLabKotlinConditionalNavigation/app2/src/main/java/com/example/android/firebaseui_login_sample/MainFragment.kt | unknown_repo | kotlin | /*
* Copyright 2019, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
saved-sites/saved-sites-impl/src/test/java/com/duckduckgo/savedsites/impl/sync/DisplayModeSyncableSettingTest.kt | unknown_repo | kotlin | package com.duckduckgo.savedsites.impl.sync
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.duckduckgo.common.test.CoroutineTestRule
import com.duckduckgo.savedsites.store.FavoritesDisplayMode
import com.duckduckgo.sync.settings.api.SyncSettingsListener
import kotlinx.coroutines.test.runTest
import org... |
app/src/main/java/com/ljubenvassilev/cities/cities/CitiesContract.kt | unknown_repo | kotlin | package com.ljubenvassilev.cities.cities
import androidx.lifecycle.LiveData
import com.ljubenvassilev.cities.cities.entities.CityEntity
interface CitiesContract {
interface Repository {
fun getCities(offset: Int): LiveData<List<CityEntity>>
fun getRemoteCities(offset: Int, limit: Int)
fun ... |
app/src/main/java/com/mobiledevpro/app/utils/AnalyticsExtensions.kt | unknown_repo | kotlin | package com.mobiledevpro.app.utils
import android.os.Bundle
import com.google.firebase.analytics.FirebaseAnalytics
/**
* Send data to Analytics
*
* Created by Dmitriy Chernysh on Apr 04, 2020.
*
* http://mobile-dev.pro
*
*/
private const val ANALYTICS_KEY_EVENT_APP_LINK_SHARED = "app_link_shared"
private cons... |
app/src/main/java/com/douglas/githubauth/module/core/CoreViewModel.kt | unknown_repo | kotlin | package com.douglas.githubauth.module.core
import android.arch.lifecycle.MutableLiveData
import com.douglas.githubauth.domain.CheckLoginUseCase
import com.douglas.githubauth.module.base.BaseViewModel
import javax.inject.Inject
class CoreViewModel
@Inject constructor(private var checkLoginUseCase: CheckLoginUseCas... |
app/src/main/java/com/wbrawner/simplemarkdown/view/fragment/MarkdownInfoFragment.kt | unknown_repo | kotlin | package com.wbrawner.simplemarkdown.view.fragment
import android.content.res.Configuration
import android.os.Bundle
import android.view.LayoutInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.appcompat.app.AppCompatDelegate
import a... |
px-checkout/src/main/java/com/mercadopago/android/px/internal/features/one_tap/add_new_card/sheet_options/CardFormBottomSheetFragment.kt | unknown_repo | kotlin | package com.mercadopago.android.px.internal.features.one_tap.add_new_card.sheet_options
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
impo... |
app/src/main/java/org/simple/clinic/monthlyreports/form/compose/QuestionnaireDateInputField.kt | unknown_repo | kotlin | package org.simple.clinic.monthlyreports.form.compose
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.interaction.PressInteraction
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.... |
anime_component/src/main/java/com/xyoye/anime_component/ui/fragment/home_page/HomePageViewModel.kt | unknown_repo | kotlin | package com.xyoye.anime_component.ui.fragment.home_page
import com.xyoye.common_component.base.BaseViewModel
/**
* Created by xyoye on 2020/7/30.
*/
class HomePageViewModel : BaseViewModel(){
} |
dispatchandroid/src/androidTest/java/com/tonyodev/dispatchandroid/DispatchQueueAndroidTest.kt | unknown_repo | kotlin | package com.tonyodev.dispatchandroid
import androidx.test.InstrumentationRegistry
import androidx.test.runner.AndroidJUnit4
import com.tonyodev.dispatch.DispatchQueue
import com.tonyodev.dispatchandroid.thread.AndroidThreadHandlerFactory
import com.tonyodev.dispatchandroid.utils.AndroidLogger
import junit.framework.As... |
app/src/main/java/com/libandexample/tutorials/codinginflow/intentservice/IntentServiceMainActivity.kt | unknown_repo | kotlin | package com.libandexample.tutorials.codinginflow.intentservice
import android.content.Intent
import android.os.Bundle
import android.widget.EditText
import com.libandexample.R
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
class IntentServiceMainActivity : AppCompatActivi... |
core/datastore/src/main/java/com/msg/datastore/di/DataStoreModule.kt | unknown_repo | kotlin | package com.msg.datastore.di
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.core.DataStoreFactory
import androidx.datastore.dataStoreFile
import com.msg.datastore.AuthToken
import com.msg.datastore.AuthTokenSerializer
import dagger.Module
import dagger.Provides
import... |
sample/src/main/java/com/github/terrakok/androidcomposeapp/AppActivity.kt | unknown_repo | kotlin | package com.github.terrakok.androidcomposeapp
import android.content.res.Configuration
import android.os.Bundle
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation... |
app/src/main/java/com/saurabharora/customtabs/sample/ServiceConnectionActivity.kt | unknown_repo | kotlin | package com.saurabharora.customtabs.sample
import android.net.Uri
import com.saurabharora.customtabs.CustomTabActivityHelper
import androidx.browser.customtabs.CustomTabsIntent
import android.widget.EditText
import android.os.Bundle
import android.view.View
import android.widget.Button
import androidx.appcompat.app.Ap... |
transcoder/src/main/java/com/exozet/transcoder/ffmpeg/FFMpegTranscoder.kt | unknown_repo | kotlin | package com.exozet.transcoder.ffmpeg
import android.content.Context
import android.net.Uri
import android.util.Log
import androidx.annotation.IntRange
import com.arthenica.mobileffmpeg.Config
import com.arthenica.mobileffmpeg.FFmpeg
import io.reactivex.Observable
import java.io.File
import java.util.*
import java.util... |
mobile/src/main/java/com/siliconlabs/bledemo/environment/presenters/EnvironmentPresenter.kt | unknown_repo | kotlin | package com.siliconlabs.bledemo.environment.presenters
import android.bluetooth.BluetoothGattCharacteristic
import android.os.Handler
import com.siliconlabs.bledemo.Bluetooth.BLE.GattCharacteristic
import com.siliconlabs.bledemo.Bluetooth.BLE.GattService
import com.siliconlabs.bledemo.environment.model.EnvironmentEven... |
lib/src/main/java/org/oneui/compose/picker/color/ColorPickerTabLayout.kt | unknown_repo | kotlin | package org.oneui.compose.picker.color
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx... |
shared-ui/src/commonMain/kotlin/pokedex/ui/utils/PreComposeMobiusLoop.kt | unknown_repo | kotlin | package pokedex.ui.utils
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.remember
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
import kt.mobius.First
import kt.m... |
AOS/app/src/main/java/com/example/eeos/navigation/EEOSNavGraph.kt | unknown_repo | kotlin | package com.example.eeos.navigation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.navigation.NavHostController
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.com... |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/Picpeople.kt | unknown_repo | kotlin | package me.localx.icons.straight.bold
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
i... |
app/src/main/kotlin/co/netguru/baby/monitor/client/feature/onboarding/FeaturePresentationFragment.kt | unknown_repo | kotlin | package co.netguru.baby.monitor.client.feature.onboarding
import android.os.Bundle
import androidx.core.text.HtmlCompat
import android.text.method.LinkMovementMethod
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.navigation.fragm... |
app/src/main/java/kz/insomnia/find/author/MainActivity.kt | unknown_repo | kotlin | package kz.insomnia.find.author
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.com... |
app/src/androidTest/kotlin/me.tmonteiro.kacn.playground/ui/CadListFragmentTest.kt | unknown_repo | kotlin | package me.tmonteiro.kacn.playground.ui
import androidx.test.ext.junit.runners.AndroidJUnit4
import io.mockk.mockk
import me.tmonteiro.kacn.playground.repository.PlaygroundRepository
import me.tmonteiro.kacn.playground.ui.robot.CardListFragmentTestRobot
import me.tmonteiro.kacn.playground.ui.rules.DisableAnimationsRul... |
app/src/main/java/com/mayokunadeniyi/instantweather/ui/searchdetail/SearchDetailFragment.kt | unknown_repo | kotlin | package com.mayokunadeniyi.instantweather.ui.searchdetail
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.navArgs
import com.mayokunadeniyi.instantweather.databinding.FragmentSea... |
app/src/main/java/tk/paulmburu/moviesreview/MovieApplication.kt | unknown_repo | kotlin | package tk.paulmburu.moviesreview
import android.app.Application
import android.os.Build
import androidx.work.*
import dagger.android.AndroidInjector
import dagger.android.support.DaggerApplication
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import ti... |
app/src/main/java/pro/jayeshseth/animations/ui/screens/animatedNav/ScaleNav.kt | unknown_repo | kotlin | package pro.jayeshseth.animations.ui.screens.animatedNav
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compo... |
app/src/main/java/com/andb/apps/corners/About.kt | unknown_repo | kotlin | package com.andb.apps.corners
import android.content.Context
import android.content.Intent
import android.net.Uri
import com.danielstone.materialaboutlibrary.ConvenienceBuilder
import com.danielstone.materialaboutlibrary.MaterialAboutFragment
import com.danielstone.materialaboutlibrary.items.MaterialAboutActionItem
im... |
e6/canasta/core/ui/src/main/java/ven/canasta/core/ui/mock/cmp/CartButton.kt | unknown_repo | kotlin | package ven.canasta.core.ui.mock.cmp
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
@Composable
fun CartButton() {
Text("<cart-button>")
} |
CorePayments/src/main/java/com/paypal/android/corepayments/HttpResponse.kt | unknown_repo | kotlin | package com.paypal.android.corepayments
import androidx.annotation.RestrictTo
import java.net.HttpURLConnection
/**
* @suppress
*/
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
data class HttpResponse(
val status: Int,
val headers: Map<String, String> = emptyMap(),
val body: String? = null,
val error:... |
app/src/main/java/com/concordium/wallet/ui/walletconnect/WalletConnectMessageSignedFragment.kt | unknown_repo | kotlin | package com.concordium.wallet.ui.walletconnect
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.concordium.wallet.databinding.FragmentWalletConnectMessageSignedBinding
class WalletConnectMessageSignedFra... |
app/src/main/kotlin/com/fibelatti/raffler/features/quickdecision/data/QuickDecisionDto.kt | unknown_repo | kotlin | package com.fibelatti.raffler.features.quickdecision.data
import androidx.room.Entity
import androidx.room.Ignore
import com.fibelatti.raffler.core.functional.Mapper
import com.fibelatti.raffler.features.quickdecision.QuickDecision
import javax.inject.Inject
const val QUICK_DECISION_DTO_TABLE_NAME = "QuickDecision"
c... |
app/src/main/java/com/example/weathernojkt/ui/components/WeatherScaffold.kt | unknown_repo | kotlin | package com.example.weathernojkt.ui.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Divider
import androidx.compose... |
app/src/main/kotlin/de/hpi/etranslation/feature/dashboard/usecase/DeprecateRecordUseCase.kt | unknown_repo | kotlin | package de.hpi.etranslation.feature.dashboard.usecase
import android.util.Log
import care.data4life.fhir.r4.model.DocumentReference
import care.data4life.fhir.r4.model.DomainResource
import care.data4life.fhir.r4.model.Extension
import com.github.michaelbull.result.coroutines.binding.binding
import de.hpi.etranslation... |
app/src/main/java/it/bosler/remotealarm/ui/screens/SettingsScreen.kt | unknown_repo | kotlin | package it.bosler.remotealarm.ui.screens
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import it.bosler.remotealarm.ui.navigation.ScreenType
@Composable
fun SettingsScreen() {
Column {
Text(ScreenType.Settings.name.asStri... |
app/src/main/java/org/ak80/skeleton/di/ApplicationModule.kt | unknown_repo | kotlin | package org.ak80.skeleton.di
import android.app.Application
import android.content.Context
import dagger.Binds
import dagger.Module
/**
* Dagger module to bind Application class as a Context in the [AppComponent].
*/
@Module
abstract class ApplicationModule {
@Binds
internal abstract fun bindContext(applic... |
classLayout/app/src/main/java/linear/app/bel/classlayout/SharedPreference.kt | unknown_repo | kotlin | package linear.app.bel.classlayout
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_shared_preference.*
class SharedPreference : AppCompatActivity() {
var keyUsername : String = "user... |
app/src/main/java/util/room/daos/CourseResultDao.kt | unknown_repo | kotlin | /*
* Copyright 2014-2018 <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 ... |
view/src/main/java/com/example/view/bezier/grid/Commont.kt | unknown_repo | kotlin | package com.example.view.bezier.grid
import android.content.Context
import android.graphics.Point
import android.graphics.PointF
import android.util.DisplayMetrics
import android.view.WindowManager
import kotlin.math.sqrt
fun isClickPoint(src : Point, dst: Point, radius: Float) = disPos2d(src.x.toFloat(), src.y.toFlo... |
presentation/src/main/java/com/yapp/bol/presentation/view/mypage/MyGroupAdapter.kt | unknown_repo | kotlin | package com.yapp.bol.presentation.view.mypage
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.yapp.bol.presentation.R
import com.yapp.bol.presentati... |
Chapter 13/41_nav_scaffold1.kt | unknown_repo | kotlin | @Composable
fun MainNav(
// replace viewModel() with koinViewModel() or hiltViewModel()
scaffoldViewModel: ScaffoldViewModel = viewModel()
) {
val navController = rememberNavController()
val scaffoldState by scaffoldViewModel
.uiState.collectAsStateWithLifecycle()
Scaffolder(
state ... |
app/src/main/java/com/example/gymtracker/ui/workoutScreen/CopyWorkoutDialogFragment.kt | unknown_repo | kotlin | package com.example.gymtracker.ui.workoutScreen
import android.app.AlertDialog
import android.app.Dialog
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import androidx.fragment.app.DialogFragment
import ... |
helium/src/main/java/com/joaquimverges/helium/presenter/ListPresenter.kt | unknown_repo | kotlin | package com.joaquimverges.helium.presenter
import android.arch.lifecycle.Lifecycle
import android.arch.lifecycle.OnLifecycleEvent
import com.joaquimverges.helium.event.ViewEvent
import com.joaquimverges.helium.repository.BaseRepository
import com.joaquimverges.helium.state.NetworkViewState
import com.joaquimverges.hel... |
app/src/main/java/com/toast/android/gamebase/sample/ui/components/text/ClickableText.kt | unknown_repo | kotlin | package com.toast.android.gamebase.sample.ui.components.text
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import andr... |
app/src/main/java/com/bsuir/bsuirschedule/presentation/popupMenu/ScheduleHeaderMenu.kt | unknown_repo | kotlin | package com.bsuir.bsuirschedule.presentation.popupMenu
import android.content.Context
import android.view.View
import android.widget.PopupMenu
import com.bsuir.bsuirschedule.R
class ScheduleHeaderMenu(
private val context: Context,
private val onUpdateClick: () -> Unit,
private val onSubjectAddClick: () -... |
core/src/main/kotlin/com/zedalpha/shadowgadgets/core/layer/RenderNodeLayer.kt | unknown_repo | kotlin | package com.zedalpha.shadowgadgets.core.layer
import android.graphics.Canvas
import android.graphics.Paint
import com.zedalpha.shadowgadgets.core.rendernode.RenderNodeFactory
internal class RenderNodeLayer(
override val drawContent: (Canvas) -> Unit
) : ManagedLayer {
private var layerNode = RenderNodeFactor... |
app/src/main/java/vn/loitp/app/activity/customviews/switchtoggle/togglebuttongroup/TBGSingleSelectActivity.kt | unknown_repo | kotlin | package vn.loitp.app.activity.customviews.switchtoggle.togglebuttongroup
import android.os.Bundle
import com.annotation.IsFullScreen
import com.annotation.LogTag
import com.core.base.BaseFontActivity
import kotlinx.android.synthetic.main.activity_switch_tbg_single.*
import vn.loitp.app.R
@LogTag("TBGSingleSelectActiv... |
app/src/main/java/com/dokeraj/androtainer/viewmodels/DockerListerViewModel.kt | unknown_repo | kotlin | package com.dokeraj.androtainer.viewmodels
import androidx.hilt.Assisted
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.*
import com.dokeraj.androtainer.models.ContainerActionType
import com.dokeraj.androtainer.models.ContainerStateType
import com.dokeraj.androtainer.models.Kontainer
import c... |
app/src/main/java/com/hdd/permissionrequest/permission/PermissionRequest.kt | unknown_repo | kotlin | package com.hdd.permissionrequest.permission
import android.content.Context
import android.os.Bundle
import android.os.Handler
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentAct... |
app/src/main/java/com/greenart7c3/nostrsigner/ui/previews/EventDataPreview.kt | unknown_repo | kotlin | package com.greenart7c3.nostrsigner.ui.previews
import android.annotation.SuppressLint
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
imp... |
app/src/main/java/com/dowgalolya/gwenthelper/adapters/itemdecoration/CardRowItemDecoration.kt | unknown_repo | kotlin | package com.dowgalolya.gwenthelper.adapters.itemdecoration
import android.content.Context
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.dowgalolya.gwenthelper.R
class CardRowItemDecoration(context : Context) : RecyclerView.ItemDecoration() {
pri... |
app/src/main/java/com/fioalpha/poc/form/presentation/calcule/InvestedViewModel.kt | unknown_repo | kotlin | package com.fioalpha.poc.form.presentation.calcule
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.fioalpha.poc.domain.model.FormData
import com.fioalpha.poc.domain.ValidatedForm
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.MutableStateFlow
import ko... |
app/src/main/java/com/jjewuz/justnotes/BackupFragment.kt | unknown_repo | kotlin | package com.jjewuz.justnotes
import android.app.Activity
import android.content.ContentValues
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.util.Log
import androidx.compose.material3.Text
import android.view.LayoutInflater
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.