file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/lazyian/app/TestAdapter.kt | unknown_repo | kotlin | package com.lazyian.app
import android.view.LayoutInflater
import android.view.ViewGroup
import com.lazyian.app.databinding.ItemBaseBindBinding
import com.lazyian.tool.base.adapter.BaseBindAdapter
import com.lazyian.tool.base.adapter.holder.BaseViewHolder
/**
* Created by Ian on 2023/12/28
* Email: yixin0212@qq.com... |
app/app/src/main/java/com/example/genshin_wiki/database/entities/ElementEntity.kt | unknown_repo | kotlin | package com.example.genshin_wiki.database.entities
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class ElementEntity(
@ColumnInfo(name = "element_id")@PrimaryKey val id: String,
@ColumnInfo(name = "element_name") val name: String,
@ColumnInfo(name... |
app/src/main/kotlin/com/asadmshah/livecolorpicker/screens/ActivityModule.kt | unknown_repo | kotlin | package com.asadmshah.livecolorpicker.screens
import android.content.Context
import com.asadmshah.livecolorpicker.scopes.ActivityScope
import com.asadmshah.livecolorpicker.widgets.BaseActivity
import dagger.Module
import dagger.Provides
@Module
class ActivityModule(private val activity: BaseActivity) {
@Provides... |
app/src/main/java/com/example/composecontacts/ui/item/ItemDetailsScreen.kt | unknown_repo | kotlin | package com.example.composecontacts.ui.item
import android.graphics.BitmapFactory
import androidx.annotation.StringRes
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.slideInVertically
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
... |
app/src/main/java/com/example/sleeptracker/MyApplication.kt | unknown_repo | kotlin | package com.example.sleeptracker
import android.app.Application
class MyApplication : Application() {
val db by lazy { AppDatabase.getInstance(this) }
} |
sample-app/src/main/java/com/mohsenoid/closetome/sample/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
Mobile/Android/app/src/main/java/com/utn/frba/desarrollomobile/hunter/viewmodel/CreateGameViewModel.kt | unknown_repo | kotlin | package com.utn.frba.desarrollomobile.hunter.viewmodel
import android.graphics.Bitmap
import android.location.Location
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.utn.frba.desarrollomobile.hunter.service.models.Game
class CreateGameViewModel : ViewModel() {
private va... |
Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/CustomApplication.kt | unknown_repo | kotlin | /*
* Copyright 2018-2019 Prebid.org, 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 ... |
app/src/main/java/vn/loitp/app/activity/customviews/layout/swipebacklayout/SwipeBackLayoutActivity.kt | unknown_repo | kotlin | package vn.loitp.app.activity.customviews.layout.swipebacklayout
import android.os.Bundle
import android.view.View
import android.widget.RadioGroup
import com.annotation.IsFullScreen
import com.annotation.IsSwipeActivity
import com.annotation.LogTag
import com.core.base.BaseFontActivity
import com.core.utilities.LActi... |
mvi/src/main/kotlin/com/yerastov/assignment/pokedex/mvi/viewModel/BaseViewModel.kt | unknown_repo | kotlin | package com.yerastov.assignment.pokedex.mvi.viewModel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.yerastov.assignment.pokedex.mvi.Feature
import com.yerastov.assignment.pokedex.mvi.UiEffect
import com.yerastov.assignment.pokedex.mvi.UiEvent
import com.yerastov.assignment.pok... |
app/src/main/java/com/vidyacharan/urbandictionary/data/local/DatabaseService.kt | unknown_repo | kotlin | package com.vidyacharan.urbandictionary.data.local
import androidx.room.Database
import androidx.room.RoomDatabase
import com.vidyacharan.urbandictionary.data.model.DefinitionData
@Database(entities = [DefinitionData::class], version = 1)
abstract class DatabaseService : RoomDatabase() {
abstract fun definitionD... |
bitapp/src/main/java/com/atech/bit/service/FcmService.kt | unknown_repo | kotlin | /*
* BIT Lalpur App
*
* Created by Ayaan on 3/22/22, 10:45 PM
* Copyright (c) 2022 . All rights reserved.
* Last modified 3/22/22, 10:27 AM
*/
package com.atech.bit.service
import android.Manifest
import android.annotation.SuppressLint
import android.app.PendingIntent
import android.content.Intent
import andr... |
lib/src/androidTest/java/com/otaliastudios/transcoder/integration/IssuesTests.kt | unknown_repo | kotlin | package com.otaliastudios.transcoder.integration
import android.media.MediaMetadataRetriever.METADATA_KEY_DURATION
import android.media.MediaMetadataRetriever
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.otaliastudios.transcoder.Transcoder
im... |
app/src/main/kotlin/com/marcoassenza/shoppy/views/fragments/bottomsheets/AddItemToStorageFragment.kt | unknown_repo | kotlin | package com.marcoassenza.shoppy.views.fragments.bottomsheets
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.flowWithLifecycle
import androidx... |
stripe/src/main/java/com/stripe/android/cards/DefaultCardAccountRangeRepositoryFactory.kt | unknown_repo | kotlin | package com.stripe.android.cards
import android.content.Context
import com.stripe.android.AnalyticsDataFactory
import com.stripe.android.AnalyticsRequest
import com.stripe.android.AnalyticsRequestExecutor
import com.stripe.android.ApiRequest
import com.stripe.android.PaymentConfiguration
import com.stripe.android.Stri... |
ImagePicker/src/main/java/org/xfort/rock/imagepicker/adapter/MediasAdapter.kt | unknown_repo | kotlin | package org.xfort.rock.imagepicker.adapter
import android.content.ContentResolver
import android.content.ContentUris
import android.database.Cursor
import android.net.Uri
import android.provider.MediaStore
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.C... |
app-feature/home/src/commonMain/kotlin/dev/sergiobelda/todometer/app/feature/home/ui/HomeState.kt | unknown_repo | kotlin | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
app/src/main/java/com/mk/sheets/compose/ShowcaseDialogSamplesScreen.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022-2023. <NAME> (https://www.maxkeppeler.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
mediapicker/src/main/java/com/greentoad/turtlebody/mediapicker/core/CursorHelper.kt | unknown_repo | kotlin | package com.greentoad.turtlebody.mediapicker.core
import android.annotation.SuppressLint
import android.content.Context
import android.database.Cursor
import android.provider.MediaStore
import com.greentoad.turtlebody.mediapicker.MediaPicker
/**
* Created by WANGSUN on 27-Mar-19.
*/
object CursorHelper {
/**... |
app/src/main/java/com/hlxh/interactivevideotool/ui/homepage/HomepageFragment.kt | unknown_repo | kotlin | package com.hlxh.interactivevideotool.ui.homepage
import android.os.Bundle
import android.util.Log
import android.view.*
import android.view.View.*
import android.widget.CheckBox
import android.widget.CompoundButton
import android.widget.TextView
import android.widget.Toast
import androidx.core.view.children
import an... |
compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/lazy/LazyListsReverseLayoutTest.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/ru/merkulyevsasha/news/presentation/common/newsadapter/NewsViewAdapter.kt | unknown_repo | kotlin | package ru.merkulyevsasha.news.presentation.common.newsadapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import kotlinx.android.synthetic.main.row_news.view.im... |
app/src/main/java/app/grapheneos/camera/GallerySliderAdapter.kt | unknown_repo | kotlin | package app.grapheneos.camera
import android.content.Intent
import android.graphics.ImageDecoder
import android.net.Uri
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import app.grapheneos.camera... |
devfun/src/main/java/com/nextfaze/devfun/overlay/Permissions.kt | unknown_repo | kotlin | package com.nextfaze.devfun.overlay
import android.annotation.TargetApi
import android.app.Application
import android.app.Dialog
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import... |
shared/src/commonMain/kotlin/composable/dialog/CoinFlipDialog.kt | unknown_repo | kotlin | package composable.dialog
import androidx.compose.foundation.Image
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.found... |
wudaozi/src/main/java/com/josephuszhou/wudaozi/view/PreviewActivity.kt | unknown_repo | kotlin | package com.josephuszhou.wudaozi.view
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.view.WindowManager
import android.widget.FrameLayout
import androidx.activity.result.ActivityResultLauncher
import androidx.appcompat.app.AppCompatActivity
im... |
Application/src/main/java/com/bihe0832/android/app/permission/AAFPermissionManager.kt | unknown_repo | kotlin | package com.bihe0832.android.app.permission
import android.Manifest
import android.content.Intent
import android.provider.Settings
import com.bihe0832.android.common.photos.takePhotoPermission
import com.bihe0832.android.framework.ZixieContext
import com.bihe0832.android.lib.notification.NotifyManager
import com.bihe0... |
sample/src/main/kotlin/dev/olshevski/navigation/reimagined/sample/ui/demo/ReturnResultsScreen.kt | unknown_repo | kotlin | package dev.olshevski.navigation.reimagined.sample.ui.demo
import android.os.Parcelable
import androidx.compose.material.Button
import androidx.compose.material.OutlinedTextField
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import androidx.c... |
app/src/main/java/com/lanyard/pirateerlite/views/MapScrollView.kt | unknown_repo | kotlin | /*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
app/src/main/java/fr/nextoo/androidmvp/firstactivity/FirstActivity.kt | unknown_repo | kotlin | package fr.nextoo.androidmvp.firstactivity
import android.os.Bundle
import fr.nextoo.androidmvp.R
import fr.nextoo.androidmvp.di.base.BaseActivity
import fr.nextoo.androidmvp.di.base.BaseFragment
import fr.nextoo.androidmvp.firstfragment.FirstFragment
import fr.nextoo.androidmvp.ws.WSExample
import kotlinx.android.syn... |
next/kmp/dwebview/src/commonMain/kotlin/org/dweb_browser/dwebview/base/ViewItem.kt | unknown_repo | kotlin | package org.dweb_browser.dwebview.base
import kotlinx.coroutines.CoroutineScope
import org.dweb_browser.dwebview.IDWebView
/*data class ViewItem(
val webviewId: String,
val webView: DWebView,
val state: WebViewState,
val navigator: WebViewNavigator,
val coroutineScope: CoroutineScope,
var hidden: Boolean ... |
app/src/main/kotlin/com/dvinc/notepad/presentation/ui/notepad/NotepadViewModel.kt | unknown_repo | kotlin | package com.dvinc.notepad.presentation.ui.notepad
import androidx.lifecycle.MutableLiveData
import com.dvinc.notepad.R
import com.dvinc.notepad.domain.usecase.notepad.NotepadUseCase
import com.dvinc.notepad.presentation.mapper.NotePresentationMapper
import com.dvinc.notepad.presentation.model.NoteUi
import com.dvinc.n... |
client-android/src/androidTest/java/eventually/test/client/persistence/tasks/TaskEntityDatabaseSpec.kt | unknown_repo | kotlin | package eventually.test.client.persistence.tasks
import android.content.Context
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import eventually.client.persistence.tasks.TaskEntity
import eventual... |
app/src/main/java/com/drewbitt/trntlist/ui/DetailsActivity.kt | unknown_repo | kotlin | package com.drewbitt.trntlist.ui
import android.os.Bundle
import android.widget.EditText
import com.drewbitt.trntlist.R
import com.drewbitt.trntlist.data.ViewModel
import com.drewbitt.trntlist.data.model.TrntJson
import com.google.android.material.floatingactionbutton.FloatingActionButton
import dagger.android.support... |
app/src/main/java/com/example/movplayv3/ui/components/items/MovplayResultPresentableItem.kt | unknown_repo | kotlin | package com.example.movplayv3.ui.components.items
import android.annotation.SuppressLint
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layo... |
app/app/src/main/java/xyz/mirage/app/presentation/navigation/Navigation.kt | unknown_repo | kotlin | package xyz.mirage.app.presentation.navigation
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.material.rememberScaffoldState
import androidx.compose.runtime.Composable
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.platform.LocalContext
import android... |
app/src/main/java/com/akter/videostoryview/VideoStoryAdapter.kt | unknown_repo | kotlin | package com.akter.videostoryview
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.akter.videostoryview.databinding.RowVideoShopFullViewBinding
class VideoStor... |
app/src/main/java/org/listenbrainz/android/ui/screens/yim/YearInMusicActivity.kt | unknown_repo | kotlin | package org.listenbrainz.android.ui.screens.yim
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import ... |
shared/src/commonMain/kotlin/Colors.kt | unknown_repo | kotlin | import androidx.compose.material.Colors
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
open class Colors {
companion object {
@get:Composable
val Colors.maroon: Color
get() = Color(0xFF88022B)
@get:Composable
val Colors.yellow: Colo... |
app/src/androidTest/java/com/xeniac/fifaultimateteamcoin_dsfut_sell_fut/feature_onboarding/presentation/OnboardingScreenTest.kt | unknown_repo | kotlin | package com.xeniac.fifaultimateteamcoin_dsfut_sell_fut.feature_onboarding.presentation
import android.content.Context
import android.content.Intent
import androidx.activity.compose.setContent
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertTextEquals
import androidx.compose.ui.t... |
app/src/main/java/vn/loitp/a/cv/dragView/MenuDragViewActivity.kt | unknown_repo | kotlin | package vn.loitp.a.cv.dragView
import android.content.Intent
import android.os.Bundle
import androidx.core.view.isVisible
import com.loitp.annotation.IsFullScreen
import com.loitp.annotation.LogTag
import com.loitp.core.base.BaseActivityFont
import com.loitp.core.ext.setSafeOnClickListener
import com.loitp.core.ext.se... |
themes/new-ui/new-ui-standalone/src/main/kotlin/org/jetbrains/jewel/themes/expui/standalone/style/AreaColors.kt | unknown_repo | kotlin | package org.jetbrains.jewel.themes.expui.standalone.style
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.runtime.Composable
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Brush
i... |
location/src/test/java/org/odk/collect/location/tracker/ForegroundServiceLocationTrackerTest.kt | unknown_repo | kotlin | package org.odk.collect.location.tracker
import android.app.Application
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.google.android.gms.location.LocationListener
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.equalTo
import... |
app/src/main/java/com/rudione/tranquilhaven/ui/authorization/fragments/AccountOptionsFragment.kt | unknown_repo | kotlin | package com.rudione.tranquilhaven.ui.authorization.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.rudione.tranquilhaven.R
import com.rudio... |
video-common-ui/src/test/java/com/kaleyra/video_common_ui/notification/receiver/hms/HmsPushNotificationReceiverTest.kt | unknown_repo | kotlin | package com.kaleyra.video_common_ui.notification.receiver.hms
import android.content.Intent
import androidx.work.OneTimeWorkRequest
import androidx.work.WorkManager
import com.kaleyra.video_common_ui.KaleyraVideoSharedPrefs
import com.kaleyra.video_common_ui.PushNotificationHandlingStrategy
import com.kaleyra.video_ut... |
app/src/main/java/com/ebnrdwan/task/presentation/details/ArticleDetailsFragment.kt | unknown_repo | kotlin | package com.ebnrdwan.task.presentation.details
import android.content.Context
import android.os.Bundle
import android.view.Menu
import android.view.MenuInflater
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.frag... |
app/src/main/java/com/playlab/marvelcomicsinfo/model/MarvelRemoteKeys.kt | unknown_repo | kotlin | package com.playlab.marvelcomicsinfo.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.playlab.marvelcomicsinfo.util.Constants.MARVEL_REMOTE_KEYS_TABLE
@Entity(tableName = MARVEL_REMOTE_KEYS_TABLE)
data class MarvelRemoteKeys(
@PrimaryKey(autoGenerate = false)
val id: String,
va... |
app/src/main/java/com/playlab/marvelcomicsinfo/model/MarvelRemoteKeys.kt | unknown_repo | kotlin | package com.playlab.marvelcomicsinfo.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.playlab.marvelcomicsinfo.util.Constants.MARVEL_REMOTE_KEYS_TABLE
@Entity(tableName = MARVEL_REMOTE_KEYS_TABLE)
data class MarvelRemoteKeys(
@PrimaryKey(autoGenerate = false)
val id: String,
va... |
app/src/main/java/com/example/translateit/ui/theme/Color.kt | unknown_repo | kotlin | package com.example.translateit.ui.theme
import androidx.compose.ui.graphics.Color
val md_theme_light_primary = Color(0xFF006491)
val md_theme_light_onPrimary = Color(0xFFFFFFFF)
val md_theme_light_primaryContainer = Color(0xFFC9E6FF)
val md_theme_light_onPrimaryContainer = Color(0xFF001E2F)
val md_theme_light_seconda... |
puree/src/main/java/com/cookpad/puree/kotlin/PureeLogger.kt | unknown_repo | kotlin | package com.cookpad.puree.kotlin
import android.util.Log
import androidx.annotation.VisibleForTesting
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent
import com.cookpad.puree.kotlin.output.PureeBufferedOutput
import com.cookpad.puree.kotlin.out... |
app/src/main/java/com/gauvain/seigneur/goqo/presentation/viewmodel/MainViewModel.kt | unknown_repo | kotlin | package com.gauvain.seigneur.goqo.presentation.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import com.gauvain.seigneur.goqo.domain.model.toData
import com.gauvain.s... |
app/src/main/kotlin/com/mhp/showcase/navigation/DefaultRouter.kt | unknown_repo | kotlin | package com.mhp.showcase.navigation
import android.content.Context
import android.content.Intent
import android.content.Intent.FLAG_ACTIVITY_NEW_TASK
import android.net.Uri
import com.mhp.showcase.ShowcaseApplication
import com.mhp.showcase.navigation.Router.RouteTarget
import com.mhp.showcase.util.Constants
import ja... |
library/src/main/java/com/minminaya/policy/AbsRoundViewPolicy.kt | unknown_repo | kotlin | package com.mrbattery.policy
import android.content.Context
import android.util.AttributeSet
import android.view.View
import com.mrbattery.dip2px
/**
* 圆角策略抽象类
* @author minminaya
* @email <EMAIL>
* @time Created by 2019/6/8 0:27
*
*/
abstract class AbsRoundViewPolicy(
view: View,
context: Context,
... |
app/src/androidTest/kotlin/ItemDaoTest.kt | unknown_repo | kotlin | import android.app.Application
import android.content.Context
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.example.inventory.data.InventoryDatabase
import com.example.inventory.data.Item
import com.example.inventory.data.Item... |
gallerypicker/src/main/java/top/kikt/gallerypicker/ui/GridDividerDecoration.kt | unknown_repo | kotlin | package top.kikt.gallerypicker.ui
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.support.annotation.ColorInt
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.StaggeredGridLayoutMan... |
Crash/src/main/java/com/omega_r/base/crash/CrashInitProvider.kt | unknown_repo | kotlin | package com.omega_r.base.crash
import android.app.Application
import android.content.ContentProvider
import android.content.ContentValues
import android.database.Cursor
import android.net.Uri
import com.omega_r.base.crash.CrashSender.Companion
class CrashInitProvider: ContentProvider() {
override fun onCreate():... |
PushNotification/app/src/main/java/com/juhwan/anyang_yi/present/views/home/social/KakaoAdapter.kt | unknown_repo | kotlin | package com.juhwan.anyang_yi.present.views.home.social
import android.content.Intent
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.juhwan.anyang_yi.databinding.ItemKakaoBinding
import com.juhwan.anyang_yi.domain.model.Kakao
import com.juhwa... |
template/app/src/iosMain/kotlin/MainViewController.kt | unknown_repo | kotlin | import androidx.compose.ui.window.ComposeUIViewController
import kotli.app.App
fun MainViewController() = ComposeUIViewController { App() } |
sdk-core/src/main/java/com/ownid/sdk/internal/OwnIdActivity.kt | unknown_repo | kotlin | package com.ownid.sdk.internal
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.annotation.VisibleForTesting
import com.ownid.sdk.InternalOwnIdAPI
import com.ownid.sdk.exception.FlowCanceled
import com.ownid.sdk.exc... |
app/src/androidTest/java/com/vignesh/todo/common/repository/local/db/dao/TDTodoStatusDaoTest.kt | unknown_repo | kotlin | package com.vignesh.todo.common.repository.local.db.dao
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.test.filters.SmallTest
import com.google.common.truth.Truth
import com.vignesh.todo.common.dj.LNCommonRepositoryModuleTest
import com.vignesh.todo.common.repository.local.db.TDData... |
app/src/main/java/mil/nga/msi/ui/map/settings/layers/geopackage/MapGeopackageLayerSettingsScreen.kt | unknown_repo | kotlin | package mil.nga.msi.ui.map.settings.layers.geopackage
import android.net.Uri
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Close
impo... |
core/ui/src/main/kotlin/com/t8rin/imagetoolboxlite/core/ui/icons/material/Stacks.kt | unknown_repo | kotlin | /*
* ImageToolbox is an image editor for android
* Copyright (c) 2024 T8RIN (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under ... |
app/src/main/java/de/seemoo/at_tracking_detection/util/BindingAdapter.kt | unknown_repo | kotlin | package de.seemoo.at_tracking_detection.util
import android.annotation.SuppressLint
import android.bluetooth.le.ScanResult
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.databinding.BindingAdapter
import androidx.recyclerview.widget.RecyclerView
import com.googl... |
app/src/androidTest/java/com/example/countryapplication/ui/CountryScreenUiTest.kt | unknown_repo | kotlin | package com.example.countryapplication.ui
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithText
import com.example.countryapplication.model.Car
import com.example.countryapplication.model.CoatOfArms
import com.example.c... |
todo-sample/src/main/java/com/toggl/komposable/sample/todo/edit/EditStoreViewModel.kt | unknown_repo | kotlin | package com.toggl.komposable.sample.todo.edit
import androidx.lifecycle.ViewModel
import com.toggl.komposable.architecture.Store
import com.toggl.komposable.sample.todo.ViewStateProvider
import com.toggl.komposable.sample.todo.data.EditableTodoItem
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coro... |
app/src/main/java/com/ayia/nightmodekt/ThemeChanger.kt | unknown_repo | kotlin | package com.ayia.nightmodekt
import androidx.appcompat.app.AppCompatDelegate
class ThemeChanger{
operator fun invoke(theme: Theme) = change(theme)
private fun change(theme: Theme) {
when (theme) {
Theme.LIGHT_MODE -> AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO... |
modo-compose/src/main/java/com/github/terrakok/modo/Screen.kt | unknown_repo | kotlin | package com.github.terrakok.modo
import android.os.Parcelable
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
/**
* Basic interface for a Modo screen. Inherit for it directly if your screen is not going to have any nested screens.
* Use [ContainerScreen] for screens with nested screen... |
app/src/main/java/com/a10miaomiao/bilimiao/page/user/UserChannelDetailViewModel.kt | unknown_repo | kotlin | package com.a10miaomiao.bilimiao.page.user
import android.content.Context
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.a10miaomiao.bilimiao.MainNavGraph
import com.a10miaomiao.bilimiao.comm.MiaoBindingUi
import com.a10miaomiao.bilimiao.co... |
BoundServices/app/src/main/java/github/nisrulz/example/boundservices/MainActivity.kt | unknown_repo | kotlin | package github.nisrulz.example.boundservices
import android.content.ComponentName
import android.content.Intent
import android.content.ServiceConnection
import android.os.*
import androidx.appcompat.app.AppCompatActivity
import github.nisrulz.example.boundservices.databinding.ActivityMainBinding
class MainActivity : ... |
customize/canvas/src/main/java/com/tzt/custom/canvas/widget/PieView.kt | unknown_repo | kotlin | package com.tzt.studykt.customView.canvasdraw.widget
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
/**
* Description:
*
* @author tangzhentao
* @since 2020/4/26
*/
class BarView:... |
app/src/main/java/com/chronoscoper/android/securescreen/BootReceiver.kt | unknown_repo | kotlin | /*
* Copyright 2017 KoFuk
*
* 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 wri... |
app/src/main/java/com/elementary/tasks/reminder/build/valuedialog/controller/core/AbstractValueAndTypeController.kt | unknown_repo | kotlin | package com.elementary.tasks.reminder.build.valuedialog.controller.core
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.ViewGroup
import com.elementary.tasks.core.views.common.ValueAndTypePickerView
import com.elementary.tasks.databinding.BuilderItemValueAndTypeBinding
imp... |
dynamic/src/main/java/com/github/rviannaoliveira/dynamic/compose/presentation/ui/text/DynamicTextComposeRender.kt | unknown_repo | kotlin | package com.github.rviannaoliveira.dynamic.compose.presentation.ui.text
import androidx.compose.runtime.Composable
import com.github.rviannaoliveira.dynamic.compose.presentation.builder.DynamicComposeBuilder
import com.github.rviannaoliveira.dynamic.core.data.convertToVO
import com.github.rviannaoliveira.dynamic.core.... |
app/src/main/java/bapspatil/flickoff/ViewModelProviderFactory.kt | unknown_repo | kotlin | package bapspatil.flickoff
/*
** Created by Bapusaheb Patil {@link https://bapspatil.com}
*/
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
class ViewModelProviderFactory<V : Any>(private val viewModel: V) : ViewModelProvider.Factory {
override fun <T : ViewModel> create(model... |
app/src/main/java/org/oppia/app/profile/AddProfileActivityPresenter.kt | unknown_repo | kotlin | package org.oppia.app.profile
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.provider.MediaStore
import android.text.Editable
import android.text.TextWatcher
import android.view.inputmethod.InputMethodManager
import android.widget.ImageVie... |
app/src/main/java/com/ncs/o2/UI/Auth/usecases/ValidationEmail.kt | unknown_repo | kotlin | package com.ncs.o2.UI.Auth.usecases
import android.util.Patterns
import com.ncs.o2.Domain.Models.ValidationResult
/*
File : ValidationEmail.kt -> com.ncs.o2.UI.Auth.usecases
Description : Class for validating email
Author : <NAME> (VC uname : apple)
Link : https://github.com/arpitmx
From : Bitpolarity x Noshbae (@P... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/StickerAdd.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.StickerAdd: ImageVector
get() {
if (_stickerAdd != null) {
... |
workflow/src/main/java/com/google/android/fhir/workflow/activity/phase/request/PlanPhase.kt | unknown_repo | kotlin | /*
* Copyright 2024 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... |
imageloading-core/src/main/java/dev/chrisbanes/accompanist/imageloading/AndroidDrawablePainter.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
app/src/main/java/io/naika/coin_toss_sample_dapp/ClaimRewardDialogFragment.kt | unknown_repo | kotlin | package io.naika.coin_toss_sample_dapp
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import io.naika.coin_toss_sample_dapp.databinding.DialogClaim... |
sample/src/main/java/me/panpf/recycler/sticky/sample/adapter/item/AppHeaderItem.kt | unknown_repo | kotlin | package me.panpf.recycler.sticky.sample.adapter.item
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import me.panpf.adapter.AssemblyItem
import me.panpf.adapter.AssemblyItemFactory
import me.panpf.adapter.ktx.bindView
import me.panpf.recycler.sticky... |
app/src/main/java/com/mapmyindia/sdk/demo/kotlin/activity/NearbyUiActivity.kt | unknown_repo | kotlin | package com.mapmyindia.sdk.demo.kotlin.activity
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.mapmyindia.sdk.demo.R
import com.mapmyindia.sdk.demo.data... |
components-core/src/main/java/com/adyen/checkout/components/core/internal/ui/model/ButtonParams.kt | unknown_repo | kotlin | package com.adyen.checkout.components.core.internal.ui.model
import androidx.annotation.RestrictTo
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
interface ButtonParams {
val isSubmitButtonVisible: Boolean
}
|
biometric/src/main/java/dev/skomlach/biometric/compat/utils/DialogMainColor.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 <NAME> aka Salat-Cx65; Original project https://github.com/Salat-Cx65/AdvancedBiometricPromptCompat
* 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 ... |
sample-app/src/main/java/com/pierfrancescosoffritti/cyplayersample/MainActivity.kt | unknown_repo | kotlin | package com.pierfrancescosoffritti.cyplayersample
import android.annotation.SuppressLint
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.Intent
import android.graphics.Point
import android.net.Uri
import android.os.Build
import androidx.appcompat.app.AppCompatActi... |
features/game/src/main/java/io/github/japskiddin/sudoku/feature/component/autosizetext/DensityExt.kt | unknown_repo | kotlin | package com.bitvolper.yogazzz.presentation.accountsetup.utility
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.geometry.isSpecified
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.DpOffset
import ... |
app/src/main/java/dev/maxsiomin/luhn/extensions/Context.kt | unknown_repo | kotlin | package dev.maxsiomin.luhn.extensions
import android.content.Context
import androidx.preference.PreferenceManager
import dev.maxsiomin.luhn.util.SharedPrefs
fun Context.getDefaultSharedPrefs(): SharedPrefs =
PreferenceManager.getDefaultSharedPreferences(this)
|
app/src/main/java/xyz/junerver/composehooks/MainActivity.kt | unknown_repo | kotlin | package xyz.junerver.composehooks
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import an... |
org.librarysimplified.http.api/src/main/java/org/librarysimplified/http/api/LSHTTPClientProviderType.kt | unknown_repo | kotlin | package org.librarysimplified.http.api
import android.content.Context
/**
* A provider of HTTP clients.
*/
interface LSHTTPClientProviderType {
/**
* Create a new client using the given application context and configuration.
*/
fun create(
context: Context,
configuration: LSHTTPClientConfigurat... |
sample/src/main/java/re/notifica/sample/ui/monetize/products/MonetizeProductsListAdapter.kt | unknown_repo | kotlin | package re.notifica.sample.ui.monetize.products
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import re.notifica.monetize.models.NotificareProduct
import re.n... |
app/src/main/java/com/telen/easylineup/dashboard/DashboardFragment.kt | unknown_repo | kotlin | package com.telen.easylineup.dashboard
import android.content.DialogInterface
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.*
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.appcomp... |
app/src/main/java/com/example/shared_grocery_list/activities/MainActivity.kt | unknown_repo | kotlin | package com.example.shared_grocery_list.activities
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.example.shared_grocery_list.R
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser
import... |
app/src/main/java/com/example/androiddevchallenge/ui/components/ProgressBar.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... |
nutritionframework/src/main/java/com/frogobox/nutritionframework/recycler/core/INutriViewHolder.kt | unknown_repo | kotlin | package com.frogobox.nutritionframework.recycler.core
import android.view.View
/*
* Created by <NAME>
* =========================================
* NutriRecyclerViewAdapter
* Copyright (C) 14/04/2020.
* All rights reserved
* -----------------------------------------
* Name : <NAME>
* E-mail : <EMA... |
automata/file/src/main/java/com/lockwood/automata/file/DownloadDirectory.kt | unknown_repo | kotlin | package com.lockwood.automata.file
import android.content.Context
import android.os.Build
import android.os.Environment
import com.lockwood.automata.core.NotEmptyString
import com.lockwood.automata.core.notEmptyString
import java.io.File
import java.io.IOException
@kotlin.jvm.Throws(IOException::class)
@Suppress("DEP... |
fragmentlearning/app/src/main/java/org/javamaster/fragmentlearning/GlobalHandler.kt | unknown_repo | kotlin | package org.javamaster.fragmentlearning
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import android.os.Environment
import android.util.Log
import com.google.android.gms.common.util.Base64Utils
import okhttp3.Call
import okhttp3.Callback
import okhttp3.Response
import ... |
data/models/src/main/java/app/tivi/data/compoundmodels/EpisodeWithWatches.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 i... |
data/models/src/main/java/app/tivi/data/compoundmodels/EpisodeWithWatches.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 i... |
app/build/generated/source/navigation-args/debug/com/sample/musicx/fragments/LibraryFragmentDirections.kt | unknown_repo | kotlin | package com.sample.musicx.fragments
import android.os.Bundle
import android.os.Parcelable
import androidx.navigation.ActionOnlyNavDirections
import androidx.navigation.NavDirections
import com.sample.musicx.R
import com.sample.musicx.model.Album
import com.sample.musicx.model.Artist
import com.sample.musicx.model.Play... |
app/src/main/java/com/chalkbox/propertyfinder/MainApplication.kt | unknown_repo | kotlin | package com.chalkbox.propertyfinder
import android.app.Application
import com.chalkbox.propertyfinder.api.firebase.remoteconfig.RemoteConfigListenerImplementation
import com.chalkbox.propertyfinder.application.componentfactory.AppComponentFactory
import com.chalkbox.propertyfinder.application.components.BaseComponent
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.