file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/example/moviedataapp/detail/MovieDetailFragment.kt | unknown_repo | kotlin | package com.example.moviedataapp.detail
import android.os.Build
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx... |
app/src/main/java/dev/sertan/android/videogames/data/model/Game.kt | unknown_repo | kotlin | package dev.sertan.android.videogames.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@Entity(tableName = "game")
@JsonClass(generateAdapter = true)
internal data class Game(
@PrimaryKey var id: Int? = null,
var name: St... |
app/src/main/java/com/ascendcorp/androidtechpoc/screen/home/main/tab/HomeCFragment.kt | unknown_repo | kotlin | package com.ascendcorp.androidtechpoc.screen.home.main.tab
import android.view.LayoutInflater
import android.view.ViewGroup
import com.ascendcorp.androidtechpoc.databinding.FragmentHomeCBinding
import com.ascendcorp.androidtechpoc.screen.navgraph.base.BaseFragment
class HomeCFragment : BaseFragment<FragmentHomeCBindi... |
app/src/main/java/com/mcdev/wun/MainScreen.kt | unknown_repo | kotlin | package com.mcdev.wun
import android.graphics.Color
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.co... |
presentation/src/main/java/com/fredprojects/helloworld/presentation/features/pws/PWListItem.kt | unknown_repo | kotlin | package com.fredprojects.features.pws.presentation
import android.content.res.Configuration.ORIENTATION_LANDSCAPE
import androidx.compose.foundation.layout.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Delete
import androidx.compose.material.MaterialTheme
import android... |
basicktest/src/main/java/com/mozhimen/basicktest/elemk/androidx/ElemKVBVMActivity.kt | unknown_repo | kotlin | package com.mozhimen.basicktest.elemk.androidx
import androidx.lifecycle.SavedStateViewModelFactory
import com.mozhimen.basick.elemk.androidx.appcompat.bases.databinding.BaseActivityVDBVM
import com.mozhimen.basicktest.databinding.ActivityElemkVbvmBinding
class ElemKVBVMActivity : BaseActivityVDBVM<ActivityElemkVbvmB... |
htmlAnnotator-view/src/main/java/com/ravenl/htmlannotator/view/css/BackgroundColorCssSpannedHandler.kt | unknown_repo | kotlin | package com.ravenl.htmlannotator.view.css
import android.graphics.Color
import android.text.style.BackgroundColorSpan
import androidx.annotation.ColorInt
import com.ravenl.htmlannotator.view.HtmlSpanner.Companion.logger
import com.ravenl.htmlannotator.view.styler.SpannedStyler
open class BackgroundColorCssSpannedHand... |
app/src/main/java/com/example/game_app/SettingsFragment.kt | unknown_repo | kotlin | package com.example.game_app
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.game_app.databinding.FragmentSettingsBinding
class SettingsFragment : Fragment(R.layout.fragment_settings) {
priv... |
sample/src/main/java/com/anggrayudi/storage/sample/activity/FileCompressionActivity.kt | unknown_repo | kotlin | package com.anggrayudi.storage.sample.activity
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.documentfile.provider.DocumentFile
import com.anggrayudi.storage.callback.ZipCompressionCallback
import com.anggrayudi.storage.file.MimeType
import com.anggrayudi.storage.file.co... |
Skyflow/src/main/kotlin/Skyflow/collect/elements/utils/Spacespan.kt | unknown_repo | kotlin | package com.aditya.unitymessenger.utils
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Paint.FontMetricsInt
import android.text.style.ReplacementSpan
class SpaceSpan : ReplacementSpan() {
override fun getSize(
paint: Paint,
text: CharSequence,
start: I... |
lib_tiktok/src/main/java/me/luzhuo/lib_tiktok/cache/PreloadTask.kt | unknown_repo | kotlin | /* Copyright 2021 Luzhuo. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
app/src/main/java/id/koridor50/jesika/ui/member_list/MemberListViewModel.kt | unknown_repo | kotlin | package id.koridor50.jesika.ui.member_list
import android.content.Context
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import id.koridor50.jesika.common.PrefKey
import id.koridor50.jesika.data.model.LocalCommunity
import id.koridor50.jesika.data... |
ui-home/src/main/java/io/github/reactivecircus/streamlined/home/HomeViewModel.kt | unknown_repo | kotlin | package io.github.reactivecircus.streamlined.home
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
import com.squareup.workflow1.ui.renderWorkflowIn
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
impor... |
app/TaskManagerPlus/app/src/main/java/maif/taskmanagerplus/ui/task/ui/AddTaskActivity.kt | unknown_repo | kotlin | package maif.taskmanagerplus.ui.task.ui
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.CheckBox
import android.widget.EditText
import androidx.appcompat.app.AppCompatActivity
import maif.taskmanagerplus.R
class AddTaskActivity : Ap... |
sample-android/src/main/kotlin/com/github/panpf/zoomimage/sample/ui/base/LifecycleAndroidViewModel.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 panpf <<EMAIL>>
*
* 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 agre... |
core/src/main/kotlin/com/fibelatti/core/extension/View.kt | unknown_repo | kotlin | @file:Suppress("TooManyFunctions")
package com.fibelatti.core.extension
import android.animation.LayoutTransition
import android.content.Context
import android.content.res.TypedArray
import android.graphics.drawable.Drawable
import android.net.Uri
import android.text.Editable
import android.text.TextWatcher
import an... |
app/src/main/java/com/bonacode/securehome/ui/feature/main/controlpanel/partition/ControlPanelPartitionFunctionsViewModel.kt | unknown_repo | kotlin | package com.bonacode.securehome.ui.feature.main.controlpanel.partition
import androidx.hilt.Assisted
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.viewModelScope
import com.bonacode.securehome.domain.feature.action.usecase.partition.BuildStartAlarmG... |
app/src/main/java/com/ibtikar/mvvm_starter_koin_coroutines/ui/base/BaseActivity.kt | unknown_repo | kotlin | package com.ibtikar.mvvm_starter_koin_coroutines.ui.base
import android.content.Context
import android.content.res.Configuration
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
i... |
lib_web/src/main/java/com/lqk/web/bean/InfoBean.kt | unknown_repo | kotlin | package com.lqk.web.bean
import android.os.Parcel
import android.os.Parcelable
/**
* @author LQK
* @time 2020/6/16 17:39
* @remark
*/
class InfoBean : Parcelable {
var userType: Int = 0
var userName: String = ""
var userSex: String = ""
constructor() : this(0, "", "")
constructor(parcel: Parc... |
app/src/main/java/com/gradientepolimorfico/monedapp/Entities/Divisa.kt | unknown_repo | kotlin | package com.gradientepolimorfico.monedapp.Entities
import android.text.TextUtils
import com.github.mikephil.charting.data.Entry
import com.gradientepolimorfico.monedapp.Services.ExchangeRateResponse
import java.util.*
class Divisa {
var codigo: String? = null
var fecha: String? = null
var valor: Float? =... |
app/src/main/java/be/hogent/faith/faith/skyscraper/goal/ActionAdapter.kt | unknown_repo | kotlin | package be.hogent.faith.faith.skyscraper.goal
import android.graphics.drawable.GradientDrawable
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.databinding.DataBindingUtil
import and... |
router/src/main/java/com/kotlin/android/router/provider/IBaseProvider.kt | unknown_repo | kotlin | package com.kotlin.android.router.provider
import android.content.Context
import com.alibaba.android.arouter.facade.template.IProvider
/**
* 创建者: zl
* 创建时间: 2020/6/5 10:11 AM
* 描述: 先空着,后续根据具体情况进行扩展
*/
interface IBaseProvider : IProvider{
override fun init(context: Context?) {
}
} |
app/src/main/java/com/pigeoff/rss/db/RSSDbItem.kt | unknown_repo | kotlin | package com.pigeoff.rss.db
import androidx.room.*
@Entity
data class RSSDbItem (
@PrimaryKey(autoGenerate = true) var id: Int = 0,
//Channel
var channelId: Int = 0,
var channelUrl: String = "",
var channelTitle: String = "",
var channelDescription: String = "",
var channelImageUrl: String ... |
app/src/main/java/com/pigeoff/rss/db/RSSDbItem.kt | unknown_repo | kotlin | package com.pigeoff.rss.db
import androidx.room.*
@Entity
data class RSSDbItem (
@PrimaryKey(autoGenerate = true) var id: Int = 0,
//Channel
var channelId: Int = 0,
var channelUrl: String = "",
var channelTitle: String = "",
var channelDescription: String = "",
var channelImageUrl: String ... |
sketch-core/src/androidTest/kotlin/com/github/panpf/sketch/core/test/request/DownloadResultTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 panpf <<EMAIL>>
*
* 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 agre... |
src/main/java/org/mtransit/android/ui/news/details/NewsDetailsFragment.kt | unknown_repo | kotlin | @file:JvmName("NewsDetailsFragment") // ANALYTICS
package org.mtransit.android.ui.news.details
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.os.bundleOf
import androidx.core.view.isVisible
import androidx.fragment.app.viewModels
impo... |
app/src/main/kotlin/com/madness/collision/unit/UnitsAdapter.kt | unknown_repo | kotlin | /*
* Copyright 2020 Clifford Liu
*
* 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... |
dbinspector/src/main/kotlin/com/infinum/dbinspector/extensions/Context.kt | unknown_repo | kotlin | package com.infinum.dbinspector.extensions
import android.content.Context
import android.graphics.drawable.Drawable
import android.util.TypedValue
import androidx.core.content.ContextCompat
internal val Context.databaseDir: String
get() = "${filesDir.path.substring(0, filesDir.path.lastIndexOf("/"))}/databases"
... |
composeApp/src/commonMain/kotlin/io/ssttkkl/mahjongutils/app/screens/shanten/ShantenFillbackHandler.kt | unknown_repo | kotlin | package io.ssttkkl.mahjongutils.app.screens.shanten
import androidx.compose.runtime.Stable
import io.ssttkkl.mahjongutils.app.components.resultdisplay.FillbackHandler
import io.ssttkkl.mahjongutils.app.components.resultdisplay.ShantenAction
import io.ssttkkl.mahjongutils.app.models.shanten.ShantenArgs
import io.ssttkk... |
app/src/main/java/com/kunalfarmah/covid_19_info_dashboard/ui/fragment/PostsFragment.kt | unknown_repo | kotlin | package com.kunalfarmah.covid_19_info_dashboard.ui.fragment
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android... |
common/src/main/java/me/wcy/common/widget/decoration/GridSpacingDecoration.kt | unknown_repo | kotlin | package me.wcy.common.widget.decoration
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
/**
* Created by wangchenyan.top on 2022/3/24.
*/
class GridSpacingDecoration(
private val horizontalSpacing: Int,
... |
app/src/main/java/com/vjgarcia/chucknorrisjokes/presentation/JokesViewModel.kt | unknown_repo | kotlin | package com.vjgarcia.chucknorrisjokes.presentation
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.vjgarcia.chucknorrisjokes.core.presentation.SingleLiveEvent
import com.vjgarcia.chucknorrisjokes.mappers.toAction
import com.vjgarcia.chucknorri... |
permission-flow/src/test/java/dev/shreyaspatil/permissionFlow/watchmen/PermissionWatchmenTest.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 writi... |
app/src/main/java/com/prerna/newsappkotlin/db/Converters.kt | unknown_repo | kotlin | package com.prerna.newsappkotlin.db
import androidx.room.TypeConverter
import com.prerna.newsappkotlin.model.Source
class Converters {
@TypeConverter
fun fromSource(source: Source) = source.name
@TypeConverter
fun toSource(name: String) = Source(name, name)
} |
PhoneApp/Conduit/app/src/main/java/ca/uwaterloo/fydp/conduit/conduitview/ConduitStatusView.kt | unknown_repo | kotlin | package ca.uwaterloo.fydp.conduit.conduitview
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.LinearLayout
import android.widget.RelativeLayout
import android.widget.TextView
import ca.uwaterloo.fydp.conduit.R
import ca.uwaterloo.fydp.conduit.connectionuti... |
app/src/main/java/com/app/deliveryapplication/ui/profile/ProfileFragment.kt | unknown_repo | kotlin | package com.app.deliveryapplication.ui.profile
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.app.deliveryapplication.R
import com.app.deliveryappli... |
app/src/main/java/com/ingjuanocampo/enfila/android/home/profile/viewmodel/ProfileViewModel.kt | unknown_repo | kotlin | package com.ingjuanocampo.enfila.android.home.profile.viewmodel
import androidx.lifecycle.viewModelScope
import com.ingjuanocampo.common.composable.LogoutOut
import com.ingjuanocampo.common.composable.MviBaseViewModel
import com.ingjuanocampo.enfila.android.home.profile.model.ProfileCard
import com.ingjuanocampo.enfil... |
app/src/main/java/app/tivi/showdetails/details/ShowDetailsFragmentViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
compose/ui/ui/src/desktopTest/kotlin/androidx/compose/ui/awt/ComposePanelTest.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... |
ScaleView/libScaleView/src/main/java/com/mrr/libscaleview/util/UnitConversion.kt | unknown_repo | kotlin | package com.mrr.libscaleview.util
import android.content.res.Resources
/**
* 单位转换
*/
class UnitConversion {
companion object {
val Float.dp: Float
get() = (this / Resources.getSystem().displayMetrics.density)
val Float.px: Float
get() = (this * Resources.getSystem().dis... |
compiler/src/main/kotlin/se/ansman/kotshi/ksp/KotshiSymbolProcessor.kt | unknown_repo | kotlin | package se.ansman.kotshi.ksp
import com.google.devtools.ksp.getClassDeclarationByName
import com.google.devtools.ksp.processing.Resolver
import com.google.devtools.ksp.processing.SymbolProcessor
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
import com.google.devtools.ksp.symbol.ClassKind
import ... |
app/src/main/java/com/mulum/iso7816reader/MainActivity.kt | unknown_repo | kotlin | package com.mulum.iso7816reader
import android.annotation.SuppressLint
import android.nfc.NfcAdapter
import android.nfc.Tag
import android.nfc.tech.IsoDep
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import kotlinx.android.synthetic.main.activity_main.*
import java.... |
app/src/main/java/com/mulum/iso7816reader/MainActivity.kt | unknown_repo | kotlin | package com.mulum.iso7816reader
import android.annotation.SuppressLint
import android.nfc.NfcAdapter
import android.nfc.Tag
import android.nfc.tech.IsoDep
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import kotlinx.android.synthetic.main.activity_main.*
import java.... |
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/Slider.kt | unknown_repo | kotlin | package top.yukonga.miuix.kmp.basic
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.detectHorizontalDragGestures
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.co... |
transaction/src/main/java/com/github/ekamekas/koin/transaction/presentation/transaction_category/create/TransactionCategoryCreateViewModel.kt | unknown_repo | kotlin | package com.github.ekamekas.koin.transaction.presentation.transaction_category.create
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.github.ekamekas.baha.core.presentation.view_model.BaseViewModel
import com.github.ekamekas.baha.core.pre... |
android/src/main/java/com/rnscratchcard/RNScratchCard.kt | unknown_repo | kotlin | package com.rnscratchcard
import android.annotation.SuppressLint
import android.graphics.*
import android.graphics.drawable.Drawable
import android.net.Uri
import android.util.Log
import android.view.MotionEvent
import com.bumptech.glide.Glide
import com.bumptech.glide.load.model.GlideUrl
import com.bumptech.glide.Req... |
app/src/main/java/com/fave/breezil/fave/ui/adapter/QuickCategoryRecyclerAdapter.kt | unknown_repo | kotlin | /**
* Designed and developed by Fave
*
* 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 agre... |
app/src/main/java/com/fave/breezil/fave/ui/adapter/QuickCategoryRecyclerAdapter.kt | unknown_repo | kotlin | /**
* Designed and developed by Fave
*
* 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 agre... |
app/src/main/java/br/com/programadordeelite/gdc/codelab/userinterface/usernavigation/tab/TabHostFragment.kt | unknown_repo | kotlin | package com.mymain.appcertificacao.codelab.userinterface.usernavigation.tab
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import com.google.android.material.tabs.TabLayoutM... |
app/src/main/java/com/example/pushnotifylillydemo/data/database/PushNotifyDatabase.kt | unknown_repo | kotlin | package com.example.pushnotifylillydemo.data.database
import androidx.room.Database
import androidx.room.RoomDatabase
import com.example.pushnotifylillydemo.data.User
import com.example.pushnotifylillydemo.data.dao.UserDao
/**
* PushNotifyDatabase class
*/
@Database(entities = [User::class], version = 1)
abstract ... |
app/src/main/java/tml/tools/apitest/modules/apibrowser/ApiBrowserFragment.kt | unknown_repo | kotlin | package tml.tools.apitest.modules.apibrowser
import android.content.SharedPreferences
import android.os.Bundle
import android.provider.Settings
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.T... |
app/src/main/java/com/yoyiyi/soleil/base/BaseFragment.kt | unknown_repo | kotlin | package com.yoyiyi.soleil.base
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.os.Bundle
import android.support.constraint.ConstraintLayout
import android.support.v4.app.FragmentActivity
import android.view.LayoutInflater
import android.view.View
import ... |
sample-kotlin/src/main/java/cn/sherlockzp/sample/MultiSelectItemActivity.kt | unknown_repo | kotlin | package cn.sherlockzp.sample
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.SimpleItemAnimator
import android.widget.Toast
import cn.sherlockzp.adapter.BaseMultiSelectAdapter
import cn.sherlockzp.adapter... |
app/src/main/kotlin/com/absinthe/libchecker/recyclerview/adapter/snapshot/SnapshotAdapter.kt | unknown_repo | kotlin | package com.absinthe.libchecker.recyclerview.adapter.snapshot
import android.content.pm.PackageManager
import android.content.res.ColorStateList
import android.text.Spannable
import android.text.SpannableString
import android.text.style.ImageSpan
import android.view.View
import android.view.ViewGroup
import android.wi... |
app/src/main/java/com/onramp/android/takehome/explore/ExplorePresenter.kt | unknown_repo | kotlin | package com.onramp.android.takehome.explore
import android.content.Context
import com.onramp.android.takehome.DependencyInjector
import com.onramp.android.takehome.repository.ImageRepository
import com.onramp.android.takehome.imageData.Image
import com.onramp.android.takehome.imageData.source.local.FavoriteImage
clas... |
wear/wear-remote-interactions/src/main/java/androidx/wear/remote/interactions/WatchFaceConfigIntentHelper.kt | unknown_repo | kotlin | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/example/hbyssystemmanagement/Model/Result.kt | unknown_repo | kotlin | package com.example.hbyssystemmanagement.Model
import android.provider.Contacts.Photos
class Result {
val icon: String? = null
val place_id: String? = null
val scope: String? = null
val website: String? = null
val international_phone_number: String? = null
val adr_address: Strin... |
core/src/main/java/com/justai/aimybox/api/aimybox/AimyboxDialogApi.kt | unknown_repo | kotlin | package com.justai.aimybox.api.aimybox
import android.net.Uri
import com.justai.aimybox.api.DialogApi
import com.justai.aimybox.core.CustomSkill
import com.justai.aimybox.model.reply.aimybox.*
/**
* Aimybox dialog api implementation.
*
* @param apiKey your project API key
* @param unitId unique device identifier
... |
app/src/main/java/cn/ycbjie/ycaudioplayer/kotlin/view/adapter/AndroidHomeAdapter.kt | unknown_repo | kotlin | package cn.ycbjie.ycaudioplayer.kotlin.view.adapter
import android.app.Activity
import android.os.Build
import android.support.annotation.RequiresApi
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import cn.ycbjie.ycaudioplayer.R
import cn.ycbjie.ycaudioplayer.R.id.tvName... |
app/src/main/java/com/ibashkimi/wheel/settings/PrefsFragment.kt | unknown_repo | kotlin | package com.ibashkimi.wheel.settings
import android.os.Bundle
import androidx.preference.PreferenceFragmentCompat
import com.ibashkimi.wheel.R
class PrefsFragment : PreferenceFragmentCompat() {
override fun onCreatePreferences(bundle: Bundle?, rootKey: String?) {
addPreferencesFromResource(R.xml.pref_gene... |
sample-kotlin/src/main/java/com/dylanc/loadingstateview/sample/kotlin/base/BaseFragment.kt | unknown_repo | kotlin | /*
* Copyright (c) 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
sdk/src/main/java/com/robotemi/sdk/listeners/OnGoToLocationStatusChangedListener.kt | unknown_repo | kotlin | package com.robotemi.sdk.listeners
import androidx.annotation.StringDef
interface OnGoToLocationStatusChangedListener {
/**
* Listen for status changes during 'go to location'.
*
*
* Available statuses:
*
* * [OnGoToLocationStatusChangedListener.START]
* * [OnGoToLocationStat... |
app/src/main/java/com/akshay/roomaccounting/ui/recyclerview/RoomAccRecyclerViewAdapter.kt | unknown_repo | kotlin | /**
* Created by anandwana001 on
* 22, March, 2022
**/
package com.akshay.homepage.ui.recyclerview
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import kotlin.reflect.KClass
/** A function that returns the integer-based type of view that can bind the specified object. */
private t... |
app/src/main/java/com/bogdan/codeforceswatcher/components/compose/LinkText.kt | unknown_repo | kotlin | package com.bogdan.codeforceswatcher.components.compose
import androidx.compose.foundation.text.ClickableText
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.*
import androidx.compose.ui.text.style.TextDecorat... |
mvvm/src/main/java/app/allever/android/lib/mvvm/demo/MainViewModel.kt | unknown_repo | kotlin | package app.allever.android.lib.mvvm.demo
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import app.allever.android.lib.mvvm.base.BaseViewModel
import kotlinx.coroutines.launch
class MainFragmentViewModel : BaseViewModel() {
val usernameLiveData = MutableLiveData<String>()
... |
shared/src/commonMain/kotlin/xyz/alaniz/aaron/lightsaber/ui/settings/SettingsUi.kt | unknown_repo | kotlin | package xyz.alaniz.aaron.lightsaber.ui.settings
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.found... |
modules/database/src/main/java/se/eelde/toggles/database/WrenchDatabase.kt | unknown_repo | kotlin | package se.eelde.toggles.database
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
@Database(
entities = [
WrenchApplication::class,
WrenchConfiguration::class,
WrenchConfigurationValue::class,
WrenchPredefinedConfigurationValue::c... |
app/src/main/java/cucerdariancatalin/gallery/databases/GalleryDatabase.kt | unknown_repo | kotlin | package com.cyberkey.videoplayer.databases
import android.content.Context
import androidx.room.Database
import androidx.room.Ignore
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import com.cyberkey.videoplayer.interf... |
app/src/main/java/com/codexo/cryptopeak/ui/FavoriteFragment.kt | unknown_repo | kotlin | package com.codexo.cryptopeak.ui
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.LinearLayoutManager
import com.codexo.cryptopeak.R
import co... |
features/crash/src/main/java/com/m3u/features/crash/CrashActivity.kt | unknown_repo | kotlin | package com.m3u.features.crash
import android.content.res.Configuration
import android.net.Uri
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.result.ActivityResultLauncher
import androidx... |
app/src/main/kotlin/com/sbgapps/scoreit/app/ui/edition/universal/UniversalInputScore.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... |
Android/app/src/main/java/com/amrdeveloper/askme/viewmodels/UserSearchDataSource.kt | unknown_repo | kotlin | package com.amrdeveloper.askme.viewmodels
import android.util.Log
import androidx.paging.PageKeyedDataSource
import com.amrdeveloper.askme.models.User
import com.amrdeveloper.askme.net.DEFAULT_QUERY_PAGE_SIZE
import com.amrdeveloper.askme.net.UserService
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutin... |
app/src/main/java/com/example/pokedex/activity/MainActivity.kt | unknown_repo | kotlin | package com.example.pokedex.activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.WindowCompat
import com.google.android.material.color.DynamicColors
import dagger.hilt.android.AndroidEntryPoint
import com.example.pokedex.R
import com.example.pokedex.databinding.Ac... |
androidApp/src/main/java/com/hotmail/arehmananis/composedemo/android/common/Utils.kt | unknown_repo | kotlin | package com.hotmail.arehmananis.composedemo.android.common
import android.annotation.SuppressLint
import android.app.Activity
import android.content.ClipData
import android.content.ClipboardManager
import android.content.ContentValues
import android.content.Context
import android.content.Intent
import android.content.... |
app/src/main/kotlin/com/wr/musicorganizer/utils/Indexer.kt | unknown_repo | kotlin | package com.wr.musicorganizer.utils
import android.content.Context
import android.media.MediaMetadataRetriever
import com.wr.musicorganizer.core.Track
import io.reactivex.Observable
object Indexer {
fun reindexMusic(context: Context, folder: String): Observable<Track> =
FileIndexer.indexFiles(context, fo... |
app/src/main/java/com/muhammedesadcomert/ecommerceapp/ui/favorites/FavoriteAdapter.kt | unknown_repo | kotlin | package com.muhammedesadcomert.ecommerceapp.ui.favorites
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.muhammedesadcomert.ecommerceapp.databinding.FavoriteCardBinding
import com.muhammedesadcomert.ecommerceapp.model.Product
class FavoriteA... |
app/src/main/java/com/example/androiddevchallenge/ui/Home.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... |
composeApp/src/commonMain/kotlin/login/presentation/LoginScreen.kt | unknown_repo | kotlin | package login.presentation
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height... |
libs/tangleLib003/src/main/java/tangle/benchmark/tangleLib003/TangleLib003ViewModel.kt | unknown_repo | kotlin | package tangle.benchmark.tangleLib003
import androidx.lifecycle.ViewModel
import tangle.viewmodel.VMInject
class TangleLib003ViewModel @VMInject constructor() : ViewModel()
|
stream_component/src/main/java/com/xyoye/stream_component/ui/activities/remote_file/RemoteFileViewModel.kt | unknown_repo | kotlin | package com.xyoye.stream_component.ui.activities.remote_file
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.xyoye.common_component.base.BaseViewModel
import com.xyoye.common_component.network.Retrofit
import com.xyoye.common_component.network.request.httpRequest
import co... |
app/src/main/java/com/example/sunnyweather/utils/DataStore.kt | unknown_repo | kotlin | package com.example.sunnyweather.utils
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.preferencesDataStore
/**
* @Description:
* @CreateDate: 2021/12/1 14:52
*/
val Context.dataStore: DataStore<Pre... |
app/src/main/java/com/jawnnypoo/openmeh/util/Navigator.kt | unknown_repo | kotlin | package com.jawnnypoo.openmeh.util
import android.app.Activity
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityOptionsCompat
import com.jawnnypoo.openmeh.R
import com.jawnnypoo.openmeh.activity.AboutActivity
import com.jawnnypoo.openmeh.activity.FullScreenImage... |
design/src/commonMain/kotlin/dev/helw/playground/sdui/design/core/color/BackgroundColors.kt | unknown_repo | kotlin | /**
* Copyright (c) 2023 <NAME> and <NAME>
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package dev.helw.playground.sdui.design.core.color
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.ProvidableComposi... |
guardian/src/main/java/com/guardianconnect/GRDSubscriberCredential.kt | unknown_repo | kotlin | package com.guardianconnect
import android.util.Base64
import com.google.gson.Gson
import com.google.gson.annotations.SerializedName
import com.guardianconnect.managers.GRDConnectManager
import com.guardianconnect.model.GRDSubscriberCredentialValidationMethod
import com.guardianconnect.util.Constants.Companion.GRD_SUB... |
app/src/main/java/com/syleiman/myfootprints/presentationLayer/activities/photoEditor/viewModel/bitmaps/BitmapsIO.kt | unknown_repo | kotlin | package com.syleiman.myfootprints.presentationLayer.activities.photoEditor.viewModel.bitmaps
import android.graphics.Bitmap
import com.syleiman.myfootprints.businessLayer.bitmapService.IBitmapService
import com.syleiman.myfootprints.common.files.FileSingle
import com.syleiman.myfootprints.common.files.IFileSingleOpera... |
core/src/main/java/com/diegoparra/veggie/core/android/NavWithResultHelper.kt | unknown_repo | kotlin | package com.diegoparra.veggie.core.android
import androidx.annotation.IdRes
import androidx.navigation.NavController
open class NavWithResultHelper<T>(
@IdRes val startDestination: Int,
private val resultKey: String
) {
companion object {
const val ORIGINAL_DESTINATION = "original_destination"
... |
StockMe/app/src/main/java/com/stockme/welcome/WelcomeActivity.kt | unknown_repo | kotlin | package com.stockme.welcome
import android.content.Intent
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import com.google.firebase.auth.ktx.auth
import com.google.firebase.ktx.Firebase
import com.stockme.BuildConfig
import com.stockme.Prefs_
im... |
app/src/main/java/br/com/movieapp/feature/moviepopular/domain/usecase/GetPopularMoviesUseCase.kt | unknown_repo | kotlin | package br.com.movieapp.feature.moviepopular.domain.usecase
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import br.com.movieapp.feature.moviepopular.domain.repository.MoviePopularRepository
import br.com.movieapp.framework.domain.model.Movie
import kotlinx.coroutines.flow.Flow
import javax.inj... |
ui/src/main/kotlin/com/processout/sdk/ui/shared/component/TextAndroidView.kt | unknown_repo | kotlin | @file:Suppress("MayBeConstant")
package com.processout.sdk.ui.shared.component
import android.annotation.SuppressLint
import android.content.res.Resources
import android.graphics.drawable.Drawable
import android.os.Build
import android.text.method.LinkMovementMethod
import android.view.Gravity
import android.widget.T... |
playground/src/main/java/androidx/essentials/playground/chips/ChipsActivity.kt | unknown_repo | kotlin | package androidx.essentials.playground.chips
import androidx.activity.viewModels
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.ver... |
app/src/main/java/com/avocadochif/countries/MainActivity.kt | unknown_repo | kotlin | package com.avocadochif.countries
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... |
app/src/main/java/com/example/dropy/ui/screens/waterMyOrder/WaterMyOrderViewModel.kt | unknown_repo | kotlin | package com.example.dropy.ui.screens.waterMyOrder
import androidx.lifecycle.ViewModel
import com.example.dropy.di.DropyApp
import com.example.dropy.network.models.GetIndividualOrders.GetIndividualOrdersResItem
import com.example.dropy.network.models.createIndividualWaterOrder.AssignedTruck
import com.example.dropy.net... |
app/src/androidTest/java/com/theusualme/jungc/tipcalculator/ExampleInstrumentedTest.kt | unknown_repo | kotlin | package com.theusualme.jungc.tipcalculator
import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing docume... |
app/src/main/java/com/jpventura/github/issues/vm/IssuesViewModel.kt | unknown_repo | kotlin | package com.jpventura.github.issues.vm
import com.jpventura.domain.UseCases
import com.jpventura.github.core.ui.Failure
import com.jpventura.github.core.ui.Loading
import com.jpventura.github.core.ui.ObservableViewModel
import com.jpventura.github.core.ui.Success
import com.jpventura.github.issues.IssuesContract
impor... |
app/src/main/java/ru/vegax/xavier/miniMonsterX/activities/ThermostatActivity.kt | unknown_repo | kotlin | package ru.vegax.xavier.miniMonsterX.activities
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import android.view.View
import android.view.View.OnFocusChangeListener
import android.view.inputmethod.InputMethodManager
import androidx.appcompat.app.App... |
feature/settings/src/main/java/com/hellguy39/hellnotes/feature/settings/components/LanguageDialog.kt | unknown_repo | kotlin | package com.hellguy39.hellnotes.feature.settings.components
//@Composable
//fun LanguageDialog(
// isShowDialog: Boolean,
// //events: LanguageDialogEvents
//) {
// CustomDialog(
// showDialog = isShowDialog,
// onClose = {
// // events.dismiss()
// },
// ) { inner... |
sync/src/main/java/com/pomodorotime/sync/workmanager/workers/InsertTaskWorker.kt | unknown_repo | kotlin | package com.pomodorotime.sync.workmanager.workers
import android.content.Context
import android.util.Log
import androidx.work.CoroutineWorker
import androidx.work.Data
import androidx.work.WorkerParameters
import com.pomodorotime.data.sync.ISyncErrorHandler
import com.pomodorotime.data.task.api.models.ApiTask
import c... |
app/src/main/java/app/rive/runtime/example/AssetLoaderFragment.kt | unknown_repo | kotlin | package app.rive.runtime.example
import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.FrameLayout
import androidx.fragment.app.Fragment
import app.rive... |
socketdrawview/src/main/java/com/sk/broadband/socketdrawview/server/ServerSocketDrawView.kt | unknown_repo | kotlin | package com.sk.broadband.socketdrawview.server
import android.content.Context
import android.util.AttributeSet
import com.sk.broadband.socketdrawview.DrawContract
import com.sk.broadband.socketdrawview.DrawView
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.asy... |
infobip-mobile-messaging-android-chat-sdk/src/main/java/org/infobip/mobile/messaging/chat/view/styles/InAppChatInputViewStyle.kt | unknown_repo | kotlin | package org.infobip.mobile.messaging.chat.view.styles
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.util.AttributeSet
import android.util.TypedValue
import androidx.annotation.ColorInt
import androidx.anno... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.