file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/tao/chinachuclient/ui/channelschedule/ChannelScheduleActivity.kt | unknown_repo | kotlin | package com.tao.chinachuclient.ui.channelschedule
import android.app.AlertDialog
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.widget.ArrayAdapter
import android.widget.SearchView
import android.widget.Toast
import androidx.activity.viewMode... |
app/src/main/kotlin/com/ybj366533/yycamera/ui/VisualEffectRecyclerAdapter.kt | unknown_repo | kotlin | package com.ybj366533.yycamera.ui
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.ImageView
import android.widge... |
app/src/main/java/com/tmdb/movie/ui/main/MainActivity.kt | unknown_repo | kotlin | package com.tmdb.movie.ui.main
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.isSystemInDarkTheme
import androidx.compose.runtime.Composable
... |
app/src/main/java/com/kevalpatel2106/yip/edit/colorPicker/ColorDrawable.kt | unknown_repo | kotlin | package com.kevalpatel2106.yip.edit.colorPicker
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
import androidx.annotation.VisibleForTesting
import androidx.core.content.ContextCompat
imp... |
app/src/main/java/org/wikipedia/offline/db/OfflineObject.kt | unknown_repo | kotlin | package org.wikipedia.offline.db
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class OfflineObject(
@PrimaryKey(autoGenerate = true) val id: Int = 0,
val url: String,
val lang: String,
val path: String,
var status: Int,
var usedByStr: String = "") {
val usedBy: ... |
app/src/main/java/fr/o80/testcompose/modifier/HeightModifier.kt | unknown_repo | kotlin | package fr.o80.testcompose.modifier
import androidx.compose.runtime.Stable
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.LayoutModifier
import androidx.compose.ui.layout.Measurable
import androidx.compose.ui.layout.MeasureResult
import androidx.compose.ui.layout.MeasureScope
import androidx.com... |
app/app/src/main/java/com/example/party_lojo_game/ui/adapter/OnPlayAskPagerAdapter.kt | unknown_repo | kotlin | package com.example.party_lojo_game.ui.adapter
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.example.party_lojo_game.data.AsksBO
import com.example.party_lojo_game.data.manager.PlayerAndAsksBO
import com.example.party_lojo_game.data.ma... |
android/src/main/java/com/mattermost/networkclient/helpers/UploadRequestBody.kt | unknown_repo | kotlin | package com.mattermost.networkclient.helpers
import android.net.Uri
import com.mattermost.networkclient.APIClientModule
import com.mattermost.networkclient.enums.APIClientEvents
import okhttp3.MediaType
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.RequestBody
import okhttp3.internal.closeQuietly... |
navigation/src/main/java/org/zhiwei/jetpack/nav/FragmentThree.kt | unknown_repo | kotlin | package org.zhiwei.jetpack.nav
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
import kotlinx.android.synthetic.main.fragment_three.*
/**
* Author: zh... |
app/src/main/java/com/wotosts/blesample/rx/connect/RxBleConnectionActivity.kt | unknown_repo | kotlin | package com.wotosts.blesample.rx.connect
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.widget.ScrollView
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import com.wotosts.blesample.BaseActivity
impo... |
module_me/src/main/java/com/hzsoft/module/me/activity/RoomTestActivity.kt | unknown_repo | kotlin | package com.hzsoft.module.me.activity
import android.content.Context
import android.view.View
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.hzsoft.lib.base.module.constons.ARouteConstants
import com.hzsoft.lib.base.utils.ThreadUtils
import com... |
app/src/main/java/com/appbusters/robinpc/constitutionofindia/ui/home/adapter/HomeFragmentAdapter.kt | unknown_repo | kotlin | package com.appbusters.robinpc.constitutionofindia.ui.home.adapter
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import com.appbusters.robinpc.constitutionofindia.ui.home.HomeActivity.Companion.BOOKMARKS_PAGE
import com.appbust... |
app/src/main/java/com/tabjin/mvvm/WordDao.kt | unknown_repo | kotlin | package com.tabjin.mvvm
import android.arch.lifecycle.LiveData
import android.arch.persistence.room.Dao
import android.arch.persistence.room.Delete
import android.arch.persistence.room.Insert
import android.arch.persistence.room.Query
@Dao
public interface WordDao{
@Insert
fun insert(word :Word)
@Query("... |
repository/src/main/java/ca/bc/gov/repository/di/UtilityModule.kt | unknown_repo | kotlin | package ca.bc.gov.repository.di
import android.content.Context
import ca.bc.gov.repository.utils.UriToImage
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.Corout... |
common/src/androidMain/kotlin/com/artemchep/keyguard/android/glide/website/FaviconLoader.kt | unknown_repo | kotlin | package com.artemchep.keyguard.android.glide.website
import android.net.Uri
import com.artemchep.keyguard.android.glide.util.combineModelLoaders
import com.artemchep.keyguard.feature.favicon.Favicon
import com.artemchep.keyguard.feature.favicon.FaviconUrl
import com.bumptech.glide.Priority
import com.bumptech.glide.lo... |
app/src/main/java/com/mubarak/newscastmb/ui/search/SearchNewsFragment.kt | unknown_repo | kotlin | package com.mubarak.newscastmb.ui.search
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.SearchView
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.Lifecycle
impor... |
compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/StretchOverscrollTest.kt | unknown_repo | kotlin | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
feature/main/src/main/java/ru/maksonic/elmaks/feature/main/widget/SortingDropdownMenu.kt | unknown_repo | kotlin | package ru.maksonic.elmaks.feature.main.widget
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.c... |
app/src/nongms/java/com/thewizrd/simpleweather/radar/tomorrowio/TomorrowIoRadarViewProvider.kt | unknown_repo | kotlin | package com.thewizrd.simpleweather.radar.tomorrowio
import android.content.Context
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.text.format.DateFormat
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import a... |
phoenix-legacy/src/main/kotlin/fr/acinq/phoenix/legacy/lnurl/LNUrl.kt | unknown_repo | kotlin | /*
* Copyright 2020 ACINQ SAS
*
* 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... |
lib/src/main/java/com/sd/lib/stream/binder/ActivityStreamBinder.kt | unknown_repo | kotlin | package com.sd.lib.stream.binder
import android.app.Activity
import android.view.View
import android.view.View.OnAttachStateChangeListener
import android.view.Window
import com.sd.lib.stream.FStream
import java.lang.ref.WeakReference
/**
* 将流对象和Activity绑定,在[Window.getDecorView]对象被移除的时候取消注册流对象
*/
internal class Acti... |
app/src/main/java/com/blackbox/archiTemplate/data/network/APIs.kt | unknown_repo | kotlin | package com.blackbox.archiTemplate.data.network
import android.arch.lifecycle.LiveData
import com.blackbox.archiTemplate.data.entity.Posts
import retrofit2.http.GET
/**
* Created by umair on 08/01/2018.
*/
interface APIs {
@GET("posts")
fun getUsers(): LiveData<ApiResponse<List<Posts>>>
} |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/PhonePlus.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... |
app/src/main/java/dev/lengua/model/EntriesRepository.kt | unknown_repo | kotlin | package dev.lengua.model
import androidx.lifecycle.MutableLiveData
import dev.lengua.ui.Entry
import dev.lengua.ui.IdentifiedEntry
import kotlinx.coroutines.flow.Flow
interface EntriesRepository {
var entryToEdit: MutableLiveData<IdentifiedEntry?>
val allEntries: Flow<List<IdentifiedEntry>>
suspend fun... |
app/src/main/java/com/example/sambang/Dashboard/Kependudukan/Keluarga/KeluargaActivity.kt | unknown_repo | kotlin | package com.example.sambang.Dashboard.Kependudukan.Keluarga
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.sambang.R
class KeluargaActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
s... |
app/src/main/java/com/example/sambang/Dashboard/Kependudukan/Keluarga/KeluargaActivity.kt | unknown_repo | kotlin | package com.example.sambang.Dashboard.Kependudukan.Keluarga
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.sambang.R
class KeluargaActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
s... |
serve-app/student/src/main/java/org/evidyaloka/student/ui/timetable/TimetableViewModel.kt | unknown_repo | kotlin | package org.evidyaloka.student.ui.timetable
import androidx.lifecycle.*
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.viewModelScope
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import dagger.hilt.android.lifecycle.HiltViewModel
import org.evidyaloka.core.Constant... |
kotlin/app/src/main/java/cl/ucn/disc/pdis/parking/compose/view/main/AccessView.kt | unknown_repo | kotlin | package cl.ucn.disc.pdis.parking.compose.view.main
import androidx.compose.Composable
@Composable
fun AccessView() {
// ...
}
|
common/src/main/java/com/revenuecat/purchases/common/caching/DeviceCache.kt | unknown_repo | kotlin | // Purchases
//
// Copyright © 2019 RevenueCat, Inc. All rights reserved.
//
package com.revenuecat.purchases.common.caching
import android.content.SharedPreferences
import com.revenuecat.purchases.Offerings
import com.revenuecat.purchases.PurchaserInfo
import com.revenuecat.purchases.common.DateProvider
import com... |
app/src/main/java/com/gabindev/katika/components/home/homeBottomSheet.kt | unknown_repo | kotlin | package com.gabindev.katika.components.home
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import... |
app/src/main/java/ar/edu/utn/frba/mobile/turistapp/ui/locations_map/locations_list/LocationListViewModel.kt | unknown_repo | kotlin | package ar.edu.utn.frba.mobile.turistapp.ui.locations_map.locations_list
import android.content.Context
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.liveData
import androidx.lifecycle.viewmodel.CreationExtras
im... |
app/src/main/java/com/sunnyweather/android/ui/place/PlaceFragment.kt | unknown_repo | kotlin | package com.sunnyweather.android.ui.place
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.widget.addTextChangedListener
import androidx.fragment.app.Fragment
import androidx... |
app/src/main/java/com/example/productivitytimer/data/local/DatabaseModule.kt | unknown_repo | kotlin | package com.example.productivitytimer.data.local
import android.content.Context
import androidx.room.Room
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComp... |
app/src/main/java/com/andruhavuho/man/like/recipes/ui/search/RecipesSearchFragment.kt | unknown_repo | kotlin | package com.andruhavuho.man.like.recipes.ui.search
import android.content.res.Configuration
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.view.animation.AnimationUtils
import android.view.inputmethod.EditorInfo
import android.widget.Button
import android.widget.EditText... |
compose/material/material/src/commonMain/kotlin/androidx/compose/material/SwipeableV2.kt | unknown_repo | kotlin | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
sample/src/main/java/ro/andreidobrescu/declarativeadapterkt/restaurant/details/cells/CommentsHeaderCellView.kt | unknown_repo | kotlin | package ro.andreidobrescu.declarativeadapterkt.restaurant.details.cells
import android.content.Context
import ro.andreidobrescu.declarativeadapterkt.CellView
import ro.andreidobrescu.declarativeadapterkt.R
import ro.andreidobrescu.declarativeadapterkt.model.CommentsHeader
class CommentsHeaderCellView : CellView<Comme... |
app/src/main/java/com/alexandreobsilva/a12passosnamauricio/view/activitys/TelaDeLoginActivity.kt | unknown_repo | kotlin | package com.alexandreobsilva.a12passosnamauricio.view.activitys
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.LayoutInflater
import android.widget.ArrayAdapter
import android.widget.Button
import android.widget.EditText
import android.widget.... |
core/src/main/java/io/stanwood/framework/arch/core/ViewDataProvider.kt | unknown_repo | kotlin | package io.stanwood.framework.arch.core
import androidx.lifecycle.ViewModel
abstract class ViewDataProvider : ViewModel() |
components/remote-controls/setup/impl/src/main/kotlin/com/flipperdevices/remotecontrols/impl/setup/presentation/viewmodel/SaveTempSignalViewModel.kt | unknown_repo | kotlin | package com.flipperdevices.remotecontrols.impl.setup.presentation.viewmodel
import android.content.Context
import com.flipperdevices.bridge.dao.api.model.FlipperFilePath
import com.flipperdevices.bridge.rpc.api.FlipperStorageApi
import com.flipperdevices.core.di.AppGraph
import com.flipperdevices.core.ktx.jre.launchWi... |
shared/src/commonMain/kotlin/com/cramsan/minesweepers/common/ui/EdgeArrows.kt | unknown_repo | kotlin | package com.cramsan.minesweepers.common.ui
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
... |
app/src/main/java/com/vishalgaur/shoppingapp/ui/loginSignup/LoginSignupBaseFragment.kt | unknown_repo | kotlin | package com.ecom.shoppingapp.ui.loginSignup
import android.content.Intent
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.viewbinding.ViewBinding
impo... |
SampleCodeKotlin/src/main/kotlin/com/huawei/arengine/demos/body3d/BodyActivity.kt | unknown_repo | kotlin | /**
* Copyright 2021. Huawei Technologies Co., Ltd. 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 req... |
feature/pokemon-databinding/src/main/java/com/mcgrady/xproject/feature/pokemon/databinding/ui/details/PokemonDetailViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2022 mcgrady
*
* 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 ... |
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/covidcertificate/common/statecheck/DccStateCheckSchedulerTest.kt | unknown_repo | kotlin | package de.rki.coronawarnapp.covidcertificate.common.statecheck
import androidx.work.ExistingPeriodicWorkPolicy
import androidx.work.WorkManager
import de.rki.coronawarnapp.covidcertificate.signature.core.DscSignatureList
import de.rki.coronawarnapp.covidcertificate.signature.core.DscRepository
import de.rki.coronawar... |
template/android/app/src/release/java/com/helloworld/ReactNativeFlipper.kt | unknown_repo | kotlin | package com.helloworld
import android.content.Context
import com.facebook.react.ReactInstanceManager
/**
* Class responsible of loading Flipper inside your React Native application. This is the release
* flavor of it so it's empty as we don't want to load Flipper.
*/
object ReactNativeFlipper {
@Suppress("UNUSED... |
Common/src/main/java/cn/githink/common/presenter/activity/AppActivity.kt | unknown_repo | kotlin | package cn.githink.common.presenter.activity
import android.os.Bundle
import cn.githink.common.common.AppManager
import com.jaeger.library.StatusBarUtil
import com.trello.rxlifecycle.components.support.RxAppCompatActivity
abstract class AppActivity: RxAppCompatActivity() {
override fun onCreate(savedInstanceStat... |
dAds/defer/mopub/MoPubInterstialAd.kt | unknown_repo | kotlin | package com.dastanapps.dastanlib.ads.network.mopub
import android.app.Activity
import com.dastanapps.dastanlib.DastanAdsApp
import com.dastanapps.dastanlib.analytics.DAnalytics
import com.mopub.mobileads.MoPubErrorCode
import com.mopub.mobileads.MoPubInterstitial
/**
* Created by dastaniqbal on 19/12/2017.
* <EMAI... |
app/src/main/java/com/example/customerglu/PaymentActivity.kt | unknown_repo | kotlin | package com.example.customerglu
import android.content.Intent
import android.os.Bundle
import android.os.PersistableBundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProviders
import com.example.customerglu.R
import com.example.customerglu.db.CartVie... |
foosball/app/src/tablet/java/com/instructure/androidfoosball/utils/Commentator.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
app/src/main/java/com/cvte/maxhub/mvvmsample/models/database/VotingContentConverters.kt | unknown_repo | kotlin | package com.cvte.maxhub.mvvmsample.models.database
import androidx.room.TypeConverter
import com.cvte.maxhub.mvvmsample.models.data.VotingContent
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
class VotingContentConverters {
@TypeConverter
fun stringToObject(value: String): MutableList<... |
silhouette/src/main/java/com/freddy/silhouette/widget/button/SleTextButton.kt | unknown_repo | kotlin | package com.freddy.silhouette.widget.button
import android.content.Context
import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter
import android.graphics.drawable.DrawableContainer
import android.graphics.drawable.GradientDrawable
import android.graphics.drawable.StateListDrawable
import andr... |
app/src/main/java/mhw/inventory/materials/MaterialViewModelFactory.kt | unknown_repo | kotlin | package mhw.inventory.materials
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import mhw.inventory.db.MaterialDatabase
class MaterialViewModelFactory(private val context: Context): ViewModelProvider.Factory {
override fun <T : ViewModel> create(mode... |
Matcheap/app/src/main/java/com/sandy/seoul_matcheap/ui/search/SearchBaseFragment.kt | unknown_repo | kotlin | package com.sandy.seoul_matcheap.ui.search
import android.content.Context
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import androidx.annotation.LayoutRes
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.viewModels
import androidx.recyclerview.widget.Recycl... |
post/src/main/java/com/github/wlara/nextgen/post/ui/details/PostDetailsViewModel.kt | unknown_repo | kotlin | package com.github.wlara.nextgen.post.ui.details
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.github.wlara.nextgen.core.ext.friendlyMessage
import com.github.wlara.nextgen.core.navigation.ArgPostId
import com.github.wlara.nextgen.pos... |
app/src/androidTest/kotlin/org/andstatus/app/note/NoteEditorDataTest.kt | unknown_repo | kotlin | package org.andstatus.app.note
import android.net.Uri
import android.provider.BaseColumns
import org.andstatus.app.account.MyAccount
import org.andstatus.app.context.DemoData
import org.andstatus.app.context.MyContextHolder
import org.andstatus.app.context.TestSuite
import org.andstatus.app.data.AttachedImageFiles
imp... |
solution/GeoBreadcrumbs/app/src/main/java/ns/fajnet/android/geobreadcrumbs/activities/main/current_track/CurrentTrackFragment.kt | unknown_repo | kotlin | package ns.fajnet.android.geobreadcrumbs.activities.main.current_track
import android.annotation.SuppressLint
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.viewModels
import androidx.... |
app/src/main/java/com/linecorp/linesdk/sample/ui/theme/Color.kt | unknown_repo | kotlin | package com.linecorp.linesdk.sample.ui.theme
import androidx.compose.ui.graphics.Color
val md_theme_light_primary = Color(0xFF006399)
val md_theme_light_onPrimary = Color(0xFFFFFFFF)
val md_theme_light_primaryContainer = Color(0xFFCDE5FF)
val md_theme_light_onPrimaryContainer = Color(0xFF001D32)
val md_theme_light_se... |
castawayplayer/src/androidTest/java/io/github/lazyengineer/castawayplayer/ExampleInstrumentedTest.kt | unknown_repo | kotlin | package io.github.lazyengineer.castawayplayer
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import org.junit.*
import org.junit.Assert.*
import org.junit.runner.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing docu... |
app/src/main/java/com/knw/myfunandroid/ui/official/viewpager/OfficialViewPagerFragment.kt | unknown_repo | kotlin | package com.knw.myfunandroid.ui.official.viewpager
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.Vi... |
app/src/main/java/com/example/rootdrawerlayout/sample/RootDrawerLayout.kt | unknown_repo | kotlin | package com.example.rootdrawerlayout.sample
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import com.example.rootdrawerlayout.RootDrawerLayout
import com.example.rootdrawerlayout.rememberRootDrawerState
@Composable
fun RootDrawerLayoutContent() {
val rootDrawerLayou... |
common/src/commonMain/kotlin/com/mvk/common/ui/CanvasAppContent.kt | unknown_repo | kotlin | package com.mvk.common.ui
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.runtime.Composable
import com.mvk.common.ui.state.CanvasAppState
@Composable
expect fun CanvasAppScaffoldContent(innerPaddingModifier: PaddingValues, appState: CanvasAppState)
|
phone/src/main/java/dev/synople/glassecho/phone/adapters/PairedDeviceAdapter.kt | unknown_repo | kotlin | package dev.synople.glassecho.phone.adapters
import android.bluetooth.BluetoothDevice
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import dev.synople.glassecho.phone.databinding.CardPairedDeviceBinding
class PairedDeviceAdapter(
private val pair... |
app/src/main/java/com/mathews/codetracker/app/di/DatabaseModule.kt | unknown_repo | kotlin | package com.mathews.codetracker.app.di
import android.content.Context
import com.mathews.database_module.DatabaseClass
import dagger.Module
import dagger.Provides
@Module(includes = [ContextModule::class])
class DatabaseModule {
@Provides
@ApplicationScope
fun getDatabase(@ApplicationContext context: Con... |
library/src/main/java/com/molo17/couchbase/lite/ReplicatorExtensions.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020 MOLO17
*
* 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 ... |
feature_search/src/main/java/com/myk/feature/search/presentation/search/SearchFragment.kt | unknown_repo | kotlin | package com.myk.feature.search.presentation.search
import android.os.Bundle
import android.os.Handler
import android.os.Parcelable
import android.view.View
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.FragmentNavigatorExt... |
src/commonMain/kotlin/com/outsidesource/oskitkmp/concurrency/FlowExt.kt | unknown_repo | kotlin | package com.outsidesource.oskitkmp.concurrency
import kotlinx.coroutines.*
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.launch
class FlowTimeoutCancellati... |
RouterLib/src/main/java/com/kronos/router/RouterLoader.kt | unknown_repo | kotlin | package com.kronos.router
import android.app.Application
import com.kronos.router.utils.ClassUtils
/**
* Created by <NAME> on 2017/8/28.
* Email <EMAIL>
*/
internal class RouterLoader {
var isLoadingFinish = false
private set
fun attach(context: Application) {
try {
val cla... |
solar/src/main/java/com/chiksmedina/solar/broken/call/EndCallRounded.kt | unknown_repo | kotlin | package com.chiksmedina.solar.broken.call
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.Round
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mi... |
lib-chain-bitcoin/src/androidTest/java/com/smallraw/chain/bitcoin/transaction/build/P2wshTransferBuild.kt | unknown_repo | kotlin | package com.smallraw.chain.bitcoin.transaction.build
import android.util.Log
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.smallraw.chain.bitcoin.Bitcoin
import com.smallraw.chain.bitcoin.BitcoinKit
import com.smallraw.chain.bitcoin.models.UnspentOutput
import com.smallraw.chain.bitcoin.transaction.D... |
src/main/kotlin/view/canvas/CanvasView.kt | unknown_repo | kotlin | package view.canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import viewModel.canvas.CanvasViewModel
@Composable
fun CanvasView(
viewModel: Ca... |
multiplatform/src/commonMain/kotlin/com/vsevolodganin/clicktrack/ui/piece/CueSummaryView.kt | unknown_repo | kotlin | package com.vsevolodganin.clicktrack.ui.piece
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.width
import androidx.compose.material.LocalTextStyle
import androidx.compose.material.... |
shared/src/commonMain/kotlin/me/jack/compose/chart/component/CandleStickChart.kt | unknown_repo | kotlin | package me.jack.compose.chart.component
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.f... |
app/src/main/java/com/agenda/up/Notificacao.kt | unknown_repo | kotlin | package com.agenda.up
import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.os.Parcel
import android.os.Parcelable
class Notificacao() : Service() {
constructor(parcel: Parcel) : this()
override fun onBind(p0: Intent?): IBinder? {
TODO("Not yet implemented"... |
app/src/main/java/com/sgc/speedometer/data/bd/dao/SpeedometerRecordDao.kt | unknown_repo | kotlin | package com.sgc.speedometer.data.bd.dao
import androidx.room.*
import com.sgc.speedometer.SpeedometerRecord
import io.reactivex.Flowable
@Dao
interface SpeedometerRecordDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertSpeedometerRecord(speedometerRecord: SpeedometerRecord):Long
@Update
... |
test-utils-koin/src/commonTest/kotlin/KoinUIThreadViewModelTestTest.kt | unknown_repo | kotlin | /*
Copyright 2022 Splendo Consulting B.V. The Netherlands
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 appli... |
lib/src/main/java/com/lab/zhangll/magicpen/lib/shapes/MagicShape.kt | unknown_repo | kotlin | package com.lab.zhangll.magicpen.lib.shapes
import android.graphics.PointF
import android.util.Log
import android.view.View
import com.lab.zhangll.magicpen.lib.base.MagicDraw
import com.lab.zhangll.magicpen.lib.base.MagicGesture
import com.lab.zhangll.magicpen.lib.base.MagicLocation
import com.lab.zhangll.magicpen.lib... |
app/src/main/java/com/consistence/pinyin/app/detail/PinyinDetailModel.kt | unknown_repo | kotlin | package com.consistence.pinyin.app.detail
import android.app.Application
import com.consistence.pinyin.Model
import io.reactivex.Observable
import javax.inject.Inject
class PinyinDetailModel @Inject internal constructor(
private val pinyinParcel: PinyinParcel, application: Application)
: Model<PinyinDeta... |
app/src/test/java/com/willowtree/vocable/presets/PresetsViewModelTest.kt | unknown_repo | kotlin | package com.willowtree.vocable.presets
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import app.cash.turbine.test
import com.willowtree.vocable.FakeCategoriesUseCase
import com.willowtree.vocable.FakePhrasesUseCase
import com.willowtree.vocable.MainDispatcherRule
import com.willowtree.vocable.getO... |
app/src/main/java/com/gbros/tabslite/compose/songversionlist/SongVersionList.kt | unknown_repo | kotlin | package com.gbros.tabslite.compose.songversionlist
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import com.gbros.tabslite.data.tab.ITab
import com.gbros.tabslite.data.tab.Ta... |
sdk/src/main/java/co/omise/android/api/Client.kt | unknown_repo | kotlin | package co.omise.android.api
import android.os.Build
import android.os.Handler
import co.omise.android.models.Model
import okhttp3.ConnectionSpec
import okhttp3.OkHttpClient
import okhttp3.TlsVersion
import java.util.concurrent.Executor
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
import ... |
Kotlin/Code/Kotlin-Github/app/src/main/java/com/bennyhuo/github/view/RepoDetailActivity.kt | unknown_repo | kotlin | package com.bennyhuo.github.view
import android.os.Bundle
import com.bennyhuo.experimental.coroutines.awaitOrError
import com.bennyhuo.experimental.coroutines.launchUI
import com.bennyhuo.github.R
import com.bennyhuo.github.network.GraphQLService
import com.bennyhuo.github.network.entities.Repository
import com.bennyh... |
app/src/main/java/id/arvigo/arvigobasecore/JetArvigoApp.kt | unknown_repo | kotlin | package id.arvigo.arvigobasecore
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.AccountCircle
import androidx.compose.material.icons.filled.Home
import androidx.compose.material.icons.filled.ShoppingCart
import androidx.compo... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/LockOpenAlt.kt | unknown_repo | kotlin | package me.localx.icons.rounded.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
... |
app/src/main/java/com/kashifali/admobadslibrary/activity/MainActivity.kt | unknown_repo | kotlin | package com.kashifali.admobadslibrary.activity
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.cardview.widget.CardView
import androidx.core.content.ContentProviderCompat.requireContext
import androidx.lifecycle.MutableLiveData
import com.google.android... |
app/src/main/java/com/lixicode/rulerdemo/databinding/adapters/RulerBindingAdapter.kt | unknown_repo | kotlin | package com.lixicode.rulerdemo.databinding.adapters
import androidx.databinding.BindingAdapter
import androidx.databinding.InverseBindingAdapter
import androidx.databinding.InverseBindingListener
import androidx.databinding.adapters.ListenerUtil
import com.lixicode.ruler.RulerView
import com.lixicode.rulerdemo.R
/**
... |
junit4-android-integration-rules/src/androidTest/java/com/vanniktech/junit4androidintegrationrules/DefaultLocaleRuleWithPreferenceTest.kt | unknown_repo | kotlin | package com.vanniktech.junit4androidintegrationrules
import android.os.Build.VERSION_CODES
import androidx.annotation.RequiresApi
import androidx.test.rule.ActivityTestRule
import org.assertj.core.api.Java6Assertions.assertThat
import org.junit.FixMethodOrder
import org.junit.Rule
import org.junit.Test
import org.juni... |
app/src/test/java/pk/sufiishq/app/utils/extension/KalamExtensionTest.kt | unknown_repo | kotlin | /*
* Copyright 2022-2023 SufiIshq
*
* 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... |
pokechu/app/src/main/java/fr/amazer/pokechu/ui/settings/ActivitySettings.kt | unknown_repo | kotlin | package fr.amazer.pokechu.ui.settings
import android.app.AlertDialog
import android.content.res.Configuration
import android.os.Bundle
import androidx.appcompat.app.AppCompatDelegate
import androidx.preference.ListPreference
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
impo... |
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/grid/LazyMeasuredItem.kt | unknown_repo | kotlin | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
MainPage/src/main/java/com/zj/main/MainActivity.kt | unknown_repo | kotlin | package com.zj.main
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.os.Handler
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.core.graphics.ColorUtils
import com.gyf.immersionbar.ImmersionBar
import com.zj.main.databinding.Ac... |
app/src/main/java/com/yuhang/novel/pirate/ui/main/fragment/MainFragment.kt | unknown_repo | kotlin | package com.yuhang.novel.pirate.ui.main.fragment
import android.annotation.SuppressLint
import android.os.Handler
import android.os.Looper
import android.util.Log
import android.view.MenuItem
import android.view.View
import androidx.appcompat.widget.PopupMenu
import androidx.core.content.ContextCompat
import androidx.... |
lib/src/main/java/com/vander/scaffold/screen/Screen.kt | unknown_repo | kotlin | package com.vander.scaffold.screen
import android.app.Activity
import android.arch.lifecycle.ViewModelProvider
import android.arch.lifecycle.ViewModelProviders
import android.content.Intent
import android.os.Bundle
import android.support.annotation.LayoutRes
import android.support.v4.app.Fragment
import android.view.L... |
app/src/main/java/com/felipearaujo/newsapp/articles/ArticlesActivity.kt | unknown_repo | kotlin | package com.felipearaujo.newsapp.articles
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.MenuItem
import android.widget.FrameLayout
import com.felipearaujo.data.INTENT_ARTICLE
import com.felipearaujo.data.INTENT_SOURCE
import com.felipearaujo.data.INTENT_SOURCE_NAME
import com.feli... |
app/src/main/java/com/popov/egeanswers/ui/IntroUserParamsFragment.kt | unknown_repo | kotlin | package com.popov.egeanswers.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ArrayAdapter
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProviders
import com.popov.ege... |
app/src/main/java/com/flowfoundation/wallet/page/nft/nftlist/adapter/NftListPageAdapter.kt | unknown_repo | kotlin | package com.flowfoundation.wallet.page.nft.nftlist.adapter
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentStatePagerAdapter
import com.flowfoundation.wallet.page.nft.nftlist.NFTFragment
import com.flowfoundation.wallet.page.nft.nftlist.NftGridFragment
import com.flowfoundation.wallet.page.n... |
app/src/main/java/com/no5ing/bbibbi/presentation/feature/view/main/profile/ProfilePageTopBar.kt | unknown_repo | kotlin | package com.no5ing.bbibbi.presentation.feature.view.main.profile
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Icon
import androidx.compose.mater... |
shared/src/iosMain/kotlin/presentation/ui/composable/BackHandler.kt | unknown_repo | kotlin | package presentation.ui.composable
import androidx.compose.runtime.Composable
@Composable
internal actual fun BackHandler(enabled: Boolean, onBack: () -> Unit) = Unit
|
bi_gol_mpp_android/app/src/main/java/software/egger/gol/GameActivity.kt | unknown_repo | kotlin | package software.egger.gol
import android.arch.lifecycle.ViewModelProviders
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.Menu
import android.view.MenuItem
import kotlinx.android.synthetic.main.activity_game.*
import software.egge... |
modules/tak/compose/icons/src/main/kotlin/dev/jonpoulton/alakazam/tak/compose/icons/radial/ManualPointEntry.kt | unknown_repo | kotlin | package dev.jonpoulton.alakazam.tak.compose.icons.radial
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.Str... |
app/src/main/java/com/example/androidtemplate/navigation/HomeNavigation.kt | unknown_repo | kotlin | package com.example.androidtemplate.navigation
import android.widget.Toast
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import com.example.androidtemplate.ui.HomeRoute
const v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.