file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/cv4j/app/activity/GridViewFilterActivity.kt | unknown_repo | kotlin | package com.cv4j.app.activity
import android.content.res.Resources
import android.graphics.BitmapFactory
import android.os.Bundle
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.cv4j.app.R
import com.cv4j.app.adapter.GridViewFilterAdapter
import com.cv4... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/BookFont.kt | unknown_repo | kotlin | package me.localx.icons.rounded.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
im... |
codelabs/image_generation_basic/android/start/app/src/main/java/com/google/mediapipe/examples/imagegeneration/ImageGenerationHelper.kt | unknown_repo | kotlin | package com.google.mediapipe.examples.imagegeneration
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import com.google.mediapipe.framework.image.BitmapExtractor
import com.google.mediapipe.framework.image.MPImage
... |
core/network/src/main/java/com/wei/picquest/core/network/pagingsource/PixabayImagePagingSource.kt | unknown_repo | kotlin | package com.wei.picquest.core.network.pagingsource
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.wei.picquest.core.network.PqNetworkDataSource
import com.wei.picquest.core.network.model.NetworkImageDetail
class PixabayImagePagingSource(
private val pqNetworkDataSource: PqNetwor... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/ImageGlobe.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.ImageGlobe: ImageVector
get() {
if (_imageGlobe != null) {
... |
feature_book_details/src/androidTest/java/com/allsoftdroid/feature/book_details/presentation/utils/FakeTrackListRepository.kt | unknown_repo | kotlin | package com.allsoftdroid.feature.book_details.presentation.utils
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.allsoftdroid.feature.book_details.data.model.TrackFormat
import com.allsoftdroid.feature.book_details.domain.model.AudioBookTrackDomainModel
import com.allsoftdroid.f... |
app/src/main/java/com/shannan/converter/data/source/local/RatesDatabase.kt | unknown_repo | kotlin | /*
* Copyright (C) 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 app... |
compose/ui/ui-text/src/androidAndroidTest/kotlin/androidx/compose/ui/text/font/AndroidFontTest.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... |
ananas/src/main/java/iamutkarshtiwari/github/io/ananas/editimage/ImageEditorIntentBuilder.kt | unknown_repo | kotlin | package iamutkarshtiwari.github.io.ananas.editimage
import android.content.Context
import android.content.Intent
class ImageEditorIntentBuilder @JvmOverloads constructor(private val context: Context,
private val sourcePath: String?,
... |
app/src/main/kotlin/com/absinthe/libchecker/features/applist/detail/ui/view/AppPropItemView.kt | unknown_repo | kotlin | package com.absinthe.libchecker.view.detail
import android.content.Context
import android.util.TypedValue
import android.view.ContextThemeWrapper
import android.view.ViewGroup
import android.widget.ImageView
import androidx.appcompat.widget.AppCompatImageButton
import androidx.appcompat.widget.AppCompatTextView
import... |
sdk/src/main/java/app/knock/client/KnockFeed.kt | unknown_repo | kotlin | package app.knock.client
import android.util.Log
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import org.phoenixframework.Channel
import org.phoenixframework.Message
import org.phoenixframework.Socket
import java.time.ZonedDateTime
@JsonIgnoreProper... |
admin/app/src/main/java/com/yazan98/groupyadmin/screens/TasksContainerScreen.kt | unknown_repo | kotlin | package com.yazan98.groupyadmin.screens
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.yazan98.groupyadmin.R
class TasksContainerScreen : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentVi... |
koin-projects/koin-androidx-viewmodel/src/main/java/org/koin/androidx/viewmodel/compat/ViewModelCompat.kt | unknown_repo | kotlin | /*
* Copyright 2017-2018 the original author or 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 ap... |
play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationFragment.kt | unknown_repo | kotlin | /*
* SPDX-FileCopyrightText: 2020, microG Project Team
* SPDX-License-Identifier: Apache-2.0
*/
package org.microg.gms.ui
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import com.goo... |
app/src/main/java/com/ncs/o2/UI/Tasks/TaskPage/TaskDetailActivity.kt | unknown_repo | kotlin | package com.ncs.o2.UI.Tasks.TaskPage
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 androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import com.ncs.o2... |
app/src/main/java/com/example/androiddevchallenge/MainActivity.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... |
app/src/main/java/com/example/belindas_closet/screen/IndividualProductUpdate.kt | unknown_repo | kotlin | package com.example.belindas_closet.screen
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column... |
app/src/main/java/com/example/tiptime/UserRegister.kt | unknown_repo | kotlin | package com.example.tiptime
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.semantics.SemanticsProperties.Password
import androidx.lifecycle.ViewModel
import com.example.tiptime.Data.Booking
import com.example.t... |
firebase-inappmessaging-display/src/test/java/com/google/firebase/inappmessaging/display/ktx/InAppMessagingDisplayTests.kt | unknown_repo | kotlin | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
buildSrc/src/main/kotlin/trikita/anvilgen/DSLGeneratorTask.kt | unknown_repo | kotlin | package trikita.anvilgen
import androidx.annotation.NonNull
import com.squareup.javapoet.*
import groovy.lang.Closure
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
import java.io.File
import java.lang.Deprecated
import java.lang.reflect.Method
import java.net.URL
import java.net.URLClassLoad... |
app/src/main/java/com/jacktor/batterylab/ApplicationBackup.kt | unknown_repo | kotlin | package com.jacktor.batterylab
import android.app.backup.BackupAgent
import android.app.backup.BackupDataInput
import android.app.backup.BackupDataOutput
import android.os.ParcelFileDescriptor
import com.jacktor.batterylab.utilities.PreferencesKeys.BATTERY_LEVEL_TO
import com.jacktor.batterylab.utilities.PreferencesKe... |
app/src/test/java/com/example/cupcake/ViewModelTests.kt | unknown_repo | kotlin | package com.example.cupcake
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.example.cupcake.model.OrderViewModel
import org.junit.Assert.assertEquals
import org.junit.Rule
import org.junit.Test
class ViewModelTests {
@get:Rule
var instantTaskExecutorRule = InstantTaskExecutorRule... |
modules/nav/src/main/kotlin/dev/jonpoulton/actual/nav/NavDestination.kt | unknown_repo | kotlin | package dev.jonpoulton.actual.nav
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import dev.jonpoulton.actual.listbudgets.ui.ListBudgetsScreen
import dev.jonpoulton.actual.login.ui.LoginScreen
import dev.jonpoulton.actual.serverurl.ui.ServerUrlScreen
sealed class NavDestinatio... |
shared/src/commonMain/kotlin/com/movies/domain/util/FlowHelper.kt | unknown_repo | kotlin | package com.movies.domain.util
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.*
/**
* Got my idea for this from stackoverflow post
* Source:
* https://stackoverflow.com/questions/64175099/listen-to-kotlin-coroutine-flow-from-ios
*/
/**
* Must creat... |
app/src/main/java/com/example/bricklist/AddActivity.kt | unknown_repo | kotlin | package com.example.bricklist
import android.annotation.SuppressLint
import android.app.Activity
import android.content.ContentValues
import android.content.Context
import android.content.Intent
import android.database.sqlite.SQLiteDatabase
import android.os.*
import androidx.appcompat.app.AppCompatActivity
import and... |
android/app/src/main/java/com/algorand/android/customviews/AlgorandFloatingActionButton.kt | unknown_repo | kotlin | /*
* Copyright 2022 Pera Wallet, LDA
* 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 writing,... |
common/src/commonMain/kotlin/com/niji/claudio/common/ui/widget/ClaudioDropdownMenu.kt | unknown_repo | kotlin | package com.niji.claudio.common.ui.widget
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.material.DropdownMenu
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
fun ClaudioDropdownMenu(
modifier: Modifier,
expanded: Boolean,
onDismiss... |
imagepipeline/src/main/java/com/facebook/imagepipeline/core/ImagePipelineExperiments.kt | unknown_repo | kotlin | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.imagepipeline.core
import android.content.Context
import android.graphics.Bitmap
import com.facebook.cache.... |
form/src/main/java/com/thejuki/kformmaster/model/FormPickerDropDownElement.kt | unknown_repo | kotlin | package com.thejuki.kformmaster.model
import android.app.AlertDialog
import android.view.View
import android.widget.ArrayAdapter
import android.widget.TextView
import androidx.appcompat.widget.AppCompatEditText
import com.thejuki.kformmaster.R
import com.thejuki.kformmaster.helper.FormBuildHelper
import com.thejuki.kf... |
livecallback/src/main/java/com/ricarvalho/livecallback/registry/TokenizedOutputLiveCallbackRegistry.kt | unknown_repo | kotlin | package com.ricarvalho.livecallback.registry
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.Lifecycle.State.DESTROYED
import androidx.lifecycle.Lifecycle.State.RESUMED
import androidx.lifecycle.Lifecycle.State.STARTED
import androidx.lifecycle.LifecycleOwner
import com.ricarvalho.livecallback.CallbackTo... |
App/app/src/main/java/com/mengfou/ui/section/SectionFragment.kt | unknown_repo | kotlin | package com.mengfou.ui.section
import android.annotation.SuppressLint
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebViewClient
import androidx.appcompat.app.AppCom... |
Application/app/src/main/java/com/wrmh/allmyfood/views/recipes/RecipeFragment.kt | unknown_repo | kotlin | package com.wrmh.allmyfood.views.recipes
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import andro... |
EcoSwapAndroid/src/main/java/com/darrenthiores/ecoswap/android/presentation/home/HomeScreen.kt | unknown_repo | kotlin | package com.darrenthiores.ecoswap.android.presentation.home
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation... |
relax-business-component/src/main/java/com/ustory/relax_business_component/utils/ErrorUtil.kt | unknown_repo | kotlin | package com.ustory.relax_business_component.utils
import android.app.Activity
import android.content.Context
import android.content.DialogInterface
import com.google.gson.JsonSyntaxException
import com.ustory.relax_basic_component.core.dialog.ErrorDialog
import com.ustory.relax_business_component.R
import com.ustory.r... |
app/src/main/java/com/rubyh/mlbcodechallenge/BeersApplication.kt | unknown_repo | kotlin | package com.rubyh.mlbcodechallenge
import android.app.Application
import android.content.Context
import com.rubyh.mlbcodechallenge.di.appModule
import com.rubyh.mlbcodechallenge.di.networkModule
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.startKoin
class BeersApplication : Application... |
feature/sponsors/src/commonMain/kotlin/io/github/droidkaigi/confsched/sponsors/SponsorsScreen.kt | unknown_repo | kotlin | package io.github.droidkaigi.confsched.sponsors
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Scaffold
import an... |
app/src/main/java/com/dunchi/android_view/general/ConstraintLayoutActivity.kt | unknown_repo | kotlin | package com.dunchi.android_view.general
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.dunchi.android_view.R
class ConstraintLayoutActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setConte... |
app/src/main/java/com/mobilebreakero/Gamezone/ui/components/GameZoneTopAppBar.kt | unknown_repo | kotlin | package com.mobilebreakero.Gamezone.ui.composables
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.... |
app/src/main/java/io/github/takusan23/Kaisendon/Home.kt | unknown_repo | kotlin | package io.github.takusan23.Kaisendon
import android.Manifest
import android.animation.ObjectAnimator
import androidx.appcompat.app.AlertDialog
import android.annotation.SuppressLint
import android.app.*
import android.content.*
import android.content.pm.PackageManager
import android.content.res.ColorStateList
import ... |
app/src/main/java/com/buchi/fullentry/movie/data/cache/MoviesAppDatabase.kt | unknown_repo | kotlin | package com.buchi.fullentry.movie.data.cache
import androidx.room.Database
import androidx.room.RoomDatabase
@Database(entities = [
MovieData::class
], version = 1, exportSchema = false)
abstract class MoviesAppDatabase: RoomDatabase() {
abstract fun moviesDao(): MovieDao
} |
app/src/main/java/com/workbook/liuwb/workbook/actions/service/bind/messengerdemo/ActivityMessenger.kt | unknown_repo | kotlin | package com.workbook.liuwb.workbook.actions.service.bind.messengerdemo
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.os.*
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.workb... |
examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/common/Theme.kt | unknown_repo | kotlin | package org.jetbrains.codeviewer.ui.common
import androidx.compose.material.darkColors
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.SpanStyle
object AppTheme {
val colors: Colors = Colors()
val code: Code = Code()
class Colors(
val backgroundDark: Color = Color(0xFF2... |
demo3/app/src/main/java/com/mokelab/demo/sdldemo3/MainActivity.kt | unknown_repo | kotlin | package com.mokelab.demo.sdldemo3
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activ... |
compose/src/test/java/com/kizitonwose/calendar/compose/StateSaverTest.kt | unknown_repo | kotlin | package com.kizitonwose.calendar.compose
import androidx.compose.runtime.saveable.Saver
import androidx.compose.runtime.saveable.SaverScope
import androidx.compose.runtime.saveable.listSaver
import com.kizitonwose.calendar.compose.heatmapcalendar.HeatMapCalendarState
import com.kizitonwose.calendar.compose.weekcalenda... |
app/src/main/java/com/tktkokym/currencyviewer/AppApplication.kt | unknown_repo | kotlin | package com.tktkokym.currencyviewer
import android.app.Application
import android.os.StrictMode
import com.tktkokym.currencyviewer.di.appModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
import org.koin.core.logger.Level
class ... |
app/src/main/kotlin/de/markusfisch/android/binaryeye/activity/SplashActivity.kt | unknown_repo | kotlin | package de.markusfisch.android.binaryeye.activity
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import de.markusfisch.android.binaryeye.app.setRestartCount
class SplashActivity : AppCompatActivity() {
override fun onCreate(state: Bundle?) {
super.onCreate(st... |
runtime-permission/src/main/java/jp/co/soramitsu/android_foundation/kotlin/coroutines/experimental/kotlin-runtimepermissions-coroutines.kt | unknown_repo | kotlin | package jp.co.soramitsu.android_foundation.kotlin.coroutines.experimental
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import jp.co.soramitsu.android_foundation.core.PermissionResult
import jp.co.soramitsu.android_foundation.core.RuntimePermission
import jp.co.soramitsu.android_f... |
app/src/main/kotlin/lishiyo/kotlin_arch/view/AboutFragment.kt | unknown_repo | kotlin | /**
* Copyright 2017 <NAME>.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agree... |
filepicker/src/commonMain/kotlin/com/chirrio/filepicker/ArrayBitmap.kt | unknown_repo | kotlin | package com.chirrio.filepicker
import androidx.compose.ui.graphics.ImageBitmap
expect fun ByteArray.toImageBitmap(context: Any, file: MPFile<Any>): ImageBitmap
expect suspend fun ImageBitmap.downscale(): ImageBitmap
expect fun imageBitmapFromArgb(
rawArgbImageData: ByteArray,
width: Int,
height: Int
): ... |
app/src/main/java/com/bignerdranch/android/geoquiz/MainActivity.kt | unknown_repo | kotlin | package com.bignerdranch.android.geoquiz
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.Toast
import com.bignerdranch.android.geoquiz.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
pr... |
app/src/main/java/br/edu/puccampinas/pi3/AvaliacaoActivity.kt | unknown_repo | kotlin | package br.edu.puccampinas.pi3
import android.content.Intent
import android.os.Bundle
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.RecyclerView
import br.edu.puccampinas.pi3.databinding.ActivityAndamentoBinding
import br.... |
app/src/main/java/com/ztftrue/music/utils/Utils.kt | unknown_repo | kotlin | package com.ztftrue.music.utils
import android.content.Context
import android.content.Intent
import android.content.pm.ResolveInfo
import android.net.Uri
import android.os.Bundle
import android.support.v4.media.MediaBrowserCompat
import android.text.TextUtils
import android.widget.Toast
import androidx.core.content.Fi... |
androidApp/src/androidMain/kotlin/dev/sasikanth/rss/reader/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright 2023 <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 wr... |
sample/web-app-compose/src/jsMain/kotlin/com/icerockdev/web/Main.kt | unknown_repo | kotlin | /*
* Copyright 2022 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package com.icerockdev.web
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import com.icerockdev.library.MR
import com.icerockdev.library.Testing
import dev.icerock.moko.res... |
app/src/main/java/com/composetemplate/core/data/storage/PreferenceDataStore.kt | unknown_repo | kotlin | package com.composetemplate.core.data.storage
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.core.edit
import com.composetemplate.core.data.storage.PreferenceDataStore... |
app/src/main/java/nl/jovmit/friends/domain/user/User.kt | unknown_repo | kotlin | package nl.jovmit.friends.domain.user
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class User(
val id: String,
val email: String,
val about: String
) : Parcelable
|
app/src/main/java/com/muzzley/app/tiles/TilesFragment.kt | unknown_repo | kotlin | package com.muzzley.app.tiles
import android.app.Activity
import android.app.ProgressDialog
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import androidx.recyclerview.widget.GridLayoutManager
import androidx.rec... |
app/src/main/java/com/cyh128/hikari_novel/data/repository/BookshelfRepository.kt | unknown_repo | kotlin | package com.cyh128.hikari_novel.data.repository
import com.cyh128.hikari_novel.data.model.BookshelfNovelInfo
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class BookshelfRepository @Inject constructor() {
... |
app/src/main/kotlin/com/lazysoul/kotlinwithandroid/injection/module/ApplicationModule.kt | unknown_repo | kotlin | package com.lazysoul.kotlinwithandroid.injection.module
import android.app.Application
import android.content.Context
import android.content.SharedPreferences
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
/**
* Created by Lazysoul on 2017. 7. 17..
*/
@Module
class ApplicationModule(priv... |
purchase/src/main/java/com/yeuristic/purchase/PurchaseListAdapter.kt | unknown_repo | kotlin | package com.yeuristic.purchase
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
class PurchaseListAdapter(
private val data: List<BasePurchaseData>
): RecyclerView.Adapter<RecyclerView.ViewHolder>() {
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView... |
app/src/main/java/com/orange/ods/app/ui/components/textfields/TextField.kt | unknown_repo | kotlin | /*
*
* Copyright 2021 Orange
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* /
*/
package com.orange.ods.app.ui.components.textfields
import androidx.compose.foundation.layout.Column
import androidx.comp... |
app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/usecases/coroutines/usecase15/WorkManagerActivity.kt | unknown_repo | kotlin | package com.lukaslechner.coroutineusecasesonandroid.usecases.coroutines.usecase15
import android.os.Bundle
import androidx.activity.viewModels
import com.lukaslechner.coroutineusecasesonandroid.base.BaseActivity
import com.lukaslechner.coroutineusecasesonandroid.base.useCase15Description
import com.lukaslechner.corout... |
app/src/main/java/com/example/android/navigation/TitleFragment.kt | unknown_repo | kotlin | package com.example.android.navigation
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
/**
* A simple [Fragment] subclass.
*/
class TitleFragment : Fragment() {
override fun ... |
app/src/main/java/com/ghstudios/android/features/weapons/detail/WeaponBowgunDetailViewHolder.kt | unknown_repo | kotlin | package com.ghstudios.android.features.weapons.detail
import android.content.Context
import android.graphics.Typeface
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.ghstudios.android.data.classes.Weapon
import com.ghstudios.android.mh... |
features/mpcredits/src/main/java/com/jpp/mpcredits/CreditsFragment.kt | unknown_repo | kotlin | package com.jpp.mpcredits
import android.content.Context
import android.os.Bundle
import android.os.Parcelable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewMod... |
modules/Plugin_Main/src/main/java/com/example/main/grid/impl/SpacesItemDecoration.kt | unknown_repo | kotlin | package com.voter.adaptivegridview.impl
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView.ItemDecoration
import androidx.recyclerview.widget.RecyclerView
class SpacesItemDecoration(private val padding: Int, private val isHorizontal: Boolean) : ItemDecoration() {
... |
app/src/androidTest/java/tech/dalapenko/kinosearch/OpenFilmDetailsBySearchTest.kt | unknown_repo | kotlin | package tech.dalapenko.kinosearch
import androidx.test.ext.junit.rules.ActivityScenarioRule
import com.kaspersky.kaspresso.testcases.api.testcase.TestCase
import org.junit.Rule
import org.junit.Test
import tech.dalapenko.kinosearch.screen.FilmDetailsScreen
import tech.dalapenko.kinosearch.screen.HomeScreen
import tech... |
common/src/main/java/com/library/common/mvvm/BaseViewModel.kt | unknown_repo | kotlin | package com.library.common.mvvm
import android.view.View
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.blankj.utilcode.util.NetworkUtils
import com.library.common.R
import com.library.common.base.BaseApplication
import com.library.co... |
core-data/src/main/java/com/stefang/dev/core/data/file/CryptoFileKeyStore.kt | unknown_repo | kotlin | package com.stefang.dev.core.data.file
import android.security.keystore.KeyGenParameterSpec
import android.security.keystore.KeyProperties
import android.util.Log
import com.google.gson.Gson
import java.nio.charset.Charset
import java.security.KeyStore
import javax.crypto.Cipher
import javax.crypto.KeyGenerator
import... |
jdroid-android-google-maps/src/main/java/com/jdroid/android/google/maps/MapUtils.kt | unknown_repo | kotlin | package com.jdroid.android.google.maps
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.Drawable
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import androidx.core.graphics.drawable.DrawableCompat
import androidx.vectordrawable.graphics.drawabl... |
picker-media/src/main/java/chooongg/box/picker/media/MediaPickerAdapter.kt | unknown_repo | kotlin | package chooongg.box.picker.media
import android.provider.MediaStore
import chooongg.box.core.adapter.BindingAdapter
import chooongg.box.core.adapter.BindingHolder
import chooongg.box.ext.gone
import chooongg.box.ext.visible
import chooongg.box.picker.media.databinding.BoxItemPickerMediaBinding
import chooongg.box.pic... |
app/src/main/java/com/techbeloved/hymnbook/hymndetail/DetailPagerFragment.kt | unknown_repo | kotlin | package com.techbeloved.hymnbook.hymndetail
import android.annotation.SuppressLint
import android.app.ProgressDialog
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import androidx.core.app.ShareCompat
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
i... |
app/src/main/java/edu/rosehulman/condrak/roseschedule/Day.kt | unknown_repo | kotlin | package edu.rosehulman.condrak.roseschedule
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Day (var name: String = "", var periods: MutableList<ClassPeriod> = ArrayList()) : Parcelable |
app/src/main/java/com/danchoo/sample/gallery/data/datasource/GalleryDataSourceImpl.kt | unknown_repo | kotlin | package com.danchoo.sample.gallery.data.datasource
import android.content.Context
import android.database.Cursor
import android.net.Uri
import android.provider.MediaStore
import com.danchoo.sample.gallery.domain.model.GalleryItemModel
import dagger.hilt.android.qualifiers.ApplicationContext
import kotlinx.coroutines.f... |
compose/desktop/desktop/src/jvmMain/kotlin/androidx/compose/ui/window/WindowDraggableArea.jvm.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/optiontrade/br/base/BaseFragment.kt | unknown_repo | kotlin | package com.optiontrade.br.base
import android.content.SharedPreferences
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil.inflate
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragme... |
components/src/main/java/emperorfin/android/components/ui/screens/authentication/uicomponents/AuthenticationTitle.kt | unknown_repo | kotlin | /*
* Copyright 2023 <NAME> (emperorfin)
*
* 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/com/black_dragon74/mujbuddy/SettingsActivity.kt | unknown_repo | kotlin | package com.black_dragon74.mujbuddy
import android.content.SharedPreferences
import android.os.Bundle
import androidx.annotation.Nullable
import com.black_dragon74.mujbuddy.utils.HelperFunctions
import com.black_dragon74.mujbuddy.utils.SEMESTER_DATA
import com.codevscolor.materialpreference.activity.MaterialPreference... |
src/main/kotlin/view/UiResources.kt | unknown_repo | kotlin | package view
import androidx.compose.foundation.defaultScrollbarStyle
import androidx.compose.foundation.shape.RoundedCornerShape
import shared.Colors.scrollbarHoverColor
import shared.Colors.scrollbarUnhoverColor
import shared.Dimensions.scrollbarThickness
val CustomScrollbarStyle = defaultScrollbarStyle().copy(
... |
client_end_user/shared/src/androidMain/kotlin/presentation/map/CommonGPSLocationService.android.kt | unknown_repo | kotlin | package presentation.map
import _androidIntentFlow
import android.Manifest
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.location.LocationManager
import android.os.Looper
import androidx.compose.runtime.NoLiv... |
app/src/main/java/com/example/digitalminimalism/Focus/FocusModeFragment.kt | unknown_repo | kotlin | import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.digitalminimalism.Focus.BottomNavigation.Active.ActiveNavFragment
import com.example.digitalminimalism.Focus.BottomNavigation.History.HistoryNavFrag... |
Project_Manager_App/app/src/main/java/com/example/projectmanager/activities/CreateBoardActivity.kt | unknown_repo | kotlin | package com.example.projectmanager.activities
import android.net.Uri
import android.os.Bundle
import android.webkit.MimeTypeMap
import android.widget.Toast
import androidx.activity.result.contract.ActivityResultContracts
import androidx.lifecycle.lifecycleScope
import com.bumptech.glide.Glide
import com.example.projec... |
common/src/commonMain/kotlin/dev/zwander/common/pages/WifiConfigPage.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalObjCRefinement::class)
package dev.zwander.common.pages
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.MaterialT... |
coinkit/src/main/java/io/horizontalsystems/coinkit/models/Coin.kt | unknown_repo | kotlin | package io.vextabit.coinkit.models
import android.content.Context
import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.eclipsesource.json.Json
import kotlinx.android.parcel.Parcelize
import java.io.InputStreamReader
import java.util.*
@Par... |
unity/BIDUnityBanner.kt | unknown_repo | kotlin | package io.bidapp.networks.unity
import android.app.Activity
import android.util.Log
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import com.unity3d.services.banners.BannerErrorInfo
import com.unity3d.services.banners.BannerView
import com.unity3d.services.banners.UnityBan... |
design/components/src/main/java/com/choice/compose/Row.kt | unknown_repo | kotlin | package com.choice.compose
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import com.choice.theme.MonkeyTheme
@Composable
inline fun MonkeyRow(
modifier: Modifier = Modifier,
horizontalArrangement:... |
features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/RoomDetailsView.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
app/android/src/main/java/UpdateAwareAppScope.kt | unknown_repo | kotlin | package dev.schlaubi.tonbrett.app.android
import android.app.Activity
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import a... |
app/src/main/java/com/github/kacso/androidcommons/viewmodel/SplashViewModel.kt | unknown_repo | kotlin | package com.github.kacso.androidcommons.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.viewModelScope
import com.github.kacso.androidcommons.core.BaseApplication
import com.github.kacso.androidcommons.core.livedata.SingleLiveEvent
import com.github.kacso.androidcommons.core.mvvm.viewmodels.Base... |
app/src/main/java/com/example/afifit/data/OtherUserHolder.kt | unknown_repo | kotlin | package com.example.afifit.data
import android.content.Context
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions
import com.example.afifit.R
import com... |
OrderCenter/src/main/java/com/kotlin/order/ui/activity/ShipAddressEditActivity.kt | unknown_repo | kotlin | package com.kotlin.order.ui.activity
import android.os.Bundle
import com.kotlin.base.ext.onClick
import com.kotlin.base.ui.activity.BaseActivity
import com.kotlin.base.ui.activity.BaseMvpActivity
import com.kotlin.order.R
import com.kotlin.order.common.OrderConstant
import com.kotlin.order.data.protocol.ShipAddress
im... |
feature/market/src/main/kotlin/com/niyaj/feature/market/measureUnit/settings/ExportMeasureUnitScreen.kt | unknown_repo | kotlin | /*
* Copyright 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
app/src/main/java/org/ranapat/examples/githubbrowser/ui/util/ViewExtensions.kt | unknown_repo | kotlin | package org.ranapat.examples.githubbrowser.ui.util
import android.content.Context.INPUT_METHOD_SERVICE
import android.view.View
import android.view.inputmethod.InputMethodManager
fun View.hideSoftKeyboard() {
val inputMethodManager = context.getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager?
inputM... |
app/src/main/java/com/shermanrex/recorderApp/presentation/screen/setting/component/SampleRateSection.kt | unknown_repo | kotlin | package com.shermanrex.recorderApp.presentation.screen.setting.component
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
i... |
core/core-media-notification/src/main/kotlin/com/maximillianleonov/musicmax/core/media/notification/MusicNotificationProvider.kt | unknown_repo | kotlin | /*
* Copyright 2022 Afig Aliyev
*
* 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 ... |
editor/src/main/kotlin/com/dr10/editor/ui/EmptyContextMenu.kt | unknown_repo | kotlin | package com.dr10.editor.ui
import androidx.compose.foundation.ContextMenuArea
import androidx.compose.foundation.ContextMenuState
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.text.TextContextMenu
import androidx.compose.runtime.Composable
/**
* Object that creates a... |
app/src/main/java/com/udacity/asteroid/radar/main/MainViewModel.kt | unknown_repo | kotlin | package com.udacity.asteroid.radar.main
import androidx.lifecycle.*
import com.udacity.asteroid.radar.data.util.DataDateUtil
import com.udacity.asteroid.radar.domain.model.AsteroidModel
import com.udacity.asteroid.radar.domain.model.PictureModel
import com.udacity.asteroid.radar.domain.usecase.AsteroidOfflineUseCase
i... |
app/src/main/java/com/rhtyme/swipetoaction/ExtUtils.kt | unknown_repo | kotlin | package com.rhtyme.swipetoaction
import android.content.Context
import android.graphics.drawable.Drawable
import android.view.View
import androidx.annotation.ColorInt
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.core.content.ContextComp... |
app/src/main/java/me/spica/weather/ui/main/MainPagerAdapter.kt | unknown_repo | kotlin | package me.jimi.weather.ui.main
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.recyclerview.widget.AsyncListDiffer
import androidx.recyclerview.widget.DiffUtil
import androidx.viewpager2.adapter.FragmentStateAdapter
import me.jimi.weather.mo... |
app/src/main/java/com/cryptron/util/WalletDisplayUtils.kt | unknown_repo | kotlin | /**
* BreadWallet
*
* Created by Ahsan Butt <ahsan.butt@breadwallet.com> on 10/10/19.
* Copyright (c) 2019 breadwallet LLC
*
* 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 re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.