file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
android/src/main/kotlin/com/flutterbeacon/FlutterBeaconPlugin.kt | unknown_repo | kotlin | package com.flutterbeacon
import android.os.Build
import androidx.annotation.RequiresApi
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.embedding.engine.plugins.activity.ActivityAware
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding
import io.flutter.plugin.common.B... |
app/src/main/java/com/hl/baseproject/compose/widgets/TitleCompose.kt | unknown_repo | kotlin | package com.hl.baseproject.compose.widgets
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.paddingFromBaseline
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runt... |
settings-datastore-encryption/src/main/java/de/charlex/settings/datastore/encryption/SettingsDataStoreExt.kt | unknown_repo | kotlin | package de.charlex.settings.datastore.encryption
import androidx.datastore.core.CorruptionException
import de.charlex.settings.datastore.SettingsDataStore
import de.charlex.settings.datastore.stringPreference
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.catch
import kotlinx.coroutines.flow.map
im... |
app/src/main/java/com/indramahkota/footballapp/ui/adapter/ClassementAdapter.kt | unknown_repo | kotlin | package com.indramahkota.footballapp.ui.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
import com.indramahkota.footballapp.R
... |
crouton/src/main/java/com/megatilus/crouton/CustomCrouton.kt | unknown_repo | kotlin | package com.megatilus.crouton
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.border
i... |
qrcode/android/src/main/kotlin/com/example/qrcode/NewQRCaptureView.kt | unknown_repo | kotlin | package com.example.qrcode
import androidx.annotation.NonNull
import android.Manifest
import android.app.Activity
import android.app.Application
import android.content.Context
import android.content.pm.PackageManager
import android.content.pm.PackageManager.PERMISSION_GRANTED
import android.os.Build
import android.os... |
app/src/main/java/ir/lifeplas/lifemanager/fragment/SettingFragment.kt | unknown_repo | kotlin | package ir.lifeplas.lifemanager.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import ir.lifeplas.lifemanager.databinding.FragmentSettingBinding
class SettingFragment : Fragment(){
lateinit var bindi... |
app/src/main/java/com/marknkamau/globalgym/data/models/Exercise.kt | unknown_repo | kotlin | package com.marknkamau.globalgym.data.models
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
/**
* Created by MarkNjunge.
* <EMAIL>
* https://github.com/MarkNjunge
*/
@Parcelize
data class Exercise(var stepIndex: Int, val title: String, val reps: String, val sets: Int) : Parcelable |
sample-android/src/main/kotlin/com/vanniktech/ui/sample/android/UiApplication.kt | unknown_repo | kotlin | package com.vanniktech.ui.sample.android
import android.app.Application
import com.vanniktech.ui.theming.night.AndroidNightModeBehaviorHandler
import com.vanniktech.ui.theming.night.NightModeBehavior.FOLLOW_SYSTEM
import timber.log.Timber
import timber.log.Timber.DebugTree
class UiApplication : Application() {
over... |
app/src/main/java/com/bearweather/android/ui/weather/WeatherActivity.kt | unknown_repo | kotlin | package com.bearweather.android.ui.weather
import android.content.Context
import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.ImageView... |
app/src/main/java/com/github/muellerma/coffee/activities/MainActivity.kt | unknown_repo | kotlin | package com.github.muellerma.coffee.activities
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.util.Log
import androidx.activity.result.contract.ActivityResultContracts
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.pm.ShortcutInfoCompat
impor... |
app/src/androidTest/java/com/idleoffice/harvesthelper/ui/screen/loading/LoadingScreenTest.kt | unknown_repo | kotlin | package com.idleoffice.harvesthelper.ui.screen.loading
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.compose.ui.test.onNodeWithText
import com.idleoffice.harvesthelper.R
import com.idleoffice.harvesthelper.testutils.HarvestComposeTestR... |
androidApp/src/main/java/com/devmikespb/simpleweather/android/ui/navigation/argument/StringSerializableArgument.kt | unknown_repo | kotlin | package com.devmikespb.simpleweather.android.ui.navigation.argument
import android.os.Bundle
import androidx.core.os.bundleOf
import androidx.lifecycle.SavedStateHandle
import androidx.navigation.NavArgumentBuilder
import androidx.navigation.NavType
import com.devmikespb.simpleweather.android.ui.navigation.StringSeria... |
app/src/main/java/com/gmail/dlykoits/racelogger/ui/acceleration/ParamsAdapter.kt | unknown_repo | kotlin | package com.gmail.dlykoits.racelogger.ui.acceleration
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.gmail.dlykoits.racelogger.R
import kotlinx.android.synthetic.main.param_item.view.*
... |
common/src/main/java/com/android/sample/common/paging/Listing.kt | unknown_repo | kotlin | package com.android.sample.common.paging
import androidx.lifecycle.LiveData
import androidx.paging.PagedList
import io.reactivex.Observable
/**
* Data class that is necessary for a UI to show a listing and interact w/ the rest of the system
*/
data class Listing<T>(
// the Observable of paged lists for the UI t... |
dev-resources/design/composeApp/src/commonTest/kotlin/TempSettingsScreenTest.kt | unknown_repo | kotlin | import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.LinearProgressIndicator
import androidx.compose.material3.MaterialTheme
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.StrokeCap
import kotlin.test.Test
class TempSettingsScreenTest : BaseScreenTest() {
... |
app/src/main/java/com/migu/android/linkyou/BaseActivity.kt | unknown_repo | kotlin | package com.migu.android.linkyou
import android.app.Activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
/**
* 应用程序中所有activity的基类
*/
private const val TAG = "BaseActivity"
open class BaseActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
s... |
app/src/main/java/com/javalon/xpensewhiz/presentation/insight_screen/components/InsightItem.kt | unknown_repo | kotlin | package com.javalon.xpensewhiz.presentation.insight_screen.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
impor... |
app/src/main/java/com/penguenlabs/pushnote/features/permission/NotificationPermissionScreen.kt | unknown_repo | kotlin | package com.penguenlabs.pushnote.features.permission
import android.Manifest
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.provider.Settings
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import and... |
05 - Componentes/Aula07 - EditText/EditText/app/src/main/java/com/devmeist3r/edittext/MainActivity.kt | unknown_repo | kotlin | package com.devmeist3r.edittext
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.devmeist3r.edittext.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
override fun onCreat... |
app/src/main/java/com/soneso/lumenshine/presentation/widgets/LsButton.kt | unknown_repo | kotlin | package com.soneso.lumenshine.presentation.widgets
import android.content.Context
import android.util.AttributeSet
import android.widget.Button
import com.soneso.lumenshine.R
class LsButton @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.buttonStyle
) : But... |
app/src/main/java/xyz/teamgravity/universalstringresource/MainViewModel.kt | unknown_repo | kotlin | package xyz.teamgravity.universalstringresource
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.channels.Channel
import kotlinx.corouti... |
app/src/main/java/my/github/dstories/feature/monsters_catalog/ui/MonstersFilterUi.kt | unknown_repo | kotlin | package my.github.dstories.feature.monsters_catalog.ui
import androidx.compose.foundation.layout.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Check
import androidx.compose.material.icons.filled.Close
import androidx.compose.material3.*
import androidx.compose.runtime.Com... |
reimagined/src/androidTest/kotlin/dev/olshevski/navigation/reimagined/param/ViewModelFactoryParam.kt | unknown_repo | kotlin | package dev.olshevski.navigation.reimagined.param
import androidx.compose.runtime.Composable
import androidx.lifecycle.AbstractSavedStateViewModelFactory
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelStoreOwner
import androidx.lifecycle.createSavedSta... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/RecycleOff.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/SquareM.kt | unknown_repo | kotlin | package me.localx.icons.straight.filled
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... |
ui-lib-common/src/main/kotlin/com/purewowstudio/bodystats/ui/common/components/dialogs/GenderDialog.kt | unknown_repo | kotlin | package com.purewowstudio.bodystats.ui.common.components.dialogs
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.selection.selectable
import androidx.compose.material.icons.Icons
imp... |
android/quest/src/main/java/org/smartregister/fhircore/quest/ui/main/components/TopScreenSection.kt | unknown_repo | kotlin | /*
* Copyright 2021-2023 Ona Systems, 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 o... |
app/src/main/java/com/termux/zerocore/dialog/EditDialog.kt | unknown_repo | kotlin | package com.termux.zerocore.dialog
import android.content.Context
import android.view.View
import android.widget.EditText
import android.widget.TextView
import com.termux.R
class EditDialog : BaseDialogCentre {
public var edit_text:EditText? = null
public var ok:TextView? = null
public var cancel:TextView... |
app/src/main/java/com/jonnyhsia/composer/page/main/home/multitype/FooterViewBinder.kt | unknown_repo | kotlin | package com.jonnyhsia.composer.page.main.home.multitype
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import com.jonnyhsia.composer.R
import com.jonnyhsia.composer.ext.bind
import me.drakeet.mult... |
android-maps-extensions/src/main/java/com/androidmapsextensions/lazy/LazyMarker.kt | unknown_repo | kotlin | package com.androidmapsextensions.lazy
import kotlin.jvm.JvmOverloads
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.model.LatLng
import com.google.android.gms.maps.model.BitmapDescriptor
import com.google.android.gms.maps.model.Marker
import com.google.android.gms.maps.model.MarkerOpt... |
MeowFramework/src/main/kotlin/meow/widget/MeowHintButton.kt | unknown_repo | kotlin | package meow.widget
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.drawable.GradientDrawable
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.core.widget.TextViewCompat
import androidx.databinding.DataBindingUtil
import com.etebarian.meo... |
mvrx-compose/src/test/kotlin/com/airbnb/mvrx/compose/ArgsFactoryTest.kt | unknown_repo | kotlin | package com.airbnb.mvrx.compose
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.layout.Column
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.getValue
im... |
app/src/main/java/com/example/tiptime/ReservationCheckScreen.kt | unknown_repo | kotlin | package com.example.tiptime
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.ico... |
adapty/src/main/java/com/adapty/internal/data/models/requests/UpdateAttributionRequest.kt | unknown_repo | kotlin | package com.adapty.internal.data.models.requests
import androidx.annotation.RestrictTo
import com.adapty.internal.data.models.AttributionData
import com.google.gson.annotations.SerializedName
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
internal class UpdateAttributionRequest(
@SerializedName("data")
private v... |
forgerock-auth/src/main/java/org/forgerock/android/auth/callback/AppIntegrityCallback.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023-2024 ForgeRock. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package org.forgerock.android.auth.callback
import android.content.Context
import android.util.Base64
import androidx.annotati... |
app/src/main/java/com/mlsa_uet_nc/repeatalarm/presentation/ui/alarm_quick/QuickScreen.kt | unknown_repo | kotlin | package com.mlsa_uet_nc.repeatalarm.presentation.ui.alarm_quick
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.material3.Text
... |
examples/chat/shared/src/commonMain/kotlin/ChatApp.kt | unknown_repo | kotlin | import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.LocalTextStyle
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Pr... |
app/src/main/java/com/c22_pc383/wacayang/CommentActivity.kt | unknown_repo | kotlin | package com.c22_pc383.wacayang
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.core.view.isVisible
import androidx.lifecycle.ViewModelProvider
import androidx.... |
compose/src/main/java/com/yourssu/design/system/compose/atom/Badge.kt | unknown_repo | kotlin | package com.yourssu.design.compose.atom
import androidx.annotation.DrawableRes
import androidx.compose.foundation.layout.*
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import and... |
app/src/main/java/js/personal/exifeditor/EditorActivity.kt | unknown_repo | kotlin | package js.personal.exifeditor
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import androidx.databinding.DataBindingUtil
import js.personal.exifeditor.databinding.EditorMainBinding
class EditorActivity : AppCompatActivity() {
private lateinit var picker: Bu... |
mvvm/src/main/java/com/github/doubledeath/android/mvvm/impl/MvvmAppNavigator.kt | unknown_repo | kotlin | package com.github.doubledeath.android.mvvm.impl
import android.content.Intent
import android.os.Bundle
import com.github.doubledeath.android.mvvm.MvvmView
import com.github.doubledeath.android.mvvm.base.MvvmBaseActivity
import com.github.doubledeath.android.mvvm.base.MvvmBaseDelegate
import com.github.doubledeath.and... |
app/src/main/java/ke/co/appslab/androidpagingwithcoroutines/adapters/RedditPostsAdapter.kt | unknown_repo | kotlin | package ke.co.appslab.androidpagingwithcoroutines.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.paging.PagedListAdapter
import androidx.recyclerview.widget.RecyclerView
import ke.co.appslab.androidpagingwithcoroutines.R
import ke.co.appslab.androidpa... |
app/src/main/java/ru/sukharev/myrecipes/addrecipe/AddRecipePresenter.kt | unknown_repo | kotlin | package ru.sukharev.myrecipes.addrecipe
import android.content.Context
import ru.sukharev.myrecipes.model.IModel
import ru.sukharev.myrecipes.model.RecipeRepository
import ru.sukharev.myrecipes.pojo.Recipe
/**
* Presenter for add recipe view, using for adding new recipes with data which we got from add recipe view
... |
src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/EnterWifiNetworkFragment.kt | unknown_repo | kotlin | package com.google.chip.chiptool.provisioning
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import com.google.chip.chiptool.ChipClient
import com.google.chip.chiptool.R
import kotlinx.... |
stripe-core/src/main/java/com/stripe/android/core/networking/AnalyticsRequest.kt | unknown_repo | kotlin | package com.stripe.android.core.networking
import androidx.annotation.RestrictTo
/**
* Analytics request sent to q.stripe.com, which is a legacy analytics service used mostly by
* Payment SDK, analytics are saved in a shared DB table with payment-specific schema.
*
* For other SDKs, it is recommended to create a ... |
solwave/src/main/java/com/saganize/solwave/solwave/presentation/components/WalletItem.kt | unknown_repo | kotlin | package com.saganize.solwave.solwave.presentation.components
import android.widget.Toast
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.mate... |
app/src/main/java/com/nullpointer/runningcompose/presentation/RunsViewModel.kt | unknown_repo | kotlin | package com.nullpointer.runningcompose.presentation
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.cachedIn
import androidx.paging.map
import com.nullpointer.runningcompose.core.utils.launchSafeIO
impo... |
app/src/androidTest/java/com/messiasjunior/codewarsv2/util/DependencyInjectionHelper.kt | unknown_repo | kotlin | package com.messiasjunior.codewarsv2.util
import androidx.fragment.app.Fragment
import dagger.android.AndroidInjector
import dagger.android.AndroidInjector.Factory
import dagger.android.DispatchingAndroidInjector
import dagger.android.DispatchingAndroidInjector_Factory
import javax.inject.Provider
inline fun <reified... |
app/src/main/java/com/filkom/banksampahdelima/screen/trash_exchange/TrashExchangeScreen.kt | unknown_repo | kotlin | package com.filkom.banksampahdelima.screen.trash_exchange
import android.annotation.SuppressLint
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.comp... |
src/app/src/main/java/com/example/aplicacionfinal/ContactarMedicoActivity.kt | unknown_repo | kotlin | package com.example.aplicacionfinal
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class ContactarMedicoActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_contactar_medi... |
app-done/app/src/main/kotlin/com/google/sample/cast/refplayer/browser/VideoListAdapter.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 Google LLC. All Rights Reserved.
*
* 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 ap... |
app/src/main/java/com/d34th/nullpointer/dogedex/ui/screen/login/viewModel/LoginViewModel.kt | unknown_repo | kotlin | package com.d34th.nullpointer.dogedex.ui.screen.login.viewModel
import android.util.Patterns
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import com.d34th.nullpointer.dogedex.R
import com.d34th.nullpointer.dogedex.core.delegate.PropertySavableString
import com.d34th.nullpointer.dogede... |
app/src/main/java/com/techno_3_team/task_manager_google/support/HelpFuns.kt | unknown_repo | kotlin | package com.techno_3_team.task_manager_google.support
import android.view.View
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
fun dp(dps: Int, view: View): Int {
val scale: Float = view.resources.displayMetrics.density
return (dps * scale + 0.5f)... |
app/src/main/java/com/chethanbhandarkar/imbd/data/repository/pagination/IMBdPagingSource.kt | unknown_repo | kotlin | package com.chethanbhandarkar.imbd.data.repository.pagination
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.chethanbhandarkar.imbd.data.repository.MoviesDataList
import com.chethanbhandarkar.imbd.data.repository.remote.MovieApiService
import retrofit2.HttpException
import java.io.IO... |
app/src/main/java/com/aastudio/sarollahi/moviebox/adapter/CountryAdapter.kt | unknown_repo | kotlin | /*
* Copyright (C) 2021 <NAME>
* All rights reserved.
*/
package com.aastudio.sarollahi.moviebox.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.aastudio.sarollahi.api.model.Country
import com.aastudio.sarollahi.moviebox.databindi... |
demo/src/main/java/pyxis/uzuki/live/viewtransformer/demo/kotlin/ButtonActivity.kt | unknown_repo | kotlin | package pyxis.uzuki.live.viewtransformer.demo.kotlin
import android.graphics.Color
import android.os.Bundle
import android.widget.Button
import pyxis.uzuki.live.viewtransformer.ConsumerType
import pyxis.uzuki.live.viewtransformer.ViewTransformer
import pyxis.uzuki.live.viewtransformer.consumer.ButtonConsumer
import py... |
Chapter05/Exercise5.01/app/src/main/java/com/example/movieapp/MovieViewModel.kt | unknown_repo | kotlin | package com.example.movieapp
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.movieapp.model.Movie
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
... |
app/src/main/java/nes/com/transfragment/FirstFragment.kt | unknown_repo | kotlin | package nes.com.transfragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.nes.transfragment.BaseTransFragment
import kotlinx.android.synthetic.main.fragment_first.*
import java.lang.Thread.sleep
import kotlin.concurrent.thread
/**
* Cr... |
app/src/main/java/com/github/psm/jethouse/ui/theme/Theme.kt | unknown_repo | kotlin | package com.github.psm.jethouse.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTheme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.material.ripple.RippleAlpha
import androidx.compose.material.ri... |
app/src/main/java/com/blankj/androidutilcode/feature/core/bar/BarStatusDrawerActivity.kt | unknown_repo | kotlin | package com.blankj.androidutilcode.feature.core.bar
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.view.View
import android.widget.*
import com.blankj.androidutilcode.R
import com.blankj.... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/Age.kt | unknown_repo | kotlin | package me.localx.icons.rounded.bold
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
im... |
android_sns/app/src/main/java/com/example/android_sns/SearchAdapter.kt | unknown_repo | kotlin | package com.example.android_sns
import android.content.Context
import android.graphics.BitmapFactory
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.*
import com.google.firebase.auth.ktx.auth
import com.google.firebase.firestore.FirebaseFirestore
import c... |
eiffel/src/main/java/com/etiennelenhart/eiffel/view/EiffelFragment.kt | unknown_repo | kotlin | package com.etiennelenhart.eiffel.view
import android.os.Bundle
import android.os.Parcelable
import androidx.fragment.app.Fragment
import com.etiennelenhart.eiffel.factory.EiffelArgumentFactory
/**
* Base class for Eiffel-enabled Fragments, extends from [Fragment].
*/
abstract class EiffelFragment : Fragment() {
... |
eiffel/src/main/java/com/etiennelenhart/eiffel/view/EiffelFragment.kt | unknown_repo | kotlin | package com.etiennelenhart.eiffel.view
import android.os.Bundle
import android.os.Parcelable
import androidx.fragment.app.Fragment
import com.etiennelenhart.eiffel.factory.EiffelArgumentFactory
/**
* Base class for Eiffel-enabled Fragments, extends from [Fragment].
*/
abstract class EiffelFragment : Fragment() {
... |
sdk/src/main/java/network/xyo/client/witness/system/info/XyoSystemInfoNetworkWifi.kt | unknown_repo | kotlin | package network.xyo.client.witness.system.info
import android.annotation.SuppressLint
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.net.wifi.WifiManager
import android.os.Build
import com.squareup.moshi.JsonClass
import java.net.NetworkInter... |
presentation/src/androidMain/kotlin/ireader/presentation/ui/home/sources/global_search/BookTable.kt | unknown_repo | kotlin | package ireader.presentation.ui.home.sources.global_search
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowForward
import ... |
common/src/desktopMain/kotlin/io/sunland/chainpass/common/component/Dialog.kt | unknown_repo | kotlin | package io.sunland.chainpass.common.component
import androidx.compose.foundation.layout.padding
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.PopupAlertDialogProvider
import androidx.compose.material.Surface
import androidx.compose.runtime.Composable
import androidx.compose.... |
app/src/main/java/com/example/android/guesstheword/screens/score/ScoreViewModelFactory.kt | unknown_repo | kotlin | package com.example.android.guesstheword.screens.score
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
//Factory create a new ScoreViewModel object with the score variable
class ScoreViewModelFactory(private val finalScore: Int): ViewModelProvider.Factory {
override fun <T : ViewMo... |
gojekSample/app/src/main/java/com/bins/gojeksample/MainActivity.kt | unknown_repo | kotlin | package com.bins.gojeksample
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.LinearLay... |
app/src/androidTest/java/app/cybrid/demoapp/ui/tradeComponent/TradeFlowActivityTest.kt | unknown_repo | kotlin | package app.cybrid.demoapp.ui.tradeComponent
import android.content.res.Resources
import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.createEmptyComposeRule
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.... |
shared/src/commonMain/kotlin/App.kt | unknown_repo | kotlin | import androidx.compose.animation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.co... |
app/src/main/java/com/alvayonara/openweatherapps/core/utils/RoomConverter.kt | unknown_repo | kotlin | package com.alvayonara.openweatherapps.core.utils
import androidx.room.TypeConverter
import com.alvayonara.openweatherapps.core.data.source.local.entity.WeatherEntity
import com.squareup.moshi.Moshi
import com.squareup.moshi.Types
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
object RoomConverter ... |
app/src/main/java/com/teyepeee/sudoku/viewmodel/SudokuViewModel.kt | unknown_repo | kotlin | package com.teyepeee.sudoku.viewmodel
import androidx.lifecycle.ViewModel
import com.teyepeee.sudoku.game.SudokuGame
class SudokuViewModel : ViewModel() {
val sudokuGame = SudokuGame()
} |
app/src/main/java/site/leos/apps/lespas/helper/VideoPlayerViewModel.kt | unknown_repo | kotlin | package site.leos.apps.lespas.helper
import android.app.Application
import android.net.Uri
import android.view.Window
import android.view.WindowManager
import androidx.lifecycle.AndroidViewModel
import androidx.media3.common.MediaItem
import androidx.media3.common.Player
import androidx.media3.common.util.UnstableApi
... |
app/src/main/java/com/develrm/f1standings/viewmodel/DriverViewModel.kt | unknown_repo | kotlin | package com.develrm.f1standings.viewmodel
import androidx.lifecycle.ViewModel
import com.develrm.f1standings.data.model.DriverModel
import com.develrm.f1standings.data.repository.DriverRepository
import com.develrm.f1standings.ui.state.ResourseState
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.corout... |
app/src/main/java/dog/snow/androidrecruittest/ui/adapter/RecyclerTouchListener.kt | unknown_repo | kotlin | package dog.snow.androidrecruittest.ui.adapter
import android.content.Context
import android.view.GestureDetector
import android.view.MotionEvent
import androidx.recyclerview.widget.RecyclerView
class RecyclerTouchListener(
context: Context,
recyclerView: RecyclerView,
private val IClickListener: IClickLi... |
app/src/main/java/com/raywenderlich/android/cassette/MainActivity.kt | unknown_repo | kotlin | package com.raywenderlich.android.cassette
import android.graphics.Color
import android.os.Bundle
import android.text.*
import android.text.style.BackgroundColorSpan
import android.text.style.ForegroundColorSpan
import android.text.style.UnderlineSpan
import android.view.View
import androidx.appcompat.app.AppCompatAct... |
app/src/main/java/dev/ronnie/spendingcalculator/presentation/ui/FragmentPieChart.kt | unknown_repo | kotlin | package dev.ronnie.spendingcalculator.presentation.ui
import android.Manifest
import android.content.pm.PackageManager
import android.os.Bundle
import android.os.Parcelable
import android.util.Log
import android.view.*
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompa... |
app/src/main/java/com/adnagu/kotlintutorial/ui/adapter/PostAdapter.kt | unknown_repo | kotlin | package com.adnagu.kotlintutorial.ui.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.adnagu.kotlintutorial.R
import com.adnagu.kotlintutorial.databinding... |
feature/home/presentation/src/main/java/com/gigauri/reptiledb/module/feature/home/components/NearbySpeciesTitle.kt | unknown_repo | kotlin | package com.gigauri.reptiledb.module.feature.home.components
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling... |
app/src/main/java/com/google/firebase/example/fireeats/RatingDialogFragment.kt | unknown_repo | kotlin | /**
* Copyright 2017 Google Inc. All Rights Reserved.
*
* 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... |
RxArcFacelibrary/src/main/java/com/lxh/rxarcfacelibrary/ImageUtil.kt | unknown_repo | kotlin | package com.lxh.rxarcfacelibrary
import android.graphics.Bitmap
import java.nio.ByteBuffer
/**
* 提取图像中的BGR像素
* @param image
* @return
*/
fun getPixelsBGR(image: Bitmap): ByteArray? {
// calculate how many bytes our image consists of
val bytes = image.byteCount
val buffer = ByteBuffer.allocate(bytes) /... |
app/src/main/java/com/wstxda/gsl/GameActivity.kt | unknown_repo | kotlin | package com.wstxda.gsl
import android.app.Activity
import android.app.AlertDialog
import android.content.ComponentName
import android.content.Intent
import android.os.Bundle
import android.provider.Settings
import android.widget.Toast
class GameActivity : Activity() {
private val prefsName = "MyPrefsFile"
pr... |
app/src/main/java/com/sundev207/expenses/util/extensions/Context.kt | unknown_repo | kotlin | package com.sundev207.expenses.util.extensions
import android.content.Context
import com.sundev207.expenses.Application
val Context.application: Application
get() = applicationContext as Application |
app/src/main/java/dev/jatzuk/gametalk/playground/ui/theme/Color.kt | unknown_repo | kotlin | package dev.jatzuk.gametalk.playground.ui.theme
import androidx.compose.ui.graphics.Color
val PurpleGrey80 = Color(0xFFCCC2DC)
val Pink80 = Color(0xFFEFB8C8)
val PurpleGrey40 = Color(0xFF625b71)
val Pink40 = Color(0xFF7D5260)
val GameTalkPink = Color(0xFFFF017E) |
app/src/main/java/com/example/androiddevchallenge/TickingClock.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/laotoua/dawnislandk/data/local/entity/Comment.kt | unknown_repo | kotlin | /*
* Copyright 2020 Fishballzzz
* *
* * 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... |
cupertino-adaptive/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/adaptive/Shapes.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023-2024. Compose Cupertino project and open source contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... |
app/src/main/java/com/akshatbhuhagal/mynotes/presentation/home/NotesAdapter.kt | unknown_repo | kotlin | package com.akshatbhuhagal.mynotes.presentation.home
import android.graphics.BitmapFactory
import android.graphics.Color
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx... |
app/src/main/java/com/callebdev/valorant/presentation/screens/ErrorScreen.kt | unknown_repo | kotlin | package com.callebdev.valorant.presentation.screens
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.la... |
core/data/src/main/java/com/linc/data/repository/BooksRepository.kt | unknown_repo | kotlin | package com.linc.data.repository
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.map
import com.linc.common.coroutines.AppDispatchers
import com.linc.common.coroutines.Dispatcher
import com.linc.data.di.BooksPagingSourceFactory
import com.linc.data.model.asEntity
import com.linc... |
base/src/main/java/com/aba/core/extension/ActivityExtension.kt | unknown_repo | kotlin | package com.aba.core.extension
import android.view.Window
import android.view.WindowManager
import androidx.appcompat.app.AppCompatActivity
fun AppCompatActivity.makeFullScreen() {
requestWindowFeature(Window.FEATURE_NO_TITLE)
this.window.setFlags(
WindowManager.LayoutParams.FLAG_FULLSCREEN,
W... |
app/src/main/java/com/example/pi_sniffsnap_garciafernandezmarta/PhotoImageActivity.kt | unknown_repo | kotlin | package com.example.pi_sniffsnap_garciafernandezmarta
import android.net.Uri
import android.os.Bundle
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import coil.load
... |
app/src/main/java/com/ignitedminds/classroomhelper/interfaces/model/LoginModelInterface.kt | unknown_repo | kotlin | package com.ignitedminds.classroomhelper.interfaces.model
import android.app.Activity
import com.ignitedminds.classroomhelper.interfaces.UI.LoginFragmentInterface
interface LoginModelInterface {
val loginFragmentInterface : LoginFragmentInterface
fun sendVerificationCode(activity: Activity?)
} |
shared/src/androidMain/kotlin/com/lennartmoeller/ma/composemultiplatform/core/SharedAndroidParams.kt | unknown_repo | kotlin | package com.lennartmoeller.ma.composemultiplatform.core
import android.content.Context
lateinit var appContext: Context
|
app/src/main/java/com/tiixel/periodictableprofessor/presentation/study/StudyViewModel.kt | unknown_repo | kotlin | package com.tiixel.periodictableprofessor.presentation.study
import android.arch.lifecycle.ViewModel
import com.tiixel.periodictableprofessor.domain.review.Review
import com.tiixel.periodictableprofessor.domain.review.Reviewable
import com.tiixel.periodictableprofessor.domain.review.ReviewableFace
import com.tiixel.pe... |
android-basics-kotlin-bus-schedule-app/app/src/main/java/com/example/busschedule/database/schedule/SchedueDao.kt | unknown_repo | kotlin | package com.example.busschedule.database.schedule
import androidx.room.Dao
import androidx.room.Query
import kotlinx.coroutines.flow.Flow
/**
* Provides access to read/write operations on the schedule table.
* Used by the view models to format the query results for use in the UI.
*/
@Dao
interface ScheduleDao {
... |
app/src/main/java/com/terrencealuda/tcardio/services/PassiveDataService.kt | unknown_repo | kotlin | package com.terrencealuda.tcardio.health
import androidx.health.services.client.PassiveListenerService
import androidx.health.services.client.data.*
import com.terrencealuda.tcardio.repository.PassiveDataRepository
import com.terrencealuda.tcardio.repository.latestCalRate
import com.terrencealuda.tcardio.repository.la... |
app/src/main/java/com/photoeditor/app/presentation/cropimage/CropImageViewModel.kt | unknown_repo | kotlin | package com.photoeditor.app.presentation.cropimage
import android.graphics.Bitmap
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.photoeditor.app.domain.GetImage
import com.photoeditor.app.domain.PublishImage
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.corouti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.