file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
common-view/src/main/java/ru/boronin/common/view/viewpager2/ViewPagerFragmentAdapter.kt | unknown_repo | kotlin | package ru.boronin.cardtasker.common.presentation
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
class ViewPagerFragmentAdapter(
activity: FragmentActivity
) : FragmentStateAdapter(activity) {
private val items: Muta... |
app/src/main/java/com/hzm/sharedpreference/PropertyListAdapter.kt | unknown_repo | kotlin | package com.hzm.sharedpreference
import android.app.AlertDialog
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.recyclerview.widget.DiffUtil
im... |
todoapp/app/src/mock/java/com/example/android/architecture/blueprints/todoapp/data/FakeTasksRemoteDataSource.kt | unknown_repo | kotlin | /*
* Copyright 2016, 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 applic... |
TenextllSDKDemo/app/src/main/java/com/tenext/demo/adapter/ListHolder.kt | unknown_repo | kotlin | package com.tenext.demo.adapter
import android.content.Context
import android.view.ViewGroup
import com.tenext.demo.holder.BaseHolder
abstract class ListHolder<T : Any> : BaseHolder<T> {
constructor(context: Context, root: ViewGroup, resLayout: Int) : super(context, root, resLayout)
} |
app/src/main/java/com/sakethh/linkora/ui/screens/settings/specific/advanced/site_specific_user_agent/SiteSpecificUserAgentScreenVM.kt | unknown_repo | kotlin | package com.sakethh.linkora.ui.screens.settings.specific.advanced.site_specific_user_agent
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.sakethh.linkora.data.local.SiteSpecificUserAgent
import com.sakethh.linkora.data.local.links.LinksRepo
import com.sakethh.linkora.data.local... |
android/src/main/kotlin/com/difrancescogianmarco/arcore_flutter_plugin/ArCoreAugmentedImagesView.kt | unknown_repo | kotlin | package com.difrancescogianmarco.arcore_flutter_plugin
import android.app.Activity
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.util.Log
import android.util.Pair
import com.difrancescogianmarco.arcore_flutter_plugin.flutter_models.FlutterArCoreNode
... |
app/src/main/java/at/jku/enternot/service/CameraMovementServiceImpl.kt | unknown_repo | kotlin | package at.jku.enternot.service
import android.app.Application
import android.arch.lifecycle.MutableLiveData
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.util.Log
import... |
app/src/main/java/com/amitranofinzi/vimata/data/model/TestSet.kt | unknown_repo | kotlin | package com.amitranofinzi.vimata.data.model
import androidx.annotation.NonNull
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.PrimaryKey
/**
* Represents a set of tests created by a trainer for an athlete.
* This is a Room entity annotated for database table creation.
* The `test... |
sample-compose-fragments/src/main/java/uk/gov/hmrc/sample_compose_fragments/navigator/Navigator.kt | unknown_repo | kotlin | /*
* Copyright 2023 HM Revenue & Customs
*
* 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 a... |
app/src/main/java/com/nandra/myschool/adapter/ChatDetailListAdapter.kt | unknown_repo | kotlin | package com.nandra.myschool.adapter
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.ale.infra.manager.IMMessage
import com.nandra.myschool.adapter.viewholder.ChatDetailReceivedMessageV... |
app/src/main/java/com/william/easykt/widget/ClockView.kt | unknown_repo | kotlin | /*
* Copyright WeiLianYang
*
* 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/baruckis/kriptofolio/binding/BindingAdapters.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 <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 ... |
android/src/main/java/com/komoju/android/sdk/ui/screens/webview/WebChromeClient.kt | unknown_repo | kotlin | package com.komoju.android.sdk.ui.screens.webview
import android.webkit.ConsoleMessage
import com.kevinnzou.web.AccompanistWebChromeClient
internal class WebChromeClient : AccompanistWebChromeClient() {
override fun onConsoleMessage(consoleMessage: ConsoleMessage): Boolean = true
}
|
app/src/androidTest/java/com/cheise_proj/translator_ui_challenge/AddLanguageActivityTest.kt | unknown_repo | kotlin | package com.cheise_proj.translator_ui_challenge
import android.view.View
import android.view.ViewGroup
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.... |
app/src/main/java/com/parsanatech/crazycoder/Adapters/contestInfoAdapter.kt | unknown_repo | kotlin | package com.parsanatech.crazycoder.Adapters
import android.content.Context
import android.content.Intent
import android.provider.CalendarContract
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextV... |
app/src/main/java/gmikhail/notes/viewmodel/EditViewModel.kt | unknown_repo | kotlin | package gmikhail.notes.viewmodel
import androidx.lifecycle.*
private const val MAX_UNDO = 1024
internal const val NEW_NOTE_ID = -1
class EditViewModel(
private var _noteId: Int
) : ViewModel() {
val noteId: Int
get() = _noteId
private val history = mutableListOf<HistoryRecord>()
private var i... |
app/src/main/java/com/finderbar/jovian/viewmodels/discuss/DiscussVoteVM.kt | unknown_repo | kotlin | package com.finderbar.jovian.viewmodels.discuss
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.ViewModel
import android.support.v4.content.ContextCompat
import android.view.View
import com.apollographql.apollo.ApolloMutationCall
import com.finderbar.jovian.R
import com.finderbar.jovian.apo... |
app/src/main/java/com/android/airmart/viewmodel/PostProductViewModel.kt | unknown_repo | kotlin | package com.android.airmart.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.android.airmart.data.api.model.ProductResponse
import com.android.airmart.data.entity.Product
import com.android.air... |
app/src/main/java/com/example/pokescanner/screens/HomeScreen.kt | unknown_repo | kotlin | package com.example.pokescanner.screens
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import andr... |
app/src/main/java/com/example/sumador/ui/SummaryScreen.kt | unknown_repo | kotlin | /*
* Copyright (C) 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
examples/purchase-tester/src/main/java/com/revenuecat/purchasetester/ConfigureFragment.kt | unknown_repo | kotlin | package com.revenuecat.purchasetester
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecy... |
app/src/main/java/kr/sjh/myschedule/ui/theme/Theme.kt | unknown_repo | kotlin | package com.example.pogoda.presentation.ui.theme
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
@Composable
fun WeatherAppTheme(content: @Composable () -> Unit) {
MaterialTheme(
typography = Typography,
shapes = Shapes,
content = content
)
} |
library/src/main/java/com/kroegerama/imgpicker/BottomSheetImagePicker.kt | unknown_repo | kotlin | package com.kroegerama.imgpicker
import android.annotation.SuppressLint
import android.app.Activity.RESULT_OK
import android.app.Dialog
import android.content.Intent
import android.content.pm.PackageManager
import android.database.Cursor
import android.net.Uri
import android.os.Bundle
import android.os.Environment
imp... |
app/src/main/java/br/com/william/fernandes/srp/LavaLoucas.kt | unknown_repo | kotlin | package br.com.william.fernandes.srp
import android.util.Log
class LavaLoucas {
var loucaLavada = false
fun lavarLouca() {
loucaLavada = true
}
}
|
camera/integration-tests/timingtestapp/src/main/java/androidx/camera/integration/antelope/cameracontrollers/CameraXDeviceStateCallback.kt | unknown_repo | kotlin | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
app/src/main/java/com/example/launchcontrol/generals/utils/GetStringResource.kt | unknown_repo | kotlin | package com.example.launchcontrol.generals.utils
import android.content.Context
open class GetStringResource(private val context: Context) {
fun getStringRes(resource: Int): String {
return context.getString(resource)
}
} |
mineinabyss-features/src/main/kotlin/com/mineinabyss/features/guilds/menus/GuildJoinRequestScreen.kt | unknown_repo | kotlin | package com.mineinabyss.features.guilds.menus
import androidx.compose.runtime.Composable
import com.mineinabyss.features.abyss
import com.mineinabyss.features.guilds.database.GuildJoinType
import com.mineinabyss.features.guilds.database.GuildMessageQueue
import com.mineinabyss.features.guilds.extensions.*
import com.m... |
src/main/kotlin/com/github/plplmax/simulator/restaurant/RestaurantStateOf.kt | unknown_repo | kotlin | package com.github.plplmax.simulator.restaurant
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import kotlin.time.Duration
import kotlin.time.DurationUnit
import kotlin.time.toDuration
data class RestaurantStateOf(
override var customersInterval: MutableState<Duration>... |
idea-plugin/src/main/kotlin/org/jetbrains/compose/desktop/idea/preview/PreviewRunConfigurationProducer.kt | unknown_repo | kotlin | /*
* Copyright 2020-2021 JetBrains s.r.o. and respective authors and developers.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package org.jetbrains.compose.desktop.idea.preview
import com.intellij.execution.actions.ConfigurationContext
import com.int... |
app/src/main/java/com/slobodanantonijevic/simpleopenweatherkt/di/AppModule.kt | unknown_repo | kotlin | /*
* Copyright (C) 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 ... |
shared/src/test/java/com/google/samples/apps/iosched/test/util/FakeAppDatabase.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/twotone/Emptywallettick.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.twotone
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
import androidx... |
samples/tutorial/tutorial-3-complete/src/main/java/workflow/tutorial/TodoListLayoutRunner.kt | unknown_repo | kotlin | package workflow.tutorial
import androidx.recyclerview.widget.LinearLayoutManager
import com.squareup.workflow1.ui.LayoutRunner
import com.squareup.workflow1.ui.LayoutRunner.Companion.bind
import com.squareup.workflow1.ui.ViewEnvironment
import com.squareup.workflow1.ui.ViewFactory
import com.squareup.workflow1.ui.Wor... |
presentation/src/main/java/com/jyproject/presentation/ui/feature/home/composable/PlaceBlocks.kt | unknown_repo | kotlin | package com.jyproject.presentation.ui.feature.home.composable
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.... |
collector-media3-exoplayer/src/main/java/com/bitmovin/analytics/media3/exoplayer/features/Media3ExoPlayerHttpRequestTrackingAdapter.kt | unknown_repo | kotlin | package com.bitmovin.analytics.media3.exoplayer.features
import android.net.Uri
import android.util.Log
import androidx.media3.common.C
import androidx.media3.common.Timeline
import androidx.media3.common.util.UnstableApi
import androidx.media3.common.util.Util.inferContentType
import androidx.media3.datasource.HttpDa... |
uilib/src/main/java/dev/entao/kan/grid/GridPage.kt | unknown_repo | kotlin | package dev.entao.kan.grid
import android.content.Context
import android.view.View
import android.widget.AdapterView
import android.widget.LinearLayout
import android.widget.RelativeLayout
import android.widget.TextView
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import dev.entao.kan.appbase.Task
impo... |
data/src/main/java/com/m3u/data/repository/programme/ProgrammeRepositoryImpl.kt | unknown_repo | kotlin | package com.m3u.data.repository.programme
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.m3u.core.architecture.dispatcher.Dispatcher
import com.m3u.core.architecture.dispatcher.M3uDispatchers.IO
import com.m3u.core.architecture.logger.Logger
import com.m3u... |
composeApp/src/commonMain/kotlin/features/workoutPlanDetail/WorkoutDetailScreenViewModel.kt | unknown_repo | kotlin | package features.workoutPlanDetail
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import domain.model.gym.ExerciseProgress
import domain.model.gym.WorkoutPlan
import domain.repository.IGymRepository
import domain.usecase.GetExerciseListByWorkoutPlanUseCase
import domain.usecase.GetWorkout... |
areminder/src/main/java/ir/awlrhm/areminder/view/reminder/AddReminderFragment.kt | unknown_repo | kotlin | package ir.awlrhm.areminder.view.reminder
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.lifecycle.Lifecycle
import com.google.android.material.chip.Chip
im... |
FluentUI.Demo/src/main/java/com/microsoft/fluentuidemo/V2DesignTokensActivity.kt | unknown_repo | kotlin | package com.microsoft.fluentuidemo
import android.os.Bundle
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
imp... |
modules/alertdialog/src/androidMain/kotlin/splitties/alertdialog/AlertDialog.kt | unknown_repo | kotlin | /*
* Copyright 2019 <NAME>. Use of this source code is governed by the Apache 2.0 license.
*/
package splitties.alertdialog.appcompat
import android.app.Activity
import android.content.Context
import android.content.DialogInterface
import android.graphics.drawable.Drawable
import android.widget.Button
import androi... |
compose/ui-layout-common/src/commonMain/kotlin/com/bselzer/ktx/compose/ui/layout/lazyrow/LazyRowProjector.kt | unknown_repo | kotlin | package com.bselzer.ktx.compose.ui.layout.lazyrow
import androidx.compose.foundation.lazy.LazyItemScope
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.runtime.Composable
import androidx.c... |
sphinx/screens/dashboard/dashboard/src/main/java/chat/sphinx/dashboard/ui/adapter/ChatListAdapter.kt | unknown_repo | kotlin | package chat.sphinx.dashboard.ui.adapter
import android.graphics.Color
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.ImageView
import androidx.lifecycle.*
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recycl... |
app/src/main/java/ca/rovbot/flowtracker/repository/LogRepository.kt | unknown_repo | kotlin | package ca.rovbot.flowtracker.repository
import android.arch.persistence.room.Room
import android.content.Context
import ca.rovbot.flowtracker.model.PeriodLogTable
import ca.rovbot.flowtracker.repository.database.LogDatabase
class LogRepository(private val applicationContext: Context) {
private var database: Log... |
app/src/main/java/com/bengisusahin/gallery/MainActivity.kt | unknown_repo | kotlin | package com.bengisusahin.gallery
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.viewModels
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/twotone/Quotedownsquare.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.twotone
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
import androidx... |
android-basics-kotlin-bus-schedule-app/app/src/main/java/com/example/busschedule/FullScheduleFragment.kt | unknown_repo | kotlin | package com.example.busschedule
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.coroutineScope
import androidx.navigation.findNavController
... |
library/src/main/java/moe/feng/common/stepperview/VerticalStepperItemView.kt | unknown_repo | kotlin | package moe.feng.common.stepperview
import android.animation.LayoutTransition
import android.animation.ObjectAnimator
import android.animation.ValueAnimator
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import a... |
NLiteAVDemo-Android-Java/call-ui/src/main/java/com/netease/yunxin/nertc/ui/service/CallKitUIBridgeService.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/
package com.netease.yunxin.nertc.ui.service
import android.content.Context
import android.text.TextUtils
import com.netease.nimlib.sdk.ResponseCode
import co... |
app/src/main/java/com/example/moviedatabase/allMovies/presentation/AllMoviesScreen.kt | unknown_repo | kotlin | package com.example.moviedatabase.allMovies.presentation
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
impo... |
app/src/main/java/com/auth0/android/lock/app/DemoActivity.kt | unknown_repo | kotlin | /*
* DemoActivity.java
*
* Copyright (c) 2022 Authok (http://authok.cn)
*
* 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
... |
Compose/BasicswithCompose/Reply/src/androidTest/java/com/github/reply/ReplyAppStateRestorationTest.kt | unknown_repo | kotlin | package com.github.reply
import androidx.activity.ComponentActivity
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
import androidx.compose.ui.test.assertAny
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.hasAnyDescendant
import androidx.compose.ui.test.hasText... |
Chapter01/Activity01.01/app/src/main/java/com/example/jetpackcompose/myapplication/MainActivity.kt | unknown_repo | kotlin | package com.example.jetpackcompose.myapplication
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.founda... |
multiplatform/src/iosSimulatorArm64Main/kotlin/com/vsevolodganin/clicktrack/Main.kt | unknown_repo | kotlin | package com.vsevolodganin.clicktrack
import androidx.compose.runtime.remember
import androidx.compose.ui.window.ComposeUIViewController
import com.arkivanov.decompose.DefaultComponentContext
import com.arkivanov.essenty.lifecycle.LifecycleRegistry
import com.vsevolodganin.clicktrack.di.component.ApplicationComponent
i... |
app/src/main/java/com/eatssu/android/ui/review/delete/DeleteViewModel.kt | unknown_repo | kotlin | package com.eatssu.android.ui.review.etc
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.eatssu.android.base.BaseResponse
import com.eatssu.android.data.dto.request.ModifyReviewRequest
import com.eatssu... |
app/src/main/kotlin/dev/sanmer/pi/ui/screens/sessions/SessionsScreen.kt | unknown_repo | kotlin | package dev.sanmer.pi.ui.screens.sessions
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compos... |
app/src/main/java/pl/vemu/zsme/ui/components/SimpleSmallAppBar.kt | unknown_repo | kotlin | package pl.vemu.zsme.ui.components
import androidx.annotation.StringRes
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.ArrowBack
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.SmallTopAppBar
import andro... |
compose-kit/src/main/java/com/nikoarap/compose_kit/composables/Expandables.kt | unknown_repo | kotlin | package com.nikoarap.compose_kit.composables
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.Row
import androidx.com... |
app/src/main/java/com/example/linkedup/HomeActivity.kt | unknown_repo | kotlin | package com.example.linkedup
import android.os.Bundle
import android.util.Log
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewMode... |
app/src/main/java/com/bossed/waej/ui/OrderSettleActivity.kt | unknown_repo | kotlin | package com.bossed.waej.ui
import android.os.Bundle
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.LinearLayoutManager
import com.blankj.utilcode.util.GsonUtils
import com.blankj.utilcode.util.LogUtils
import ... |
app/src/main/java/dev/patrickgold/florisboard/settings/SettingsMainActivity.kt | unknown_repo | kotlin | package dev.patrickgold.florisboard.settings
import android.content.Intent
import android.content.SharedPreferences
import android.net.Uri
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.ScrollView
import androidx.appcompat.app.AppCompatActi... |
app/src/main/java/com/babylon/wallet/android/presentation/ui/composables/assets/PoolUnitsTab.kt | unknown_repo | kotlin | package com.babylon.wallet.android.presentation.ui.composables.assets
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.fillMaxWi... |
app/src/main/java/de/dertyp7214/rboardthememanager/preferences/Repos.kt | unknown_repo | kotlin | package de.dertyp7214.rboardthememanager.preferences
import android.app.Activity.RESULT_OK
import android.content.Intent
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result... |
compose/foundation/foundation/integration-tests/foundation-demos/src/main/java/androidx/compose/foundation/demos/text2/ReceiveContentDemos.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... |
app/src/main/java/com/guoyi/listeninglove/ui/download/ui/TaskItemAdapter.kt | unknown_repo | kotlin | package com.cat.music.ui.download.ui
import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ProgressBar
import android.widget.TextView
import com.cat.mu... |
app/src/main/java/com/github/braillesystems/learnbraille/ui/screens/AbstractFragmentWithHelp.kt | unknown_repo | kotlin | package com.github.braillesystems.learnbraille.ui.screens
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import com.github.braillesystems.learnbraille.R
import com.github.braillesystems.learnbraille.ui.screens.help.HelpFragmentDirections
import com.github.braillesystems.learnbra... |
app/src/main/java/cc/sovellus/vrcaa/api/helper/StatusHelper.kt | unknown_repo | kotlin | package cc.sovellus.vrcaa.api.helper
import androidx.compose.ui.graphics.Color
class StatusHelper {
enum class Status {
JoinMe,
Active,
AskMe,
Busy,
Offline;
companion object {
fun toColor(status: Status): Color {
return when (status) {
... |
core/src/androidMain/kotlin/com/lhwdev/ktui/graphics/Path.kt | unknown_repo | kotlin | package com.lhwdev.ktui.graphics
import android.graphics.Path as APath
actual typealias FrameworkPath = APath
internal actual fun Path.toFrameworkPathInternal(): FrameworkPath {
TODO()
}
|
html-textview/src/main/java/com/saka/android/htmltextview/utility/ThumbnailLoader.kt | unknown_repo | kotlin | package com.saka.android.htmltextview.utility
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.media.MediaMetadataRetriever
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import jav... |
app/src/main/java/com/stocksexchange/android/database/model/DatabaseDeposit.kt | unknown_repo | kotlin | package com.stocksexchange.android.database.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.stocksexchange.api.model.rest.Deposit
import com.stocksexchange.android.database.model.DatabaseDeposit.Companion.TABLE_NAME
/**
* A Room database model for the [Dep... |
app-android/src/main/java/org/mtransit/android/data/AgencyBaseProperties.kt | unknown_repo | kotlin | package org.mtransit.android.data
import androidx.room.ColumnInfo
import androidx.room.Embedded
import androidx.room.Ignore
import com.google.android.gms.maps.model.LatLngBounds
import org.mtransit.android.commons.data.Area
import org.mtransit.android.data.IAgencyProperties.Companion.DEFAULT_LONG_VERSION_CODE
// all ... |
app/src/main/java/com/example/chat_bot/Room/Dao/SeedsDao.kt | unknown_repo | kotlin | package com.example.chat_bot.Room.Dao
import androidx.room.*
import com.example.chat_bot.Room.Relations.UserAndMessage
import com.example.chat_bot.data.R_Message
import com.example.chat_bot.data.User
import com.example.chat_bot.data.tryy.QuestItem
@Dao
interface SeedsDao{
@Transaction //Avoids Multithreading iss... |
app/src/main/java/com/herry/test/app/tflite/digitclassifier/DigitClassifierPresenter.kt | unknown_repo | kotlin | package com.herry.test.app.tflite.digitclassifier
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import com.herry.libs.util.tuple.Tuple1
import io.reactivex.Observable
import kotlinx.coroutines.Dispatchers
import java.util.concurrent.atomic.AtomicReference
class DigitClassifierPresenter : DigitC... |
library/src/test/java/com/github/skgmn/viewmodelevent/MultipleScreenHandleEvent.kt | unknown_repo | kotlin | package com.github.skgmn.viewmodelevent
import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.ViewModel
import androidx.test.ext.junit.rules.activitySce... |
medolylibrary/src/main/java/com/wa2c/android/medoly/library/PropertyData.kt | unknown_repo | kotlin | package com.wa2c.android.medoly.library
import android.net.Uri
/**
* Property data.
*/
open class PropertyData : ExtraData {
/**
* Constructor.
*/
constructor() : super()
/**
* Constructor.
* @param capacity The capacity.
*/
constructor(capacity: Int) : super(capacity)
... |
app/src/main/java/com/will/habit/ui/tab_bar/activity/TabBarActivity.kt | unknown_repo | kotlin | package com.will.habit.ui.tab_bar.activity
import android.os.Bundle
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import com.will.habit.BR
import com.will.habit.R
import com.will.habit.databinding.ActivityTabBarBinding
import com.will.habit.ui.tab_bar.fragment.TabBar1Fragment
import ... |
ComponentImpl/src/main/java/com/xiaojinzi/component/impl/RouterDegrade.kt | unknown_repo | kotlin | package com.xiaojinzi.component.impl
import android.content.Intent
import com.xiaojinzi.component.anno.support.CheckClassNameAnno
/**
* 降级的一个接口, 使用 [com.xiaojinzi.component.anno.RouterDegradeAnno] 注解标记一个类为降级处理
*/
@CheckClassNameAnno
interface RouterDegrade {
/**
* 是否匹配这个路由
*
* @param request 路由请求... |
KotlinGames/app/src/main/java/com/mduranx64/kotlingames/ChessGame.kt | unknown_repo | kotlin | package com.mduranx64.kotlingames
import android.content.res.Configuration
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.... |
app/src/main/java/com/grumpyshoe/lumos/core/data/src/network/dto/ImageDto.kt | unknown_repo | kotlin | package com.grumpyshoe.lumos.core.data.src.network.dto
import android.os.Parcel
import android.os.Parcelable
import java.util.Date
/**
* Network object
*
* Created by <NAME> on 10.06.19.
* Copyright © 2019 <NAME>. All rights reserved.
*/
data class ImageDto(
val uuid: String? = null,
val filename: String... |
AndroidBroadcastReceiverExample/app/src/main/java/com/waynestalk/broadcastreceiverexample/AirplaneModeBroadcastReceiver.kt | unknown_repo | kotlin | package com.waynestalk.broadcastreceiverexample
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast
class AirplaneModeBroadcastReceiver : BroadcastReceiver() {
companion object {
private const val TAG = "AirplaneModeBroadcast"
... |
app/src/main/java/com/thezayin/kainaclean/presentation/onboarding/OnBoardingScreen.kt | unknown_repo | kotlin | package com.thezayin.kainaclean.presentation.onboarding
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.fou... |
desktop/src/main/kotlin/app/softwork/composetodo/DesktopContainer.kt | unknown_repo | kotlin | package app.softwork.composetodo
import app.softwork.composetodo.repository.*
import app.softwork.composetodo.viewmodels.*
import com.squareup.sqldelight.db.*
import com.squareup.sqldelight.sqlite.driver.*
import io.ktor.client.*
import io.ktor.client.engine.cio.*
import io.ktor.client.features.*
import io.ktor.http.*... |
app/src/main/java/org/jnanaprabodhini/happyteacherapp/util/LocaleManager.kt | unknown_repo | kotlin | package org.jnanaprabodhini.happyteacherapp.util
import android.content.Context
import android.content.res.Configuration
import android.os.Build
import org.jnanaprabodhini.happyteacherapp.R
import java.util.*
/**
* A singleton object for managing language in the app.
*
* 🙏
* Thanks to this blog post:
* http... |
app-feature/home/src/iosMain/kotlin/dev/sergiobelda/todometer/app/feature/home/ui/HomeMoreDropdownMenu.kt | unknown_repo | kotlin | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
moreapps/src/main/java/io/github/raghavsatyadev/moreapps/utils/MoreAppsPrefUtil.kt | unknown_repo | kotlin | @file:Suppress("MemberVisibilityCanBePrivate")
package io.github.raghavsatyadev.moreapps.utils
import android.content.Context
import android.text.TextUtils
import com.google.gson.Gson
import com.google.gson.JsonSyntaxException
import com.google.gson.reflect.TypeToken
import io.github.raghavsatyadev.moreapps.kotlinFil... |
app/src/main/java/chat/rocket/android/helper/ImageHelper.kt | unknown_repo | kotlin | package chat.rocket.android.helper
import android.Manifest
import android.app.Activity
import android.content.Context
import android.graphics.Color
import android.graphics.Typeface
import android.media.MediaScannerConnection
import android.os.Environment
import android.text.TextUtils
import android.util.TypedValue
imp... |
app/src/main/java/com/frafio/myfinance/data/storage/UserStorage.kt | unknown_repo | kotlin | package com.frafio.myfinance.data.storage
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.frafio.myfinance.data.model.User
import com.google.firebase.auth.FirebaseUser
import java.util.Calendar
object MyFinanceStorage {
private var privateUser: User? = null
val user: Us... |
palumu-lib/src/main/java/tw/invictus/palumu/ScalablePageFrame.kt | unknown_repo | kotlin | package tw.invictus.palumu
import android.content.Context
import android.support.constraint.ConstraintLayout
import android.support.constraint.ConstraintSet
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.view.MotionEventCompat
import android.support.v4.vi... |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/remote_edit/RemoteEditViewModel.kt | unknown_repo | kotlin | package ch.rmy.android.http_shortcuts.activities.remote_edit
import android.app.Application
import androidx.core.net.toUri
import androidx.lifecycle.viewModelScope
import ch.rmy.android.framework.extensions.context
import ch.rmy.android.framework.extensions.logException
import ch.rmy.android.framework.utils.localizati... |
codegen/src/main/kotlin/com/android/designcompose/codegen/BuilderProcessor.kt | unknown_repo | kotlin | /*
* Copyright 2023 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... |
app/src/main/java/com/vitorpamplona/amethyst/ui/components/UrlPreviewCard.kt | unknown_repo | kotlin | package com.vitorpamplona.amethyst.ui.components
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundatio... |
app/src/main/kotlin/io/element/android/x/initializer/TracingInitializer.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022 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/hulkrent/app/ui/profile/about/why_Host/SlidingImageAdapter.kt | unknown_repo | kotlin | package com.hulkrent.app.ui.profile.about.why_Host
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.viewpager.widget.PagerAdapter
import com.hulkrent.app.Constants
impo... |
app/src/main/java/com/bruno13palhano/shopdanimanagement/ui/screens/catalog/CatalogScreen.kt | unknown_repo | kotlin | package com.bruno13palhano.shopdanimanagement.ui.screens.catalog
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.l... |
simplified-tests/src/test/java/org/nypl/simplified/tests/http/refresh_token/time_tracking/TimeTrackingRefreshTokenTest.kt | unknown_repo | kotlin | package org.nypl.simplified.tests.http.refresh_token.time_tracking
import android.content.Context
import com.fasterxml.jackson.databind.ObjectMapper
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Assertions
import... |
octicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/octicons/octicons/ShieldX16.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... |
app/src/main/java/com/ml512/mvp/demo/ui/fragment/TestFragmentDialog.kt | unknown_repo | kotlin | package com.ml512.mvp.demo.ui.fragment
import android.os.Bundle
import android.view.View
import android.widget.Toast
import com.ml512.base.BaseDialogFragment
import com.ml512.mvp.demo.R
import kotlinx.android.synthetic.main.dialog_fragment_test.*
/**
* 功能描述:测试弹窗
* Created by MaLong on 2019-08-21 18:09.
*/
class Te... |
app/src/main/java/uz/javokhirjambulov/notes/database/DeletedNoteDatabase.kt | unknown_repo | kotlin | package uz.javokhirjambulov.notes.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [Note::class], version = 1)
abstract class DeletedNoteDatabase: RoomDatabase(){
companion object {
private var notesData... |
app/src/main/java/com/nilhcem/blenamebadge/core/android/ext/ViewExt.kt | unknown_repo | kotlin | package org.fossasia.badgemagic.core.android.ext
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
fun View.showKeyboard() {
postDelayed({
val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
imm.showSoftInp... |
core/src/main/java/com/kylix/core/ui/UserAdapter.kt | unknown_repo | kotlin | package com.ferdian.core.ui
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.ferdian.core.databinding.ItemUserListBinding
import com.ferdian.core.domain.model.User
class UserAdapter(private val user: ArrayList<User>, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.