file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
ui/src/main/java/app/allever/android/lib/demo/ui/expandrecycler/ContactExpandListFragment.kt | unknown_repo | kotlin | package app.allever.android.lib.demo.ui.expandrecycler
import androidx.recyclerview.widget.LinearLayoutManager
import app.allever.android.lib.common.BaseFragment
import app.allever.android.lib.common.TestData
import app.allever.android.lib.demo.databinding.FragmentContactExpandBinding
import app.allever.android.lib.mv... |
app/src/main/java/com/realsoc/shiby/views/components/ListComponent.kt | unknown_repo | kotlin | package com.realsoc.shiby.views.components
import android.annotation.SuppressLint
import android.util.Log
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com... |
src/main/kotlin/dev/frozenmilk/sinister/apphooks/OnDestroy.kt | unknown_repo | kotlin | package dev.frozenmilk.sinister.apphooks
import android.content.Context
import dev.frozenmilk.sinister.Preload
/**
* a more type-safe version of [org.firstinspires.ftc.ftccommon.external.OnDestroy]
*
* static implementations of this class will be run as [org.firstinspires.ftc.ftccommon.external.OnDestroy] methods ... |
themes/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/themes/intui/standalone/styling/IntUiTextFieldStyling.kt | unknown_repo | kotlin | package org.jetbrains.jewel.themes.intui.standalone.styling
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.shape.CornerSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.Stable
import androidx.compose.ui.... |
imageViewer/src/main/java/com/origeek/imageViewer/gallery/ImagePager.kt | unknown_repo | kotlin | package com.origeek.imageViewer.gallery
import androidx.annotation.FloatRange
import androidx.annotation.IntRange
import androidx.compose.foundation.interaction.InteractionSource
import androidx.compose.runtime.Composable
import androidx.compose.runtime.saveable.Saver
import androidx.compose.runtime.saveable.listSaver... |
presentation/src/commonMain/kotlin/ireader/presentation/ui/settings/repository/AddingRepositryScreen.kt | unknown_repo | kotlin | package ireader.presentation.ui.settings.repository
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.*
import androidx.compose.ma... |
app/src/main/java/io/github/gmathi/novellibrary/activity/settings/BackupSettingsActivity.kt | unknown_repo | kotlin | package io.github.gmathi.novellibrary.activity.settings
import android.Manifest
import android.graphics.Rect
import android.os.Bundle
import android.os.Environment
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.RecyclerView
impor... |
app/src/main/kotlin/org/jdc/template/ui/compose/dialog/MessageDialog.kt | unknown_repo | kotlin | package org.jdc.template.ui.compose.dialog
import androidx.compose.material.AlertDialog
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.material.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import java.u... |
app/src/main/java/com/cq/wechatworkassist/FirstFragment.kt | unknown_repo | kotlin | package com.cq.wechatworkassist
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import kotlinx.android.synthetic.main.fragment_first.view.*
import java.io.BufferedReader
import java.io.Input... |
features/roomlist/impl/src/main/kotlin/io/element/android/features/roomlist/impl/migration/MigrationScreenPresenter.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
app/src/main/java/com/kieronquinn/app/taptap/fragments/SettingsActionFragment.kt | unknown_repo | kotlin | package com.kieronquinn.app.taptap.fragments
import android.content.res.ColorStateList
import android.graphics.Canvas
import android.graphics.drawable.AnimatedVectorDrawable
import android.os.Bundle
import android.util.Log
import android.view.*
import android.widget.Toast
import androidx.core.content.ContextCompat
imp... |
app/src/main/java/com/example/qiitaapi/Presentation/List/QiitaListRecyclerViewHolder.kt | unknown_repo | kotlin | package com.example.qiitaapi.Presentation.List
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.qiitaapi.R
class QiitaListRecyclerViewHolder(view: View) : RecyclerView.ViewHolder(view) {
val itemIcon: Image... |
app/src/main/java/com/jarhoax/multiplatform/demo/MainActivity.kt | unknown_repo | kotlin | package com.jarhoax.multiplatform.demo
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.jarhoax.multiplatform.core.ExampleClass
import com.jarhoax.multiplatform.core.createApplicationScreenMessage
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatAc... |
app/src/main/java/me/robbin/wanandroid/ui/fragment/setting/view/SettingFragment.kt | unknown_repo | kotlin | package me.robbin.wanandroid.ui.fragment.setting.view
import android.os.Bundle
import kotlinx.android.synthetic.main.fragment_setting.*
import me.robbin.mvvmscaffold.base.DataBindingConfig
import me.robbin.wanandroid.BR
import me.robbin.wanandroid.R
import me.robbin.wanandroid.app.base.BaseFragment
import me.robbin.wa... |
map-routes/src/commonMain/kotlin/io/ashdavies/routes/RoutePresenter.kt | unknown_repo | kotlin | package io.ashdavies.routes
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import io.ashdavies.http.LocalH... |
samples/campus/src/main/java/de/ironjan/arionav_fw/samples/campus/views/debug/NearbyBluetoothTokensFragment.kt | unknown_repo | kotlin | package de.ironjan.arionav_fw.samples.campus.views.debug
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Observer
import de.ironjan.arionav_fw.ionav.di.IonavContainerHolder
import de.ironjan.arionav_fw.ionav.positioning.SignalStrength
import d... |
app/src/main/java/com/cyb3rko/logviewerforopenhab/MainActivity.kt | unknown_repo | kotlin | package com.cyb3rko.logviewerforopenhab
import android.content.Intent
import android.content.SharedPreferences
import android.content.pm.ActivityInfo
import android.os.Bundle
import android.text.SpannableString
import android.text.Spanned
import android.text.style.UnderlineSpan
import android.view.View
import androidx... |
maps/src/main/java/com/example/mapbox_map/MyApp.kt | unknown_repo | kotlin | package com.example.mapbox_map
import android.app.Application
import com.example.requestlocation.R
import com.mapbox.navigation.base.options.NavigationOptions
import com.mapbox.navigation.core.lifecycle.MapboxNavigationApp
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
if... |
app/src/main/java/com/chillibits/pmapp/ui/adapter/recyclerview/SelectSensorAdapter.kt | unknown_repo | kotlin | /*
* Copyright © <NAME> 2017 - 2020. All rights reserved
*/
package com.chillibits.pmapp.ui.adapter.recyclerview
import android.os.Handler
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.core.graphics.BlendModeColor... |
app/src/main/java/com/brandon/hangtime/FragmentEventEditor.kt | unknown_repo | kotlin | package com.brandon.hangtime
import android.os.Bundle
import android.text.InputType
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.*
import androidx.fragment.app.Fragment
import com.google.firebase.auth.ktx.auth
import com.google.firebase.ktx.Firebase
im... |
app/src/main/java/br/com/movieapp/search_movie/presentation/components/SearchComponent.kt | unknown_repo | kotlin | package br.com.movieapp.search_movie.presentation.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.Icon
im... |
availability/admob/src/main/java/com/github/availability/ad/branch/admob/request/RequestBuild.kt | unknown_repo | kotlin | package com.github.availability.ad.branch.admob.request
import android.os.Bundle
import com.github.availability.ad.branch.admob.AdmobAvailabilityAd
import com.github.availability.ad.debug.AdDebug
import com.google.ads.mediation.admob.AdMobAdapter
import com.google.android.gms.ads.AdRequest
import com.google.android.gm... |
app/src/main/java/com/kbyamy/githubclient/ui/userrepositories/RepositoriesAdapter.kt | unknown_repo | kotlin | package com.kbyamy.githubclient.ui.userrepositories
import android.view.ViewGroup
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import com.kbyamy.githubclient.data.model.Repository
class RepositoriesAdapter(
private val clickEvent: RepositoryViewHolder.OnItemClickEvent
) : ... |
library/src/main/java/com/freakyaxel/nfc/ui/CardReaderUI.kt | unknown_repo | kotlin | package com.freakyaxel.nfc.ui
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import com.freakyaxel.nfc.api.CardReaderEvent
import com.freakyaxel.nfc.R
// TODO: XML Layout
class CardReaderU... |
buildSrc/subprojects/binary-compatibility/src/main/kotlin/org/gradle/binarycompatibility/metadata/KotlinMetadataQueries.kt | unknown_repo | kotlin | /*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
kiel/src/main/java/me/ibrahimyilmaz/kiel/core/AdapterFactory.kt | unknown_repo | kotlin | package me.ibrahimyilmaz.kiel.core
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
interface AdapterFactory<T : Any, out A : RecyclerView.Adapter<RecyclerViewHolder<T>>> {
fun create(
recyclerViewHolderManager: RecyclerViewHolderManager<T, RecyclerViewHolder<... |
app/src/main/java/com/taitascioredev/android/chucknorrisquotes/feature/randomjoke/RandomJokeActivity.kt | unknown_repo | kotlin | package com.taitascioredev.android.chucknorrisquotes.feature.randomjoke
import android.app.Activity
import android.app.SearchManager
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders
import android.content.Context
import android.content.Intent
import android.os.Bundle
import andro... |
feature/main/src/commonMain/kotlin/io/github/droidkaigi/confsched/main/section/GlassLikeNavRail.kt | unknown_repo | kotlin | package io.github.droidkaigi.confsched.main.section
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.spring
import androidx.compose.foundation.Canvas
import androidx.comp... |
app/src/main/java/com/example/connectnodejs/fragment/FragmentSignUp.kt | unknown_repo | kotlin | package com.example.connectnodejs.fragment
import android.app.AlertDialog
import android.content.ContentValues
import android.content.Context
import android.content.SharedPreferences
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.util.Log
import android.view.LayoutInflater
i... |
app/src/main/java/com/bsuir/bsuirschedule/presentation/dialogs/StateDialog.kt | unknown_repo | kotlin | package com.bsuir.bsuirschedule.presentation.dialogs
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import com.bsuir.bsuirschedule.R
import com.bsuir.bsuirschedule.databinding.StateDialogBinding
import com.b... |
app/src/main/java/com/bsuir/bsuirschedule/presentation/dialogs/StateDialog.kt | unknown_repo | kotlin | package com.bsuir.bsuirschedule.presentation.dialogs
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import com.bsuir.bsuirschedule.R
import com.bsuir.bsuirschedule.databinding.StateDialogBinding
import com.b... |
sample/feature-common/src/main/java/com/roudikk/guia/sample/feature/common/deeplink/GlobalNavigator.kt | unknown_repo | kotlin | package com.roudikk.guia.sample.feature.common.deeplink
import android.net.Uri
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
class GlobalNavigator : ViewModel() {
var destinations by mutableStat... |
app/src/main/java/com/alexjlockwood/beesandbombs/DemoScreens.kt | unknown_repo | kotlin | package com.alexjlockwood.beesandbombs
import android.os.Parcelable
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
im... |
resource/src/commonMain/kotlin/io/spherelabs/resources/anypassicons/Dribble.kt | unknown_repo | kotlin | package io.spherelabs.resource.icons.anypassicons
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.Compa... |
core/network/src/main/java/st/slex/csplashscreen/core/network/model/ui/image/ExifModel.kt | unknown_repo | kotlin | package st.slex.csplashscreen.core.network.model.ui.image
import androidx.compose.runtime.Stable
@Stable
data class ExifModel(
val make: String,
val model: String,
val exposureTime: String,
val aperture: String,
val focalLength: String,
val iso: Int
) |
src/main/kotlin/io/github/cottonmc/jsonfactory/gens/Gens.kt | unknown_repo | kotlin | package io.github.cottonmc.jsonfactory.gens
import io.github.cottonmc.jsonfactory.data.Identifier
import io.github.cottonmc.jsonfactory.gens.Gens.ALL_GENS
import io.github.cottonmc.jsonfactory.gens.block.*
import io.github.cottonmc.jsonfactory.gens.item.BasicItemModel
import io.github.cottonmc.jsonfactory.gens.item.Su... |
app/src/main/java/com/example/assignment/Application.kt | unknown_repo | kotlin | package com.example.assignment
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class Application :Application(){
} |
app/src/main/java/br/com/messiaslima/sofianavigationbar/MainActivity.kt | unknown_repo | kotlin | package br.com.messiaslima.sofianavigationbar
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import br.com.messiaslima.sofia.model.MenuParser
import br.com.messiaslima.sofia.model.SofiaMenu
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
... |
app/src/main/java/com/example/bebeenbekhar/home/HomeAdapter.kt | unknown_repo | kotlin | package com.example.bebeenbekhar.home
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.bebeenbekhar.ItemEvent
import com.example.bebeenbekhar.R
import com.example.bebeenbekhar.da... |
app/src/main/java/com/brouken/player/Fragment/AllSerialFragment.kt | unknown_repo | kotlin | package com.brouken.player.Fragment
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.view.KeyEvent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.annotation.Requ... |
library/src/main/java/com/zackratos/ultimatebarx/library/view/ViewGroupCreator.kt | unknown_repo | kotlin | package com.zackratos.ultimatebarx.library.view
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.view.ViewTreeObserver
import com.zackratos.ultimatebarx.library.navigationBarHeight
import com.zackratos.ultimatebarx.library.statusBarHeight
/**
* @Author : Zackrato... |
zenkey-sdk/src/test/kotlin/com/xci/zenkey/sdk/internal/network/stack/HttpExceptionTest.kt | unknown_repo | kotlin | /*
* Copyright 2019-2020 ZenKey, 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 agre... |
tv/tv-material/src/androidTest/java/androidx/tv/material3/TabRowTest.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... |
composeApp/src/commonMain/kotlin/ui/movie/top_rated/TopRatedViewModel.kt | unknown_repo | kotlin | package ui.toprated
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import data.model.MovieItem
import data.repository.MovieRepository
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutine... |
shared/src/androidMain/kotlin/util/Platform.kt | unknown_repo | kotlin | package util
import android.os.Build
actual object Platform {
actual val target: PlatformTarget = PlatformTarget.Android
actual val os: String = "Android ${Build.VERSION.RELEASE}"
}
|
app/src/main/java/name/eraxillan/anilistapp/ui/MediaListFragment.kt | unknown_repo | kotlin | /*
* Copyright 2021 Aleksandr Kamyshnikov
*
* 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... |
app/src/main/java/com/anna/speakingtimer/ui/main/MainFragment.kt | unknown_repo | kotlin | package com.anna.speakingtimer.ui.main
import android.content.Context
import android.os.Bundle
import android.os.SystemClock
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.InputMethodManager
import android.... |
component/core/libs/lib_base_split/src/main/java/afkt_replace/core/lib/base/split/controller/TransformationLayoutController.kt | unknown_repo | kotlin | package novalinx.core.lib.base.split.controller
import android.app.Activity
import android.content.Intent
import com.skydoves.transformationlayout.TransformationCompat
import com.skydoves.transformationlayout.TransformationLayout
import com.skydoves.transformationlayout.onTransformationEndContainer
import com.skydoves... |
plugins/android-compiler-plugin/testData/codegen/bytecodeShape/simpleView/simpleView.kt | unknown_repo | kotlin | package com.myapp
import android.view.View
import android.app.Activity
import kotlinx.android.synthetic.layout.view.*
public class MyActivity : Activity() {
init { View(this).login }
}
// 1 public _\$_findCachedViewById
// 1 INVOKEVIRTUAL com/myapp/MyActivity\.findViewById
// 1 public _\$_clearFindViewByIdCache
... |
app/src/main/java/com/jinwoo/withgithub/di/module/AppModule.kt | unknown_repo | kotlin | package com.jinwoo.withgithub.di.module
import android.app.Application
import android.content.Context
import com.jinwoo.withgithub.di.app.BaseApp
import dagger.Module
import dagger.Provides
import io.reactivex.disposables.CompositeDisposable
import javax.inject.Singleton
@Module(includes = [LocalModule::class, Networ... |
app/src/main/java/com/example/wellcome/utils/ContextExtensions.kt | unknown_repo | kotlin | package com.example.wellcome.utils
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.net.Uri
import android.util.... |
app/src/main/java/com/digitalcreative/appmurid/data/model/Assignment.kt | unknown_repo | kotlin | package com.digitalcreative.appguru.data.model
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Assignment(
@SerializedName("id_tugas")
val id: String,
@SerializedName("nama_tugas")
val title: String,
@Se... |
app/src/main/java/c23/ps325/communicare/ui/LoginFragment.kt | unknown_repo | kotlin | package c23.ps325.communicare.ui
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.fragment.findNavController
import ... |
tv/src/main/java/io/filmtime/tv/ui/series/ShowsNavigation.kt | unknown_repo | kotlin | package io.filmtime.tv.ui.series
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.ui.Modifier
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import androidx.navigation.compose.navigation
import io.filmtime.tv.ui.navigation.TabDestination.ShowsScree... |
core/src/commonMain/kotlin/com/maxkeppeker/sheets/core/models/base/SelectionButton.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022-2024. <NAME> (https://www.maxkeppeler.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
avenueforthearts/src/main/kotlin/org/dwellingplacegr/avenueforthearts/ui/VenueMapFragment.kt | unknown_repo | kotlin | package org.dwellingplacegr.avenueforthearts.ui
import android.annotation.SuppressLint
import android.net.Uri
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebResourceRequest
import android... |
app/src/androidTest/java/com/axel_stein/glucose_tracker/room/weight/WeightDaoWrapperTest.kt | unknown_repo | kotlin | package com.axel_stein.glucose_tracker.room.weight
import android.app.Application
import android.database.sqlite.SQLiteConstraintException
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import com.axel_stein.glucose_tracker.core.DatePeriod
import com.axel_stein.glucose_tracker.core.weight.... |
app/src/main/java/com/pyamsoft/trickle/home/HomeEntry.kt | unknown_repo | kotlin | package com.pyamsoft.trickle.home
import android.content.Intent
import android.provider.Settings
import androidx.activity.ComponentActivity
import androidx.annotation.CheckResult
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import an... |
app/src/main/java/com/qy/reader/search/result/SearchResultAdapter.kt | unknown_repo | kotlin | package com.qy.reader.search.result
import android.content.Context
import android.text.SpannableString
import android.text.Spanned
import android.text.TextUtils
import android.text.style.ForegroundColorSpan
import android.widget.ImageView
import android.widget.TextView
import com.bumptech.glide.Glide
import com.qy.rea... |
modules/tak/compose/components/src/main/kotlin/dev/jonpoulton/alakazam/tak/compose/text/TakTextInputDimensions.kt | unknown_repo | kotlin | package dev.jonpoulton.alakazam.tak.compose.text
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.Stable
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
@Stable
public interface TakTextInputDimensions {
public val... |
composeApp/src/androidMain/kotlin/io/github/snd_r/komelia/updates/AndroidAppUpdater.kt | unknown_repo | kotlin | package io.github.snd_r.komelia.updates
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.pm.PackageInstaller
import android.content.pm.PackageInstaller.STATUS_PENDING_USER_ACTION
import android.content.pm.Packa... |
app/src/main/java/com/amazon/ivs/broadcast/common/CommonExtensions.kt | unknown_repo | kotlin | package com.amazon.ivs.broadcast.common
import android.app.ActivityManager
import android.content.Context
import android.content.res.Configuration
import android.net.TrafficStats
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.doOnLayout
import androidx.navigation.fin... |
app/src/main/java/ch/admin/foitt/pilotwallet/platform/invitation/domain/usecase/ValidateInvitation.kt | unknown_repo | kotlin | package ch.admin.foitt.pilotwallet.platform.invitation.domain.usecase
import androidx.annotation.CheckResult
import ch.admin.foitt.openid4vc.domain.model.Invitation
import ch.admin.foitt.pilotwallet.platform.invitation.domain.model.ValidateInvitationError
import com.github.michaelbull.result.Result
fun interface Vali... |
app/src/main/java/studio/mandysa/music/ui/theme/Color.kt | unknown_repo | kotlin | package studio.mandysa.music.ui.theme
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import com.kyant.monet.a1
import com.kyant.monet.a2
import com.kyant.monet.withNight
//字体颜色
val textColor: Color
@Composable get() = 2.a1 withNi... |
app/src/main/java/com/shalatan/entertainmentapp/ui/overview/OverviewViewModel.kt | unknown_repo | kotlin | package com.shalatan.entertainmentapp.ui.overview
import android.content.Context
import android.util.Log
import android.view.View
import android.view.inputmethod.InputMethodManager
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.shalatan.enter... |
app/src/main/java/de/devmil/paperlaunch/model/Folder.kt | unknown_repo | kotlin | /*
* Copyright 2015 Devmil Solutions
*
* 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 agree... |
app/src/main/java/com/ibuqa/screening/presentation/SearchAndFilterScreen.kt | unknown_repo | kotlin | package com.ibuqa.screening.presentation
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout... |
library/src/main/java/com/chad/library/adapter/base/binder/QuickItemBinder.kt | unknown_repo | kotlin | package com.chad.library.adapter.base.binder
import android.support.annotation.LayoutRes
import android.view.ViewGroup
import com.chad.library.adapter.base.util.getItemView
import com.chad.library.adapter.base.viewholder.BaseViewHolder
/**
* 使用布局 ID 快速构建 Binder
* @param T item 数据类型
*/
abstract class QuickItemBinde... |
sample/src/main/java/com/rubensousa/dpadrecyclerview/sample/ui/widgets/item/ItemNestedAdapter.kt | unknown_repo | kotlin | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
app/src/main/java/com/reactive/trach/beautyphotoapp/albums/AlbumDetailViewModel.kt | unknown_repo | kotlin | package com.reactive.trach.beautyphotoapp.albums
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.reactive.trach.beautyphotoapp.PhotoApplication
import com.reactive.trach.beautyphotoapp.utils.AppLog
import ... |
sample/src/main/java/com/github/panpf/sketch/sample/ui/viewer/ImageViewerSwipeExitViewModel.kt | unknown_repo | kotlin | package com.github.panpf.sketch.sample.ui.viewer
import android.app.Application
import com.github.panpf.liveevent.LiveEvent
import com.github.panpf.sketch.sample.ui.base.LifecycleAndroidViewModel
class ImageViewerSwipeExitViewModel(application: Application) :
LifecycleAndroidViewModel(application) {
val prog... |
app/src/main/java/id/muhariananda/notemarks/data/entities/Note.kt | unknown_repo | kotlin | package id.muhariananda.notemarks.data.entities
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize
@Entity(tableName = "note_table")
@Parcelize
data class Note(
@PrimaryKey(autoGenerate = true)
val id: Int,
var title: String,
... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Drum.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... |
app/src/main/java/com/stevenschoen/putionew/files/DownloadFinishedService.kt | unknown_repo | kotlin | package com.stevenschoen.putionew.files
import android.app.Activity
import android.app.DownloadManager
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import androidx.core.app.JobIntentService
import com.stevenschoen.putionew.PutioUtils
import com.stevenschoen.puti... |
presentation/ui/src/main/java/com/chocolate/presentation/screens/createtopic/CreateTopicRoute.kt | unknown_repo | kotlin | package com.chocolate.presentation.screens.createtopic
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavType
import androidx.navigation.compose.composable
import androidx.navigation.navArgument
import com.chocolate.presentation.Screen
import com.chocolat... |
app/src/main/java/com/jjewuz/justnotes/MainActivity.kt | unknown_repo | kotlin | package com.jjewuz.justnotes
import android.animation.ObjectAnimator
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.view.View
import android.view.animation.AnticipateInterpolator
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.c... |
app/src/main/java/com/solar/recyclerviewsample/fragment/PagingFragment.kt | unknown_repo | kotlin | package com.solar.recyclerviewsample.fragment
import android.os.Bundle
import com.solar.library.binding.fragment.BindingFragment
import com.solar.recyclerviewsample.R
import com.solar.recyclerviewsample.databinding.FragmentPagingBinding
class PagingFragment : BindingFragment<FragmentPagingBinding>() {
override va... |
shared/src/androidMain/kotlin/com/intive/picover/shared/common/image/PicoverImage.android.kt | unknown_repo | kotlin | package com.intive.picover.shared.common.image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.runtime.Composable
import androidx.compose.ui... |
app/src/main/java/com/dinesh/android/clean_code/Basic.kt | unknown_repo | kotlin | package com.dinesh.android.clean_code
import android.content.Context
import android.content.SharedPreferences
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
private const val TAG = "log_clean_code_Basic"
/**
* # Inde... |
app/src/main/java/com/worksmobile/study/coroutinestudy_seongheon/data/ImageDatabase.kt | unknown_repo | kotlin | package com.worksmobile.study.coroutinestudy_seongheon.data
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.worksmobile.study.coroutinestudy_seongheon.entity.BookmarkItem
@Database(entities = [BookmarkItem::class], version = 1, exportSchema = false)
@Type... |
nutrition-facts/src/main/kotlin/dev/alibagherifam/mentha/nutritionfacts/FoodDao.kt | unknown_repo | kotlin | package dev.alibagherifam.mentha.nutritionfacts
import androidx.room.Dao
import androidx.room.Query
import dev.alibagherifam.mentha.nutritionfacts.model.FoodEntity
@Dao
interface FoodDao {
@Query("SELECT * FROM food WHERE id = :id")
suspend fun getFood(id: String): FoodEntity
}
|
canvas_lp/src/main/java/com/angcyo/canvas/laser/pecker/dslitem/TextPropertyControlItem.kt | unknown_repo | kotlin | package com.angcyo.canvas.laser.pecker.dslitem
import android.widget.TextView
import com.angcyo.canvas.core.IRenderer
import com.angcyo.canvas.items.data.DataItemRenderer
import com.angcyo.canvas.laser.pecker.R
import com.angcyo.canvas.utils.canvasDecimal
import com.angcyo.dialog.TargetWindow
import com.angcyo.dsladap... |
app/src/main/java/com/master8/shana/ui/search/SearchFragment.kt | unknown_repo | kotlin | package com.master8.shana.ui.search
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.observe
import androi... |
app/src/main/java/eu/kanade/presentation/browse/SourcesState.kt | unknown_repo | kotlin | package eu.kanade.presentation.browse
import androidx.compose.runtime.Stable
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import eu.kanade.tachiyomi.ui.browse.source.SourcesPresenter
@Sta... |
app/src/main/java/com/example/geoquest_app/utils/ExtensionFunctions.kt | unknown_repo | kotlin | package com.example.geoquest_app.utils
import androidx.navigation.NavController
import androidx.navigation.NavDirections
fun Double.round(decimals: Int): Double {
var multiplier = 1.0
repeat(decimals) {
multiplier *= 10
}
return kotlin.math.round(this * multiplier) / multiplier
}
fun NavContr... |
app/src/main/java/com/example/showsnackbarsample/M2Experiment2.kt | unknown_repo | kotlin | package com.example.showsnackbarsample
import android.util.Log
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.... |
android/src/main/java/com/oblador/keychain/DeviceAvailability.kt | unknown_repo | kotlin | package com.oblador.keychain
import android.Manifest
import android.app.KeyguardManager
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import androidx.biometric.BiometricManager
/**
* @see
* [Biometric hardware](https://stackoverflow.com/questions/50968732/determin... |
app/src/main/java/com/grupo20/vinilos/modelos/Album.kt | unknown_repo | kotlin | package com.grupo20.vinilos.modelos
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import java.util.Date
@Parcelize
data class Album (
val albumId:Int,
val name:String,
val cover:String,
val releaseDate:Date,
val description:String,
val genre:String,
val recordLabel:String... |
app/src/main/java/io/github/keddnyo/midoze/local/ViewModel.kt | unknown_repo | kotlin | package io.github.keddnyo.midoze.local
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.*
import io.github.keddnyo.midoze.remote.requests.Paging
class ViewModel : ViewModel() {
val firmwareList = Pager(
PagingConfig(1)
) {
Paging()
}.flow... |
app/src/main/java/com/floatworld/diacsc/composes/connection/connectionColumn.kt | unknown_repo | kotlin | package com.floatworld.diacsc.composes.connection
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.comp... |
sample/src/main/java/com/walletconnect/sample/wallet/ui/dialog/SessionRequestDialog.kt | unknown_repo | kotlin | package com.walletconnect.sample.wallet.ui.dialog
import android.content.Context
import android.net.Uri
import com.bumptech.glide.Glide
import com.google.android.material.bottomsheet.BottomSheetDialog
import com.walletconnect.sample.databinding.SessionRequestDialogBinding
import com.walletconnect.walletconnectv2.clien... |
app/src/main/java/com/stemaker/ampachealbumplayer/AboutDialogFragment.kt | unknown_repo | kotlin | package com.stemaker.ampachealbumplayer
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.fragment.app.DialogFragment
import android.webkit.WebView
import ... |
network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/waitlist/NetPWaitlistCodeNotification.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
app/src/main/java/com/sethchhim/kuboo_client/data/model/Recent.kt | unknown_repo | kotlin | package com.sethchhim.kuboo_client.data.model
import android.annotation.SuppressLint
import android.arch.persistence.room.Entity
import android.arch.persistence.room.Ignore
import android.arch.persistence.room.PrimaryKey
import android.os.Parcelable
import com.sethchhim.kuboo_remote.model.BookData
import kotlinx.andro... |
urbanairship-core/src/main/java/com/urbanairship/remotedata/RemoteDataUrlFactory.kt | unknown_repo | kotlin | /* Copyright Airship and Contributors */
package com.urbanairship.remotedata
import android.net.Uri
import android.os.Build
import com.urbanairship.PushProviders
import com.urbanairship.UAirship
import com.urbanairship.base.Supplier
import com.urbanairship.config.AirshipRuntimeConfig
import com.urbanairship.config.Ur... |
app/src/test/java/com/ignation/weatherapp/WeatherViewModelTest.kt | unknown_repo | kotlin | package com.ignation.weatherapp
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.ignation.weatherapp.network.model.currentweather.WeatherResponse
import com.ignation.weatherapp.network.model.futureweather.FutureForecastResponse
import com.ignation.weatherapp.viewmodel.WeatherViewModel
impo... |
app/src/main/java/com/example/gitbuddy/data/local/room/FavoriteRoomDb.kt | unknown_repo | kotlin | package com.example.gitbuddy.data.local.room
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.example.gitbuddy.data.local.entity.UserEntity
@Database(entities = [UserEntity::class], version = 1)
abstract class FavoriteRoomDb : RoomData... |
compose/ui/ui/src/desktopMain/kotlin/androidx/compose/ui/res/PainterResources.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... |
mvi-sample/src/main/java/com/gartesk/mosbyx/mvi/sample/view/shoppingcartoverview/ShoppingCartItemViewHolder.kt | unknown_repo | kotlin | /*
* Copyright 2020 MosbyX 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-2.0
*
* Unless required by applicable law or agreed... |
jetpack/src/main/java/com/example/jetpack/User.kt | unknown_repo | kotlin | package com.example.jetpack
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class User(var firstName:String,var lastName:String,var age:Int){
@PrimaryKey(autoGenerate = true)
var id:Long = 0
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.