file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
compose-preferences/src/main/java/com/uzential/compose_preferences/ui/components/MenuLink.kt | unknown_repo | kotlin | package com.uzential.compose_preferences.ui.components
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import com.uzential.compose_preferences.ui.ComposeFunction
import com.uzential.compose_preferences.ui.PreferenceItem
import com.uzenti... |
News-App-Starter/app/src/main/java/br/com/carvalho/newsappstarter/ui/activity/FavoriteActivity.kt | unknown_repo | kotlin | package br.com.carvalho.newsappstarter.ui.activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.LinearLayoutManager... |
Demos/KotlinPrimer-master/Project11/app/src/main/java/com/kymjs/project11/DemoAdapter.kt | unknown_repo | kotlin | package com.kymjs.project11
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.LinearLayout
import android.widget.TextView
/**
* Created by ZhangTao on 18/7/24.
*/
const val COUNT = 50
class DemoAdapter(val context: Context... |
app/src/main/java/com/example/kaspresso/recycler/ui/main/MainRecyclerAdapter.kt | unknown_repo | kotlin | package com.example.kaspresso.recycler.ui.main
import android.graphics.Color
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview... |
app/src/main/java/com/ojhdtapp/parabox/core/util/GoogleDriveUtil.kt | unknown_repo | kotlin | package com.ojhdtapp.parabox.core.util
import android.content.Context
import android.os.Looper
import android.util.Log
import android.webkit.MimeTypeMap
import android.widget.Toast
import com.google.android.gms.auth.api.signin.GoogleSignIn
import com.google.api.client.extensions.android.http.AndroidHttp
import com.goo... |
common/src/main/java/com/beok/common/base/BaseAdapter.kt | unknown_repo | kotlin | package com.beok.common.base
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.lifecycle.ViewModel
import androidx.paging.PagedListAdapter
import androidx.recyclerview.widget.DiffUtil
class BaseAdapter<ITEM : Any>(
@LayoutRes private val layoutRes: Int,
private val bindingId: ... |
Fragments/Configuration/CategoryAssetListFragment.kt | unknown_repo | kotlin | package com.gkprojects.cmmsandroidapp.Fragments.Configuration
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.widget.Button
import android.widget.TextView
import android.widge... |
SDKAndroid/src/main/kotlin/app/cybrid/sdkandroid/components/bankAccounts/compose/BankAccountsView_Modal.kt | unknown_repo | kotlin | package app.cybrid.sdkandroid.components.bankAccounts.compose
import android.util.Log
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Surface
import and... |
Backends/System/Android/Java-Sources/tech/kinc/KincMoviePlayer.kt | unknown_repo | kotlin | package tech.kinc
import java.util.ArrayList
import android.view.Surface
class KincMoviePlayer(var path: String) {
companion object {
var players = ArrayList<KincMoviePlayer?>()
@JvmStatic
fun updateAll() {
for (player in KincMoviePlayer.players) {
player!!.update()
}
}
fun remove(id: Int) {
... |
composeApp/src/commonMain/kotlin/screens/home/HomeUIState.kt | unknown_repo | kotlin | package io.github.vrcmteam.vrcm.screens.home
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateMapOf
import io.github.vrcmteam.vrcm.data.api.auth.FriendData
data class HomeUIState(
val friendIdMap: MutableMap<String, MutableState<FriendData>> = mutableMapOf(),
val friend... |
app/src/main/java/pl/better/foodzilla/data/models/Recipes.kt | unknown_repo | kotlin | package pl.better.foodzilla.data.models
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import pl.better.foodzilla.data.models.recipe.Recipe
@Parcelize
data class Recipes(val recipes: List<Recipe>) : Parcelable |
basick/src/main/java/com/mozhimen/basick/utilk/android/text/UtilKSpannableString.kt | unknown_repo | kotlin | package com.mozhimen.kotlin.utilk.android.text
import android.text.SpannableString
import android.text.Spanned
import androidx.annotation.ColorInt
/**
* @ClassName UtilKSpannableString
* @Description TODO
* @Author Mozhimen & <NAME>
* @Date 2024/1/12
* @Version 1.0
*/
object UtilKSpannableString {
@JvmStati... |
Particle-Editor-Basic/src/jvmMain/kotlin/daylightnebula/particle/editor/filetree/FileTreeRender.kt | unknown_repo | kotlin | package daylightnebula.particle.editor.filetree
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import daylightnebula.particle.editor.BasicColors
import daylightnebula.particle.editor.pages.FileView
import daylightnebula.particle.editor.p... |
app/src/main/java/top/chilfish/chillchat/ui/message/MessageViewModel.kt | unknown_repo | kotlin | package top.chilfish.chillchat.ui.message
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx... |
realm/realm-library/src/androidTestObjectServer/kotlin/io/realm/transport/OsJavaNetworkTransportTests.kt | unknown_repo | kotlin | /*
* Copyright 2020 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
appactions/interaction/interaction-capabilities-core/src/main/java/androidx/appactions/interaction/capabilities/core/EntitySearchResult.kt | unknown_repo | kotlin | /*
* Copyright 2023 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... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/ClosedCaptioningSlash.kt | unknown_repo | kotlin | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... |
app/src/main/java/com/zhudong/tianyuekotlin/utils/Utils.kt | unknown_repo | kotlin | package com.zhudong.tianyuekotlin.utils
import android.annotation.SuppressLint
import android.content.Context
import android.net.ConnectivityManager
import android.support.v4.app.FragmentActivity
import android.widget.Toast
import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers
import ... |
shared/src/commonMain/kotlin/com.yunext.twins/ui/theme/Shape.kt | unknown_repo | kotlin | package com.yunext.twins.ui.theme
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.border
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.yunext.twins.ui.compoents.China
val ItemShape = Roun... |
app/src/main/java/com/battlelancer/seriesguide/ui/comments/TraktCommentsActivity.kt | unknown_repo | kotlin | package com.battlelancer.seriesguide.ui.comments
import android.os.Bundle
import android.view.MenuItem
import com.battlelancer.seriesguide.R
import com.battlelancer.seriesguide.ui.BaseActivity
import timber.log.Timber
/**
* Hosts a [TraktCommentsFragment].
*/
class TraktCommentsActivity : BaseActivity() {
over... |
files/src/main/java/com/afollestad/materialdialogs/files/util/FilesUtilExt.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/moka/framework/extenstion/ViewExt.kt | unknown_repo | kotlin | package com.moka.framework.extenstion
import android.app.Activity
import android.content.Context
import android.support.v4.content.ContextCompat
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.support.v... |
detox/android/detox/src/full/java/com/wix/detox/reactnative/ui/UIExtensions.kt | unknown_repo | kotlin | package com.wix.detox.reactnative.ui
import android.view.View
import android.widget.TextView
import com.wix.detox.common.traverseViewHierarchy
import com.wix.detox.reactnative.utils.isReactNativeObject
fun View.getAccessibilityLabel(
isReactNativeObjectFn: (Any) -> Boolean = { isReactNativeObject(it) }
): CharSeq... |
app/src/main/java/com/shentu/paper/MainActivity.kt | unknown_repo | kotlin | package com.shentu.paper
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.graphics.Color
import android.os.Bundle
import android.text.TextPaint
import android.text.method.LinkMovementMethod
import android.text.style.ClickableSpan
import android.view.MenuItem
import andr... |
app/src/main/java/com/utradia/catalogueappv2/module/filter/module/brand/Brand_Adapter.kt | unknown_repo | kotlin | package com.utradia.catalogueappv2.module.filter.module.brand
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CheckBox
import android.widget.Filter
import android.widget.Filterable
import android.widget.TextView
import androidx.recyclerview.widget.Recycl... |
vector/src/main/java/vmodev/clearkeep/viewmodels/interfaces/AbstractRoomSettingsFragmentViewModel.kt | unknown_repo | kotlin | package vmodev.clearkeep.viewmodels.interfaces
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import io.reactivex.Completable
import io.reactivex.Observable
import vmodev.clearkeep.viewmodelobjects.Resource
import vmodev.clearkeep.viewmodelobjects.Room
import vmodev.clearkeep.viewmodelobjects.U... |
app/src/main/java/com/project/pantrytracker/ui/ListScreen.kt | unknown_repo | kotlin | package com.project.pantrytracker.ui
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundati... |
app/src/commonMain/kotlin/com/materialkolor/builder/settings/model/KeyColor.kt | unknown_repo | kotlin | package com.materialkolor.builder.settings.model
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
enum class KeyColor {
Seed,
Primary,
Secondary,
Tertiary,
Error,
Neutral,
NeutralVariant,
}
@Composable
fun KeyColor.name() = remember(this) {
when (thi... |
app/src/commonMain/kotlin/com/materialkolor/builder/settings/model/KeyColor.kt | unknown_repo | kotlin | package com.materialkolor.builder.settings.model
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
enum class KeyColor {
Seed,
Primary,
Secondary,
Tertiary,
Error,
Neutral,
NeutralVariant,
}
@Composable
fun KeyColor.name() = remember(this) {
when (thi... |
app/src/main/java/com/github/jayteealao/pastelmusic/app/extensions/PlayerExt.kt | unknown_repo | kotlin | package com.github.jayteealao.pastelmusic.app.extensions
import androidx.media3.common.Player
inline val Player.isPlayEnabled
get() = (availableCommands.contains(Player.COMMAND_PLAY_PAUSE)) &&
(!playWhenReady)
inline val Player.isEnded
get() = playbackState == Player.STATE_ENDED |
core-data/src/main/java/com/manday/coredata/HandlerResponseViewModel.kt | unknown_repo | kotlin | package com.manday.coredata
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
class HandlerResponseViewModel<T> private constructor(){
companion object {
fun<T> createResponse(source: LiveData<T?>?): LiveData<ReponseViewModel<T>> {
val handleError = MutableLiveData... |
app/src/main/java/com/fjjukic/furniture4you/ui/common/model/Product.kt | unknown_repo | kotlin | package com.fjjukic.furniture4you.ui.common.model
import androidx.annotation.DrawableRes
import androidx.compose.runtime.Immutable
@Immutable
data class Product(
val id: String,
val title: String,
val price: String,
val description: String,
val imageUrl: String,
@DrawableRes
val imageResId... |
app/src/main/java/com/steleot/jetpackcompose/playground/compose/externallibraries/PermissionsAccompanistScreen.kt | unknown_repo | kotlin | package com.steleot.jetpackcompose.playground.compose.externallibraries
import androidx.compose.foundation.layout.*
//noinspection UsingMaterialAndMaterial3Libraries
import androidx.compose.material.Button
//noinspection UsingMaterialAndMaterial3Libraries
import androidx.compose.material.Text
import androidx.compose.r... |
app/src/main/java/com/shankware/annoisli/HeaderGridView.kt | unknown_repo | kotlin | /*
* Copyright (C) 2013 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... |
packages/datadog_flutter_plugin/android/src/main/kotlin/com/datadoghq/flutter/DatadogLogsPlugin.kt | unknown_repo | kotlin | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadoghq.flutter
import android.util.Log
import com.data... |
radius/feature/src/main/java/com/agentdesks/android/crm/assignment/feature/FacilityListActivity.kt | unknown_repo | kotlin | package com.agentdesks.android.crm.assignment.feature
import android.os.Bundle
import android.widget.Toast
import androidx.activity.viewModels
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.gestures.scrollable
import andro... |
radius/feature/src/main/java/com/agentdesks/android/crm/assignment/feature/FacilityListActivity.kt | unknown_repo | kotlin | package com.agentdesks.android.crm.assignment.feature
import android.os.Bundle
import android.widget.Toast
import androidx.activity.viewModels
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.gestures.scrollable
import andro... |
app/src/main/java/com/rubens/applembretemedicamento/framework/data/datastore/interfaces/ThemeDataStoreInterface.kt | unknown_repo | kotlin | package com.rubens.applembretemedicamento.framework.data.datastore.interfaces
import androidx.datastore.preferences.core.Preferences
interface ThemeDataStoreInterface {
suspend fun passThemeToUserChosenTheme(intDataStore: Preferences.Key<Int>, intThemeResource: Int)
suspend fun getThemeChosenByUser(intDataSto... |
offix/src/main/java/org/aerogear/offix/callbacks/OfflineCallback.kt | unknown_repo | kotlin | package org.aerogear.offix.callbacks
import android.util.Log
import com.apollographql.apollo.exception.ApolloException
import com.apollographql.apollo.interceptor.ApolloInterceptor
import org.aerogear.offix.Offline
/*Callbacks class which handles offline requests.
*/
class OfflineCallback(
val request: ApolloInt... |
feature/exam-result/src/main/java/team/duckie/app/android/feature/exam/result/screen/wronganswer/ChallengeComment.kt | unknown_repo | kotlin | /*
* Designed and developed by Duckie Team, 2022
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/duckie-android/blob/develop/LICENSE
*/
@file:OptIn(ExperimentalMaterialApi::class)
package team.duckie.app.android.feature.exam.result.screen.wronganswer
import androidx.compose... |
media/ui/src/test/java/com/google/android/horologist/media/ui/components/PositionedState.kt | unknown_repo | kotlin | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
app/src/main/java/com/avex/ragraa/MainActivity.kt | unknown_repo | kotlin | package com.avex.ragraa
import android.annotation.SuppressLint
import android.content.Context
import android.content.SharedPreferences
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.founda... |
navigatek_provider/src/main/java/com/mozhimen/navigatek/provider/impls/NavigateKProviderTelegram.kt | unknown_repo | kotlin | package com.mozhimen.navigatek.provider.impls
import android.content.Context
import android.content.Intent
import com.mozhimen.kotlin.utilk.android.content.UtilKIntentWrapper
import com.mozhimen.kotlin.utilk.android.content.startContext
import com.mozhimen.kotlin.utilk.android.content.startContext_throw
import com.moz... |
app/src/main/java/com/deepakkumardk/kontactpicker/MainActivity.kt | unknown_repo | kotlin | package com.deepakkumardk.kontactpicker
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.graphics.drawable.toDrawable
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.MutableLiveData
import com.a... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/ArrowCounterclockwise.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.ArrowCounterclockwise: ImageVector
get() {
if (_arrowCounterc... |
app/src/main/java/io/keyu/urekalite/view/PostListFragment.kt | unknown_repo | kotlin | package io.keyu.urekalite.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import androidx.recyclerview.widget.LinearLayoutManager... |
app/src/main/java/com/franjo/android/bakingapp/presentation/base/BaseFragment.kt | unknown_repo | kotlin | package com.franjo.android.bakingapp.presentation.base
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
abstract class BaseFra... |
wear/src/main/java/com/steleot/jetpackcompose/playground/compose/material/ToggleChipScreen.kt | unknown_repo | kotlin | package com.steleot.jetpackcompose.playground.compose.material
import androidx.compose.runtime.Composable
@Composable
fun ToggleChipScreen() {
} |
app/src/main/java/com/waseefakhtar/doseapp/util/SnackbarUtil.kt | unknown_repo | kotlin | package com.waseefakhtar.doseapp.util
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.Snackbar
import androidx.compose.material3.SnackbarHost
import androidx.compose.material3.SnackbarHostState
import androidx.compose.runtime.Compos... |
ktx/src/main/java/dev/chrisbanes/insetter/viewinsetter.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 i... |
sdk-utils/src/test/kotlin/com/rakuten/tech/mobile/sdkutils/AppInfoSpec.kt | unknown_repo | kotlin | package com.rakuten.tech.mobile.sdkutils
import android.content.Context
import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.mock
import org.amshove.kluent.*
import org.junit.Before
import org.junit.Test
import org.mock... |
auth/src/main/java/inkapplications/backdraft/auth/AuthCoroutines.kt | unknown_repo | kotlin | package inkapplications.backdraft.auth
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser
import com.google.firebase.auth.GetTokenResult
import inkapplications.backdraft.tasks.await
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.GlobalScope
import kotlinx.corouti... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Coconut.kt | unknown_repo | kotlin | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... |
app/src/main/java/me/codeenzyme/wally/home/views/HomeFragment.kt | unknown_repo | kotlin | package me.codeenzyme.wally.home.views
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.view.KeyEvent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
import android.widget.TextView
import androidx.appc... |
app/src/main/java/com/abhijit/paypay/ui/currency/CurrencyFragment.kt | unknown_repo | kotlin | package com.abhijit.paypay.ui.currency
import android.os.Build
import android.os.Bundle
import android.view.*
import android.widget.*
import androidx.annotation.RequiresApi
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecyc... |
compiler/src/main/java/promise/database/compiler/DatabaseAbstractMethodsGenerator.kt | unknown_repo | kotlin | /*
* Copyright 2017, <NAME>
* Licensed under the Apache License, Version 2.0, Android Promise.
* 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,
* s... |
core/src/main/java/io/github/thibaultbee/streampack/data/AudioConfig.kt | unknown_repo | kotlin | /*
* Copyright (C) 2021 Thibault B.
*
* 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 ... |
app/src/main/java/hidden/edu/fragment/MapFragmentBase.kt | unknown_repo | kotlin | package hidden.edu.fragment
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CompoundButton
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import com.amap.api.lo... |
app/src/main/java/com/learnopengles/android/lesson7/LessonSevenGLSurfaceView.kt | unknown_repo | kotlin | package com.learnopengles.android.lesson6
import android.annotation.SuppressLint
import android.content.Context
import android.opengl.GLSurfaceView
import android.util.AttributeSet
import android.view.MotionEvent
class LessonSixGLSurfaceView : GLSurfaceView {
private var mRenderer: LessonSixRenderer? = null
... |
app/src/main/java/com/victor/loclarm/db/model/UserSettings.kt | unknown_repo | kotlin | package com.victor.loclarm.db.model
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "user_settings")
data class UserSettings(
@PrimaryKey val id: Int = 0,
val language: String = "English",
val units: String = "Metric",
val ringtone: String = "default",
val volume: I... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/ExposurePlus2.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... |
app/src/main/java/com/capstone/sahabatsehat/util/ViewModelFactory.kt | unknown_repo | kotlin | package com.capstone.sahabatsehat.util
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.capstone.sahabatsehat.preferences.UserPreference
import com.capstone.sahabatsehat.ui.login.LoginViewModel
import com.capstone.sahabatsehat.ui.profile.ProfileV... |
app/src/main/java/com/ferdyhaspin/githubuserapp/ui/favorite/FavoriteViewModel.kt | unknown_repo | kotlin | package com.ferdyhaspin.githubuserapp.ui.favorite
import androidx.lifecycle.ViewModel
import com.ferdyhaspin.githubuserapp.data.model.User
import com.ferdyhaspin.githubuserapp.data.repository.UserRepository
import com.ferdyhaspin.githubuserapp.util.Coroutines
import javax.inject.Inject
/**
* Created by ferdyhaspin o... |
htmltextview/src/main/java/com/android/xamoom/htmltextview/Spans/NumberSpan.kt | unknown_repo | kotlin | package com.android.xamoom.htmltextview.Spans
import android.graphics.Canvas
import android.graphics.Paint
import android.text.Layout
import android.text.TextPaint
import android.text.style.LeadingMarginSpan
class NumberSpan(leadingMargin: Int, var numberText: String,
textPaint: TextPaint) : LeadingM... |
app/src/main/java/dev/alibagherifam/mentha/comoon/FoodImage.kt | unknown_repo | kotlin | package com.alibagherifam.mentha.comoon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import coil.compose.AsyncImage
import com.alibagherifam.mentha.R
@Composable
fun FoodImage(modifier: Modif... |
app/src/main/java/net/engawapg/app/zoomable/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright 2022 usuiat
*
* 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 writin... |
app/src/main/java/com/work/workhubpro/ui/screens/projectDetails/projectDetails.kt | unknown_repo | kotlin | package com.work.workhubpro.ui.screens.projectDetails
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.navigation.NavController
import com.work.workhubpro.SharedViewModel
@Composable
fun ProjectDetails(name:String,navCon... |
app/src/main/java/com/github/hefengbao/jetpackcomposedemo/ui/feature/scaffold/ScaffoldScreen.kt | unknown_repo | kotlin | package com.github.hefengbao.jetpackcomposedemo.ui.feature.scaffold
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.Redo
... |
app/src/main/java/com/devlomi/ayaturabbi/db/quran_ar/QuranDB.kt | unknown_repo | kotlin | package com.devlomi.ayaturabbi.db.quran_ar
import androidx.room.Database
import androidx.room.RoomDatabase
import com.devlomi.ayaturabbi.db.quran_ar.entities.*
@Database(
entities = [
ArabicTextEntity::class, ShareTextEntity::class, VersesContentEntity::class
], version = 1, exportSchema = false
)
ab... |
feature-account-impl/src/main/java/jp/co/soramitsu/account/impl/presentation/importing/source/model/ImportSourceModel.kt | unknown_repo | kotlin | package jp.co.soramitsu.account.impl.presentation.importing.source.model
import android.net.Uri
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.MutableLiveData
import jp.co.soramitsu.acco... |
app/src/main/java/com/migu/android/linkyou/event/ChildTouchListener.kt | unknown_repo | kotlin | package com.migu.android.linkyou.event
import android.view.MotionEvent
import android.view.View
import android.view.View.OnClickListener
import android.view.View.OnTouchListener
import android.view.ViewConfiguration
import kotlin.math.abs
class ChildTouchListener(private val view: View) : OnTouchListener {
privat... |
XML/Unscramble/app/src/main/java/com/example/android/unscramble/ui/game/ListofWords.kt | unknown_repo | kotlin | /*
* Copyright (C) 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 appl... |
app/src/main/java/com/github/rezita/homelearning/ui/theme/Color.kt | unknown_repo | kotlin | package com.github.rezita.homelearning.ui.theme
import androidx.compose.ui.graphics.Color
val md_theme_light_primary = Color(0xFF3C52CB)
val md_theme_light_onPrimary = Color(0xFFFFFFFF)
val md_theme_light_primaryContainer = Color(0xFFDEE0FF)
val md_theme_light_onPrimaryContainer = Color(0xFF000F5C)
val md_theme_light... |
ui/src/main/kotlin/com/aptopayments/sdk/core/platform/BaseDialogFragment.kt | unknown_repo | kotlin | package com.aptopayments.sdk.core.platform
import android.app.Dialog
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.... |
ui/src/main/kotlin/com/aptopayments/sdk/core/platform/BaseDialogFragment.kt | unknown_repo | kotlin | package com.aptopayments.sdk.core.platform
import android.app.Dialog
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.... |
example/android/app/src/main/java/br/com/zup/beaglehackday/beagle/widgets/ImageDetail.kt | unknown_repo | kotlin | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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/org/pkbu/Android/ElectronicInvestigationsCRM/CaseFileEdit.kt | unknown_repo | kotlin | package org.pkbu.Android.ElectronicInvestigationsCRM
import android.app.DatePickerDialog
import android.content.Context
import android.content.DialogInterface
import android.graphics.Bitmap
import android.graphics.Color
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.ColorDrawable
impo... |
desktop/src/main/kotlin/com/patriker/syncnote/ui/components/TopBar.kt | unknown_repo | kotlin | package com.patriker.syncnote.ui.components
import androidx.compose.foundation.*
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.mat... |
imageeditor/src/main/java/com/github/vfeng/image/model/ECImage.kt | unknown_repo | kotlin | package com.github.vfeng.image.model
import android.graphics.*
import android.net.Uri
import android.text.TextUtils
import android.util.Log
import com.github.vfeng.image.ECImageMode
import com.github.vfeng.image.utils.ImageUtils
import com.github.vfeng.image.utils.LogUtils
import com.github.vfeng.image.view.clip.IMGCl... |
session/presentation/src/main/kotlin/com/delbel/bullscows/session/presentation/best/adapter/MarginItemDecoration.kt | unknown_repo | kotlin | package com.delbel.bullscows.session.presentation.best.adapter
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.*
import com.delbel.bullscows.session.presentation.R
internal class MarginItemDecoration : ItemDecorati... |
cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/filled/SpeakerWave2.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023-2024. Compose Cupertino project and open source contributors.
*
* 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... |
codebase/android/app/src/main/java/com/makeappssimple/abhimanyu/stackoverflowanswers/android/bugreport/focus/AutoFocus.kt | unknown_repo | kotlin | package com.makeappssimple.abhimanyu.stackoverflowanswers.android.bugreport.focus
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.TextField
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.remember
import... |
app/src/main/java/info/motoaccident/controllers/LocationController.kt | unknown_repo | kotlin | package info.motoaccident.controllers
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.support.design.widget.Snackbar
import android.support.v4.app.ActivityCompat
import android.util.Log
import com.google.android.gms.location.Loc... |
app/src/main/java/info/motoaccident/controllers/LocationController.kt | unknown_repo | kotlin | package info.motoaccident.controllers
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.support.design.widget.Snackbar
import android.support.v4.app.ActivityCompat
import android.util.Log
import com.google.android.gms.location.Loc... |
reactiveandroid-ui/src/main/kotlin/com/github/kittinunf/reactiveandroid/reactive/view/ImageViewRx.kt | unknown_repo | kotlin | package com.github.kittinunf.reactiveandroid.reactive.view
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.net.Uri
import android.widget.ImageView
import com.github.kittinunf.reactiveandroid.FieldDelegate
import com.github.kittinunf.reactiveandroid.reactive.AndroidBindingConsume... |
features/search/search-presentation/src/main/java/com/anmolsahi/presentation/ui/searchscreen/SearchViewModel.kt | unknown_repo | kotlin | package com.anmolsahi.presentation.ui.searchscreen
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.anmolsahi.common.di.IoDispatcher
import com.anmolsahi.commonui.mappers.asDomain
import com.anmolsahi.commonui.mappers.asUiModel
import com.anmolsahi.commonu... |
app/src/main/java/me/spica/spicaweather2/view/view_group/RefreshViewLayout.kt | unknown_repo | kotlin | package me.spica.spicaweather2.view.view_group
import android.content.Context
import android.graphics.Color
import android.view.Gravity
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatImageView
import androidx.appcompat.widget.AppCompatTextView
import androidx.core.view.marginBottom
import andr... |
modules/lib/app_database/src/main/kotlin/kekmech/ru/lib_app_database/migrations/BaseMigration.kt | unknown_repo | kotlin | package kekmech.ru.lib_app_database.migrations
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import kekmech.ru.lib_app_database.api.PartialMigration
/**
* Aggregator of [PartialMigration]s from domain modules
*
* @see PartialMigration
*/
internal open class BaseMigration... |
app/src/main/java/com/almazov/diacompanion/meal/FoodInMealListAdapter.kt | unknown_repo | kotlin | package com.almazov.diacompanion.meal
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.almazov.diacompani... |
app/src/main/java/uk/co/dekoorb/android/cryptowatch/ui/detail/CurrencyPagerAdapter.kt | unknown_repo | kotlin | package uk.co.dekoorb.android.cryptowatch.ui.detail
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentStatePagerAdapter
/**
* Created by ed on 29/01/18.
*/
class CurrencyPagerAdapter(fm: FragmentManager): FragmentStatePagerAdapter(fm) {
p... |
app/src/main/java/com/project/acehotel/core/domain/hotel/model/HotelRecap.kt | unknown_repo | kotlin | package com.project.acehotel.core.domain.hotel.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class HotelRecap(
val revenue: Int,
val branchCount: Int,
val checkinCount: Int,
val totalBooking: Int,
) : Parcelable
|
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/CoffeePot.kt | unknown_repo | kotlin | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... |
sketch/src/androidTest/java/com/github/panpf/sketch/test/decode/internal/DefaultBitmapDecoderTest.kt | unknown_repo | kotlin | package com.github.panpf.sketch.test.decode.internal
import android.graphics.Bitmap
import android.graphics.Bitmap.Config.ARGB_8888
import android.graphics.Bitmap.Config.RGB_565
import android.graphics.ColorSpace
import android.graphics.ColorSpace.Named.ADOBE_RGB
import android.graphics.ColorSpace.Named.SRGB
import an... |
app/src/main/java/coolpharaoh/tee/speicher/tea/timer/views/new_tea/suggestions/BlackTeaSuggestions.kt | unknown_repo | kotlin | package coolpharaoh.tee.speicher.tea.timer.views.new_tea.suggestions
import android.app.Application
import coolpharaoh.tee.speicher.tea.timer.R
class BlackTeaSuggestions(private val application: Application) : Suggestions {
override val amountTsSuggestions: IntArray
get() = application.resources.getIntAr... |
app/src/main/java/com/xquare/xquare_android/feature/schedule/ScheduleCalendar.kt | unknown_repo | kotlin | package com.xquare.xquare_android.feature.schedule
import android.annotation.SuppressLint
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.... |
Bootcamp_04/src/repeat_the_sequence/app/src/main/java/com/example/repeat_the_sequence/MainActivity.kt | unknown_repo | kotlin | package com.example.repeat_the_sequence
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.example.re... |
app/src/main/java/com/eynnzerr/yuukatalk/ui/component/dialog/UpdateDialog.kt | unknown_repo | kotlin | package com.eynnzerr.yuukatalk.ui.component.dialog
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Update
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Icon
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
i... |
app/src/main/java/com/github/malitsplus/shizurunotes/ui/tower/TowerWaveViewModel.kt | unknown_repo | kotlin | package com.github.malitsplus.shizurunotes.ui.tower
import androidx.lifecycle.ViewModel
import com.github.malitsplus.shizurunotes.data.WaveGroup
import com.github.malitsplus.shizurunotes.ui.base.TowerWaveVT
import com.github.malitsplus.shizurunotes.ui.base.OnItemActionListener
import com.github.malitsplus.shizurunotes... |
tjekSdk/src/main/java/com/tjek/sdk/publicationviewer/paged/libs/verso/VersoTapInfo.kt | unknown_repo | kotlin | package com.tjek.sdk.publicationviewer.paged.libs.verso
/*
* Copyright (C) 2022 Tjek
*
* 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... |
app/src/main/kotlin/me/sweetll/tucao/business/video/adapter/VideoPagerAdapter.kt | unknown_repo | kotlin | package me.sweetll.tucao.business.video.adapter
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter
import me.sweetll.tucao.model.json.Video
import me.sweetll.tucao.business.video.fragment.VideoCommentsFragment
import me.sweetll.tucao.business.video.fragment.VideoInfoFragme... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.