file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
dcache/src/main/java/dora/cache/data/fetcher/IListFlowDataFetcher.kt | unknown_repo | kotlin | package dora.cache.data.fetcher
import dora.cache.data.page.IDataPager
import dora.http.DoraListCallback
import kotlinx.coroutines.flow.StateFlow
/**
* 从[kotlinx.coroutines.flow.StateFlow]数据载体中直接读取内存数据的集合数据抓取器。
*/
interface IListFlowDataFetcher<M> {
/**
* 清空flow data的数据。
*/
fun clearListData()
... |
src/jvmMain/kotlin/dev/zacsweers/Platform.kt | unknown_repo | kotlin | package dev.zacsweers
import androidx.compose.runtime.Composable
import com.mikepenz.markdown.compose.LocalMarkdownColors
import com.mikepenz.markdown.compose.LocalMarkdownTypography
import com.mikepenz.markdown.compose.Markdown
import com.tickaroo.tikxml.converter.htmlescape.StringEscapeUtils
import io.ktor.client.Ht... |
app-tv/src/main/kotlin/app/ss/tv/presentation/player/VideoPlayerActivity.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023. Adventech <<EMAIL>>
*
* 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, merge... |
app/src/main/java/dev/tcode/thinmp/view/cell/ShortcutCellView.kt | unknown_repo | kotlin | package dev.tcode.thinmp.view.cell
import android.net.Uri
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Text
import androidx.compose.material3.MaterialTheme
import androidx.c... |
app/src/main/java/liou/rayyuan/ebooksearchtaiwan/utils/FragmentArgumentsDelegate.kt | unknown_repo | kotlin | package liou.rayyuan.ebooksearchtaiwan.utils
import android.os.Bundle
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
class FragmentArgumentsDelegate<T : Any> : ReadWriteProperty<Fragment, T> {
var value: T? = null
... |
app/src/main/java/com/faldez/shachi/data/model/PostTag.kt | unknown_repo | kotlin | package com.faldez.shachi.data.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Fts4
import androidx.room.FtsOptions
@Fts4(tokenizer = FtsOptions.TOKENIZER_UNICODE61, tokenizerArgs = ["tokenchars='"])
@Entity(tableName = "post_tag")
data class PostTag(
@ColumnInfo(name = "pos... |
Yum-Client/app/src/main/java/com/anbui/yum/presentation/recipe/component/HeaderItem.kt | unknown_repo | kotlin | package com.anbui.yum.presentation.recipe.component
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.Share
import androidx.c... |
app/src/main/java/se/insektionen/songbook/ui/SongbookListAdapter.kt | unknown_repo | kotlin | package se.insektionen.songbook.ui
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.Filter
import android.widget.Filterable
import android.widget.TextView
import androidx.core.content.getSyst... |
app/src/main/java/evtomak/iu/edu/notesapp/NoteDatabase.kt | unknown_repo | kotlin | package evtomak.iu.edu.notesapp
import android.content.Context
import android.util.Log
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
/**
* Room database for storing notes.
*/
@Database(entities = [Note::class], version = 1, exportSchema = false)
abstract class NoteDatabas... |
libs/pandautils/src/main/java/com/instructure/pandautils/compose/composables/CanvasThemedTextField.kt | unknown_repo | kotlin | /*
* Copyright (C) 2024 - present Instructure, 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 requ... |
canvas/src/main/java/com/angcyo/canvas/items/data/DataTextItem.kt | unknown_repo | kotlin | package com.angcyo.canvas.items.data
import android.graphics.Color
import android.graphics.Paint
import android.graphics.Rect
import android.graphics.Typeface
import android.widget.LinearLayout
import com.angcyo.canvas.Strategy
import com.angcyo.canvas.data.*
import com.angcyo.canvas.graphics.TextGraphicsParser
import... |
app/src/main/java/app/storytel/candidate/com/repositories/NetworkBoundResource.kt | unknown_repo | kotlin | package app.storytel.candidate.com.repositories
import androidx.lifecycle.*
import app.storytel.candidate.com.network.Resource
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.suspendCancellableCoroutine
import kotlinx.coroutines.withContext
import retrofit2.Response
import java.lang.Exception
import ko... |
app/src/main/java/com/example/notesapp/NoteAdapter.kt | unknown_repo | kotlin | package com.example.notesapp
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageButton
import android.widget.TextView
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androi... |
sample/src/androidTest/java/info/hannes/logcat/ToFileTest.kt | unknown_repo | kotlin | package info.hannes.logcat
import android.Manifest
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions
import androidx.test.espresso.matcher.ViewMatchers.*
import androidx.test.ext.junit.rules.ActivityScenarioRule
import androidx.test.ext.junit.runners.AndroidJUnit4
imp... |
sample/wallet/src/main/kotlin/com/reown/sample/wallet/ui/routes/dialog_routes/session_proposal/SessionProposalViewModel.kt | unknown_repo | kotlin | package com.reown.sample.wallet.ui.routes.dialog_routes.session_proposal
import androidx.lifecycle.ViewModel
import com.google.firebase.crashlytics.ktx.crashlytics
import com.google.firebase.ktx.Firebase
import com.reown.sample.wallet.domain.WCDelegate
import com.reown.sample.wallet.ui.common.peer.PeerUI
import com.re... |
app/src/tv/kotlin/app/newproj/lbrytv/ui/guidance/GuidedStepSupportFragment.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2022 <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, m... |
android/beagle/src/test/java/br/com/zup/beagle/engine/renderer/ui/ListViewRendererTest.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/com/study/riseof/shopkotlin/activity/BaseActivity.kt | unknown_repo | kotlin | package com.study.riseof.shopkotlin.activity
import android.os.Build
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.Toolbar
import android.view.MenuItem
import android.view.WindowManager
abstract class BaseActivity : AppCompatActivity() {
override fun on... |
crunchycalendar/src/main/java/ru/cleverpumpkin/calendar/extension/ContextExtenison.kt | unknown_repo | kotlin | package ru.cleverpumpkin.calendar.extension
import android.content.Context
import android.util.TypedValue
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import androidx.annotation.AnimRes
import androidx.annotation.ColorInt
import androidx.annotation.ColorRes
import androidx.core.... |
Chapter3/app/src/androidTest/java/com/favedish/testing/assertion/ViewWaiter.kt | unknown_repo | kotlin | package com.favedish.testing.assertion
import android.view.View
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.IdlingRegistry
import androidx.test.espresso.IdlingResourceTimeoutException
import androidx.test.espresso.matcher.ViewMatchers.isRoot
import com.favedish.testing.action.NoAction
i... |
compose/ui/ui-test-junit4/src/desktopMain/kotlin/androidx/compose/ui/test/ComposeTest.desktop.kt | unknown_repo | kotlin | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/jokopriyono/jonews/data/response/Article.kt | unknown_repo | kotlin | package com.jokopriyono.jonews.data.response
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Article(
@SerializedName("author")
val author: String?,
@SerializedName("content")
val content: String?,
@Serial... |
core/bluetooth/src/main/kotlin/edu/stanford/spezi/core/bluetooth/data/model/BLEServiceEvent.kt | unknown_repo | kotlin | package edu.stanford.spezi.core.bluetooth.data.model
import android.bluetooth.BluetoothDevice
import android.bluetooth.BluetoothGatt
import android.bluetooth.BluetoothGattCharacteristic
/**
* Represents events emitted by the Bluetooth Low Energy (BLE) service.
*/
sealed interface BLEServiceEvent {
/**
* R... |
app/src/main/java/org/oppia/android/app/testing/DrawableBindingAdaptersTestActivity.kt | unknown_repo | kotlin | package org.oppia.android.app.testing
import android.os.Bundle
import org.oppia.android.R
import org.oppia.android.app.activity.ActivityComponentImpl
import org.oppia.android.app.activity.InjectableAppCompatActivity
/** Test activity for [org.oppia.android.app.databinding.DrawableBindingAdapters]. */
class DrawableBi... |
compose/ui/ui-text/src/androidMain/kotlin/androidx/compose/ui/text/platform/style/ShaderBrushSpan.android.kt | unknown_repo | kotlin | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
glucose/src/main/java/com/desugar/glucose/renderer/opengl/OpenGLRendererAPI.kt | unknown_repo | kotlin | package com.desugar.glucose.renderer.opengl
import android.opengl.GLES31
import android.util.Log
import com.desugar.glucose.renderer.RendererAPI
import com.desugar.glucose.renderer.VertexArray
import dev.romainguy.kotlin.math.Float4
class OpenGLRendererAPI : RendererAPI {
override fun init() {
// LOG
... |
feature-governance-impl/src/main/java/io/novafoundation/nova/feature_governance_impl/presentation/delegation/delegation/revoke/confirm/RevokeDelegationConfirmViewModel.kt | unknown_repo | kotlin | package io.novafoundation.nova.feature_governance_impl.presentation.delegation.delegation.revoke.confirm
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import io.novafoundation.nova.common.base.BaseViewModel
import io.novafoundation.nova.common.mix... |
app/src/main/java/com/example/project_04_flixster_part_02/TvShowAdapter.kt | unknown_repo | kotlin | package com.example.project_04_flixster_part_02
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import c... |
wear/compose/compose-material/benchmark/src/androidTest/java/androidx/wear/compose/material/benchmark/PositionIndicatorBenchmark.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... |
octicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/octicons/octicons/Sliders24.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.octicons.octicons
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.Stro... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/EnvelopeBulk.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... |
packages/replay-android/android-library/replay-android/src/main/java/com/replay/android/WebAppInterface.kt | unknown_repo | kotlin | package com.replay.android
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.webkit.JavascriptInterface
import java.io.FileNotFoundException
class WebAppInterface(private val replayContext: ReplayActivity) {
@JavascriptInterface
fun bridge(
... |
preview/src/main/java/com/unagit/composeplayground/view_preview/OrderView.kt | unknown_repo | kotlin | package com.unagit.composeplayground.view_preview
import android.content.Context
import android.content.res.ColorStateList
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import androidx.annotation.ColorRes
import androidx.annotation.DrawableR... |
app/src/main/java/com/snakydesign/clock/ClockActivity.kt | unknown_repo | kotlin | package com.snakydesign.clock
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.Composable
import androidx.interpolator.view.animation.FastOutSlowInInterpolator
import androidx.ui.animation.Transition
import androidx.ui.core.Alignment
import androidx.ui.core.Draw
import a... |
libs/pandautils/src/main/java/com/instructure/pandautils/room/appdatabase/entities/DashboardFileUploadEntity.kt | unknown_repo | kotlin | package com.instructure.pandautils.room.appdatabase.entities
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class DashboardFileUploadEntity(
@PrimaryKey
val workerId: String,
val userId: Long,
val title: String?,
val subtitle: String?,
val courseId: Long?,
val ass... |
app/src/main/java/ru/beryukhov/coffeegram/model/NavigationStore.kt | unknown_repo | kotlin | package ru.beryukhov.coffeegram.model
import kotlinx.coroutines.flow.MutableStateFlow
import org.threeten.bp.LocalDate
import org.threeten.bp.YearMonth
import ru.beryukhov.coffeegram.store_lib.InMemoryStore
class NavigationStore(val yearMonth: YearMonth = YearMonth.now()) : InMemoryStore<NavigationIntent, NavigationS... |
app/src/main/java/com/jesusrojo/firebasedemo/messaging/MessagingActivity.kt | unknown_repo | kotlin | package com.jesusrojo.firebasedemo.messaging
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Bundle
import android.util.Log
import androidx.annotation.NonNull
import androidx.appcompat.app.AlertDialog
import an... |
android/app/src/main/java/com/jovial/corpsblog/MainActivity.kt | unknown_repo | kotlin | package com.jovial.corpsblog
import android.Manifest
import android.content.SharedPreferences
import android.content.pm.PackageManager
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v4.app.ActivityCompat
import android.support.v4.content.ContextCompat
import android.sup... |
app/src/main/java/de/jepfa/yapm/usecase/vault/ShareVaultUseCase.kt | unknown_repo | kotlin | package de.jepfa.yapm.usecase.vault
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.net.Uri
import androidx.core.net.toUri
import de.jepfa.yapm.R
import de.jepfa.yapm.service.Prefer... |
app/src/main/java/com/eneskayiklik/word_diary/feature/quiz/StudyViewModel.kt | unknown_repo | kotlin | package com.eneskayiklik.word_diary.feature.quiz
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.eneskayiklik.swiper.SwipedOutDirection
import com.eneskayiklik.word_diary.R
import com.eneskayiklik.word_diary.core.data_store.domain.UserP... |
platform/vcs-impl/src/com/intellij/vcs/commit/CommitProgressPanel.kt | unknown_repo | kotlin | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.vcs.commit
import com.intellij.icons.AllIcons
import com.intellij.ide.nls.NlsMessages.formatNarrowAndList
import com.intellij.openapi.Dispo... |
app/src/main/java/com/craftyblue/gpssjetnik/alpha/MapActivity.kt | unknown_repo | kotlin | package com.craftyblue.gpssjetnik.alpha
import android.app.Activity
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Bundle
import android.preference.PreferenceManager
import android.util.DisplayMetrics
import an... |
app/src/main/java/com/minitel/toolboxlite/presentation/viewmodels/SettingsViewModel.kt | unknown_repo | kotlin | package com.minitel.toolboxlite.presentation.viewmodels
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.minitel.toolboxlite.domain.repositories.CalendarSettingsRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coro... |
app/src/main/java/com/revolgenx/anilib/ui/fragment/home/season/SeasonFragment.kt | unknown_repo | kotlin | package com.revolgenx.anilib.ui.fragment.home.season
import android.os.Bundle
import android.widget.TextView
import com.otaliastudios.elements.Adapter
import com.otaliastudios.elements.Presenter
import com.otaliastudios.elements.Source
import com.otaliastudios.elements.extensions.HeaderSource
import com.otaliastudios.... |
reviewrelic/src/androidTest/java/com/review/relic/RecyclerViewItemCountAssertion.kt | unknown_repo | kotlin | package com.review.relic
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import androidx.test.espresso.NoMatchingViewException
import androidx.test.espresso.ViewAssertion
import androidx.test.espresso.matcher.ViewMatchers.assertThat
import org.hamcrest.CoreMatchers.`is`
class RecyclerView... |
shared_ui_components/src/commonMain/kotlin/com/eyedea/shared_ui_components/composables/ExpandableText.kt | unknown_repo | kotlin | package com.eyedea.shared_ui_components.composables
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.LocalTextStyle
import androidx.comp... |
features/test-details/feature/src/main/java/teamcityapp/features/test_details/data/TestDetailsDataManagerImpl.kt | unknown_repo | kotlin | /*
* Copyright 2019 <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 wri... |
vector/src/main/java/im/vector/riotx/features/invite/VectorInviteView.kt | unknown_repo | kotlin | /*
* Copyright 2019 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
app/src/main/java/com/tarripoha/android/presentation/main/MainActivity.kt | unknown_repo | kotlin | package com.tarripoha.android.presentation.main
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import androidx.activity.viewModels
import androidx.core.view.GravityCompat
import androidx.lifecycle.*
import androidx.navigation.Nav... |
app/src/main/java/com/example/resumeskillapp/core/utils/AnimationExtention.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (C) 2022 Serhii Chorpita
*
* 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, ... |
core/src/main/java/com/rotor/core/NetworkUtil.kt | unknown_repo | kotlin | package com.rotor.core
import android.content.Context
import android.net.ConnectivityManager
/**
* Created by efraespada on 11/03/2018.
*/
class NetworkUtil {
companion object {
var TYPE_WIFI = 1
var TYPE_MOBILE = 2
var TYPE_NOT_CONNECTED = 0
val NETWORK_STATUS_NOT_CONNECTED = 0... |
ChoiceSDK/choicesdk-maps/src/main/java/at/bluesource/choicesdk/maps/common/options/TileOverlayOptions.kt | unknown_repo | kotlin | package at.bluesource.choicesdk.maps.common.options
import android.os.Parcel
import at.bluesource.choicesdk.maps.common.TileProvider
import at.bluesource.choicesdk.maps.common.TileProvider.Companion.toChoiceTileProvider
import at.bluesource.choicesdk.maps.factory.TileOverlayOptionsFactory
import at.bluesource.choicesd... |
graphics/src/main/java/com/gamapp/Test.kt | unknown_repo | kotlin | package com.gamapp
import android.util.Log
import androidx.compose.foundation.background
import androidx.compose.foundation.interaction.DragInteraction
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.interaction.PressInteraction
import androidx.compose.foundat... |
app/src/main/kotlin/com/flxrs/dankchat/data/api/auth/dto/ValidateErrorDto.kt | unknown_repo | kotlin | package com.flxrs.dankchat.data.api.auth.dto
import androidx.annotation.Keep
import kotlinx.serialization.Serializable
@Keep
@Serializable
data class ValidateErrorDto(
val status: Int,
val message: String
) |
NewsApp/app/src/main/java/com/example/newsapp/ui/DetailNewsFragment.kt | unknown_repo | kotlin | package com.example.newsapp.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.lifecycle... |
app/src/main/java/com/bytestore/snaprecyclerview/ItemViewHolder.kt | unknown_repo | kotlin | package com.bytestore.snaprecyclerview
import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
class ItemViewHolder(view: View) : RecyclerView.ViewHolder(view) {
private val textView = view.findViewById<TextView>(R.id.textView)
fun bind(item: String?) {
... |
pushlib/src/main/java/com/saint/pushlib/opush/OPushInit.kt | unknown_repo | kotlin | package com.saint.pushlib.opush
import android.app.Application
import android.text.TextUtils
import androidx.annotation.NonNull
import androidx.annotation.Nullable
import com.heytap.msp.push.HeytapPushManager
import com.heytap.msp.push.callback.ICallBackResultService
import com.saint.pushlib.BasePushInit
import com.sa... |
src/main/java/co/com/japl/ui/utils/NumbersUtil.kt | unknown_repo | kotlin | package co.japl.android.myapplication.utils
import android.util.Log
import android.widget.EditText
import android.widget.TextView
import java.math.BigDecimal
import java.text.DecimalFormat
class NumbersUtil {
companion object {
private val formatDecimalMoneyCO = "$ #,###.00"
private val formatD... |
app/src/main/java/com/example/newsapp/fragment/SavedFragment.kt | unknown_repo | kotlin |
package com.example.newsapp.fragment
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.newsapp.R
import com.example.newsapp.adapter.NewsAdapter
import com.example.newsapp.databinding.FragmentBusin... |
octicons/src/commonMain/kotlin/compose/icons/octicons/Megaphone16.kt | unknown_repo | kotlin | package compose.icons.octicons
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.Miter
import a... |
app/src/main/java/com/starwars/app/character/presentation/component/CharacterItem.kt | unknown_repo | kotlin | package com.starwars.app.character.presentation.component
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Card
import androidx.compos... |
mvp/lib-core-mvp/src/main/java/ru/surfstudio/android/core/mvp/loadstate/BaseLoadStateRenderer.kt | unknown_repo | kotlin | /*
Copyright (c) 2018-present, SurfStudio 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... |
matrix-sdk-android/src/androidTestRustCrypto/java/org/matrix/android/sdk/internal/database/CryptoSanityMigrationTest.kt | unknown_repo | kotlin | /*
* Copyright 2023 The Matrix.org Foundation C.I.C.
*
* 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/kotlin/com/epicdima/sfct/exsearch/parameters/SingleParameterItem.kt | unknown_repo | kotlin | package com.epicdima.sfct.exsearch.parameters
import android.content.Context
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import com.epicdima.sfct.R
import com.epicdima.sfct.core.usecases.ExsearchParams
import com.epicdima.sfct.exsearch.Parameter
import com.epicdima.sfct.exsearch.... |
app/src/main/kotlin/uz/mahmudxon/currency/ui/currencyDetails/CurrencyDetailsViewModel.kt | unknown_repo | kotlin | package uz.mahmudxon.currency.ui.currencyDetails
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.flow.MutableStateFlow
import kot... |
app/src/main/java/com/trilema/doctrinalang/ui/time/TimeFragment.kt | unknown_repo | kotlin | package com.trilema.doctrinalang.ui.time
import android.animation.ArgbEvaluator
import android.animation.ValueAnimator
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.TransitionDrawable
import android.os.Bundle
import android.speech.tts.TextToSpeech
import ... |
app/src/main/java/com/trilema/doctrinalang/ui/time/TimeFragment.kt | unknown_repo | kotlin | package com.trilema.doctrinalang.ui.time
import android.animation.ArgbEvaluator
import android.animation.ValueAnimator
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.TransitionDrawable
import android.os.Bundle
import android.speech.tts.TextToSpeech
import ... |
Matcheap/app/src/main/java/com/sandy/seoul_matcheap/ui/more/bookmark/BookmarkViewModel.kt | unknown_repo | kotlin | package com.sandy.seoul_matcheap.ui.more.bookmark
import androidx.lifecycle.*
import com.sandy.seoul_matcheap.data.store.dao.BookmarkedStore
import com.sandy.seoul_matcheap.data.store.repository.BookmarkRepository
import com.sandy.seoul_matcheap.util.constants.ConnectState
import dagger.hilt.android.lifecycle.HiltView... |
app/src/main/java/com/tegar/eats/ui/components/ListSection.kt | unknown_repo | kotlin | package com.tegar.eats.ui.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.... |
app/src/main/java/com/hackathon/data/error/ServerError.kt | unknown_repo | kotlin | package com.hackathon.data.error
import android.content.Context
import com.hackathon.R
class ServerError(val message: String) : BaseError() {
override fun parseTitleAndMessage(context: Context): Pair<String, String> =
Pair(context.getString(R.string.errorOccurred), message)
}
|
app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt | unknown_repo | kotlin | package com.simplemobiletools.draw.activities
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.graphics.PorterDuff
import android.graphics.drawable.ColorDrawable
import android.net.Uri
import android.os.Bundle
import android.su... |
app/src/main/java/de/dertyp7214/rboardthememanager/core/Fragment.kt | unknown_repo | kotlin | package de.dertyp7214.rboardthememanager.core
import androidx.fragment.app.Fragment
import com.google.android.material.transition.MaterialSharedAxis
fun Fragment.applyTransitions() {
enterTransition = MaterialSharedAxis(MaterialSharedAxis.Z, true)
returnTransition = MaterialSharedAxis(MaterialSharedAxis.Z, fa... |
core/src/main/kotlin/co/anitrend/arch/core/model/IStateLayoutConfig.kt | unknown_repo | kotlin | /**
* Copyright 2021 AniTrend
*
* 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 i... |
app/src/main/java/com/example/meteorcrusher/GameViewModel.kt | unknown_repo | kotlin | package com.example.meteorcrusher
import androidx.lifecycle.ViewModel
class GameViewModel : ViewModel() {
var score = 0
var speed = 1
var myShipPosition = 0
}
|
presentation/src/main/java/com/hamza/clean/ui/moviedetails/MovieDetailsPlaceholderFragment.kt | unknown_repo | kotlin | package com.hamza.clean.ui.moviedetails
import androidx.fragment.app.Fragment
import com.hamza.clean.R
/**
* @author by <NAME> on 03/09/2023
*/
class MovieDetailsPlaceholderFragment : Fragment(R.layout.fragment_movie_details_placeholder) |
uicorektest/src/main/java/com/mozhimen/uicorektest/recyclerk/RecyclerKLifecycleActivity.kt | unknown_repo | kotlin | package com.mozhimen.uicorektest.recyclerk
import android.os.Bundle
import android.widget.LinearLayout
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.LinearLayoutManager
import com.mozhimen.basick.elemk.androidx.appcompat.bases.databinding.BaseActivityVB
import com.mozhim... |
espresso-server/app/src/androidTest/java/io/appium/espressoserver/lib/model/DataMatcherJson.kt | unknown_repo | kotlin | package io.appium.espressoserver.lib.model
import androidx.test.espresso.DataInteraction
import androidx.test.espresso.Espresso.onData
import com.google.gson.*
import com.google.gson.annotations.JsonAdapter
import io.appium.espressoserver.lib.handlers.exceptions.AppiumException
import io.appium.espressoserver.lib.hand... |
app/src/main/java/com/karthek/android/s/gallery/state/db/SMedia.kt | unknown_repo | kotlin | package com.karthek.android.s.gallery.state.db
import android.content.ContentUris
import android.net.Uri
import android.provider.MediaStore
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
@Entity
data class SMedia(
@PrimaryKey
var id: Int = 0,
... |
ProShaped/app/src/main/java/com/example/proshapedapp/workoutScreenPackage/DisplayViewModel.kt | unknown_repo | kotlin | package com.example.proshapedapp.workoutScreenPackage
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.proshapedapp.workoutScreenPackage.database.Graph
import com.example.proshapedapp.workoutScreenPackage.database.WorkoutItem
import com.example.proshapedapp.workoutScreenP... |
app/src/main/java/com/anytypeio/anytype/ui/sets/modals/SetObjectSetRecordNameFragment.kt | unknown_repo | kotlin | package com.anytypeio.anytype.ui.sets.modals
import android.text.InputType.TYPE_CLASS_TEXT
import android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT
import android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.EditText
import androidx... |
Notebook/app/src/main/java/com/example/notebook/viewmodel/NoteViewModel.kt | unknown_repo | kotlin | package com.example.notebook.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.notebook.data.Note
import com.example.notebook.data.NoteRepository
import kotlinx.coroutines.launch
import java.util.*
class NoteViewModel (
var... |
app/src/main/java/com/danielefavaro/spacex/main/ui/LaunchDetailFragment.kt | unknown_repo | kotlin | package com.danielefavaro.spacex.main.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.danielefavaro.spacex.SpaceXApp
import com.danielefavaro.spacex.base.ktx.load
import com.danielefavaro.spacex.base.ui.BaseBottomSheetDialogFragment
impor... |
compose/foundation/foundation/src/desktopMain/kotlin/androidx/compose/foundation/Clickable.desktop.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/dev/vengateshm/dribbox/presentation/home/components/Home.kt | unknown_repo | kotlin | package dev.vengateshm.dribbox.presentation.home.components
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.GridCells
import androidx.compose.foundation.lazy.LazyVerticalGrid
import androidx.compose.foundation.lazy.items
import androidx.compose.f... |
app/src/main/java/ru/glindaqu/ejournal/viewModel/implementation/HomeViewModel.kt | unknown_repo | kotlin | package ru.glindaqu.ejournal.viewModel.implementation
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import ru.glindaqu.ejournal.viewModel.api.IHomeViewModel
class HomeViewModel(application: Application) : IHomeViewModel, AndroidViewModel(application) {
} |
client/android/div/src/main/java/com/yandex/div/core/view2/animations/Utils.kt | unknown_repo | kotlin | package com.yandex.div.core.view2.animations
import android.graphics.drawable.Drawable
import android.graphics.drawable.LayerDrawable
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
import android.view.animation.AlphaAnimation
import android.view.animation.Animation
import androi... |
apps/mobile-app/src/main/kotlin/dev/marlonlom/apps/cappajv/ui/navigation/MainNavHost.kt | unknown_repo | kotlin | /*
* Copyright 2024 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.apps.cappajv.ui.navigation
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.material3.ExperimentalMaterial3Api
import andr... |
app/src/main/java/com/example/android/trackmysleepquality/Util.kt | unknown_repo | kotlin | package com.example.android.trackmysleepquality
import android.annotation.SuppressLint
import android.content.res.Resources
import java.text.SimpleDateFormat
fun convertNumericQualityToString(quality: Int, resources: Resources): String {
var qualityString = resources.getString(R.string.three_ok)
when (quality... |
app/src/main/java/com/example/returnpals/services/SettingsViewModel.kt | unknown_repo | kotlin |
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.amplifyframework.api.graphql.model.ModelQuery
import com.amplifyframework.auth.AuthException
import com.amplifyframework.auth.AuthSession
import com.amplifyframework.auth.result.AuthResetPasswordResult
impor... |
sample/src/main/java/com/hieupt/standalonescrollbar/sample/HorizontalScrollViewActivity.kt | unknown_repo | kotlin | package com.hieupt.standalonescrollbar.sample
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.hieupt.android.standalonescrollbar.attachTo
import com.hieupt.standalonescrollbar.R
import kotlinx.android.synthetic.main.activity_horizontal_scroll_view.*
class HorizontalScrollViewActivi... |
composeUi/src/commonMain/kotlin/com/darkrockstudios/apps/hammer/common/encyclopedia/CreateEntryUi.kt | unknown_repo | kotlin | package com.darkrockstudios.apps.hammer.common.encyclopedia
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compos... |
app/src/main/java/com/msc/someweather/utilities/UnitUtils.kt | unknown_repo | kotlin | package com.msc.someweather.utilities
import android.content.Context
import android.graphics.drawable.Drawable
import android.support.v4.content.ContextCompat
import android.util.DisplayMetrics
import android.view.WindowManager
import com.msc.someweather.R
import com.orhanobut.logger.Logger
import java.text.ParseExcep... |
graphics/src/main/java/com/gamapp/custom/ViewNumberPicker.kt | unknown_repo | kotlin | package com.gamapp.custom
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.*
import android.widget.*
import androidx.core.view.GestureDetectorCompat
import kotlinx.coroutines.*
import kotlin.math.abs
import kotlin.math.ex... |
app/src/main/java/com/theophiluskibet/koin/playground/presentation/screens/list/CharacterListScreen.kt | unknown_repo | kotlin | /*
* Copyright 2024 Theophilus Kibet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
sample/src/test/java/com.vicpin.sample.testjvm/ViewHolderLifecycleTests.kt | unknown_repo | kotlin | package com.vicpin.sample.testjvm
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.test.core.app.launchActivity
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.nhaarman.mockitokotlin2.*
import com.vicpin.kpresenteradapter.Presenter... |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/exception/reporting/ErrorReportReceiver.kt | unknown_repo | kotlin | package de.rki.coronawarnapp.exception.reporting
import android.app.Activity
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import de.rki.coronawarnapp.CoronaWarnApplication
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.exceptio... |
codebase/android/feature/transactions/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/feature/transactions/transactions/screen/TransactionsScreenUIEvent.kt | unknown_repo | kotlin | package com.makeappssimple.abhimanyu.financemanager.android.feature.transactions.transactions.screen
import androidx.compose.runtime.Immutable
import com.makeappssimple.abhimanyu.financemanager.android.core.model.feature.Filter
import com.makeappssimple.abhimanyu.financemanager.android.core.model.feature.SortOption
im... |
app/src/main/java/com/romandevyatov/bestfinance/viewmodels/foreachmodel/IncomeHistoryViewModel.kt | unknown_repo | kotlin | package com.romandevyatov.bestfinance.viewmodels.foreachmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.romandevyatov.bestfinance.db.entities.IncomeHistory
import com.romandevyatov.bestfinance.db.entities.relations.IncomeHistoryWithIncome... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/LightCeiling.kt | unknown_repo | kotlin | package me.localx.icons.straight.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.Mite... |
packages/nasi-lemak-carrier-services/android/src/main/java/org/nasi/lemak/carrierservices/ESimBridge.kt | unknown_repo | kotlin | package org.nasi.lemak.carrierservices
import android.annotation.TargetApi
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.telephony.euicc.DownloadableSubscription
import android.te... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.