file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
shared-elements/src/main/java/com/mxalbert/sharedelements/MaterialArcMotion.kt | unknown_repo | kotlin | /*
* Copyright 2021 The Android Open Source Project
* Copyright 2021 RinOrz (凛)
*
* 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
*
... |
ui/src/main/java/io/snabble/sdk/ui/payment/externalbilling/ui/widgets/SubjectAlertDialog.kt | unknown_repo | kotlin | package io.snabble.sdk.ui.payment.externalbilling.ui.widgets
import android.app.Activity
import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.text.InputFilter
import android.view.ViewGroup.LayoutPar... |
app/src/main/java/org/ageage/eggplant/feed/FeedFragment.kt | unknown_repo | kotlin | package org.ageage.eggplant.feed
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import kotlinx.android.synthetic.main.fragment_feed.*
import org.ageage.eggplant.R
import org.ageage.eggplant.common.enums.Category
i... |
app/src/main/kotlin/com/matthewemes/things/kotlinthing/MainActivity.kt | unknown_repo | kotlin | package com.matthewemes.things.kotlinthing
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import com.google.android.things.pio.Gpio
import com.google.android.things.pio.PeripheralManagerService
import timber.log.Timber
import kotlinx.android.synthetic.main.activity_m... |
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/auxiliary/modifiers/modifiers.kt | unknown_repo | kotlin | /*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
@file:JvmName("GrModifierListUtil")
package org.jetbrains.plugins.groovy.lang.psi.impl.auxiliary.modifiers
import com.intellij.psi.JavaPsiFacade
import com.intellij.psi.P... |
app/src/main/java/com/harr1424/listmaker/BaseApplication.kt | unknown_repo | kotlin | package com.harr1424.listmaker
import android.app.Application
import com.harr1424.listmaker.data.AppDatabase
/**
* An application class that inherits from [Application], allows for the creation of a singleton
* instance of the AppDatabase
*/
class BaseApplication : Application() {
val database: AppDatabase by ... |
common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/vault/add/AddScreen.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalMaterial3Api::class)
package com.artemchep.keyguard.feature.home.vault.add
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.LocalIndication
import androidx.compose.foundation.background
import androidx.compose.founda... |
common/src/commonMain/kotlin/tk/zwander/commonCompose/util/StateUtils.kt | unknown_repo | kotlin | package tk.zwander.commonCompose.util
import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import dev.icerock.moko.mvvm.flow.compose.collectAsMutableState
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
// TODO: Keep an eye on BasicTextField2 AP... |
PushNotification/app/src/main/java/com/juhwan/anyang_yi/present/views/home/keyword/KeywordViewModel.kt | unknown_repo | kotlin | package com.juhwan.anyang_yi.present.views.home.keyword
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.juhwan.anyang_yi.data.model.KeywordEntity
import com.juhwan.anyang_yi.domain.usecase.keyword.Delet... |
libraries/arch/src/main/java/com/fappslab/rickandmortygraphql/libraries/arch/testing/rules/FragmentTestRule.kt | unknown_repo | kotlin | package com.fappslab.rickandmortygraphql.libraries.arch.testing.rules
import android.os.Bundle
import androidx.annotation.StyleRes
import androidx.annotation.VisibleForTesting
import androidx.fragment.app.Fragment
import androidx.fragment.app.testing.FragmentScenario
import androidx.lifecycle.Lifecycle
import com.goog... |
libraries/arch/src/main/java/com/fappslab/rickandmortygraphql/libraries/arch/testing/rules/FragmentTestRule.kt | unknown_repo | kotlin | package com.fappslab.rickandmortygraphql.libraries.arch.testing.rules
import android.os.Bundle
import androidx.annotation.StyleRes
import androidx.annotation.VisibleForTesting
import androidx.fragment.app.Fragment
import androidx.fragment.app.testing.FragmentScenario
import androidx.lifecycle.Lifecycle
import com.goog... |
src/es/pelisplushd/src/eu/kanade/tachiyomi/animeextension/es/pelisplushd/Pelisplusph.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.animeextension.es.pelisplushd
import androidx.preference.ListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.animeextension.es.pelisplushd.extractors.FilemoonExtractor
import eu.kanade.tachiyomi.animeextension.es.pelisplushd.extractors.StreamlareExtractor
i... |
workmanager/src/main/java/worker/s06/ConstraintsFragment.kt | unknown_repo | kotlin | package worker.s06
import android.content.Context
import androidx.work.Constraints
import androidx.work.Data
import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequestBuilder
import androidx.work.WorkManager
import androidx.work.WorkerParameters
import kotlinx.coroutines.delay
import siarhei.luskanau.exa... |
library/core-extentions/src/main/java/io/github/mayconcardoso/mvvm/core/ktx/ActivityExtention.kt | unknown_repo | kotlin | package io.github.mayconcardoso.mvvm.core.ktx
import android.view.LayoutInflater
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.LiveData
import androidx.lifecycle.lifecycleScope
import androidx.viewbinding.ViewBinding
import io.github.mayconcardoso.mvvm.core.BaseViewModel
import io.github.ma... |
android/app/src/main/java/cloud/multipos/pos/views/CustomerTenderLine.kt | unknown_repo | kotlin | /**
* Copyright (C) 2023 multiPOS, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
android/anc/src/test/java/org/smartregister/fhircore/anc/ui/details/careplan/CarePlanDetailsFragmentTest.kt | unknown_repo | kotlin | /*
* Copyright 2021 Ona Systems, 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 agr... |
app/src/main/java/com/brimanning/mydatabinding/MainViewModel.kt | unknown_repo | kotlin | package com.brimanning.mydatabinding
import androidx.annotation.StringRes
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
class MainViewModel : ViewModel() {
val count = MutableL... |
app/src/main/kotlin/net/kivitro/kittycat/view/activity/MainActivity.kt | unknown_repo | kotlin | package net.kivitro.kittycat.view.activity
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.os.Parcelable
import android.preference.PreferenceManager
import android.support.v4.widget.SwipeRefreshLayout
import android.support.v7.app.AppComp... |
app/src/main/java/com/mozhimen/pagingk/test/crud/CrudActivity.kt | unknown_repo | kotlin | package com.mozhimen.pagingk.test.crud
import android.os.Bundle
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.LinearLayoutManager
import com.mozhimen.basick.elemk.androidx.appcompat.bases.databinding.BaseActivityVDBVM
import com.mozhimen.pagingk.test.databinding.ActivityCrudBinding
class Crud... |
base/media/medialib/src/main/kotlin/com/flammky/musicplayer/dump/mediaplayer/helper/external/providers/DocumentProviderHelper.kt | unknown_repo | kotlin | package com.flammky.musicplayer.dump.mediaplayer.helper.external.providers
import android.content.ContentResolver
import android.content.ContentUris
import android.content.Context
import android.net.Uri
import android.os.Environment
import android.provider.DocumentsContract
import android.provider.MediaStore
import an... |
presentation/src/main/java/com/sarangmorde/mycv/view/adapter/EducationListAdapter.kt | unknown_repo | kotlin | package com.sarangmorde.mycv.view.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.sarangmorde.mycv.R
import com.sarangmorde.mycv.domain.model.Education
import com.sarangmorde.mycv.view.adapter.viewholder.MyCvV... |
wiki-webview/app/src/main/java/work/wander/wikiview/framework/toast/Toaster.kt | unknown_repo | kotlin | package work.wander.wikiview.framework.toast
import android.content.Context
import android.widget.Toast
import dagger.hilt.android.qualifiers.ApplicationContext
import javax.inject.Inject
/**
* Interface to show toast messages.
*/
interface Toaster {
/**
* Show a toast message.
*
* @param messag... |
app/src/main/java/fr/openium/auvergnewebcams/ui/main/ViewModelMain.kt | unknown_repo | kotlin | package fr.openium.auvergnewebcams.ui.main
import android.app.Application
import fr.openium.auvergnewebcams.base.AbstractViewModel
import fr.openium.auvergnewebcams.model.entity.Section
import fr.openium.auvergnewebcams.model.entity.Webcam
import fr.openium.auvergnewebcams.repository.SectionRepository
import fr.openiu... |
app/src/main/java/ch/nevis/exampleapp/ui/home/HomeFragment.kt | unknown_repo | kotlin | /**
* Nevis Mobile Authentication SDK Example App
*
* Copyright © 2023. Nevis Security AG. All rights reserved.
*/
package ch.nevis.exampleapp.ui.home
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import a... |
app/src/main/java/prieto/fernando/spacex/presentation/vm/LaunchesViewModel.kt | unknown_repo | kotlin | package prieto.fernando.spacex.presentation.vm
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.flow.catch
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
import prieto.ferna... |
app/src/main/java/com/akinci/doggoappcompose/ui/components/PageNavigator.kt | unknown_repo | kotlin | package com.akinci.doggoappcompose.ui.components
import androidx.compose.foundation.layout.*
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.s... |
app/src/main/java/com/example/mvvm_dagger_kotlin_3_10_19/database/UserDao.kt | unknown_repo | kotlin | package com.example.mvvm_dagger_kotlin_3_10_19.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
@Dao
interface UserDao {
@get:Query("SELECT * FROM User")
val getAllUser:List<User>
@Insert
fun insertAll(vararg user: User)
} |
common-extension/src/main/java/ru/boronin/common/extension/core/intent_extension.kt | unknown_repo | kotlin | package ru.boronin.common.extension.core
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.os.Parcelable
import java.io.Serializable
fun actionViewIntentOf(uri: Uri, vararg pairs: Pair<String, Any?>) = intentOf(*pairs).apply {
action = Intent.ACTION_VIEW
data = uri
}
fu... |
app/src/main/java/com/tasomaniac/openwith/settings/advanced/features/FeaturesListFragment.kt | unknown_repo | kotlin | package com.tasomaniac.openwith.settings.advanced.features
import android.content.Context
import android.os.Build.VERSION_CODES.M
import android.os.Bundle
import androidx.annotation.Keep
import androidx.annotation.RequiresApi
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
imp... |
app/src/main/java/com/jdagnogo/welovemarathon/beach/domain/BeachBar.kt | unknown_repo | kotlin | package com.jdagnogo.welovemarathon.beach.domain
import androidx.annotation.Keep
import com.google.android.gms.maps.model.LatLng
import com.google.firebase.firestore.GeoPoint
import com.jdagnogo.welovemarathon.R
import com.jdagnogo.welovemarathon.common.category.CategoryItem
import com.jdagnogo.welovemarathon.common.c... |
app/src/main/java/com/ncs/o2/UI/Notifications/NotificationsActivity.kt | unknown_repo | kotlin | package com.ncs.o2.UI.Notifications
import android.content.Intent
import android.content.IntentFilter
import android.net.ConnectivityManager
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.util.Log
import android.widget.ImageView
import androidx.activity.OnBackPressedCallback... |
spinnerlibrary/src/main/java/com/sugarya/animateoperator/operator/FlexibleOperator.kt | unknown_repo | kotlin | package com.sugarya.animateoperator.operator
import android.util.TypedValue
import android.view.View
import android.view.ViewGroup
import com.sugarya.animateoperator.base.BaseBuilder
import com.sugarya.animateoperator.interfaces.Expandable
import com.sugarya.animateoperator.base.BaseOperator
import com.sugarya.animate... |
wear/compose/compose-material/benchmark/src/androidTest/java/androidx/wear/compose/material/benchmark/ScalingLazyColumnBenchmark.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... |
app/src/main/java/my/id/andraaa/dstory/stories/presentor/auth/signin/SignInActivity.kt | unknown_repo | kotlin | package my.id.andraaa.dstory.stories.presentor.auth.signin
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.widget.doOnTextChanged
import androidx.lifecycle.lifecycleScope
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.l... |
codeview/src/main/java/io/github/kbiakov/codeview/views/LineDiffView.kt | unknown_repo | kotlin | package com.github.codedex.codeview.views
import android.content.Context
import android.support.v4.content.ContextCompat
import android.view.LayoutInflater
import android.widget.RelativeLayout
import android.widget.TextView
import com.github.codedex.codeview.R
import com.github.codedex.codeview.highlight.MonoFontCache... |
app/src/main/java/ppapps/cropreceiptdemo/opencv/OpenCVUtils.kt | unknown_repo | kotlin | package ppapps.cropreceiptdemo.opencv
import android.graphics.Bitmap
import android.graphics.Matrix
import android.graphics.PointF
import android.graphics.RectF
import org.opencv.android.Utils
import org.opencv.core.*
import org.opencv.imgproc.Imgproc
import org.opencv.utils.Converters
import ppapps.cropreceiptdemo.cr... |
vector/src/main/java/im/vector/app/features/MainActivity.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 to i... |
app/src/main/java/com/briggin/coroutineplayground/view/PlaygroundActivity.kt | unknown_repo | kotlin | package com.briggin.coroutineplayground.view
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.briggin.coroutineplayground.R
import kotlinx.android.synthetic.main.activity_main.*
class PlaygroundActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) ... |
MomentumAndroid/src/main/java/com/mwaibanda/momentum/android/presentation/sermon/PlayerScreen.kt | unknown_repo | kotlin | package com.mwaibanda.momentum.android.presentation.sermon
import android.content.pm.ActivityInfo
import android.graphics.Rect
import android.net.Uri
import android.util.Log
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.appcompat.app.AppCompatDelegate
import androidx.compose.animation... |
Highlights/src/androidMain/kotlin/pl/tkadziolka/highlights/extension/NumberExtensions.kt | unknown_repo | kotlin | package pl.tkadziolka.highlights.extension
import android.graphics.Color
internal val maxAlpha get() = 255
internal val Int.red get() = Color.red(this)
internal val Int.green get() = Color.green(this)
internal val Int.blue get() = Color.blue(this)
internal val Int.rgb get() = Color.rgb(red, green, blue)
internal... |
app/src/main/java/com/igor/composebasics/ui/screens/PicturesSearchScreen.kt | unknown_repo | kotlin | package com.igor.composebasics.ui.screens
import android.annotation.SuppressLint
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundat... |
app/src/main/java/com/luuu/seven/module/update/ComicUpdateFragment.kt | unknown_repo | kotlin | package com.luuu.seven.module.update
import android.os.Bundle
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.RecyclerView
import com.luuu.seven.R
import com.luuu.seven.adapter.ComicUpdateAdapter
import com.luuu.seven.base.BaseFragment
import com.luuu.seven.bean.ComicUpdateBean
impo... |
app/src/main/java/com/example/pokedek/presentasion/fragment/item/ItemDetailFragment.kt | unknown_repo | kotlin | package com.example.pokedek.presentasion.fragment.item
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import com.bumptech.glide.Glide
import com.example.pokedek.R
import ... |
core/src/main/java/id/sansets/infood/core/di/CoreDatabaseModule.kt | unknown_repo | kotlin | package id.sansets.infood.core.di
import android.content.Context
import androidx.room.Room
import dagger.Module
import dagger.Provides
import id.sansets.infood.core.data.source.local.room.RecipeDao
import id.sansets.infood.core.data.source.local.room.FoodCategoryDao
import id.sansets.infood.core.data.source.local.room... |
android/quest/src/main/java/org/smartregister/fhircore/quest/util/extensions/ConfigExtensions.kt | unknown_repo | kotlin | /*
* Copyright 2021-2023 Ona Systems, 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 o... |
testlibrary/src/main/java/com/hyperdimension/testlibrary/MyEditText.kt | unknown_repo | kotlin | package com.hyperdimension.testlibrary
import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatEditText
class MyEditText : AppCompatEditText {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: AttributeSet?) : super(context,... |
app-elgoog/src/main/kotlin/dev/bogdanzurac/marp/app/elgoog/core/feature/FirebaseFeatureManager.kt | unknown_repo | kotlin | package dev.bogdanzurac.marp.app.elgoog.core.feature
import com.google.firebase.ktx.Firebase
import com.google.firebase.remoteconfig.FirebaseRemoteConfig
import com.google.firebase.remoteconfig.ktx.remoteConfig
import com.google.firebase.remoteconfig.ktx.remoteConfigSettings
import dev.bogdanzurac.marp.core.feature.Fe... |
app/src/main/java/com/blinkist/easylibrary/di/DatabaseInjection.kt | unknown_repo | kotlin | package com.blinkist.easylibrary.di
import android.content.Context
import androidx.room.Room
import com.blinkist.easylibrary.data.EasyLibraryDatabase
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
@Module(includes = [DaoModule::class])
object DatabaseModule {
@JvmStatic @Provides @Single... |
app/src/main/java/fr/free/nrw/commons/explore/depictions/DepictsClient.kt | unknown_repo | kotlin | package fr.free.nrw.commons.explore.depictions
import android.annotation.SuppressLint
import fr.free.nrw.commons.mwapi.Binding
import fr.free.nrw.commons.mwapi.SparqlResponse
import fr.free.nrw.commons.upload.depicts.DepictsInterface
import fr.free.nrw.commons.upload.structure.depictions.DepictedItem
import fr.free.nr... |
android/racehorse/src/main/java/org/racehorse/AssetLoaderPlugin.kt | unknown_repo | kotlin | package org.racehorse
import android.content.Intent
import android.webkit.WebResourceResponse
import androidx.activity.ComponentActivity
import androidx.annotation.WorkerThread
import androidx.webkit.WebViewAssetLoader
import androidx.webkit.WebViewAssetLoader.PathHandler
import org.greenrobot.eventbus.Subscribe
impor... |
app/src/androidTest/java/com/example/ghostmst/foodtoday/ExampleInstrumentedTest.kt | unknown_repo | kotlin | package com.example.ghostmst.foodtoday
import android.content.Context
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumentation test, which will execute on an Android device.
*
* @see [Testing documentation](http://d.android.com/tools/testing)
*/
@RunWith(AndroidJUnit... |
example/src/main/java/com/freeletics/statelayout/MainActivity.kt | unknown_repo | kotlin | package com.freeletics.statelayout
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.transition.Transition
import android.view.View
import android.widget.TextView
import androidx.transition.TransitionInflater
class MainActivity : AppCompatActivity() {
... |
app/src/main/java/com/vishalag53/pokedex/splashScreen/SplashScreenActivity.kt | unknown_repo | kotlin | package com.vishalag53.pokedex.splashScreen
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.animation.AnimationUtils
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.navigation.findN... |
commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/FileConflictDialog.kt | unknown_repo | kotlin | package com.simplemobiletools.commons.dialogs
import android.app.Activity
import android.support.v7.app.AlertDialog
import com.simplemobiletools.commons.R
import com.simplemobiletools.commons.R.id.conflict_dialog_radio_merge
import com.simplemobiletools.commons.R.id.conflict_dialog_radio_skip
import com.simplemobileto... |
app/src/main/java/com/pandulapeter/beagle/appDemo/feature/main/examples/simpleSetup/list/SimpleSetupAdapter.kt | unknown_repo | kotlin | package com.pandulapeter.beagle.appDemo.feature.main.examples.simpleSetup.list
import android.view.ViewGroup
import com.pandulapeter.beagle.appDemo.R
import com.pandulapeter.beagle.appDemo.feature.shared.list.BaseAdapter
import com.pandulapeter.beagle.appDemo.feature.shared.list.BaseViewHolder
import com.pandulapeter.... |
app/src/main/java/org/wikipedia/views/SwipeRefreshLayoutWithScroll.kt | unknown_repo | kotlin | package org.wikipedia.views
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
class SwipeRefreshLayoutWithScroll constructor(context: Context, attrs: AttributeSet?) : SwipeRefreshLayout(context, attrs) {
var scrol... |
solar/src/main/java/com/chiksmedina/solar/boldduotone/essentionalui/CloseCircle.kt | unknown_repo | kotlin | package com.chiksmedina.solar.boldduotone.essentionalui
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... |
app/src/main/java/com/example/vonage/voicesampleapp/activities/fragments/DialerFragment.kt | unknown_repo | kotlin | package com.example.vonage.voicesampleapp.activities.fragments
import android.media.AudioManager
import android.media.ToneGenerator
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Dialo... |
app/src/main/java/com/franlopez/mvpkotlin/view/base/contract/BaseView.kt | unknown_repo | kotlin | package com.franlopez.mvpkotlin.view.base.contract
import android.content.Context
import com.franlopez.mvpkotlin.view.base.presenter.BasePresenter
interface BaseView {
fun showError(error: String)
fun setPresenter(presenter: BasePresenter<*>)
fun getContext(): Context
} |
android/src/main/kotlin/com/example/get_share_options/data_classes/activity_info.kt | unknown_repo | kotlin | package com.example.get_share_options.data_classes
import android.content.pm.ActivityInfo
data class ActivityInfoData(val name :String, val packageName :String) {
constructor(activityInfo: ActivityInfo):this(activityInfo.name,activityInfo.packageName)
companion object {
fun from(map: Map<String, St... |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/Drone.kt | unknown_repo | kotlin | package me.localx.icons.straight.filled
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... |
app/src/main/java/io/github/achmadhafid/sample_app/MainActivity.kt | unknown_repo | kotlin | package io.github.achmadhafid.sample_app
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import io.github.achmadhafid.sample_app.activity.DemoActivity
import io.github.achmadhafid.sample_app.databinding.ActivityMainBinding
import io.github.... |
core-android-api/src/main/java/com/jraska/github/client/core/android/HasViewModelFactory.kt | unknown_repo | kotlin | package com.jraska.github.client.core.android
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
interface HasViewModelFactory {
fun factory(): ViewModelProvider.Factory
}
fun <T : ViewModel> FragmentActivity.viewModel(modelClass: Class<T>)... |
app/src/main/java/com/nux/studio/dvor/ui/components/molecules/games/InstalledGamesList.kt | unknown_repo | kotlin | package com.nux.studio.dvor.ui.components.molecules.games
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.grid.GridCe... |
app/src/main/java/org/fossasia/openevent/general/auth/ProfileFragment.kt | unknown_repo | kotlin | package org.fossasia.openevent.general.auth
import androidx.appcompat.app.AlertDialog
import android.content.ActivityNotFoundException
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.... |
Android/examples/demo/src/main/java/com/didi/aoe/examples/demo/features/classification/MnnClassifier.kt | unknown_repo | kotlin | /*
* Copyright 2019 The AoE 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
app/src/main/java/io/vicknesh/passportkyc/ui/validators/DateRule.kt | unknown_repo | kotlin | package io.vicknesh.passportkyc.ui.validators
import android.content.Context
import androidx.appcompat.widget.AppCompatEditText
import com.mobsandgeeks.saripaar.QuickRule
import io.vicknesh.passportkyc.R
import java.util.regex.Pattern
class DateRule : QuickRule<AppCompatEditText>() {
override fun isValid(editTe... |
app/src/main/java/com/lucianghimpu/matchmefy/presentation/settings/SettingsViewModel.kt | unknown_repo | kotlin | package com.lucianghimpu.matchmefy.presentation.settings
import android.app.Application
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.lucianghimpu.matchmefy.BuildConfig
import com.lucianghimpu.matchmefy.Ma... |
bottombarview/src/main/java/ksughosh/github/com/bottombarview/BottomBarItemView.kt | unknown_repo | kotlin | package ksughosh.github.com.bottombarview
import android.annotation.SuppressLint
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.drawable.Drawable
import android.support.annotation.DrawableRes
import android.support.annotation.LayoutRes
import android.support.v4.content... |
app/src/main/java/com/example/neoticket/view/main/movie/DetailMovieInCinemaFragment.kt | unknown_repo | kotlin | package com.example.neoticket.view.main.movie
import DetailImageAdapter
import ScheduleAdapter
import android.annotation.SuppressLint
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.vie... |
app/src/main/java/com/example/mear/playback/service/MusicService.kt | unknown_repo | kotlin | package com.example.mear.playback.service
import android.app.Service
import android.content.Context
import android.content.Intent
import android.media.MediaPlayer
import android.net.Uri
import android.os.Binder
import android.os.Environment
import android.os.IBinder
import android.widget.Toast
import java.lang.Except... |
app/src/main/java/pl/serfa/thingspeaker/database/UserChannelDao.kt | unknown_repo | kotlin | package pl.serfa.thingspeaker.database
import androidx.room.*
import pl.serfa.thingspeaker.models.UserChannel
@Dao
interface UserChannelDao {
@Query("SELECT * FROM channels")
suspend fun getAll(): List<UserChannel>
@Insert
suspend fun insert(userChannel: UserChannel)
@Insert
suspend fun ins... |
domain/core/data/source/src/test/kotlin/net/meilcli/hubber/core/data/source/store/PickPreferenceDataTest.kt | unknown_repo | kotlin | package net.meilcli.hubber.core.data.source.store
import androidx.datastore.preferences.core.PreferenceDataStoreFactory
import androidx.datastore.preferences.core.intPreferencesKey
import com.google.common.truth.Truth
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import k... |
app/src/main/java/com/alpha/dev/schedule_dark_theme/ThemeDialog.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023, Shashank Verma <shashank.verma2002@gmail.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
* t... |
kotlinpleaseanimate/src/main/java/com/github/florent37/kotlin/pleaseanimate/core/Expectations.kt | unknown_repo | kotlin | package com.github.florent37.kotlin.pleaseanimate.core
import android.view.View
import com.github.florent37.kotlin.pleaseanimate.GravityIntDef
import com.github.florent37.kotlin.pleaseanimate.GravityScaleHorizontalIntDef
import com.github.florent37.kotlin.pleaseanimate.GravityScaleVerticalIntDef
import com.github.flor... |
sdks/android/sdk/channel-sdk/src/main/java/com/zello/channel/sdk/platform/PowerManagerReceiver.kt | unknown_repo | kotlin | package com.zello.channel.sdk.platform
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
internal class PowerManagerReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
PowerManager.get(context).onTimerBroadcast(intent)
}
... |
app/src/main/java/com/game/collider/MainActivity.kt | unknown_repo | kotlin | package com.game.collider
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.game.collider.components.GameView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(GameView... |
android/quest/src/main/java/org/smartregister/fhircore/quest/ui/geowidget/GeoWidgetLauncherViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2021-2024 Ona Systems, 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 o... |
app/app/src/main/java/com/ingjuanocampo/enfila/android/home/history/FragmentHistory.kt | unknown_repo | kotlin | package com.ingjuanocampo.enfila.android.home.history
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.viewModels
import androidx.lifecycle.Observer
import androidx.navigation.fragment.N... |
app/src/main/java/com/android/mindmaster/Model/AppBlockModel.kt | unknown_repo | kotlin | package com.android.mindmaster.Model
import android.graphics.drawable.Drawable
data class AppBlockModel(
val appName: String,
val packageName: String,
val icon: Drawable,
val extra: String,
val blocked: Boolean?
) |
app/src/main/kotlin/org/andstatus/app/net/social/ConnectionTwitterGnuSocial.kt | unknown_repo | kotlin | /*
* Copyright (C) 2013 yvolk (<NAME>), http://yurivolkov.com
*
* 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 ... |
app/src/main/java/br/com/heiderlopes/pokemonwstemplatev2/presentation/formpokemon/FormPokemonViewModel.kt | unknown_repo | kotlin | package br.com.heiderlopes.pokemonwstemplatev2.presentation.formpokemon
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import br.com.heiderlopes.pokemonwstemplatev2.domain.model.Pokemon
import br.com.heiderlopes.... |
lattekit-core/src/main/java/io/lattekit/plugin/css/CssAccessory.kt | unknown_repo | kotlin | package io.lattekit.plugin.css
import android.content.res.ColorStateList
import android.content.res.Resources
import android.graphics.Color
import android.graphics.Outline
import android.graphics.Rect
import android.graphics.drawable.*
import android.os.Build
import android.view.View
import android.view.ViewGroup
impo... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/Escalator.kt | unknown_repo | kotlin | package me.localx.icons.rounded.filled
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
... |
video_trimmer_library/src/main/java/com/amp/trimmy/utils/UiThreadExecutor.kt | unknown_repo | kotlin | /**
* Copyright (C) 2010-2016 eBusiness Information, Excilys Group
*
*
* 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 ... |
video_trimmer_library/src/main/java/com/amp/trimmy/utils/UiThreadExecutor.kt | unknown_repo | kotlin | /**
* Copyright (C) 2010-2016 eBusiness Information, Excilys Group
*
*
* 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 ... |
app/src/main/java/nerd/tuxmobil/fahrplan/congress/schedule/SessionViewDrawer.kt | unknown_repo | kotlin | package nerd.tuxmobil.fahrplan.congress.schedule
import android.content.Context
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.annotation.ColorInt
import androidx.annotation.ColorRes
import androidx.core.content.ContextCompat
import androidx.core.view.ViewCompat... |
data/src/main/java/db/DriverFactory.android.kt | unknown_repo | kotlin | package db
import android.content.Context
import app.cash.sqldelight.db.SqlDriver
import app.cash.sqldelight.driver.android.AndroidSqliteDriver
import org.example.project.db.SampleDataBase
actual class DriverFactory(private val context: Context) {
actual fun createDriver(): SqlDriver {
return AndroidSqlit... |
components/src/main/java/dev/medzik/android/components/icons/TopAppBarBackIcon.kt | unknown_repo | kotlin | package dev.medzik.android.components.icons
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.runtime.Composable
import androidx.navigation.NavCont... |
app/src/main/java/com/sedsoftware/yaptalker/presentation/feature/search/SearchRequest.kt | unknown_repo | kotlin | package com.sedsoftware.yaptalker.presentation.feature.search
import android.annotation.SuppressLint
import android.os.Parcelable
import com.sedsoftware.yaptalker.presentation.feature.search.options.SearchConditions
import com.sedsoftware.yaptalker.presentation.feature.search.options.SortingMode
import com.sedsoftware... |
ui-app/src/androidMain/kotlin/com/alexvanyo/composelife/ui/app/component/EdgeToEdgeModalBottomSheet.kt | unknown_repo | kotlin | /*
* Copyright 2024 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... |
app/src/main/java/com/flowfoundation/wallet/utils/image/SvgModel.kt | unknown_repo | kotlin | package com.flowfoundation.wallet.utils.image
import android.graphics.drawable.PictureDrawable
import android.util.Base64
import com.bumptech.glide.Priority
import com.bumptech.glide.load.DataSource
import com.bumptech.glide.load.Options
import com.bumptech.glide.load.data.DataFetcher
import com.bumptech.glide.load.mo... |
app/src/main/java/com/example/android/roomwordssample/users/ListUsers.kt | unknown_repo | kotlin | package com.example.android.roomwordssample.users
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.android.roomwordssample.R
import com.example.android.roomwordss... |
compose_material3/src/main/java/dev/vengateshm/compose_material3/ComposeMaterial3Activity.kt | unknown_repo | kotlin | package dev.vengateshm.compose_material3
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compos... |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Microgenetics.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... |
android/src/main/java/com/amplitude/android/utilities/AndroidStorage.kt | unknown_repo | kotlin | package com.amplitude.android.utilities
import android.content.Context
import android.content.SharedPreferences
import com.amplitude.common.Logger
import com.amplitude.core.Amplitude
import com.amplitude.core.Configuration
import com.amplitude.core.EventCallBack
import com.amplitude.core.Storage
import com.amplitude.c... |
app/src/main/java/org/miaowo/miaowo/handler/ChatHandler.kt | unknown_repo | kotlin | package org.miaowo.miaowo.handler
import android.app.Activity
import okhttp3.ResponseBody
import org.json.JSONObject
import org.miaowo.miaowo.API
import org.miaowo.miaowo.data.model.ChatModel
import org.miaowo.miaowo.other.ActivityHttpCallback
import retrofit2.Call
import retrofit2.Response
class ChatHandler(activity... |
app/src/main/java/id/android/movie/di/ViewModelFactory.kt | unknown_repo | kotlin | package id.android.movie.di
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import javax.inject.Provider
@Suppress("UNCHECKED_CAST")
class ViewModelFactory(private val viewModels: MutableMap<Class<out ViewModel>, Provider<ViewModel>>) : ViewModelProvider.Factory {
override fun <T : ... |
app/src/main/java/com/example/mynote/MainActivity.kt | unknown_repo | kotlin | package com.example.mynote
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import com.example.mynote.ui.theme.MyNoteTheme
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class MainActivity : Compo... |
app/src/main/java/br/com/salosoftwares/mobile/studentsituation/MainActivity.kt | unknown_repo | kotlin | package br.com.salosoftwares.mobile.studentsituation
import android.annotation.SuppressLint
import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import kotlinx.android.synthetic.main.activity_main.*
import java.lang.Exception
class MainActivity... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.