file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
ui/ui-desktop/android-emu/src/desktopMain/kotlin/android/view/View.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... |
core-ui/src/main/java/com/anytypeio/anytype/core_ui/features/sets/viewer/ViewerCoverAdapter.kt | unknown_repo | kotlin | package com.anytypeio.anytype.core_ui.features.sets.viewer
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.anytypeio.anytype.core_ui.R
import com.anytypeio.anytype.core_ui.databinding.ItemViewerCoverDefaultBinding
imp... |
play-services-core/src/main/kotlin/org/microg/gms/ui/AccountsFragment.kt | unknown_repo | kotlin | /*
* SPDX-FileCopyrightText: 2024 microG Project Team
* SPDX-License-Identifier: Apache-2.0
*/
package org.microg.gms.ui
import android.accounts.Account
import android.accounts.AccountManager
import android.content.Intent
import android.graphics.Bitmap
import android.os.Bundle
import android.provider.Settings
impo... |
play-services-core/src/main/kotlin/org/microg/gms/ui/AccountsFragment.kt | unknown_repo | kotlin | /*
* SPDX-FileCopyrightText: 2024 microG Project Team
* SPDX-License-Identifier: Apache-2.0
*/
package org.microg.gms.ui
import android.accounts.Account
import android.accounts.AccountManager
import android.content.Intent
import android.graphics.Bitmap
import android.os.Bundle
import android.provider.Settings
impo... |
app/src/main/java/org/metabrainz/android/presentation/features/recording/RecordingInfoFragment.kt | unknown_repo | kotlin | package org.metabrainz.android.presentation.features.recording
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 org.metabrainz.android.data.sources.api.entities... |
app/src/main/java/com/mahmoud/mohammed/movieapp/presentation/ui/detail/MovieDetailsActivity.kt | unknown_repo | kotlin | package com.mahmoud.mohammed.movieapp.presentation.ui.detail
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.ImageView
import android.widget.TextV... |
service/src/main/java/com/bahadir/service/infrastructure/NotificationControlImpl.kt | unknown_repo | kotlin | package com.bahadir.service.infrastructure
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.graphics.BitmapFactory
import android.graphics.Color
impo... |
libraries/restclient/src/main/java/com/github/posko/toolkit/restclient/BasicAuthEncryptor.kt | unknown_repo | kotlin | package com.github.posko.toolkit.restclient
import android.util.Base64
class BasicAuthEncryptor {
companion object {
@JvmStatic
fun encrypt(userName : String, password : String) : String {
val creds = String.format("%s:%s", userName, password)
return Base64.encodeToString(c... |
app/src/main/java/com/example/m5/ui/player/PlayMusicViewModel.kt | unknown_repo | kotlin |
package com.example.m5.ui.player
import androidx.lifecycle.ViewModel
import com.example.m5.logic.model.Data
class PlayMusicViewModel: ViewModel() {
companion object{
var musicList = ArrayList<Data>()
var position: Int = -1
}
}
|
app/src/main/java/com/simbiri/equityjamii/ui/main_activity/people_page/AllPeople.kt | unknown_repo | kotlin | package com.simbiri.equityjamii.ui.main_activity.people_page
import androidx.lifecycle.ViewModelProvider
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.SearchView
import androidx.r... |
utilcode/pkg/src/main/java/com/blankj/utilcode/pkg/feature/bus/BusRemoteActivity.kt | unknown_repo | kotlin | package com.blankj.utilcode.pkg.feature.bus
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import com.blankj.lib.common.CommonTitleActivity
import com.blankj.utilcode.pkg.R
import com.blankj.utilcode.util.BusUtils
import com.blankj.utilcode.util.LogUtils
... |
player_component/src/main/java/com/xyoye/player/kernel/inter/AbstractVideoPlayer.kt | unknown_repo | kotlin | package com.xyoye.player.kernel.inter
import android.view.Surface
import com.xyoye.data_component.bean.VideoTrackBean
import com.xyoye.player.utils.TrackHelper
/**
* Created by xyoye on 2020/10/29.
*/
abstract class AbstractVideoPlayer {
//播放器事件回调
protected lateinit var mPlayerEventListener: VideoPlayerEv... |
business/play_mine/src/main/java/com/will/play/mine/ui/viewmodel/MineTalentListFilterHeaderImageItem.kt | unknown_repo | kotlin | package com.will.play.mine.ui.viewmodel
import android.view.View
import androidx.databinding.ObservableInt
import com.will.habit.base.ItemViewModel
import com.will.habit.binding.command.BindingAction
import com.will.habit.binding.command.BindingCommand
import com.will.play.base.entity.DouyinVideoLists
import com.will.... |
app/src/main/java/com/dmbaryshev/bd/presenter/common/PresenterCache.kt | unknown_repo | kotlin | package com.dmbaryshev.bd.presenter.common
import android.support.v4.util.SimpleArrayMap
import com.dmbaryshev.bd.model.view_model.IViewModel
import com.dmbaryshev.bd.utils.dogw
import com.dmbaryshev.bd.view.common.IView
object PresenterCache {
private var presenters: SimpleArrayMap<String, BasePresenter<out IVi... |
media-file/src/main/java/io/github/javernaut/mediafile/displayable/FrameRateDisplayable.kt | unknown_repo | kotlin | package io.github.javernaut.mediafile.displayable
import android.content.res.Resources
import io.github.javernaut.mediafile.FrameRate
import io.github.javernaut.mediafile.R
import java.text.DecimalFormat
import kotlin.math.abs
import kotlin.math.max
fun FrameRate.toDisplayable(resources: Resources): String? {
ret... |
app/src/main/java/com/huawei/podcast/data/model/EpisodeModel.kt | unknown_repo | kotlin | package com.huawei.podcast.data.model
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
@Parcelize
data class EpisodeModel(
@SerializedName("average_duration")
val averageDuration: Double?,
@SerializedName("collection")
val ... |
app/src/main/java/de/fuelchecker/MainActivity.kt | unknown_repo | kotlin | package de.fuelchecker
import android.content.pm.PackageManager
import android.graphics.drawable.ColorDrawable
import android.location.Location
import android.os.Bundle
import android.widget.TextView
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.Acti... |
app/src/main/kotlin/io/eugenethedev/taigamobile/ui/components/dialogs/ConfirmActionDialog.kt | unknown_repo | kotlin | package io.eugenethedev.taigamobile.ui.components
import androidx.compose.foundation.layout.*
import androidx.compose.material.AlertDialog
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.material.TextButton
import androidx.compose.runtime.Composable
import a... |
zoomimage/src/main/java/mcgars/com/zoomimage/ui/ZoomHolder.kt | unknown_repo | kotlin | package mcgars.com.zoomimage.ui
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
interface ZoomHolder {
/**
* For [RecyclerView.ViewHolder] just return image
* ignoring position
* For adapters return ImageView
* @param position current position of image
*... |
paging/src/main/kotlin/studio/forface/viewstatestore/paging/PagedViewStateStore.kt | unknown_repo | kotlin | @file:Suppress("MemberVisibilityCanBePrivate", "unused")
package studio.forface.viewstatestore.paging
import androidx.paging.DataSource
import androidx.paging.LivePagedListBuilder
import studio.forface.viewstatestore.ViewState
import studio.forface.viewstatestore.ViewStateStoreConfig
/**
* A `ViewStateStore` that s... |
app-android/src/main/kotlin/pro/stuermer/bookii/devices/composables/StorageInformation.kt | unknown_repo | kotlin | package pro.stuermer.bookii.composables
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Divider
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androi... |
gallery/src/main/java/org/futo/circles/gallery/feature/backup/MediaBackupViewModel.kt | unknown_repo | kotlin | package org.futo.circles.gallery.feature.backup
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import org.futo.circles.core.base.SingleEventLiveData
import org.futo.circles.core.extensions.Response
import org.futo.circles.core.extensions... |
app/src/main/java/com/uoooo/simple/example/ui/player/rx/ExoPlayerEventObservable.kt | unknown_repo | kotlin | package com.uoooo.simple.example.ui.player.rx
import android.annotation.SuppressLint
import com.google.android.exoplayer2.*
import com.google.android.exoplayer2.source.TrackGroupArray
import com.google.android.exoplayer2.trackselection.TrackSelectionArray
import com.jakewharton.rxbinding4.internal.checkMainThread
impo... |
kadamy_delivery_driver_android/app/src/main/java/com/kadamy/driver/fragment/OrderHistoryFragment.kt | unknown_repo | kotlin | package com.kadamy.driver.fragment
import android.annotation.SuppressLint
import android.content.Intent
import android.content.res.ColorStateList
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.conten... |
app/src/main/java/org/xiaoxingqi/gmdoc/wegidt/gamefraglist/GameTabView.kt | unknown_repo | kotlin | package org.xiaoxingqi.gmdoc.wegidt.gamefraglist
import android.content.Context
import android.graphics.Color
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import android.util.AttributeSet
import android.util.Log
import android.view.View
import android.vi... |
nelendar/src/main/java/com/nekkily/nelendar/ui/view/DayNameView.kt | unknown_repo | kotlin | package com.nekkily.nelendar.ui.view
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import andr... |
app/src/main/kotlin/de/digitalService/useID/ui/screens/setup/SetupPersonalPinInput.kt | unknown_repo | kotlin | package de.digitalService.useID.ui.screens.setup
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.ViewModel
import com.ramcosta.composedestinations.... |
MVIPractice/presentation/src/main/java/com/kimmandoo/presentation/SplashActivity.kt | unknown_repo | kotlin | package com.kimmandoo.presentation
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.lifecycle.lifecycleScope
import com.kimmandoo.domain.usecase.login.GetTokenUseCase
import com.kimmandoo.presentation.login.LoginActivity
import co... |
feature/tags/src/main/kotlin/cn/wj/android/cashbook/feature/tags/screen/EditRecordSelectTagBottomSheetScreen.kt | unknown_repo | kotlin | package cn.wj.android.cashbook.feature.tags.screen
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.FlowRow
impor... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/CommentDots.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/com/kproject/chatgpt/presentation/theme/Theme.kt | unknown_repo | kotlin | package com.kproject.chatgpt.presentation.theme
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.darkColors
import androidx.compose.runtime.Composable
import androidx.compose.runtime.SideEffect
import com.google.accompanist.systemuicontroller.reme... |
app/src/main/java/com/burhanrashid52/photoediting/base/BaseFragment.kt | unknown_repo | kotlin | package com.advance.photoeditor.base
import androidx.fragment.app.Fragment
/**
* @author [<NAME>](https://github.com/advance)
* @version 0.1.2
* @since 5/25/2018
*/
abstract class BaseFragment(layoutId: Int) : Fragment(layoutId) |
desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/storage/PageStatesStorage.kt | unknown_repo | kotlin | package com.abdownloadmanager.desktop.storage
import com.abdownloadmanager.desktop.pages.home.HomePageStateToPersist
import com.abdownloadmanager.desktop.utils.*
import androidx.datastore.core.DataStore
import arrow.optics.Lens
import arrow.optics.optics
import ir.amirab.util.config.getDecoded
import ir.amirab.util.co... |
app/src/main/kotlin/com/polendina/knounce/data/database/WordDao.kt | unknown_repo | kotlin | package com.polendina.knounce.data.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
@Dao
interface WordDao {
@Insert
suspend fun insertWord(word: WordDb)
@Query("DELETE FROM worddb WHERE worddb.title = :word")
suspend fun deleteWord(word: String)
@Query("SEL... |
app/src/main/java/dog/snow/androidrecruittest/ext/ParcelableExt.kt | unknown_repo | kotlin | package dog.snow.androidrecruittest.ext
import android.os.Parcelable
import dog.snow.androidrecruittest.model.RawAlbum
import dog.snow.androidrecruittest.model.RawPhoto
import dog.snow.androidrecruittest.model.RawUser
fun Array<Parcelable>?.toPhotoList(): List<RawPhoto> {
val photoList = mutableListOf<RawPhoto>()... |
app/src/main/kotlin/ru/kode/arcoresample/ui/DragRotationController.kt | unknown_repo | kotlin | package ru.kode.arcoresample.ui
import android.animation.ValueAnimator
import android.view.animation.LinearInterpolator
import com.google.ar.sceneform.Node
import com.google.ar.sceneform.math.Quaternion
import com.google.ar.sceneform.math.Vector3
import com.google.ar.sceneform.ux.BaseTransformationController
import co... |
app/src/main/java/com/fbiego/dt78/data/Global.kt | unknown_repo | kotlin | /*
*
* MIT License
*
* Copyright (c) 2021 Felix Biego
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... |
app/src/main/java/com/dede/nativetools/ui/MainActivity.kt | unknown_repo | kotlin | package com.dede.nativetools.ui
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.view.MenuItem
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.constraintlayout.motion.widget.MotionLayout
import androidx.navigation.NavController... |
library/src/androidMain/kotlin/com/lightningkite/kiteui/views/direct/ExternalLink.android.kt | unknown_repo | kotlin | package com.lightningkite.kiteui.views.direct
import android.content.Intent
import android.content.res.ColorStateList
import android.net.Uri
import android.widget.FrameLayout
import android.widget.ProgressBar
import com.lightningkite.kiteui.ExternalServices
import com.lightningkite.kiteui.models.DisabledSemantic
impor... |
mediastore/src/main/java/com/google/modernstorage/mediastore/MediaCollection.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/binish/sample/dynamiccurve/MainActivity.kt | unknown_repo | kotlin | package com.binish.sample.dynamiccurve
import android.os.Bundle
import android.view.WindowManager
import com.google.android.material.floatingactionbutton.FloatingActionButton
import androidx.appcompat.app.AppCompatActivity
import com.binish.sample.dynamiccurve.fragments.BottomSheetController
import com.binish.sample.d... |
common/compose/src/main/java/app/delish/compose/theme/AppBarAlphas.kt | unknown_repo | kotlin | package ru.stogram.android.theme
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
object AppBarAlphas {
@Composable
fun translucentBarAlpha(): Float = when {
// We use a more opaque alpha in light theme
MaterialTheme.colors.isLight -> 0.97f
else... |
app/src/main/java/com/manhal/movies/persistence/converters/GenreConverter.kt | unknown_repo | kotlin | package com.manhal.movies.persistence.converters
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.manhal.movies.models.entities.Genre
open class GenreConverter {
@TypeConverter
fun fromString(value: String): List<Genre>? {
val listType ... |
app/src/main/java/com/example/newsappmvvm/searchPage/SearchPagingSource.kt | unknown_repo | kotlin | package com.example.newsappmvvm.searchPage
import androidx.paging.PagingSource
import com.example.newsappmvvm.Remote.NewsApi
import com.example.newsappmvvm.modelData.Article
private const val START = 1
class SearchPagingSource(private val newsApi: NewsApi, private val query: String) :
PagingSource<Int, Article>(... |
app/src/main/java/jackpack/kotlin/databindingdemo/views/uis/SampleActivity.kt | unknown_repo | kotlin | package jackpack.kotlin.databindingdemo.views.uis
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders... |
app/src/main/java/com/example/cityapiclient/presentation/components/Text.kt | unknown_repo | kotlin | package com.example.cityapiclient.presentation.components
import android.util.Log
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Ma... |
src/main/kotlin/top/myrest/myflow/developer/ColorActionHandler.kt | unknown_repo | kotlin | package top.myrest.myflow.developer
import androidx.compose.ui.graphics.Color
import top.myrest.myflow.action.ActionParam
import top.myrest.myflow.action.ActionRequireArgHandler
import top.myrest.myflow.action.ActionResult
import top.myrest.myflow.action.asResult
import top.myrest.myflow.enumeration.ActionArgMode
impo... |
src/main/kotlin/top/myrest/myflow/developer/ColorActionHandler.kt | unknown_repo | kotlin | package top.myrest.myflow.developer
import androidx.compose.ui.graphics.Color
import top.myrest.myflow.action.ActionParam
import top.myrest.myflow.action.ActionRequireArgHandler
import top.myrest.myflow.action.ActionResult
import top.myrest.myflow.action.asResult
import top.myrest.myflow.enumeration.ActionArgMode
impo... |
app/src/main/java/com/cube/arc/workflow/view/holder/DirectoryViewHolder.kt | unknown_repo | kotlin | package com.cube.arc.workflow.view.holder
import android.content.Context
import android.content.Intent
import android.support.v7.widget.AppCompatCheckBox
import android.support.v7.widget.RecyclerView
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageView
imp... |
app/src/test/java/xyz/savvamirzoyan/wordremember/AddWordViewModelTests.kt | unknown_repo | kotlin | package xyz.savvamirzoyan.wordremember
import android.view.View
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.toList
import kotlinx.coroutines.launch
import kotlinx.coroutines.test.runBlockingTest
import org.junit.Assert.assertEquals
import org.junit.Rule
import org.junit.Test
impo... |
cgps-core/src/main/java/com/genius/cgps/Utils.kt | unknown_repo | kotlin | package com.genius.cgps
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.location.Address
import android.location.Geocoder
import android.location.Location
import android.location.LocationManager
import android.os.Build
import ... |
android-auto/src/main/java/com/mapbox/androidauto/MapboxCarApp.kt | unknown_repo | kotlin | package com.mapbox.androidauto
import android.app.Application
import androidx.car.app.CarContext
import androidx.car.app.Session
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.mapbox.androidauto.car.map.MapboxCarMap
import com.mapbox.androidauto.configuration.CarAppConfigOwner
... |
app/src/main/java/com/sample/tmdb/ui/MainActivity.kt | unknown_repo | kotlin | package com.sample.tmdb.ui
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTh... |
CadastroPets_APP11/app/src/main/java/com/example/cadastropets_app11/CadastroActivity.kt | unknown_repo | kotlin | package com.example.cadastropets_app11
import android.content.Intent
import android.graphics.Bitmap
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.MediaStore
import android.view.View
import android.widget.*
import kotlinx.android.synthetic.main.activity_cadastro.*
cl... |
data/src/main/java/vn/root/data/local/PreferenceWrapper.kt | unknown_repo | kotlin | package vn.root.data.local
import android.content.Context
import android.content.SharedPreferences
import androidx.security.crypto.EncryptedSharedPreferences
import androidx.security.crypto.MasterKey
import android.security.keystore.KeyProperties
import android.security.keystore.KeyGenParameterSpec
import com.google.g... |
saved-sites/saved-sites-store/src/test/java/com/duckduckgo/savedsites/store/SavedSitesSettingsSharedPrefStoreTest.kt | unknown_repo | kotlin | package com.duckduckgo.savedsites.store
import android.content.Context
import android.content.SharedPreferences
import androidx.test.ext.junit.runners.AndroidJUnit4
import app.cash.turbine.test
import com.duckduckgo.common.test.CoroutineTestRule
import com.duckduckgo.common.test.api.InMemorySharedPreferences
import co... |
app/src/main/java/com/kotlincoders/nftexplorer/home/presentation/nft_detail/NftDetailScreen.kt | unknown_repo | kotlin | package com.kotlincoders.nftexplorer.home.presentation.nft_detail
import android.annotation.SuppressLint
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.found... |
app/src/main/java/com/example/puppyadoption/ui/view/Home.kt | unknown_repo | kotlin | package com.example.puppyadoption.ui.view
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
imp... |
app/src/main/java/com/wonchihyeon/giveback/fragments/LostFragment.kt | unknown_repo | kotlin | package com.example.giveback.fragments
import android.content.ContentValues.TAG
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.a... |
app/src/main/java/test/itgungnir/ui/fragment2/ChildFragment2.kt | unknown_repo | kotlin | package test.itgungnir.ui.fragment2
import android.graphics.Color
import android.os.Bundle
import android.text.method.LinkMovementMethod
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import io.reactivex.Single
import io.reactivex.android... |
src/test/kotlin/functional/ColorsTaskFunctionalTest.kt | unknown_repo | kotlin | package functional
import org.gradle.testkit.runner.GradleRunner
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.io.TempDir
import java.io.File
import java.nio.file.Path
class ColorsTaskFunctionalTest {
@Test
fun `convert colors XML to Kotli... |
app/src/main/kotlin/com/watch/comrade/receiver/SmsReceiver.kt | unknown_repo | kotlin | package com.watch.comrade.receiver
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.provider.Telephony
import com.watch.comrade.data.preference.DataSharePreference.typeApp
import com.watch.comrade.services.sms.SmsService
import com.watch.comrade.utils... |
Savaari_Rider/app/src/androidTest/java/com/savaari/savaari_rider/utility/BaseRobot.kt | unknown_repo | kotlin | package com.savaari.savaari_rider.utility
import android.os.SystemClock.sleep
import android.util.Log
import android.view.View
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.ViewAction
import androidx.test.espresso.ViewAssertion
import androidx.test.espresso.ViewInteraction
import androidx... |
app/src/androidTest/java/com/toddway/firebaserx/FirebaseRxAppTestsKt.kt | unknown_repo | kotlin | package com.toddway.firebaserx
import android.support.test.runner.AndroidJUnit4
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.database.FirebaseDatabase
import junit.framework.Assert
import org.junit.BeforeClass
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::cla... |
app/src/main/java/com/king/easychat/config/ConfigModule.kt | unknown_repo | kotlin | package com.king.easychat.config
import android.content.Context
import com.king.base.baseurlmanager.BaseUrlManager
import com.king.easychat.app.Constants
import com.king.frame.mvvmframe.config.FrameConfigModule
import com.king.frame.mvvmframe.di.module.ConfigModule
/**
* @author <a href="mailto:<EMAIL>">Jenly</a>
*... |
app/src/main/java/com/aditprayogo/gamezin/game/GameViewHolder.kt | unknown_repo | kotlin | package com.aditprayogo.gamezin.game
import android.content.Intent
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.aditprayogo.core.domain.entity.GameData
import com.aditprayogo.core.utils.load
import com.aditprayogo.gamezin.databinding.ItemRowGameBinding
import com.aditprayogo.gam... |
devbricksx/src/main/java/com/dailystudio/devbricksx/ui/AbsFragmentStateAdapter.kt | unknown_repo | kotlin | package com.dailystudio.devbricksx.ui
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.recyclerview.widget.*
import androidx.recyclerview.widget.AsyncListDiffer.ListListener
import androi... |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Unilever.kt | unknown_repo | kotlin | package compose.icons.simpleicons
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
impor... |
activity-tracker-sdk/src/main/java/com/example/activity_tracker_sdk/core/tracker/NetworkTracker.kt | unknown_repo | kotlin | package com.example.activity_tracker_sdk.core.tracker
import android.util.Log
import com.example.activity_tracker_sdk.core.GlobalVariables
import com.example.activity_tracker_sdk.data.models.Event
import com.example.activity_tracker_sdk.data.models.RequestData
import com.example.activity_tracker_sdk.data.network.ApiSe... |
mobile-application/app/src/main/java/eu/sofie_iot/smaug/mobile/backend/MockBackend.kt | unknown_repo | kotlin | /*
* Copyright 2020 Ericsson AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
shared/src/commonMain/kotlin/com/plcoding/EXRTComposeMultiplatform/core/TabBar/TabContent.kt | unknown_repo | kotlin | package com.plcoding.EXRTComposeMultiplatform.core.TabBar
import android.util.Log
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundati... |
app/src/main/java/com/concordium/wallet/ui/base/BaseBottomSheetDialogFragment.kt | unknown_repo | kotlin | package com.concordium.wallet.ui.base
import android.app.Dialog
import android.content.res.Resources
import android.os.Bundle
import android.view.View
import androidx.constraintlayout.widget.ConstraintLayout
import com.concordium.wallet.R
import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.go... |
wkbase/src/main/java/com/chat/base/endpoint/entity/WKAdvancedItemViewMenu.kt | unknown_repo | kotlin | package com.chat.base.endpoint.entity
import androidx.appcompat.app.AppCompatActivity
class WKAdvancedItemViewMenu(
channelID: String,
channelType: Byte,
activity: AppCompatActivity,
) {
val channelID: String
val channelType: Byte
val activity: AppCompatActivity
init {
this.channe... |
app/src/main/java/com/example/konwnow/ui/view/mypage/alarm/SetAlarmTimeActivity.kt | unknown_repo | kotlin | package com.example.konwnow.ui.view.mypage.alarm
import android.app.*
import android.content.DialogInterface
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.widget.*
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AlertDialog
im... |
app/src/main/java/com/thanksmister/bitcoin/localtrader/ui/viewmodels/SettingsViewModel.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019 ThanksMister 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 agree... |
app-android/src/main/java/suntrix/kmp/moviesapp/android/ui/screens/MainScreen.kt | unknown_repo | kotlin | package suntrix.kmp.moviesapp.android.ui.screens
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx... |
swipeback/src/main/java/com/aitangba/swipeback/SwipeBackHelper.kt | unknown_repo | kotlin | package com.aitangba.swipeback
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.app.Activity
import android.content.Context
import android.content.res.TypedArray
import android.os.Bundle
import... |
app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.ui.library
import android.os.Bundle
import com.jakewharton.rxrelay.BehaviorRelay
import eu.kanade.tachiyomi.data.cache.CoverCache
import eu.kanade.tachiyomi.data.database.DatabaseHelper
import eu.kanade.tachiyomi.data.database.models.Category
import eu.kanade.tachiyomi.data.database.models.... |
app/src/main/java/com/example/ebcom/model/RestaurantsObject.kt | unknown_repo | kotlin | package com.example.ebcom.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
@Entity
data class RestaurantsObject (
@PrimaryKey
@ColumnInfo(name = "restaurants")
val restaurants: List<Restaurant>
) |
app/src/main/java/ro/edi/novelty/ui/viewmodel/NewsViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, softwa... |
adapterviews-recyclerpager/src/main/java/com/aidanvii/toolbox/adapterviews/recyclerpager/DataSetChangeResolver.kt | unknown_repo | kotlin | package com.aidanvii.toolbox.adapterviews.recyclerpager
import android.support.v4.view.PagerAdapter.POSITION_NONE
import android.support.v4.view.PagerAdapter.POSITION_UNCHANGED
import com.aidanvii.toolbox.checkBelowMax
internal class DataSetChangeResolver<Item, ViewHolder : RecyclerPagerAdapter.ViewHolder>(
priva... |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/Alien.kt | unknown_repo | kotlin | package me.localx.icons.straight.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
i... |
app/src/main/java/com/test/jetcomposeui/ui/component/MyTextComponent.kt | unknown_repo | kotlin | package com.test.jetcomposeui.ui.component
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.TextStyle
import androidx.compo... |
ExamplesKotlin/DataManagementSQL/app/src/main/java/course/examples/datamanagement/sql/DatabaseExampleActivity.kt | unknown_repo | kotlin | package course.examples.datamanagement.sql
import android.app.ListActivity
import android.content.ContentValues
import android.database.Cursor
import android.os.Bundle
import android.view.View
import android.widget.SimpleCursorAdapter
class DatabaseExampleActivity : ListActivity() {
private lateinit var mDbHelpe... |
app/src/main/java/shvyn22/flexingweather/presentation/MainActivity.kt | unknown_repo | kotlin | package shvyn22.flexingweather.presentation
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.runtime.collectAsState
import androidx.compose.ui.ExperimentalComposeUiApi
import dagger.hilt.andr... |
lib/src/iosMain/kotlin/kottieComposition/animateKottieCompositionAsState.ios.kt | unknown_repo | kotlin | import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.SideEffect
import androidx.compose.runtime.State
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import cocoapods.lot... |
sample/src/main/java/com/like/webview/sample/TestActivity.kt | unknown_repo | kotlin | package com.like.webview.sample
import android.graphics.Bitmap
import android.graphics.PixelFormat
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.like.webview.X5Listener
import com.like.web... |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/FaceUnamused.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... |
StandUp/kotlin/src/main/java/com/android/fundamentals/kotlin/standup/AlarmReceiver.kt | unknown_repo | kotlin | package com.android.fundamentals.kotlin.standup
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.android.example.kotlin.notifyme.AlarmNotificationEvent
import com.android.example.kotlin.notifyme.RxBus
class AlarmReceiver: BroadcastReceiver() {
overri... |
app/src/main/java/com/workshop/workshop/WorkshopApplication.kt | unknown_repo | kotlin | package com.workshop.workshop
import android.app.Application
import android.content.Context
import com.workshop.workshop.di.DaggerWorkshopComponent
import com.workshop.workshop.di.WorkshopComponent
import com.workshop.workshop.di.module.AppModule
import com.workshop.workshop.di.module.NetworkModule
class WorkshopAppl... |
app/src/main/java/com/ly/kotlinsupermvvm/viewmodel/PictureViewModel.kt | unknown_repo | kotlin | package com.ly.kotlinsupermvvm.viewmodel
import androidx.lifecycle.MutableLiveData
import com.ly.kotlinsupermvvm.base.BaseViewModel
import com.ly.kotlinsupermvvm.entity.OpenApiPicture
import com.ly.kotlinsupermvvm.repository.PictureRepository
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
... |
app/src/main/java/me/grey/picquery/domain/AlbumManager.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalPermissionsApi::class)
package me.grey.picquery.domain
import android.util.Log
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import com.google.accompanist.permissions.ExperimentalPermissionsApi
import kotlinx.coroutines.Dispatchers
import kot... |
Fall2024/examples/Lecture 11/ReadWriteDemo/app/src/main/java/ca/unb/mobiledev/readwritedemo/MainActivity.kt | unknown_repo | kotlin | package ca.unb.mobiledev.readwritedemo
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.TextUtils
import android.widget.Button
import android.widget.EditText
import android.widget.Toast
class MainActivity : AppCompatActivity() {
private lateinit var fileNameEditText: Ed... |
app/src/main/java/com/picassos/betamax/android/presentation/app/tvchannel/related_tvchannels/RelatedTvChannelsAdapter.kt | unknown_repo | kotlin | package com.picassos.betamax.android.presentation.app.tvchannel.related_tvchannels
import android.graphics.drawable.Animatable
import android.net.Uri
import androidx.recyclerview.widget.RecyclerView
import android.widget.TextView
import com.picassos.betamax.android.R
import android.view.ViewGroup
import android.view.L... |
foundation/src/main/kotlin/org/jetbrains/jewel/foundation/RoundRectUtil.kt | unknown_repo | kotlin | package org.jetbrains.jewel.foundation
import androidx.compose.ui.geometry.CornerRadius
import androidx.compose.ui.geometry.RoundRect
internal fun RoundRect.inflate(delta: Float) = RoundRect(
left = left - delta,
top = top - delta,
right = right + delta,
bottom = bottom + delta,
topLeftCornerRadiu... |
utilsLibrary/src/main/java/com/zeropercenthappy/utilslibrary/ext/HandlerExt.kt | unknown_repo | kotlin | package com.zeropercenthappy.utilslibrary.ext
import android.os.Handler
import android.os.Looper
fun mainHandlerPost(runnable: () -> Unit) {
Handler(Looper.getMainLooper()).post(runnable)
}
fun mainHandlerPostDelay(delay: Long, runnable: () -> Unit) {
Handler(Looper.getMainLooper()).postDelayed(runnable, del... |
base/src/main/java/com/base/BaseViewHolder.kt | unknown_repo | kotlin | package com.base
import android.view.View
import androidx.recyclerview.widget.RecyclerView
/**
* Created by Kaz on 08:50 2019-03-29
*/
class BaseViewHolder(view: View) : RecyclerView.ViewHolder(view) |
app/src/main/java/com/mapswithme/maps/ugc/routes/UgcRoutePropertiesFragment.kt | unknown_repo | kotlin | package com.mapswithme.maps.ugc.routes
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import com.mapswithme.maps.R
import com.mapswithme.maps.base.BaseMwmFragment
i... |
BrickKit/bricks/src/androidTest/java/com/wayfair/brickkit/viewholder/factory/BrickViewHolderFactoryTest.kt | unknown_repo | kotlin | /*
* Copyright © 2017-2021 Wayfair. All rights reserved.
*/
package com.wayfair.brickkit.viewholder.factory
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.nhaarm... |
app/src/test/java/id/rifqipadisiliwangi/tokopaerbe/presentation/feature/profile/RegisterProfileViewModelTest.kt | unknown_repo | kotlin | package id.rifqipadisiliwangi.tokopaerbe.presentation.feature.profile
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import id.rifqipadisiliwangi.core.domain.usecase.AuthInteractor
import id.rifqipadisiliwangi.core.utils.ResultWrapper
import id.rifqipadisiliwangi.tokopaerbe.utils.LiveDataTestUnit.g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.