file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/dedsec_x47/trainer/aiTrainer/render/RGBConverter.kt | unknown_repo | kotlin | package com.dedsec_x47.trainer.aiTrainer.render
import android.content.Context
import android.graphics.Bitmap
import android.graphics.ImageFormat
import android.graphics.Rect
import android.media.Image
import android.renderscript.Allocation
import android.renderscript.Element
import android.renderscript.RenderScript
i... |
src/src/main/java/com/online/course/ui/frag/course/BaseCourseAddToFav.kt | unknown_repo | kotlin | package com.online.course.ui.frag.course
import android.content.Context
import androidx.fragment.app.FragmentManager
import com.online.course.manager.adapter.ViewPagerAdapter
import com.online.course.manager.listener.ItemCallback
import com.online.course.model.AddToCart
import com.online.course.model.AddToFav
import c... |
multiplatform/greeter/androidApp/src/main/java/com/fredporciuncula/inject/greeter/android/GreeterApplication.kt | unknown_repo | kotlin | package com.fredporciuncula.inject.greeter.android
import android.app.Application
import com.fredporciuncula.inject.greeter.ApplicationComponent
import com.fredporciuncula.inject.greeter.Version
import com.fredporciuncula.inject.greeter.create
class GreeterApplication : Application(), ApplicationComponentProvider {
... |
app/src/main/java/com/nicolasmilliard/playground/ui/DashboardScreen.kt | unknown_repo | kotlin | package com.nicolasmilliard.playground.ui
import androidx.fragment.app.Fragment
import com.nicolasmilliard.playground.R
class DashboardScreen : Fragment(R.layout.screen_dashboard)
|
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/medium/ChevronSmallDownCircleMedium.kt | unknown_repo | kotlin | package ch.sbb.compose_mds.sbbicons.medium
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mi... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/Music.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
... |
android-kotlin/idea-android/testData/android/lintQuickfix/targetApi/topLevelProperty.kt | unknown_repo | kotlin | // INTENTION_TEXT: Add @TargetApi(M) Annotation
// INSPECTION_CLASS: com.android.tools.idea.lint.inspections.AndroidLintNewApiInspection
import android.app.Activity
val top: Int
get() = Activity().<caret>checkSelfPermission(READ_CONTACTS) |
wear/src/main/java/com/vlad1m1r/watchface/settings/complications/picker/ComplicationPickerFragment.kt | unknown_repo | kotlin | package com.vlad1m1r.watchface.settings.complications.picker
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.wear.watchface.c... |
counterexample/src/main/kotlin/at/florianschuster/counterexample/CounterScreen.kt | unknown_repo | kotlin | package at.florianschuster.counterexample
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import at.florianschuster.reaktor.ReactorView
import at.florianschuster.reaktor.android.ViewModelReactor
import at.florianschuster.reaktor.android.bind
import at.florianschuster.reaktor.android.viewModelR... |
app/src/main/java/com/amazonaws/ivs/player/ecommerce/common/CommonExtensions.kt | unknown_repo | kotlin | package com.amazonaws.ivs.player.ecommerce.common
import android.app.Activity
import android.content.Context
import android.view.inputmethod.InputMethodManager
import androidx.core.content.ContextCompat
import com.amazonaws.ivs.player.ecommerce.R
import com.google.android.material.dialog.MaterialAlertDialogBuilder
imp... |
main/java/com/example/robertus_bffa_1/UserAdapter.kt | unknown_repo | kotlin | package com.example.robertus_bffa_1
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.TextView
import de.hdodenhof.circleimageview.CircleImageView
class UserAdapter(private val context: Conte... |
src/jsMain/kotlin/viewmodel/BaseViewModel.kt | unknown_repo | kotlin | package viewmodel
import androidx.compose.runtime.Composable
import components.ErrorDisplay
import components.RgSpinner
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.S... |
example-api-cloud-clients-android/app/src/androidTest/java/com/google/api/examples/kotlin/client/TestUtil.kt | unknown_repo | kotlin | /*
* Copyright 2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
tv/src/main/java/com/yuriy/openradio/tv/view/fragment/TvSearchFragment.kt | unknown_repo | kotlin | /*
* Copyright 2019-2021 The "Open Radio" Project. Author: <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 requi... |
src/jsMain/kotlin/Router.kt | unknown_repo | kotlin | import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import components.*
import components.routes.*
import org.jetbrains.compose.web.css.Style
import org.jetbrains.compose.web.dom.Text
import styles.AppStyle
import viewmodel.Route
import view... |
data/src/main/kotlin/com/reactions/deathlines/data/db/album/SongDao.kt | unknown_repo | kotlin | package com.reactions.deathlines.data.db.album
import androidx.paging.DataSource
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Transaction
import io.reactivex.Flowable
import com.reactions.deathlines.data.db.BaseDao
@Dao
interface SongDao : BaseDao<SongData.Song> {
@Query("SELECT * FRO... |
sync/sync-impl/src/main/java/com/duckduckgo/sync/impl/ui/SyncLoginActivity.kt | unknown_repo | kotlin |
package com.duckduckgo.sync.impl.ui
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.flowWithLifecycle
import androidx.lifecycle.lifecycleScope
import com.duckduckgo.anvil.annotations.InjectWith
import com.duckduckgo.c... |
library/core/src/jvmMain/kotlin/com/michaelflisar/composedialogs/core/Platform.jvm.kt | unknown_repo | kotlin | package com.michaelflisar.composedialogs.core
import androidx.compose.foundation.VerticalScrollbar
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.IntrinsicSize
import androidx... |
demo/src/commonMain/kotlin/dev/alibagherifam/kavoshgar/demo/lobby/LobbyNavigation.kt | unknown_repo | kotlin | package dev.alibagherifam.kavoshgar.demo.lobby
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import dev.alibagherifam.kavoshgar.demo.chat.ChatNavigationArgs
import dev.alibagherifam.kavoshgar.demo.lobby.screen.LobbyListScreen
... |
app/src/main/java/com/alexjlockwood/beesandbombs/demos/WaveSquare.kt | unknown_repo | kotlin | package com.alexjlockwood.beesandbombs.demos
import androidx.compose.animation.animatedFloat
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Canvas
import androidx.compose.found... |
circularporgressview/src/main/java/com/bks/circularporgressview/DeterminateProgressView.kt | unknown_repo | kotlin | package com.bks.circularporgressview
import androidx.compose.animation.animateColor
import androidx.compose.animation.core.*
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.material.MaterialTheme.typography
i... |
site/src/jsMain/kotlin/pt/rvcoding/personalwebsitecomposehtml/components/SpanTextLink.kt | unknown_repo | kotlin | package pt.rvcoding.personalwebsitecomposehtml.components
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import com.varabyte.kobweb.compose.css.TextAlign
import com.varabyte.kobweb.compose.css.W... |
BasicLayoutCodelab/app/src/main/java/com/example/basiclayoutcodelab/ui/theme/Theme.kt | unknown_repo | kotlin | package com.example.basiclayoutcodelab.ui.theme
import android.app.Activity
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import an... |
android/app/src/main/java/com/sicariusnoctis/collaborativeintelligence/Camera.kt | unknown_repo | kotlin | package com.sicariusnoctis.collaborativeintelligence
import android.content.Context
import android.util.Log
import io.fotoapparat.Fotoapparat
import io.fotoapparat.configuration.CameraConfiguration
import io.fotoapparat.log.logcat
import io.fotoapparat.log.loggers
import io.fotoapparat.parameter.FpsRange
import io.fot... |
SoundUtilities/src/main/java/com/baka3k/soundutilities/utils/MediaExtractorUtils.kt | unknown_repo | kotlin | /*
* Created by LeQuangHiep on 02/21.
* Copyright © 2021 baka3k@gmail.com. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for details
*/
package com.baka3k.soundutilities.utils
import android.media.MediaExtractor
import android.media.MediaFormat
import android.media.Med... |
SoundUtilities/src/main/java/com/baka3k/soundutilities/utils/MediaExtractorUtils.kt | unknown_repo | kotlin | /*
* Created by LeQuangHiep on 02/21.
* Copyright © 2021 baka3k@gmail.com. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for details
*/
package com.baka3k.soundutilities.utils
import android.media.MediaExtractor
import android.media.MediaFormat
import android.media.Med... |
app/src/main/java/com/example/taskapp/MainActivity.kt | unknown_repo | kotlin | package com.example.taskapp
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose... |
app/src/main/java/com/example/freeweather/presentation/search/SearchAdapter.kt | unknown_repo | kotlin | package com.example.freeweather.presentation.search
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.example.freeweather.databinding.SearchResultItemBinding
import com.example.freeweather.presentation.search.SearchViewModel.SearchResult
/**
... |
Jetsnack/app/src/main/java/com/example/jetsnack/ui/home/search/Suggestions.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
data/src/main/kotlin/com/alfresco/content/data/FilterOptions.kt | unknown_repo | kotlin | package com.alfresco.content.data
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
/**
* Marked as FilterOptions class
*/
@Parcelize
data class FilterOptions(
val label: String = "",
val query: String = "",
val value: String = "",
val default: Boolean = false
) : Parcelable
|
core/networkApi/firebaseDatabase/impl/src/main/java/odoo/miem/android/core/firebaseDatabase/impl/FirebaseDatabase.kt | unknown_repo | kotlin | package odoo.miem.android.core.firebaseDatabase.impl
import android.net.Uri
import com.google.android.gms.tasks.Task
import com.google.android.gms.tasks.Tasks
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.storage.FirebaseStorage
import io.reactivex.rxjava3.core.Single
import odoo.mi... |
app/src/main/java/io/github/esabook/silentcrash/app/MainActivity.kt | unknown_repo | kotlin | package io.github.esabook.silentcrash.app
import android.os.Bundle
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import io.github.esabook.silentcrash.OnCrashListener
import io.github.esabook.silentcrash.SilentCrash
import io.github.esabook.silentcrash.app.databinding.Activit... |
app/src/main/java/com/achmaddaniel/kunime/api/model/OngoingAnimeModel.kt | unknown_repo | kotlin | package com.achmaddaniel.kunime.api.model
import com.achmaddaniel.kunime.api.ClientService
import com.achmaddaniel.kunime.api.response.OngoingAnime
import com.achmaddaniel.kunime.api.response.OngoingAnimeResponse
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import android.util.Log
class... |
app/src/main/java/com/mospolytech/mospolyhelper/features/ui/account/auth/AuthViewModel.kt | unknown_repo | kotlin | package com.mospolytech.mospolyhelper.features.ui.account.auth
import androidx.lifecycle.ViewModel
import com.mospolytech.mospolyhelper.domain.account.auth.usecase.AuthUseCase
import com.mospolytech.mospolyhelper.utils.Result0
import kotlinx.coroutines.flow.Flow
import org.koin.core.component.KoinComponent
class Auth... |
androidApp/src/main/java/dev/avatsav/linkding/android/ui/MainActivity.kt | unknown_repo | kotlin | package dev.avatsav.linkding.android.ui
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Surface
import androidx.compose.ui.Modifier
import com.ramcosta.composedestinat... |
app/src/main/java/com/implizstudio/android/app/warungkuowner/ui/fragment/home/HomeViewModel.kt | unknown_repo | kotlin | package com.implizstudio.android.app.warungkuowner.ui.fragment.home
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.implizstudio.android.app.warungkuowner.data.model.ReportResult
import com.impliz... |
sdk/sync/sync-android-kt/src/commonMain/kotlin/com/twilio/sync/operations/DocumentMutateDataOperation.kt | unknown_repo | kotlin | //
// Twilio Sync Client
//
// Copyright © Twilio, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
package com.twilio.sync.operations
import com.twilio.twilsock.client.Twilsock
import com.twilio.twilsock.commands.CommandsConfig
import com.twilio.twilsock.util.HttpMethod
import com.twilio.twilsock.... |
s3-retrofit-hilt/book-store-notes-final/app/src/main/java/com/droidcon/book_store_notes/view/BookDetailScreen.kt | unknown_repo | kotlin | package com.droidcon.book_store_notes.view
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
@Composable
fun BookDetailScreen() {
Text(text = "Book detail screen")
} |
app/src/androidTest/java/com/example/cleanarchitecturenoteapp/feature_note/presentation/notes/NotesScreenTest.kt | unknown_repo | kotlin | package com.example.cleanarchitecturenoteapp.feature_note.presentation.notes
import android.app.Application
import android.content.Context
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import ... |
Lesson7-RecyclerView/app/src/main/java/com/example/android/trackmysleepquality/sleeptracker/SleepTrackerFragment.kt | unknown_repo | kotlin | /*
* Copyright 2018, 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... |
source-code/starter-project/app/src/main/java/com/droidcon/formvalidation/createaccount/CreateAccountViewModel.kt | unknown_repo | kotlin | package com.droidcon.formvalidation.createaccount
import androidx.lifecycle.ViewModel
import com.droidcon.formvalidation.createaccount.validation.CreateAccountParams
import com.droidcon.formvalidation.createaccount.validation.ValidatorFactory
import com.droidcon.formvalidation.validator.InputValidator
import kotlinx.c... |
camera/camera-video/src/androidTest/java/androidx/camera/video/RecorderTest.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/com/ehayvan/app/modules/viewprofile/ui/ViewProfileActivity.kt | unknown_repo | kotlin | package com.ehayvan.app.modules.viewprofile.ui
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.activity.viewModels
import com.android.volley.Request
import com.android.volley.RequestQueue
import com.android.volley.toolbox.JsonObjectRequest
import ... |
app/src/main/java/com/uraniumcode/e_walletplus/viewmodels/HomeViewModel.kt | unknown_repo | kotlin | package com.uraniumcode.e_cuzdanplus.viewModels
import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.uraniumcode.e_walletplus.database.AppDatabase
import com.uraniumcode.e_walletplus.model.Spend
import com.uraniumcode.e_walletplus.model.Wallet
import kotlinx.coroutines.launch
import andr... |
app/src/main/java/com/chinchillateam/chinchillatune/MainActivity.kt | unknown_repo | kotlin | package com.chinchillateam.chinchillatune
import android.os.Build
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.result.contract.ActivityResultContracts
import androidx.annotation.RequiresApi
import an... |
app/src/main/kotlin/org/jdc/template/ui/theme/AppPalette.kt | unknown_repo | kotlin | package org.jdc.template.ui.theme
import androidx.compose.ui.graphics.Color
// Colors based on the following colors -> https://www.figma.com/community/plugin/1034969338659738588/material-theme-builder
// Primary ba1a20
// Secondary 680008
// Tertiary a88d5b
// Neutral 998e8d
object AppPalette {
private val prim... |
app/src/main/java/com/hfut/schedule/ui/Activity/success/search/Search/LoginWeb/loginWebUI.kt | unknown_repo | kotlin | package com.hfut.schedule.ui.Activity.success.search.Search.LoginWeb
import android.os.Handler
import android.os.Looper
import android.util.Log
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.spring
import androidx.compose.... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/ChessKnight.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... |
app/src/main/java/com/kleinreveche/playground/ui/nav/features/lists/AgeCalculatorsListNav.kt | unknown_repo | kotlin | package com.kleinreveche.playground.ui.nav.features.lists
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.C... |
app/src/admin/java/com/twoplaytech/drbetting/admin/data/models/User.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... |
unwrapping/src/main/java/com/gifft/unwrapping/di/UnwrappingCommonsModule.kt | unknown_repo | kotlin | package com.gifft.unwrapping.di
import androidx.fragment.app.Fragment
import com.gifft.core.api.di.FragmentKey
import com.gifft.unwrapping.UnwrappingFragment
import com.gifft.unwrapping.UnwrappingFragmentProviderImpl
import com.gifft.unwrapping.api.UnwrappingFragmentProvider
import com.squareup.inject.assisted.dagger2... |
screen/recipedetails/src/main/java/com/jtuffery/mealmanager/recipedetails/RecipeDetailsViewModel.kt | unknown_repo | kotlin | package com.jtuffery.mealmanager.recipedetails
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.jtuffery.mealmanager.core.recipedetails.domain.usecase.RecipeDetailsFlow
import com.jtuffery.mealmanager.core.recipedetails.domain.usecase.RefreshRecipeUseCase
import kotlinx.coroutine... |
app/src/main/java/com/llcvmlr/weatherappchallenge/framework/uix/screen/SearchScreen.kt | unknown_repo | kotlin | package com.llcvmlr.weatherappchallenge.framework.uix.screen
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.WindowInsets
import androi... |
android/src/main/java/com/jeefowebrtclibrary/RTCViewManager.kt | unknown_repo | kotlin | package com.jeefowebrtclibrary
import android.graphics.Color
import android.util.Log
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.modules.core.DeviceEventManagerMod... |
app/src/main/java/com/dinaraparanid/prima/viewmodels/mvvm/AboutAppViewModel.kt | unknown_repo | kotlin | package com.dinaraparanid.prima.viewmodels.mvvm
import android.app.Activity
import android.content.Intent
import android.net.Uri
import com.dinaraparanid.prima.R
import com.dinaraparanid.prima.utils.extensions.unchecked
import java.lang.ref.WeakReference
/**
* MVVM View Model for
* [com.dinaraparanid.prima.fragment... |
ContactDetails/app/src/main/java/com/example/database/MainActivity.kt | unknown_repo | kotlin | package com.example.database
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import com.google.android.material.floatingactionbutton.FloatingActionButton
class MainActivity : ... |
ui/src/main/kotlin/com/processout/sdk/ui/shared/extension/LocaleExtensions.kt | unknown_repo | kotlin | package com.processout.sdk.ui.shared.extension
import android.app.Application
import androidx.core.os.ConfigurationCompat
import androidx.core.os.LocaleListCompat
import java.util.Locale
internal fun Application.currentAppLocale(): Locale =
ConfigurationCompat.getLocales(resources.configuration)[0]
?: Loc... |
app/src/main/java/com/example/cookit/ui/common/CuisineTypeFilter.kt | unknown_repo | kotlin | package com.example.cookit.ui.common
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import andr... |
base/src/main/java/com/zhangteng/base/widget/MyTabItem.kt | unknown_repo | kotlin | package com.zhangteng.base.widget
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.drawable.Drawable
import android.util.AttributeSet
import android.view.View
import androidx.appcompat.widget.TintTypedArray
import com.zhangteng.base.R
/**
* Created by swing on 2018/9/3.
... |
app/src/main/java/com/menesdurak/appcentcasestudycleanarchitecture/presentation/tracks/TracksFragment.kt | unknown_repo | kotlin | package com.menesdurak.appcentcasestudycleanarchitecture.presentation.tracks
import android.media.AudioAttributes
import android.media.MediaPlayer
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewG... |
codebase/android/core/ui/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/ui/common/MyTimePicker.kt | unknown_repo | kotlin | package com.makeappssimple.abhimanyu.financemanager.android.core.ui.common
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Space... |
glata/src/main/java/com/yalantis/glata/camera/BaseCamera.kt | unknown_repo | kotlin | package com.yalantis.glata.camera
import android.opengl.Matrix
import com.yalantis.glata.primitive.Align
import com.yalantis.glata.primitive.Vector3
abstract class BaseCamera {
val viewportMatrix = IntArray(4) // contains size of the surface view in pixels
val projectionMatrix = FloatArray(16) // defines how ... |
app/src/main/java/eu/kanade/tachiyomi/widget/materialdialogs/QuadStateMultiChoiceViewHolder.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.widget.materialdialogs
import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import eu.kanade.tachiyomi.R
internal class QuadStateMultiChoiceViewHolder(
itemView: View,
private val adapter: QuadStateMultiChoiceDialogAdapter
) : Rec... |
voyager-transitions/src/commonMain/kotlin/cafe/adriel/voyager/transitions/CrossfadeTransition.kt | unknown_repo | kotlin | package cafe.adriel.voyager.transitions
import androidx.compose.animation.Crossfade
import androidx.compose.animation.core.FiniteAnimationSpec
import androidx.compose.animation.core.tween
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import cafe.adriel.voyager.core.screen.Screen
import... |
examples/basic-integration-jetpack-compose/app/src/main/java/com/deuna/compose_demo/view_models/home/initPaymentWidget.kt | unknown_repo | kotlin | package com.deuna.compose_demo.view_models.home
import android.content.Context
import android.util.Log
import androidx.lifecycle.viewModelScope
import com.deuna.compose_demo.screens.PaymentWidgetResult
import com.deuna.maven.initPaymentWidget
import com.deuna.maven.payment_widget.domain.PaymentWidgetCallbacks
import c... |
app/src/main/java/io/zoemeow/dutschedule/ui/view/account/MainView.kt | unknown_repo | kotlin | package io.zoemeow.dutschedule.ui.view.account
import android.content.Context
import android.content.Intent
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import ... |
app/src/main/java/com/fenghuang/caipiaobao/ui/home/live/room/betting/LiveRoomBetGuessFragment1.kt | unknown_repo | kotlin | package com.fenghuang.caipiaobao.ui.home.live.room.betting
import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import com.chad.library.adapter.base.BaseQuickAdapter
import com.fenghuang.baselib.utils.LogUtils
im... |
kotlin_adapter/adapter_core/interfaces/ViewHolderSupport.kt | unknown_repo | kotlin | package com.wuhenzhizao.adapter.interfaces
import android.view.View
interface ViewHolderSupport {
fun <T : View> getView(viewId: Int): T
}
|
core/src/main/java/com/spaceapps/myapplication/core/repositories/locations/LocationsRepository.kt | unknown_repo | kotlin | package com.spaceapps.myapplication.core.repositories.locations
import androidx.paging.Pager
import com.spaceapps.myapplication.core.models.local.locations.LocationEntity
import com.spaceapps.myapplication.core.models.remote.locations.LocationRequest
import com.spaceapps.myapplication.core.repositories.locations.resul... |
code/app/src/main/java/com/example/blackjack/model/CardStatistic.kt | unknown_repo | kotlin | package com.example.blackjack.model
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "card_statistics")
data class CardStatistic(
@PrimaryKey val cardValue: String,
val remaining: Int,
val drawn: Int
) |
app/src/main/java/com/example/chessgo/frontend/irlMenu/creating/CreatingViewModel.kt | unknown_repo | kotlin | package com.example.chessgo.frontend.irlMenu.creating
import androidx.lifecycle.ViewModel
import com.google.android.gms.maps.model.LatLng
class CreatingViewModel : ViewModel() {
var lastPoint : LatLng = LatLng(0.0, 0.0)
} |
sample/src/androidMain/kotlin/com/github/panpf/sketch/sample/ui/util/GraphicsUtils.kt | unknown_repo | kotlin | package com.github.panpf.sketch.sample.ui.util
import android.graphics.drawable.Drawable
import com.github.panpf.sketch.util.Size
val Drawable.intrinsicSize: Size
get() = Size(intrinsicWidth, intrinsicHeight) |
app/src/main/java/com/istu/schedule/ui/page/newsfeed/LoginPage.kt | unknown_repo | kotlin | package com.istu.schedule.ui.page.newsfeed
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose... |
app/src/main/java/com/serapercel/trickle/presentation/ui/fragment/MainOverviewFragment.kt | unknown_repo | kotlin | package com.serapercel.trickle.presentation.ui.fragment
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.lifecycleScope
import com.anychart.AnyCh... |
presentation/src/main/java/com/daejol/presentation/ui/theme/Text.kt | unknown_repo | kotlin | package com.daejol.presentation.ui.theme
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.co... |
app/src/main/java/com/app/rapidnumberconverter/ui/common/DialogHandler.kt | unknown_repo | kotlin | package com.app.rapidnumberconverter.ui.common
import android.content.Context
import android.content.DialogInterface
import androidx.appcompat.app.AlertDialog
fun showDialog(
dialogTitle: String,
dialogMessage: String,
dialogPositiveButtonText: String? = "Got it",
context: Context,
onClickListener... |
app/src/main/java/kr/stonecold/exkeyko/HangulInputMethodService.kt | unknown_repo | kotlin | package kr.stonecold.exkeyko
import android.Manifest
import android.content.Context
import android.content.SharedPreferences
import android.content.pm.PackageManager
import android.inputmethodservice.InputMethodService
import android.os.Build
import android.os.Handler
import android.os.Looper
import android.provider.S... |
Android/Intermediate/ThirdPartyLibraries/code/HelloRetrofit1/app/src/main/java/com/example/helloretrofit1/MainActivity.kt | unknown_repo | kotlin | package com.example.helloretrofit1
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import kotlin.concurrent.thread
val LOG = "android-retrofit"
class MainActivity : AppCompatActivity() {
... |
app/src/main/java/com/example/reflect/EntryViewModel.kt | unknown_repo | kotlin | package com.example.reflect
import kotlinx.coroutines.launch
import reflect_database.my_entry
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.lifecycle.asLiveData
import androidx.lifecycle.ViewModelProvider
import kotlinx.coroutines.runBlo... |
app/src/main/java/com/example/cryptotracker/screens/rv/CoinAdapter.kt | unknown_repo | kotlin | package com.example.cryptotracker.screens.rv
import android.annotation.SuppressLint
import android.graphics.Color
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatCheckBox
import androidx.appcompat.widget.AppCompatImageView
import andro... |
app/src/main/java/com/puyo/kapas/feature_kapas/data/repository/Repository.kt | unknown_repo | kotlin | package com.puyo.kapas.feature_kapas.data.repository
import android.net.Uri
import com.puyo.kapas.feature_kapas.data.source.local.LocalDataSource
import com.puyo.kapas.feature_kapas.data.source.local.database.entity.JobEntity
import com.puyo.kapas.feature_kapas.data.source.remote.RemoteDataSource
import com.puyo.kapas... |
src/main/kotlin/todo/TodoPage.kt | unknown_repo | kotlin | package todo
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Text
import android... |
app/src/main/java/com/anthony/meetingroom/Splash.kt | unknown_repo | kotlin | package com.anthony.meetingroom
import android.content.Intent
import androidx.databinding.DataBindingUtil
import android.os.Bundle
import android.os.Handler
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProviders
import com.anthony.meetingroom.databinding.ActivitySplashBinding
impo... |
app/src/test/java/com/sduduzog/slimlauncher/LiveDataTestUtil.kt | unknown_repo | kotlin | package com.sduduzog.slimlauncher
import androidx.annotation.Nullable
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
import java.util.concurrent.CountDownLatch
import java.util.concurrent.TimeUnit
class LiveDataTestUtil {
companion object {
@Throws(InterruptedException::class)
... |
core/src/main/java/com/afollestad/rxkprefs/adapters/StringSetAdapter.kt | unknown_repo | kotlin | /**
* Designed and developed by Aidan Follestad (@afollestad)
*
* 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 b... |
app/src/main/java/com/avtestapp/android/androidbase/App.kt | unknown_repo | kotlin | /**
* Copyright (c) 2019 Cotta & Cush 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 la... |
app/src/main/java/com/iostyle/jetpack/ui/fragment/HomeFragment.kt | unknown_repo | kotlin | package com.iostyle.jetpack.ui.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.iostyle.jetpack.R
class HomeFragment : Fragment() {
override fun onCreateView(
inflater: LayoutInflate... |
app/src/main/java/com/example/androiddevchallenge/app/ui/components/PetButton.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... |
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/MiuixSuperSwitch.kt | unknown_repo | kotlin | package top.yukonga.miuix.kmp
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberUpdatedState
import androidx.compose.runtime.setValue
import androidx.compose... |
Quiz/app/src/main/java/com/example/quiz/view_model/vm/HistoryViewModel.kt | unknown_repo | kotlin | package com.example.quiz.view_model.vm
import android.app.Application
import androidx.lifecycle.*
import com.example.quiz.model.database.ResultDatabase
import com.example.quiz.model.entities.Result
import com.example.quiz.model.repository.ResultRepository
class HistoryViewModel(application: Application) : AndroidView... |
app/src/main/java/com/hulkrent/app/ui/auth/login/LoginFragment.kt | unknown_repo | kotlin | package com.hulkrent.app.ui.auth.login
import android.animation.ArgbEvaluator
import android.animation.ValueAnimator
import android.graphics.Color
import android.graphics.Outline
import android.os.Build
import android.os.Bundle
import android.view.View
import android.view.ViewOutlineProvider
import androidx.activity.O... |
game/src/main/java/com/reco1l/rimu/ui/views/ButtonViews.kt | unknown_repo | kotlin | package com.reco1l.rimu.ui.views
import android.view.Gravity
import com.reco1l.rimu.MainContext
/**
* Button with icon in center.
*/
open class IconButton(ctx: MainContext) : ImageView(ctx)
{
override val dimensions = super.dimensions.apply {
height = 50
width = 70
padding(16)
}
... |
core/src/main/java/com/gigigo/orchextra/core/fcm/OxFirebaseMessagingService.kt | unknown_repo | kotlin | package com.gigigo.orchextra.core.fcm
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.media.RingtoneManager
import android.os.Build.VERSION
import and... |
shared/src/commonMain/kotlin/com/myapplication/pressentation/details/DetailsScreen.kt | unknown_repo | kotlin | package com.myapplication.pressentation.details
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.found... |
android/app/src/main/java/com/corrot/kwiatonomousapp/presentation/splashscreen/SplashScreen.kt | unknown_repo | kotlin | package com.corrot.kwiatonomousapp.presentation.splashscreen
import android.app.Activity
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.spring
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
imp... |
app/src/main/java/com/system/moneycontrol/model/entities/Transaction.kt | unknown_repo | kotlin | package com.system.moneycontrol.model.entities
import android.os.Parcel
import android.os.Parcelable
import com.system.moneycontrol.data.mappers.TransactionFirebase
import com.system.moneycontrol.infrastructure.Constants
import com.system.moneycontrol.infrastructure.MyUtils
import com.system.moneycontrol.ui.itemView.T... |
ionav/src/main/java/de/ironjan/arionav_fw/ionav/GhzExtractor.kt | unknown_repo | kotlin | package de.ironjan.arionav_fw.ionav
import android.content.Context
import android.util.Log
import de.ironjan.arionav_fw.ionav.di.IonavContainer
import java.io.*
import java.util.zip.ZipEntry
import java.util.zip.ZipInputStream
class GhzExtractor {
fun unzipGhzToStorage(context: Context, ionavContainer: IonavConta... |
annotationspan/src/main/java/be/billington/android/spans/component/ForegroundColorToSpan.kt | unknown_repo | kotlin | package be.billington.android.spans.component
import android.graphics.Color
import android.text.style.ForegroundColorSpan
class ForegroundColorToSpan : TagSpanner() {
override val tagNames: List<String> = listOf("color", "fgcolor", "foregroundcolor")
override fun toSpans(tagAttr: TagAttr): Array<Any> {
... |
miaoandriod/src/main/java/com/a10miaomiao/miaoandriod/adapter/MiaoStateViewHelper.kt | unknown_repo | kotlin | package com.a10miaomiao.miaoandriod.adapter
import android.view.View
class MiaoStateViewHelper<T>(var mAdapter: MiaoRecyclerViewAdapter<T>, var view: View) {
/**
* 显示
*/
fun show(){
mAdapter.stateView = view
}
/**
* 隐藏
*/
fun hide(){
mAdapter.isShowStateView =... |
sd_app/six_degree/src/main/java/whq/projects/sd/profile/preference/ChineseDialogPreference.kt | unknown_repo | kotlin | package whq.projects.sd.profile.preference
import android.content.Context
import android.util.AttributeSet
import androidx.preference.DialogPreference
abstract class ChineseDialogPreference(val res_id: Int, context: Context?, attrs: AttributeSet?) :
DialogPreference(context, attrs) {
override fun getDialogLay... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.