file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/example/socialk/components/SocialDialog.kt | unknown_repo | kotlin | package com.example.socialk.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.ClickableText
import androidx.compo... |
app/src/main/java/me/bakumon/moneykeeper/ui/review/ReviewItemDataConverter.kt | unknown_repo | kotlin | /*
* Copyright 2018 Bakumon. https://github.com/Bakumon
*
* 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... |
app/src/main/java/br/com/bestbrewer/persistence/entity/UnidadeMedida.kt | unknown_repo | kotlin | package br.com.bestbrewer.persistence.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "unidade_medida")
data class UnidadeMedida(
@PrimaryKey @ColumnInfo(name = "id") val id: Long,
@ColumnInfo(name = "descricao") val descricao: String,
... |
app/src/main/java/com/example/marvel/app/database/DatabaseConfig.kt | unknown_repo | kotlin | package com.example.marvel.app.database
import android.content.Context
import androidx.room.Room
class DatabaseConfig(
val name: String,
val context: Context
) {
val db: AppDatabase by lazy {
Room.databaseBuilder(
context,
AppDatabase::class.java, name
)
... |
app/src/main/kotlin/com.jdamcd.sudoku/base/Presenter.kt | unknown_repo | kotlin | package com.jdamcd.sudoku.base
import androidx.annotation.CallSuper
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
open class Presenter<V : PresenterView> {
private val disposables = CompositeDisposable()
protected var view: V? = null
@CallSuper
open f... |
app/src/main/java/com/lockwood/compoundemo/fragment/showcase/listener/ToastCompoundViewClickListener.kt | unknown_repo | kotlin | package com.lockwood.compoundemo.fragment.showcase.listener
import android.content.Context
import android.graphics.drawable.Drawable
import android.view.MotionEvent
import android.view.View
import com.lockwood.compound.CompoundViewClickListener
import com.lockwood.compoundemo.extensions.toast
class ToastCompoundViewC... |
app/src/main/java/com/example/wallpaper/utils/MyApp.kt | unknown_repo | kotlin | package com.example.wallpaper.utils
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
import io.github.inflationx.calligraphy3.CalligraphyConfig
import io.github.inflationx.calligraphy3.CalligraphyInterceptor
import io.github.inflationx.viewpump.ViewPump
@HiltAndroidApp
class MyApp : Applicati... |
status/src/main/java/com/pyamsoft/tetherfi/status/sections/tiiles/RunningTiles.kt | unknown_repo | kotlin | package com.pyamsoft.tetherfi.status.sections.tiiles
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.c... |
ui-lib/src/main/java/co/electriccoin/zcash/ui/screen/settings/view/SettingsView.kt | unknown_repo | kotlin | package co.electriccoin.zcash.ui.screen.settings.view
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose... |
stream-video-android-ui-xml/src/main/kotlin/io/getstream/video/android/xml/imageloading/StreamCoil.kt | unknown_repo | kotlin | /*
* Copyright (c) 2014-2022 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-video-android/blob/main/LICENSE
*
* Unless required by ... |
app/src/main/java/com/cngal/app/compose/video/single/RelevanceGroupCard.kt | unknown_repo | kotlin | package com.cngal.app.compose.video.single
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyRow
import androidx.com... |
app/src/main/java/com/workbook/liuwb/workbook/actions/animation/propertyanimation/evaluator/PointEvaluatorActivity.kt | unknown_repo | kotlin | package com.workbook.liuwb.workbook.actions.animation.propertyanimation.evaluator
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.workbook.liuwb.workbook.databinding.ActivityPointevaluatorBinding
class PointEvaluatorActivity : AppCompatActivity() {
private val binding: Activit... |
app/src/main/java/com/overeasy/simplemusicplayer/scenario/splash/SplashActivity.kt | unknown_repo | kotlin | package com.overeasy.simplemusicplayer.scenario.splash
import android.content.Intent
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import com.overeasy.simplemusicplayer.modules.permission.StoragePermissionHelper
import com.overeasy.simplemusi... |
app/src/main/java/com/voidhash/roomroom/activity/MainActivity.kt | unknown_repo | kotlin | package com.voidhash.roomroom.activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.voidhash.roomroom.R
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.... |
history/ui/src/main/java/com/mitteloupe/whoami/history/ui/view/HistoryViewsProvider.kt | unknown_repo | kotlin | package com.mitteloupe.whoami.history.ui.view
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.mitteloupe.whoami.architecture.ui.view.ViewsProvider
interface HistoryViewsProvider : ViewsProvider {
var noRecordsView: View
val recordsListView: RecyclerView
}
|
wear/src/main/java/io/homeassistant/companion/android/home/views/TemplateTileSettingsView.kt | unknown_repo | kotlin | package io.homeassistant.companion.android.home.views
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graph... |
app/src/main/java/com/ferrariofilippo/saveapp/converters/Adapters.kt | unknown_repo | kotlin | // Copyright (c) 2024 <NAME>
// Licensed under the MIT License. See the LICENSE.
package com.ferrariofilippo.saveapp.converters
import android.view.View
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.ferrariofilippo.saveapp.R
import com.google.android.material.button.MaterialBut... |
SurfaceDuoSamples/src/main/java/com/microsoft/device/display/samples/duosamples/DuoSamplesDetailsFragment.kt | unknown_repo | kotlin | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
*/
package com.microsoft.device.display.samples.duosamples
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
imp... |
app/src/main/java/org/bxkr/octodiary/screens/navsections/daybook/CalendarCell.kt | unknown_repo | kotlin | package org.bxkr.octodiary.screens.navsections.daybook
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.fo... |
Holi/src/main/java/com/siddroid/holi/brushes/GradientMixer.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2021 <NAME>, Siddroid.com
*
* 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, c... |
app/src/main/java/com/boomapps/steemapp/ui/feeds/FeedViewHolder.kt | unknown_repo | kotlin | /*
* Copyright 2018, BoomApps LLC.
* All rights reserved.
*/
package com.boomapps.steemapp.ui.feeds
import android.support.v4.content.ContextCompat
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
... |
shared/src/commonMain/kotlin/link.peipei.countmoney/workflow/add/goods/GoodsDetailsPage.kt | unknown_repo | kotlin | package link.peipei.countmoney.workflow.add.goods
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Scaffold
import androidx.compose.material3.SnackbarHost
import androidx.compose.material3.SnackbarHostState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.re... |
wear/src/main/java/ca/joshstagg/slate/config/Config.kt | unknown_repo | kotlin | package ca.joshstagg.slate.config
import android.graphics.Color
import ca.joshstagg.slate.ACCENT_COLOR_STRING_DEFAULT
import ca.joshstagg.slate.AMBIENT_COLOR_STRING_DEFAULT
import ca.joshstagg.slate.INTERACTIVE_SMOOTH_UPDATE_RATE_MS
import ca.joshstagg.slate.INTERACTIVE_UPDATE_RATE_MS
internal data class Config(
... |
app/src/main/kotlin/com/whereismymotivation/ui/base/BaseViewModel.kt | unknown_repo | kotlin | package com.whereismymotivation.ui.base
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.whereismymotivation.R
import com.whereismymotivation.data.remote.response.ApiErrorResponse
import com.whereismymotivation.data.remote.utils.toApiErrorResponse
import com.whereismymotivation.u... |
app/src/androidTest/java/com/esafirm/androidboilerplate/runner/RxAndroidJUnitRunner.kt | unknown_repo | kotlin | package com.esafirm.androidboilerplate.runner
import android.os.Bundle
import android.support.test.espresso.Espresso
import com.esafirm.androidboilerplate.util.RxIdlingExecutionHook
import com.esafirm.androidboilerplate.util.RxIdlingResource
import rx.plugins.RxJavaPlugins
/**
* Runner that registers a Espresso Indl... |
sample/shared/src/commonMain/kotlin/io/github/fornewid/placeholder/sample/App.kt | unknown_repo | kotlin | /*
* Copyright 2024 fornewid
*
* 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 applicable law or agreed to in... |
app/src/main/java/com/philips/btserverapp/ObservationsFragment.kt | unknown_repo | kotlin | /*
* Copyright (c) <NAME>. 2021.
* All rights reserved.
*/
package com.philips.btserverapp
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CheckBox
import androidx.fragment.app.Fragment
import com.philips.btserver.observations.... |
AndroidApp/app/src/main/java/com/shulga/androidapp/ui/main/admin/users/details/UsersDetailsActivity.kt | unknown_repo | kotlin | package com.shulga.androidapp.ui.main.admin.users.details
import android.os.Bundle
import com.shulga.androidapp.R
import com.shulga.androidapp.ui.Activity
class UsersDetailsActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentVie... |
graphics/graphics-core/src/main/java/androidx/graphics/opengl/egl/EGLSpec.kt | unknown_repo | kotlin | /*
* Copyright 2021 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 applica... |
utilk_android/src/main/java/com/mozhimen/kotlin/utilk/android/net/UtilKTransportInfo.kt | unknown_repo | kotlin | package com.mozhimen.kotlin.utilk.android.net
import android.content.Context
import android.net.TransportInfo
import android.net.wifi.WifiInfo
import androidx.annotation.RequiresApi
import androidx.annotation.RequiresPermission
import com.mozhimen.kotlin.elemk.android.os.cons.CVersCode
import com.mozhimen.kotlin.lintk... |
Library/src/main/java/com/shopify/testify/internal/processor/BitmapExtentions.kt | unknown_repo | kotlin | package com.shopify.testify.internal.processor
import android.graphics.Bitmap
import kotlinx.coroutines.asCoroutineDispatcher
import java.util.concurrent.Executors
fun ParallelPixelProcessor.TransformResult.createBitmap(): Bitmap {
return Bitmap.createBitmap(
this.pixels,
this.width,
this.... |
app/src/main/java/com/mapswithme/maps/permissions/PermissionsDetailDialogFragment.kt | unknown_repo | kotlin | package com.mapswithme.maps.permissions
import android.app.Dialog
import android.os.Bundle
import android.view.View
import android.widget.TextView
import androidx.annotation.IdRes
import androidx.annotation.LayoutRes
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.FragmentActivity
import andro... |
core/src/main/java/dev/lucianosantos/intervaltimer/core/service/NotificationHelper.kt | unknown_repo | kotlin | package dev.lucianosantos.intervaltimer.core.service
import android.app.Notification
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.core.app.NotificationC... |
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/platform/TextToolbar.kt | unknown_repo | kotlin | /*
* Copyright 2020 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 applica... |
app/src/main/java/com/wavesplatform/wallet/v2/data/rules/NotEqualsAccountPasswordRule.kt | unknown_repo | kotlin | /*
* Created by <NAME> on 1/4/2019
* Copyright © 2019 Waves Platform. All rights reserved.
*/
package com.wavesplatform.wallet.v2.data.rules
import android.support.annotation.StringRes
import com.wavesplatform.wallet.v2.util.WavesWallet
import com.wavesplatform.wallet.App
import io.github.anderscheow.validator.ru... |
app/src/main/java/me/devsaki/hentoid/activities/sources/HitomiActivity.kt | unknown_repo | kotlin | package me.devsaki.hentoid.activities.sources
import android.net.Uri
import android.os.Bundle
import android.view.View
import android.webkit.WebResourceRequest
import android.webkit.WebResourceResponse
import android.webkit.WebView
import me.devsaki.hentoid.database.domains.Content
import me.devsaki.hentoid.enums.Site... |
app/src/main/java/cn/qinxiandiqi/photochecker/feature/home/HomeViewModel.kt | unknown_repo | kotlin | package cn.qinxiandiqi.photochecker.feature.home
import android.app.Application
import android.net.Uri
import android.util.Log
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.corouti... |
katsushika/src/main/java/xyz/dokup/katsushika/cache/DefaultDiskCache.kt | unknown_repo | kotlin | package xyz.dokup.katsushika.cache
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Environment
import xyz.dokup.katsushika.ext.md5
import xyz.dokup.katsushika.util.DiskLruCache
import java.io.*
/**
* Created by e10dokup on 2017/09/06.
*/
class De... |
app/src/main/kotlin/io/sweers/catchup/ui/base/CatchUpItemViewHolder.kt | unknown_repo | kotlin | /*
* Copyright (c) 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 in ... |
app/src/main/java/com/typ/muslim/ui/prays/DailyPraysView.kt | unknown_repo | kotlin | package com.typ.muslim.ui.prays
import android.content.Context
import android.graphics.Color
import android.util.AttributeSet
import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.core.view.children
import com.typ.muslim.features.prays.enums.PrayType
import com.typ.muslim.features.prays.mode... |
app/src/main/java/com/tungnui/dalatlaptop/views/ResizableImageView.kt | unknown_repo | kotlin | package com.tungnui.abccomputer.view
import android.content.Context
import android.util.AttributeSet
import android.widget.ImageView
class ResizableImageView(context: Context, attrs: AttributeSet) : ImageView(context, attrs) {
override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
val d ... |
android/app/src/main/kotlin/com/commons/extensions/Long.kt | unknown_repo | kotlin | package com.commons.extensions
import android.content.Context
import android.text.format.DateFormat
import java.text.DecimalFormat
import java.util.*
fun Long.formatSize(): String {
if (this <= 0)
return "0 B"
val units = arrayOf("B", "kB", "MB", "GB", "TB")
val digitGroups = (Math.log10(toDouble... |
app/src/main/java/com/forcetower/uefs/widget/IconShadowedView.kt | unknown_repo | kotlin | /*
* Copyright 2017 Google 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 required by applicable law or agreed to in... |
commonui/src/main/java/io/particle/commonui/RenameHelper.kt | unknown_repo | kotlin | package io.particle.commonui
import android.text.InputType
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.FragmentActivity
import com.afollestad.materialdialogs.MaterialDialog
import com.afollestad.materialdialogs.MaterialDialog.SingleButtonCallback
import com.afollestad.materialdialogs.Theme
... |
paystack/src/main/java/co/paystack/android/ui/AddressVerificationActivity.kt | unknown_repo | kotlin | package co.paystack.android.ui
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.ListPopupWindow
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.view.View
import android.view.WindowManager
import android.widget.... |
app/src/main/java/pk/sufiishq/app/feature/kalam/extension/KalamExtention.kt | unknown_repo | kotlin | /*
* Copyright 2022-2023 SufiIshq
*
* 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... |
tencent-map-compose/src/main/java/com/melody/map/tencent_compose/MapUpdater.kt | unknown_repo | kotlin | // MIT License
//
// Copyright (c) 2022 被风吹过的夏天
//
// 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, mer... |
basic-android-kotlin-compose-training-unscramble-starter/app/src/main/java/com/example/unscramble/ui/GameViewModel.kt | unknown_repo | kotlin | package com.example.unscramble.ui
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import com.example.unscramble.data.allWords
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.fl... |
replugin-sample/plugin/plugin-demo3-kotlin/app/src/main/java/com/qihoo360/replugin/sample/demo3/activity/theme/ThemeBlackNoTitleBarActivity.kt | unknown_repo | kotlin | /*
* Copyright (C) 2005-2017 Qihoo 360 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 required by applicable law or ag... |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/Recipe.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/java/com/clean/arch/mvvm/di/DatabaseModule.kt | unknown_repo | kotlin | package com.clean.arch.mvvm.di
import androidx.room.Room
import com.clean.arch.mvvm.data.MovieDatabase
import org.koin.android.ext.koin.androidApplication
import org.koin.dsl.module
val databaseModule = module {
single {
Room.databaseBuilder(
androidApplication(),
MovieDatabase::cl... |
solwave/src/main/java/com/saganize/solwave/domain/model/TransactionSerializer.kt | unknown_repo | kotlin | package com.saganize.solwave.domain.model
import androidx.annotation.Keep
import com.google.gson.JsonArray
import com.google.gson.JsonElement
import com.google.gson.JsonObject
import com.google.gson.JsonSerializationContext
import com.google.gson.JsonSerializer
import com.solana.core.Transaction
import kotlinx.seriali... |
app/src/main/java/br/com/fiap/mob18/newsapilibrary/model/Article.kt | unknown_repo | kotlin | package br.com.fiap.mob18.newsapilibrary.model
import android.os.Parcelable
import br.com.fiap.mob18.newsapilibrary.entity.ArticleEntity
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
import java.util.*
@Parcelize
data class Article(
@SerializedName("id") val id: Int? = ... |
app/src/main/java/uz/pdp/unsplashfullwallpapers/room/entity/TopicModel.kt | unknown_repo | kotlin | package uz.pdp.unsplashfullwallpapers.room.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable
@Entity
data class TopicModel(
@PrimaryKey
val id: String,
val title: String
) : Serializable
|
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/WeatherRainShowersDay.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.WeatherRainShowersDay: ImageVector
get() {
if (_weatherRainSh... |
app/src/main/java/www/spikeysanju/flashnews/adapters/NewsAdapter.kt | unknown_repo | kotlin | package www.spikeysanju.flashnews.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.AsyncListDiffer
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import coil.api.load
import coil.transfo... |
app/src/main/java/hr/algebra/android/AndroidService.kt | unknown_repo | kotlin | package hr.algebra.android
import android.content.Context
import android.content.Intent
import androidx.core.app.JobIntentService
import hr.algebra.android.api.BeerFetcher
private const val JOB_ID = 1
class AndroidService : JobIntentService(){
override fun onHandleWork(intent: Intent) {
BeerFetcher(this... |
architecture/app/src/main/java/com/aminography/worldcities/ui/base/BaseFragment.kt | unknown_repo | kotlin | package com.aminography.worldcities.ui.base
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.viewbinding.ViewBinding
/**
* Defines base functionality for fragments including common mechanism for vi... |
app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeViewModel.kt | unknown_repo | kotlin | package com.lagradost.cloudstream3.ui.home
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.lagradost.cloudstream3.APIHolder.apis
import com.lagradost.cloudstream3.APIHolde... |
module-demo2/src/main/java/com/huyingbao/module/second/ui/store/SecondStore.kt | unknown_repo | kotlin | package com.huyingbao.module.second.ui.store
import androidx.lifecycle.MutableLiveData
import com.google.gson.JsonObject
import com.huyingbao.core.arch.dispatcher.RxDispatcher
import com.huyingbao.core.arch.model.RxAction
import com.huyingbao.core.arch.store.RxActivityStore
import com.huyingbao.module.second.ui.action... |
feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/presentation/staking/main/components/stakeActions/parachain/ParachainStakeActionsComponent.kt | unknown_repo | kotlin | package io.novafoundation.nova.feature_staking_impl.presentation.staking.main.components.stakeActions.parachain
import androidx.lifecycle.MutableLiveData
import io.novafoundation.nova.common.presentation.dataOrNull
import io.novafoundation.nova.common.resources.ResourceManager
import io.novafoundation.nova.common.util... |
app/src/main/java/com/example/neoticket/viewModel/cinema/RefundMovieViewModel.kt | unknown_repo | kotlin | package com.example.neoticket.viewModel.cinema
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.neoticket.api.RetrofitInstance
import com.example.neoticket.model.MovieOrderCheckout
import com.example.neoticket.model.MovieOrderCheckoutResponse
import com.example.neoticket... |
app/src/androidTest/java/ly/david/mbjc/MainActivityTest.kt | unknown_repo | kotlin | package ly.david.mbjc
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import dagger.hilt.android.testing.HiltAndroidRule
import ly.david.mbjc.ui.MainActivity
import org.junit.Rule
internal abstract class MainActivityTest {
@get:Rule(order = 0)
val hiltRule: HiltAndroidRule by lazy { HiltAndroi... |
BlueSTSDK/BlueSTSDK/src/main/java/com/st/BlueSTSDK/fwDataBase/BoardCatalogRepository.kt | unknown_repo | kotlin | package com.st.BlueSTSDK.fwDataBase
import android.content.Context
import android.net.Uri
import android.util.Log
import com.google.gson.GsonBuilder
import com.google.gson.JsonSyntaxException
import com.st.BlueSTSDK.BuildConfig
import com.st.BlueSTSDK.fwDataBase.db.*
import com.st.BlueSTSDK.fwDataBase.network.BoardCat... |
shared/src/commonMain/kotlin/nl/tiebe/otarium/ui/home/messages/message/MessageHeader.kt | unknown_repo | kotlin | package nl.tiebe.otarium.ui.home.messages.message
import androidx.compose.foundation.clickable
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.fo... |
app/src/main/java/com/guru/composecookbook/ui/demoui/gmail/home/GmailHome.kt | unknown_repo | kotlin | package com.guru.composecookbook.ui.demoui.gmail.home
import androidx.compose.foundation.background
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.rememberLazyListState
import ... |
app/src/main/kotlin/com/flxrs/dankchat/data/repo/command/CommandRepository.kt | unknown_repo | kotlin | package com.flxrs.dankchat.data.repo.command
import android.util.Log
import com.flxrs.dankchat.data.UserName
import com.flxrs.dankchat.data.api.chatters.ChattersApiClient
import com.flxrs.dankchat.data.api.helix.HelixApiClient
import com.flxrs.dankchat.data.api.supibot.SupibotApiClient
import com.flxrs.dankchat.data.r... |
app/src/main/java/com/xengar/android/deutscheverben/utils/LogAdListener.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 Angel Newton
*
* 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... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/KeyboardTab.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.KeyboardTab: ImageVector
get() {
if (_keyboardTab != null) {
... |
compottie/src/commonMain/kotlin/io/github/alexzhirkevich/compottie/internal/animation/AnimatedNumber.kt | unknown_repo | kotlin | package io.github.alexzhirkevich.compottie.internal.animation
import androidx.compose.ui.util.lerp
import io.github.alexzhirkevich.compottie.dynamic.PropertyProvider
import io.github.alexzhirkevich.compottie.dynamic.invoke
import io.github.alexzhirkevich.compottie.internal.AnimationState
import kotlinx.serialization.D... |
samples/androidApp/src/main/kotlin/com/appmattus/layercache/samples/domain/PersonalDetails.kt | unknown_repo | kotlin | /*
* Copyright 2021 Appmattus Limited
*
* 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... |
components/remote-controls/grid/saved/impl/src/main/kotlin/com/flipperdevices/remotecontrols/impl/grid/local/presentation/decompose/internal/LocalGridComponentImpl.kt | unknown_repo | kotlin | package com.flipperdevices.remotecontrols.impl.grid.local.presentation.decompose.internal
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.essenty.instancekeeper.getOrCreate
import com.flipperdevices.bridge.dao.api.model.FlipperKeyPath
import com.flipperdevices.core.di.AppGraph
import com.flipperde... |
matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/user/DefaultUserService.kt | unknown_repo | kotlin | /*
* Copyright 2019 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 agreed ... |
sources/logic/common/utils/src/main/java/com/surovtsev/utils/gles/helpers/ShaderHelper.kt | unknown_repo | kotlin | package com.surovtsev.utils.gles.helpers
import android.content.Context
import android.opengl.GLES20.*
import android.util.Log
import com.surovtsev.utils.loggerconfig.UtilsLoggerConfig
import com.surovtsev.utils.textresourcereader.TextResourceReader
object ShaderHelper {
data class ShaderLoadParameters(
... |
compose/foundation/foundation/samples/src/main/java/androidx/compose/foundation/samples/OverscrollSample.kt | unknown_repo | kotlin | /*
* Copyright 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 applica... |
app/src/main/java/com/t/sunnyweather/ui/weather/WeatherActivity.kt | unknown_repo | kotlin | package com.t.sunnyweather.ui.weather
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModel
import com.t.sunnyweather.R
import com.t.sunnyweather.logic.model.WeatherModel
import ko... |
feature-account-impl/src/main/java/jp/co/soramitsu/account/impl/presentation/mnemonic/backup/BackupMnemonicContent.kt | unknown_repo | kotlin | package jp.co.soramitsu.account.impl.presentation.mnemonic.backup
import android.app.Activity
import android.content.Intent
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.contract.ActivityResultContracts
import a... |
app/src/test/java/com/aws/amazonlocation/utils/generalutils/GeneralUtilsIsInternetAvailableTest.kt | unknown_repo | kotlin | package com.aws.amazonlocation.utils.generalutils
import android.content.Context
import com.aws.amazonlocation.BaseTest
import com.aws.amazonlocation.mock.*
import com.aws.amazonlocation.setConnectivity
import com.aws.amazonlocation.utils.isInternetAvailable
import org.junit.Assert
import org.junit.Test
import org.jun... |
iyzi-co-sdk/src/main/java/com/android/iyzicosdk/ui/components/IyziCoCustomTextView.kt | unknown_repo | kotlin | package com.android.iyzicosdk.ui.components
import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView
internal class IyziCoCustomTextView: AppCompatTextView {
constructor(context: Context) : super(context) {
}
constructor(context: Context, attrs: ... |
flesh/src/main/java/com/ecjtu/flesh/ui/adapter/TabPagerAdapter.kt | unknown_repo | kotlin | package com.ecjtu.flesh.ui.adapter
import android.content.Context
import android.content.SharedPreferences
import android.preference.PreferenceManager
import android.support.v4.view.PagerAdapter
import android.support.v4.widget.SwipeRefreshLayout
import android.support.v7.widget.LinearLayoutManager
import android.supp... |
example/src/main/java/com/crowdin/platform/example/utils/CommonUtils.kt | unknown_repo | kotlin | package com.crowdin.platform.example.utils
import android.app.AlertDialog
import android.content.Context
import android.content.res.Resources
import android.util.DisplayMetrics
import android.view.LayoutInflater
import android.widget.EditText
import android.widget.Toast
import com.crowdin.platform.example.R
import com... |
documentacion-proyecto-main/codigonline/proyecto-final-dam-main/smarthome/app/src/main/java/es/codigonline/proyecto/smarthome/ui/sign/UsuarioViewModel.kt | unknown_repo | kotlin | package es.proyecto.mecagoenelactivity.ui.sign
import android.database.sqlite.SQLiteConstraintException
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import es.proyecto.mecagoenelactivity.app.App
import es.proyecto.mecagoenelactivity.database.ent... |
events-app/src/jvmMain/kotlin/io/ashdavies/playground/android/Layout.kt | unknown_repo | kotlin | package io.ashdavies.playground.android
import androidx.compose.foundation.layout.Row
import androidx.compose.runtime.Composable
@Composable
public actual fun FlowRow(content: @Composable () -> Unit) =
Row { content() }
|
landscapist-palette/src/commonMain/kotlin/com/skydoves/landscapist/palette/RememberPaletteState.kt | unknown_repo | kotlin | /*
* Designed and developed by 2020-2023 skydoves (<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 appli... |
app/src/main/java/com/celzero/bravedns/util/Utilities.kt | unknown_repo | kotlin | /*
Copyright 2020 RethinkDNS and its authors
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 applicable law or agreed to in writing, ... |
app/src/main/java/com/celzero/bravedns/util/Utilities.kt | unknown_repo | kotlin | /*
Copyright 2020 RethinkDNS and its authors
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 applicable law or agreed to in writing, ... |
uikit/uikit/src/main/java/com/hl/uikit/filter/FilterDialogFragment.kt | unknown_repo | kotlin | package com.hl.uikit.filter
import android.os.Bundle
import android.view.View
import android.widget.LinearLayout
import android.widget.TextView
import androidx.core.content.ContextCompat
import com.hl.uikit.R
import com.hl.uikit.dialog.BottomDialogFragment
import com.hl.uikit.flowlayout.FilterTagAdapter
import com.hl.... |
app/src/main/java/com/mti/component/master/view/example/SignatureComponentActivity.kt | unknown_repo | kotlin | package com.mti.component.master.view.example
import android.os.Bundle
import android.view.View
import com.mti.component.extend.SignatureComponent
import com.mti.component.master.R
import com.mti.component.master.base.BaseActivity
import kotlinx.android.synthetic.main.act_signature.*
import kotlinx.android.synthetic.m... |
mvi-arch/src/main/java/ru/touchin/roboswag/mvi_arch/core/Extensions.kt | unknown_repo | kotlin | package ru.touchin.roboswag.mvi_arch.core
import android.os.Parcelable
import ru.touchin.roboswag.mvi_arch.marker.ViewAction
import ru.touchin.roboswag.mvi_arch.marker.ViewState
/**
* Used for setting arguments and initial state into Fragments
*/
fun <NavArgs : Parcelable,
State : ViewState,
Action ... |
ui/ui-text/src/test/java/androidx/ui/text/TextStyleTest.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/example/androiddevchallenge/ui/villager/Villager.kt | unknown_repo | kotlin | /*
* Copyright 2021 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 applica... |
core/src/main/java/com/ash4rk/core/database/entity/UserEntity.kt | unknown_repo | kotlin | package com.ash4rk.core.database.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class UserEntity(
var page: Int = 0,
@PrimaryKey val name: String,
val url: String,
val avatar_url: String
)
|
app/src/main/java/com/blankj/androidutilcode/feature/core/adaptScreen/HeightActivity.kt | unknown_repo | kotlin | package com.blankj.androidutilcode.feature.core.adaptScreen
import android.content.Context
import android.content.Intent
import android.content.res.Resources
import android.graphics.Color
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.WindowManager
import com.blankj.androi... |
sample-android/src/main/kotlin/com/github/panpf/zoomimage/sample/ui/test/compose/ZoomImageTestFragment.kt | unknown_repo | kotlin | package com.github.panpf.zoomimage.sample.ui.test.compose
import androidx.compose.runtime.Composable
import com.github.panpf.zoomimage.sample.SampleImages
import com.github.panpf.zoomimage.sample.ui.base.compose.BaseAppBarComposeFragment
import com.github.panpf.zoomimage.sample.ui.examples.compose.ZoomImageSample
cla... |
compose/src/main/java/com/bottlerocketstudios/compose/devoptions/DevOptionsState.kt | unknown_repo | kotlin | package com.bottlerocketstudios.compose.devoptions
import androidx.compose.runtime.State
data class DevOptionsState(
val environmentNames: State<List<String>>,
val environmentSpinnerPosition: State<Int>,
val baseUrl: State<String>,
val appVersionName: String,
val appVersionCode: String,
val ap... |
pdfium-library/src/main/java/com/github/barteksc/pdfviewer/scroll/DefaultScrollHandle.kt | unknown_repo | kotlin | package com.github.barteksc.pdfviewer.scroll
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.os.Build
import android.util.TypedValue
import android.view.MotionEvent
import android.view.ViewGroup
import android.... |
app/src/main/java/com/covid19/monitoring/base/DataBindingFragment.kt | unknown_repo | kotlin | package com.nguyen.tekotest.ui.base
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
abstract class DatabindingFragment : Fragment() {
... |
app/src/main/java/com/ahmadshubita/moviesapp/ui/movies/components/CustomSwitch.kt | unknown_repo | kotlin | package com.ahmadshubita.moviesapp.ui.movies.components
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource... |
app/src/main/java/com/example/projectfitness/Show.kt | unknown_repo | kotlin | package com.example.projectfitness
import android.content.Context
import android.content.SharedPreferences
import androidx.lifecycle.ViewModel
private const val pref_keys = "MyAppPrefs"
private const val page_shown_keys = "PageShown"
class Show : ViewModel() {
fun setPageShownFlag(context: Context, isShown : Bool... |
presentation/src/main/kotlin/com/softteco/template/presentation/features/apis/ApiListAdapter.kt | unknown_repo | kotlin | package com.softteco.template.presentation.features.apis
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.appcompat.content.res.AppCompatResources
import androidx.recyclerview.widget.RecyclerView
import coil.load
import com.softteco.template.domain.model.ApiEntry
import com.softteco.tem... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.