file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
wallet/src/main/java/com/fzm/chat/wallet/ui/coins/CoinViewModel.kt | unknown_repo | kotlin | package com.fzm.chat.wallet.ui.coins
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.asLiveData
import com.fzm.chat.biz.base.AppConst
import com.fzm.chat.core.session.LoginDelegate
import com.fzm.wallet.sdk.BWallet
import com.fzm.wallet.sdk.db.entity.AddCoinTabBea... |
app/src/main/java/com/raheemjnr/jr_music/ui/components/BottomNavBar.kt | unknown_repo | kotlin | package com.raheemjnr.jr_music.ui.components
import MainScreen
import android.annotation.SuppressLint
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import... |
codebase/android/feature/accounts/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/feature/accounts/edit_account/viewmodel/EditAccountScreenViewModel.kt | unknown_repo | kotlin | package com.makeappssimple.abhimanyu.financemanager.android.feature.accounts.edit_account.viewmodel
import androidx.compose.ui.text.TextRange
import androidx.compose.ui.text.input.TextFieldValue
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.viewModelScope
import com.makeappssimple.abhimanyu.fina... |
longan/src/main/java/com/dylanc/longan/SystemBars.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021. Dylan Cai
*
* 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 t... |
app/src/main/java/com/jinesh/mpokket/modules/repodetail/viewmodel/OwnerViewModel.kt | unknown_repo | kotlin | package com.jinesh.mpokket.modules.repodetail.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.jinesh.mpokket.entity.Repo
import com.jinesh.mpokket.entity.Owner
import com.jinesh.mpokket.repo.OwnerRepo
import kotlinx.coroutines.... |
app/src/main/java/com/faldez/shachi/ui/search/SearchSuggestionAdapter.kt | unknown_repo | kotlin | package com.faldez.shachi.ui.search
import android.content.res.ColorStateList
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.faldez.shachi.R
import ... |
app/src/main/java/com/faldez/shachi/ui/search/SearchSuggestionAdapter.kt | unknown_repo | kotlin | package com.faldez.shachi.ui.search
import android.content.res.ColorStateList
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.faldez.shachi.R
import ... |
src/app/src/main/java/com/cunyn/android/financesystem/ResultActivity.kt | unknown_repo | kotlin | package com.cunyn.android.financesystem
import android.app.Activity
import android.os.AsyncTask
import android.os.Bundle
import android.os.Handler
import android.os.Message
import android.text.method.ScrollingMovementMethod
import android.util.Log
import android.view.View
import android.widget.ProgressBar
import andro... |
app/src/main/java/dev/kingbond/moveon/ui/packageandmovers/fragMov/itemList/ItemList.kt | unknown_repo | kotlin | package dev.kingbond.moveon.ui.packageandmovers.fragMov.itemList
import android.content.Context
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.wi... |
compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/Column.kt | unknown_repo | kotlin | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/my/homecloud/ui/watercounter/WaterCounter.kt | unknown_repo | kotlin | package com.my.homecloud.ui.watercounter
import android.annotation.SuppressLint
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.c... |
app/src/main/java/io/plaidapp/ui/PlaidApplication.kt | unknown_repo | kotlin | /*
* Copyright 2018 Google LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
rx-validation-errors/src/main/java/by/shostko/rxvalidation/StringValidator.kt | unknown_repo | kotlin | @file:Suppress("unused")
package by.shostko.rxvalidation
import android.text.TextUtils
import by.shostko.errors.ErrorCode
import by.shostko.rxvalidation.errors.BaseValidationErrorCode
import by.shostko.rxvalidation.errors.ValidationError
private class StringValidationException(code: ErrorCode) : ValidationError(code... |
permission-flow/src/main/java/dev/shreyaspatil/permissionFlow/internal/ApplicationStateMonitor.kt | unknown_repo | kotlin | /**
* Copyright 2022 Shreyas Patil
*
* 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/fitken/lanchat/thread/SendMessageAsync.kt | unknown_repo | kotlin | package com.fitken.lanchat.thread
import android.os.AsyncTask
import com.fitken.lanchat.MyApplication
import java.io.BufferedWriter
import java.io.IOException
import java.io.OutputStreamWriter
import java.io.PrintWriter
import java.net.Socket
import java.net.UnknownHostException
/**
* Created by ken on 12/28/17.
*/... |
app/src/main/java/app/odapplications/bitstashwallet/modules/settings/basecurrency/BaseCurrencySettingsView.kt | unknown_repo | kotlin | package app.odapplications.bitstashwallet.modules.settings.basecurrency
import androidx.lifecycle.MutableLiveData
class BaseCurrencySettingsView : BaseCurrencySettingsModule.IView {
val currencyItems = MutableLiveData<List<CurrencyViewItem>>()
override fun show(items: List<CurrencyViewItem>) {
curren... |
kplotandroidlib/src/androidTest/java/dev/curlybraces/kplot/UiUtilsTests.kt | unknown_repo | kotlin | package dev.curlybraces.kplot
import android.content.Context
import android.util.TypedValue
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.rule.ActivityTestRule
import org.junit.Assert.*
import org.junit.Before
import org.junit.Rule
i... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Star.kt | unknown_repo | kotlin | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... |
app/src/main/java/com/example/Tapatan/ui/GameViewModel.kt | unknown_repo | kotlin | package com.example.Tapatan.ui
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
class GameViewModel : ViewModel() {
var buttons = Array(3) { arrayOfNulls<String>(3) }
var currentPlayer = mutableStateOf("Black")
var roundCount = 0
var gameEnded = mutableStateOf(false)
... |
app/src/main/java/com/example/rollcall/navigation/DeepLinkFragment.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
app/src/main/java/app/runchallenge/view/fragment/preferences/PreferenceFragment.kt | unknown_repo | kotlin | package app.runchallenge.view.fragment.preferences
import android.content.Context
import android.os.Bundle
import com.takisoft.preferencex.PreferenceFragmentCompat
import android.view.View
import androidx.navigation.fragment.findNavController
import androidx.preference.ListPreference
import androidx.preference.SwitchP... |
sandbox/src/jsMain/showcases/MDCFormField.kt | unknown_repo | kotlin | package showcases
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import dev.petuska.katalog.runtime.Showcase
import dev.petuska.katalog.runtime.layout.InteractiveShowcase
import dev.petuska.kmdc... |
library/src/main/java/ru/yandex/money/android/sdk/impl/secure/BcKeyStorage.kt | unknown_repo | kotlin | /*
* The MIT License (MIT)
* Copyright © 2018 NBCO Yandex.Money LLC
*
* 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... |
app/src/main/java/quick/sms/quicksms/backend/RuntimePermissions.kt | unknown_repo | kotlin | package quick.sms.quicksms.backend
import android.app.Activity
import android.content.pm.PackageManager
import android.support.v4.app.ActivityCompat
import android.support.v4.content.ContextCompat
fun getPermissions(activity: Activity, permissions: Array<String>): Boolean {
val requiredPermissions = permissions.f... |
kotlin/src/main/java/app/rive/runtime/kotlin/core/Renderer.kt | unknown_repo | kotlin | package app.rive.runtime.kotlin.core
import android.graphics.Canvas
import android.graphics.Matrix
import android.graphics.Paint
import android.graphics.Path
/**
* A [Renderer] is used to help draw an [Artboard] to a [Canvas]
*
* This object has a counterpart in c++, which implements a lot of functionality.
* Th... |
kotlin/src/main/java/app/rive/runtime/kotlin/core/Renderer.kt | unknown_repo | kotlin | package app.rive.runtime.kotlin.core
import android.graphics.Canvas
import android.graphics.Matrix
import android.graphics.Paint
import android.graphics.Path
/**
* A [Renderer] is used to help draw an [Artboard] to a [Canvas]
*
* This object has a counterpart in c++, which implements a lot of functionality.
* Th... |
data/src/main/kotlin/team/duckie/app/android/data/exam/paging/ExamMeFollowingPagingSource.kt | unknown_repo | kotlin | /*
* Designed and developed by Duckie Team, 2022
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/duckie-android/blob/develop/LICENSE
*/
@file:Suppress("TooGenericExceptionCaught")
package team.duckie.app.android.data.exam.paging
import androidx.paging.PagingSource
import an... |
app/src/main/java/com/faranjit/meditory/features/home/presentation/adapter/story/StoriesAdapter.kt | unknown_repo | kotlin | package com.faranjit.meditory.features.home.presentation.adapter.story
import android.view.LayoutInflater
import android.view.ViewGroup
import com.faranjit.meditory.base.BaseRecyclerAdapter
import com.faranjit.meditory.databinding.ListItemStoryBinding
import com.faranjit.meditory.features.home.presentation.model.Story... |
app/src/main/java/com/faranjit/meditory/features/home/presentation/adapter/story/StoriesAdapter.kt | unknown_repo | kotlin | package com.faranjit.meditory.features.home.presentation.adapter.story
import android.view.LayoutInflater
import android.view.ViewGroup
import com.faranjit.meditory.base.BaseRecyclerAdapter
import com.faranjit.meditory.databinding.ListItemStoryBinding
import com.faranjit.meditory.features.home.presentation.model.Story... |
composeApp/src/desktopMain/kotlin/me/gustavolopezxyz/desktop/screens/overviewScreen/ExpensesSummaryCard.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023. Gustavo López. All rights reserved.
*/
package me.gustavolopezxyz.desktop.screens.overviewScreen
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.S... |
app/src/main/java/com/setianjay/githubuser/utill/AppUtil.kt | unknown_repo | kotlin | package com.setianjay.githubuser.utill
import android.content.Context
import android.widget.Toast
object AppUtil {
fun showToast(context: Context, message: String){
Toast.makeText(context, message, Toast.LENGTH_SHORT).show()
}
} |
common/src/main/java/com/ishow/common/widget/viewpager/looping/indicator/DefaultLoopingIndicator.kt | unknown_repo | kotlin | package dev.hitools.common.widget.viewpager.looping.indicator
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import dev.hitools.common.utils.UnitUtils
import dev.hitools.common.widget.viewpager.looping.ILoopingIndicator
/**
* Created by yuhaiyang on 2018/9/13.
* 默认的
*/
... |
android/sdk/src/main/java/clover/studio/sdk/call/RoomMessageHandler.kt | unknown_repo | kotlin | package clover.studio.sdk.call
import androidx.annotation.WorkerThread
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
import org.mediasoup.droid.Consumer
import org.mediasoup.droid.Logger
import org.protoojs.droid.Message
import java.util.concurrent.ConcurrentHashMap
internal open ... |
app/src/main/java/chat/rocket/android/app/RocketChatApplication.kt | unknown_repo | kotlin | package chat.rocket.android.app
import android.app.Activity
import android.app.Application
import android.app.Service
import chat.rocket.android.BuildConfig
import chat.rocket.android.dagger.DaggerAppComponent
import chat.rocket.android.helper.CrashlyticsTree
import chat.rocket.android.server.domain.GetCurrentServerIn... |
app/src/main/java/com/coffee/shop/domain/models/DomainCoffeeCategory.kt | unknown_repo | kotlin | package com.coffee.shop.domain.models
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class DomainCoffeeCategory(
val category: String,
val items: List<DomainCoffee>
) : Parcelable |
android/src/main/java/com/splashscreen/SplashScreen.kt | unknown_repo | kotlin | package com.splashscreen
import android.app.Activity
import android.app.Dialog
import android.os.Build
import android.view.WindowManager
import java.lang.ref.WeakReference
object SplashScreen {
private var mSplashDialog: Dialog? = null
private var mActivity: WeakReference<Activity>? = null
fun show(activity: A... |
androidApp/src/main/java/com/muneeb_dev/medicinetime_cmp/android/BaseApplication.kt | unknown_repo | kotlin | package com.muneeb_dev.medicinetime_cmp.android
import android.app.Application
import com.muneeb_dev.medicinetime_cmp.di.initKoin
import org.koin.android.ext.koin.androidContext
class BaseApplication(): Application()
{
override fun onCreate() {
super.onCreate()
initKoin{
androidContex... |
app/src/main/java/com/yenaly/han1meviewer/ui/fragment/home/WatchHistoryFragment.kt | unknown_repo | kotlin | package com.yenaly.han1meviewer.ui.fragment.home
import android.os.Bundle
import androidx.lifecycle.flowWithLifecycle
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
imp... |
domain/src/main/java/com/technicalassigments/movieapp/domain/repository/reviews/ReviewsRepository.kt | unknown_repo | kotlin | package com.technicalassigments.movieapp.domain.repository.reviews
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.technicalassigments.movieapp.domain.usecase.FetchReviewsUseCase
import com.technicalassigments.movieapp.network.dto.ReviewsResponse
import com... |
app/src/main/java/com/singhgeetgovind/notes/di/module/DatabaseModule.kt | unknown_repo | kotlin | package com.singhgeetgovind.notes.di.module
import android.app.Application
import androidx.room.Room
import com.singhgeetgovind.notes.dao.NotesDao
import com.singhgeetgovind.notes.database.Migration
import com.singhgeetgovind.notes.database.NotesDatabase
import com.singhgeetgovind.notes.repository.Repository
import c... |
smart-form/src/main/java/com/teleclinic/kabdo/smartform/EditText/SmartEditText.kt | unknown_repo | kotlin | package com.teleclinic.kabdo.smartform
import android.content.Context
import android.util.AttributeSet
import android.util.Patterns
import android.view.View
import android.widget.FrameLayout
import java.util.regex.Pattern
import com.pawegio.kandroid.d
import android.text.InputType
import com.pawegio.kandroid.textWatch... |
features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemReactionsLayout.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/android/example/popularmovies/ui/detail/DetailViewModel.kt | unknown_repo | kotlin | package com.android.example.popularmovies.ui.detail
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.android.example.popularmovies.database.FavMovieDatabase
import c... |
app/src/main/java/com/example/qrcodescanner/QRcodeMainActivity.kt | unknown_repo | kotlin | package com.example.qrcodescanner
import android.Manifest
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Size
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.compose.setContent
import androidx.activity.result.contract.ActivityResultCont... |
compose/ui/ui-graphics/src/desktopMain/kotlin/androidx/compose/ui/graphics/DesktopCanvas.desktop.kt | unknown_repo | kotlin | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
sample/src/main/kotlin/pl/codesamurai/latte/sample/MainFragment.kt | unknown_repo | kotlin | package pl.codesamurai.latte.sample
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.ArrayAdapter
import androidx.fragment.app.Fragment
import pl.codesamurai.latte.sample.databinding.FragmentMainBinding
class MainFragment : Fragment(R.layout.fragment_main) {
p... |
canvas/src/main/java/com/angcyo/canvas/core/component/ControlHandler.kt | unknown_repo | kotlin | package com.angcyo.canvas.core.component
import android.graphics.PointF
import android.graphics.RectF
import android.view.MotionEvent
import androidx.core.graphics.contains
import com.angcyo.canvas.CanvasDelegate
import com.angcyo.canvas.core.CanvasViewBox
import com.angcyo.canvas.core.ICanvasTouch
import com.angcyo.c... |
app/src/main/java/com/fkuper/metronome/MetronomeApplication.kt | unknown_repo | kotlin | package com.fkuper.metronome
import android.app.Application
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.os.Build
import android.os.... |
app/src/main/java/bruhcollective/itaysonlab/cobalt/ui/theme/Theme.kt | unknown_repo | kotlin | package bruhcollective.itaysonlab.jetisteam.ui.theme
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material... |
app/src/main/java/com/example/bomber/presentation/GameViewModel.kt | unknown_repo | kotlin | package com.example.bomber.presentation
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.bomber.domain.GameEngine
import com.example.bomber.game.GameState
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.corou... |
sample/src/androidTest/java/com/freeletics/rxredux/PopularRepositoriesActivityTest.kt | unknown_repo | kotlin | package com.freeletics.coredux
import android.content.Intent
import android.support.test.espresso.Espresso
import android.support.test.espresso.ViewAction
import android.support.test.espresso.action.GeneralLocation
import android.support.test.espresso.action.GeneralSwipeAction
import android.support.test.espresso.acti... |
app/src/main/java/com/analytics/device/utils/UsageUtils.kt | unknown_repo | kotlin | package com.analytics.device.utils
import android.app.usage.UsageEvents
import android.app.usage.UsageStatsManager
import android.content.Context
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.analytics.device.helpers.DateTimeHelper
import com.analytics.device.migrations.AppUsageDat... |
lib/src/main/java/net/imoya/android/preference/controller/editor/list/MultiSelectionStringListFragmentEditor.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 IceImo-P
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
app/src/main/java/info/tuver/todo/ui/todo/todoTagSelect/TodoTagSelectAdapterViewHolderItem.kt | unknown_repo | kotlin | package info.tuver.todo.ui.todo.todoTagSelect
import androidx.databinding.ViewDataBinding
import info.tuver.todo.model.TagSelectModel
import kotlinx.android.synthetic.main.item_todo_tag_select.view.*
class TodoTagSelectAdapterViewHolderItem(viewDataBinding: ViewDataBinding) : TodoTagSelectAdapterViewHolder(viewDataBi... |
app/src/main/java/top/easelink/lcg/ui/search/source/SearchService.kt | unknown_repo | kotlin | package top.easelink.lcg.ui.search.source
import androidx.annotation.WorkerThread
import org.jsoup.nodes.Element
import org.jsoup.select.Elements
import timber.log.Timber
import top.easelink.lcg.R
import top.easelink.lcg.network.ApiClient
import top.easelink.lcg.ui.search.model.SearchResult
import top.easelink.lcg.ui.... |
app/src/main/java/com/coding/zxm/wanandroid/login/LoginActivity.kt | unknown_repo | kotlin | package com.coding.zxm.wanandroid.login
import android.app.Activity
import android.text.TextPaint
import android.text.TextUtils
import android.text.style.ClickableSpan
import android.view.View
import android.widget.Toast
import androidx.activity.viewModels
import androidx.lifecycle.Observer
import com.coding.zxm.core.... |
lol/app/src/main/java/com/tyhoo/android/lol/ui/ItemScreen.kt | unknown_repo | kotlin | package com.tyhoo.android.lol.ui
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import coil.... |
app/src/main/java/com/hfut/schedule/ui/Activity/success/search/Search/TotalCourse/CourseTotal.kt | unknown_repo | kotlin | package com.hfut.schedule.ui.Activity.success.search.Search.TotalCourse
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
impo... |
app/src/main/java/com/ingjuanocampo/enfila/android/ui/common/Activity+Ext.kt | unknown_repo | kotlin | package com.ingjuanocampo.enfila.android.ui.common
import android.app.Activity
import android.content.Context
import android.view.inputmethod.InputMethodManager
fun Activity.hideKeyboard() {
val inputMethodManager = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
inputMethodManager.hideS... |
app/src/main/java/com/alpriest/energystats/ui/statsgraph/StatsDatePickerView.kt | unknown_repo | kotlin | package com.alpriest.energystats.ui.statsgraph
import android.widget.CalendarView
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layou... |
app/src/main/java/com/consistence/pinyin/domain/Database.kt | unknown_repo | kotlin | package com.consistence.pinyin.domain
import android.app.Application
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.consistence.pinyin.domain.pinyin.db.PinyinDao
import com.consistence.pinyin.domain.pinyin.db.PinyinEntity
import com.consistence.pinyin.domain.study.... |
app/src/main/java/br/com/movieapp/movie_popular_feature/domain/usecase/GetMoviesPopularUseCase.kt | unknown_repo | kotlin | package br.com.movieapp.movie_popular_feature.domain.usecase
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import br.com.movieapp.core.domain.Movie
import br.com.movieapp.movie_popular_feature.domain.repository.MoviePopularRepository
import kotlinx.coroutines.flow.Flow
import javax.inject.Injec... |
compose/compiler/compiler-hosted/integration-tests/src/jvmTest/kotlin/androidx/compose/compiler/plugins/kotlin/FunctionBodySkippingTransformTests.kt | unknown_repo | kotlin | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/concordium/wallet/ui/bakerdelegation/baker/BakerRegisterAmountActivity.kt | unknown_repo | kotlin | package com.concordium.wallet.ui.bakerdelegation.baker
import android.app.AlertDialog
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.view.inputmethod.EditorInfo
import androidx.core.widget.doOnTextChanged
import com.concordium.wallet.R
import com.concordium.wallet.data.b... |
context/src/main/java/dev/funkymuse/context/ContextDialogs.kt | unknown_repo | kotlin | package com.crazylegend.kotlinextensions.context
import android.content.Context
import androidx.appcompat.app.AlertDialog
/**
* Created by hristijan on 3/1/19 to long live and prosper !
*/
/**
* There is No Such Thing name Hard Toast, Its just an AlertDialog which will the [msg] you passed until user cancels it... |
app/app/src/main/java/com/example/party_lojo_game/ui/adapter/EditYourQuestionsGridAdapter.kt | unknown_repo | kotlin | package com.example.party_lojo_game.ui.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import com.example.party_lojo_game.databinding.RowSingleQuestionBinding
import com.example.party_lojo_game.databin... |
src/backend/src/main/kotlin/org/icpclive/service/ScoreboardService.kt | unknown_repo | kotlin | package org.icpclive.service
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import org.icpclive.api.*
import org.icpclive.data.DataBus
import org.icpclive.scoreboard.getScoreboardCalculator
import org.icpclive.util.... |
feature/core/src/main/kotlin/com/masselis/tpmsadvanced/core/feature/interfaces/viewmodel/CurrentVehicleDropdownViewModel.kt | unknown_repo | kotlin | package com.masselis.tpmsadvanced.core.feature.interfaces.viewmodel
import android.os.Parcelable
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.masselis.tpmsadvanced.core.feature.usecase.CurrentVehicleUseCase
import com.masselis.tpmsad... |
livekit-android-sdk/src/main/java/io/livekit/android/LiveKit.kt | unknown_repo | kotlin | /*
* Copyright 2023 LiveKit, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
android/versioned-abis/expoview-abi44_0_0/src/main/java/abi44_0_0/expo/modules/kotlin/views/AnyViewProp.kt | unknown_repo | kotlin | package abi44_0_0.expo.modules.kotlin.views
import android.view.View
import abi44_0_0.com.facebook.react.bridge.Dynamic
abstract class AnyViewProp(
val name: String
) {
abstract fun set(prop: Dynamic, onView: View)
}
|
app/src/main/java/com/justin/huang/maskmap/viewModel/DrugStoreViewModel.kt | unknown_repo | kotlin | package com.justin.huang.maskmap.viewModel
import androidx.lifecycle.*
import com.justin.huang.maskmap.db.DrugStore
import com.justin.huang.maskmap.repository.MaskPointsRepository
import kotlinx.coroutines.launch
import timber.log.Timber
import javax.inject.Inject
class DrugStoreViewModel @Inject constructor(private ... |
features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRowTimestampPreview.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/liorhass/android/medsstocktracker/eventlist/EventListViewModelFactory.kt | unknown_repo | kotlin | package com.liorhass.android.medsstocktracker.eventlist
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.liorhass.android.medsstocktracker.database.LoggedEventsDao
// Boilerplate code of a ViewModel-factory - provides the DAO and app context to the ViewModel
class EventListVi... |
coil-core/src/androidMain/kotlin/coil3/target/ImageViewTarget.kt | unknown_repo | kotlin | package coil3.target
import android.graphics.drawable.Drawable
import android.widget.ImageView
import coil3.annotation.Data
/**
* A [Target] that handles setting images on an [ImageView].
*/
@Data
open class ImageViewTarget(
override val view: ImageView,
) : GenericViewTarget<ImageView>() {
override var dr... |
app/src/main/java/com/example/philosophyquotes/data/data_source/QuotesDAO.kt | unknown_repo | kotlin | package com.example.philosophyquotes.data.data_source
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import com.example.philosophyquotes.data.model.Quote
@Dao
interface QuotesDAO {
@Insert
fun save(quote: Quote): Long
@Query("DELETE from QUOTE... |
app/src/main/java/com/petrulak/cleankotlin/ui/base/BaseFragment.kt | unknown_repo | kotlin | package com.petrulak.cleankotlin.ui.base
import android.os.Bundle
import android.support.annotation.LayoutRes
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.petrulak.cleankotlin.platform.bus.event.EventBus
import javax.inject.... |
coil-base/src/test/java/coil/fetch/HttpUriFetcherTest.kt | unknown_repo | kotlin | package coil.fetch
import android.content.Context
import android.os.NetworkOnMainThreadException
import android.webkit.MimeTypeMap
import androidx.core.net.toUri
import androidx.test.core.app.ApplicationProvider
import coil.ImageLoader
import coil.decode.DataSource
import coil.decode.FileImageSource
import coil.decode... |
app/src/main/java/com/thenetcircle/dinoandroidframework/fragment/TNCRoomListFragment.kt | unknown_repo | kotlin | /*
* Copyright 2018 The NetCircle
*
* 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 t... |
util/src/main/java/com/jokubas/mmdb/util/extensions/WindowExtensions.kt | unknown_repo | kotlin | package com.jokubas.mmdb.util.extensions
import android.os.Build
import android.view.View
import android.view.Window
import android.view.WindowInsetsController
import androidx.annotation.ColorRes
import androidx.core.content.ContextCompat
fun Window.adjustStatusBar(@ColorRes colorRes: Int) {
statusBarColor = Cont... |
next/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/download/ui/DownloadView.kt | unknown_repo | kotlin | package org.dweb_browser.browser.download.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.shape.RoundedCornerShape
import and... |
app/src/androidTest/java/com/alexzh/medicationreminder/data/ReminderDaoTest.kt | unknown_repo | kotlin | package com.alexzh.medicationreminder.data
import android.arch.persistence.room.Room
import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4
import com.alexzh.medicationreminder.TestData
import com.alexzh.medicationreminder.data.local.MedicationReminderDatabase
import com.a... |
src/main/kotlin/mcx/pass/backend/Stage.kt | unknown_repo | kotlin | package mcx.pass.backend
import kotlinx.collections.immutable.plus
import mcx.ast.Core.Definition
import mcx.ast.Core.Pattern
import mcx.ast.Core.Term
import mcx.ast.Lvl
import mcx.ast.Modifier
import mcx.ast.toIdx
import mcx.ast.toLvl
import mcx.pass.*
import mcx.util.mapWith
@Suppress("NAME_SHADOWING")
class Stage ... |
zoomimage-compose-sketch/src/main/kotlin/com/github/panpf/zoomimage/SingletonSketchZoomAsyncImage.kt | unknown_repo | kotlin | /*
* Copyright (C) 2024 panpf <panpfpanpf@outlook.com>
* Copyright 2023 Coil 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-... |
sample/src/main/java/com/evo/composetoedge/components/Message.kt | unknown_repo | kotlin | /*
* Copyright 2020 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
app/src/main/java/me/luowl/wan/ui/account/MineViewModel.kt | unknown_repo | kotlin | package me.luowl.wan.ui.account
import com.jeremyliao.liveeventbus.LiveEventBus
import me.luowl.wan.AppConfig
import me.luowl.wan.base.BaseViewModel
import me.luowl.wan.data.WanRepository
import me.luowl.wan.event.LoginEvent
import me.luowl.wan.util.logDebug
/*
*
* Created by luowl
* Date: 2019/8/4
* Desc:
*/
... |
core/src/commonMain/kotlin/com/maxkeppeker/sheets/core/icons/twotone/Tune.kt | unknown_repo | kotlin | package com.maxkeppeker.sheets.core.icons.twotone
import androidx.compose.material.icons.materialIcon
import androidx.compose.material.icons.materialPath
import androidx.compose.ui.graphics.vector.ImageVector
public val Tune: ImageVector
get() {
if (_tune != null) {
return _tune!!
}
... |
app/src/main/java/com/egoriku/ladyhappy/mainscreen/presentation/search/SearchFragment.kt | unknown_repo | kotlin | package com.egoriku.ladyhappy.mainscreen.presentation.search
import android.os.Bundle
import android.view.View
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import com.egoriku.ladyhappy.R
import com.egoriku.ladyhappy.extensions.extraNotNull
import com.google.android.material.textfield.TextInpu... |
pushmanager/src/main/java/com/grumpyshoe/module/pushmanager/models/RemoteMessageData.kt | unknown_repo | kotlin | package com.grumpyshoe.module.pushmanager.models
import android.net.Uri
/**
* <p>RemoteMessageData is a model for holding all notification information that's available from incomming message</p>
*
* @since 1.0.0
* @version 1.0.0
* @author grumpyshoe
*
*/
data class RemoteMessageData(
var tag: Str... |
app/src/main/kotlin/com/tinashe/hymnal/ui/hymns/hymnals/HymnalListBottomSheetFragment.kt | unknown_repo | kotlin | package com.tinashe.hymnal.ui.hymns.hymnals
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.activityViewModels
import androidx.recyclerview.widget.RecyclerView
import com.google.android.m... |
app/src/main/kotlin/com/tinashe/hymnal/ui/hymns/hymnals/HymnalListBottomSheetFragment.kt | unknown_repo | kotlin | package com.tinashe.hymnal.ui.hymns.hymnals
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.activityViewModels
import androidx.recyclerview.widget.RecyclerView
import com.google.android.m... |
components/views/src/main/java/io/horizontalsystems/views/SettingsViewDropdown.kt | unknown_repo | kotlin | package io.horizontalsystems.views
import android.content.Context
import android.util.AttributeSet
import androidx.core.view.isVisible
import kotlinx.android.synthetic.main.view_settings_dropdown.view.*
import kotlinx.android.synthetic.main.view_settings_dropdown_text.view.*
class SettingsViewDropdown @JvmOverloads c... |
app/src/main/java/com/yenaly/han1meviewer/worker/HUpdateWorker.kt | unknown_repo | kotlin | package com.yenaly.han1meviewer.worker
import android.content.Context
import android.content.pm.ServiceInfo
import android.os.Build
import androidx.core.app.NotificationCompat
import androidx.core.net.toFile
import androidx.core.net.toUri
import androidx.work.Constraints
import androidx.work.CoroutineWorker
import and... |
NotificactionTest/app/src/main/java/com/example/notificactiontest/MainActivity.kt | unknown_repo | kotlin | package com.example.notificactiontest
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.graphics.BitmapFactory
import android.os.Build
import androidx.appcompat.app.AppCompatActivity... |
app/src/main/java/live/mehiz/mpvkt/ui/preferences/SubtitlesPreferencesScreen.kt | unknown_repo | kotlin | package live.mehiz.mpvkt.ui.preferences
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.comp... |
app/src/main/java/bry1337/github/io/newsthings/ui/MainActivity.kt | unknown_repo | kotlin | package bry1337.github.io.deliveryman
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.navigation.findNavController
import androidx.navigation.ui.NavigationUI.*
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCr... |
chapter-final/app/src/main/java/com/example/learnwithme/presentation/components/CustomProgressIndicator.kt | unknown_repo | kotlin | package com.example.learnwithme.presentation.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.material3.CircularProgressIndicator... |
app/src/main/java/com/muratozturk/breakingbad/HiltApplication.kt | unknown_repo | kotlin | package com.muratozturk.breakingbad
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class HiltApplication : Application() {
} |
next/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/desk/DesktopControllerRender.kt | unknown_repo | kotlin | package org.dweb_browser.browser.desk
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.icons.Icons
import androidx.compose.ma... |
client_end_user/shared/src/commonMain/kotlin/presentation/search/SearchScreen.kt | unknown_repo | kotlin | package presentation.search
import androidx.compose.foundation.ExperimentalFoundationApi
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.... |
ui/reader/src/main/java/com/kafka/reader/online/OnlineReader.kt | unknown_repo | kotlin | @file:Suppress("DEPRECATION")
package com.kafka.reader.online
import android.annotation.SuppressLint
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.