file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/example/pollcreator/dataclass/UserOrAdmin.kt | unknown_repo | kotlin | package com.example.pollcreator.dataclass
import android.util.Log
data class UserOrAdmin(
val _aadharNo: Long=0,
var _password: String="",
val _gender: Gender = Gender.MALE,
val _age: Int =0,
val _name: String="",
val adminOrNot : Boolean?=true,
val pan : String? = null,
val noOfPollCr... |
coil-base/src/main/java/coil/size/DisplaySizeResolver.kt | unknown_repo | kotlin | package coil.size
import android.content.Context
import coil.request.ImageRequest
import coil.target.Target
/**
* A [SizeResolver] that constrains a [Target] to the size of the display.
*
* This is used as the fallback [SizeResolver] for [ImageRequest]s.
*/
class DisplaySizeResolver(private val context: Context) ... |
app/src/main/java/com/sunnyweather/android/logic/dao/PlaceDao.kt | unknown_repo | kotlin | package com.sunnyweather.android.logic.dao
import android.content.Context
import androidx.core.content.edit
import com.google.gson.Gson
import com.sunnyweather.android.SunnyWeatherApplication
import com.sunnyweather.android.logic.model.Place
object PlaceDao {
fun savePlace(place:Place) {
sharedPreferences... |
database/src/main/java/com/seljabali/database/models/LocationDb.kt | unknown_repo | kotlin | package com.seljabali.database.models
import android.os.Parcelable
import io.objectbox.annotation.Entity
import io.objectbox.annotation.Id
import kotlinx.android.parcel.Parcelize
@Entity
@Parcelize
data class LocationDb(
@Id var id: Long = 0,
val cityName: String,
val regionName: String = "",
val woeI... |
network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/waitlist/NetPInviteCodeViewModel.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 DuckDuckGo
*
* 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 ... |
app/src/main/java/com/zhongya/havefun/bean/home/ArticleData.kt | unknown_repo | kotlin | package com.zhongya.havefun.bean.home
import android.annotation.SuppressLint
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@SuppressLint("ParcelCreator")
@Parcelize
data class ArticleData(
var databaseId: Int,
var articleType: Int,
val apkLink: String,
val audit: Int,
val a... |
app/src/main/java/com/delasystems/androidprefsdatastoreexample/data/PrefsStoreRepository.kt | unknown_repo | kotlin | /*
Copyright (C) 2022 <NAME>
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, modify, merge,
publish, distribute, sublicen... |
app/src/main/java/io/github/pavel/jetpack/ui/detail/DetailScreen.kt | unknown_repo | kotlin | package io.github.pavel.jetpack.ui.detail
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.runtime.Composabl... |
bootstrap-icons-compose/src/main/java/com/wiryadev/bootstrapiconscompose/bootstrapicons/filled/LightbulbOff.kt | unknown_repo | kotlin | package com.wiryadev.bootstrapiconscompose.bootstrapicons.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.S... |
app/src/main/java/id/teman/app/domain/repository/order/OrderRepository.kt | unknown_repo | kotlin | package id.teman.app.domain.repository.order
import com.google.android.gms.maps.model.LatLng
import id.teman.app.common.orZero
import id.teman.app.data.dto.order.OrderDetailResponseDto
import id.teman.app.data.dto.order.OrderRequestDto
import id.teman.app.data.dto.order.OrderResponseDto
import id.teman.app.data.dto.ra... |
src/main/kotlin/indi/midreamsheep/app/tre/shared/tool/text/TextFilter.kt | unknown_repo | kotlin | package indi.midreamsheep.app.tre.shared.tool.text
import androidx.compose.ui.text.TextRange
import androidx.compose.ui.text.input.TextFieldValue
fun TextFieldValue.filter(): TextFieldValue {
val count = this.text.count { it == '\t' }
var selection = this.selection
if(count!=0){
selection = TextRa... |
app/src/main/java/com/ehsankhormali/userprofileusingfirebase/screens/Register.kt | unknown_repo | kotlin | package com.ehsankhormali.userprofileusingfirebase.screens
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.foundation.layout.Row
import androidx.comp... |
android-resources/src/main/kotlin/com/source/bricks/resources/Display.kt | unknown_repo | kotlin | package com.source.bricks.resource
import android.app.Activity
import android.content.res.Resources
import androidx.fragment.app.Fragment
/**
* Gets current display width in pixels
* */
inline val Resources.screenWidth
get() = displayMetrics.widthPixels
/**
* Gets current display height in pixels
* */
inlin... |
06_CountDownTimer/Complete/CountDownTimer/app/src/main/java/com/example/countdowntimer/ExampleUiState.kt | unknown_repo | kotlin | package com.example.countdowntimer
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
data class ExampleUiState(
var time: MutableState<Long> = mutableStateOf(3 * 60 * 1000),
var timeLeft: MutableState<Long> = mutableStateOf(time.value),
var isRunning: MutableState<Boole... |
app/src/main/java/me/mengxiaolin/tipculator/PositiveIntegerInputBox.kt | unknown_repo | kotlin | package me.mengxiaolin.tipculator
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.com... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/MessageArrowUpRight.kt | unknown_repo | kotlin | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... |
app/src/main/java/com/paulgiron/supercoolapp/Extension.kt | unknown_repo | kotlin | package com.paulgiron.supercoolapp
import android.support.annotation.LayoutRes
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
fun <T : ViewGroup> T.inflate(@LayoutRes layoutRes: Int, attachToRoot: Boolean = false): View {
return LayoutInflater.from(context).inflate(layou... |
app/src/main/java/com/fracta7/e_bookshelf/data/remote/dto/book/isbn/excerpts/ExcerptsModel.kt | unknown_repo | kotlin | package com.fracta7.e_bookshelf.data.remote.dto.book.isbn.excerpts
import androidx.annotation.Keep
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
@Keep
data class ExcerptsModel(
@SerializedName("comment")
@Expose
val comment: String,
@SerializedName("text"... |
app/src/main/java/ci/projccb/mobile/activities/POSDashboardActivity.kt | unknown_repo | kotlin | package ci.projccb.mobile.activities
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import ci.projccb.mobile.R
class POSDashboardActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layou... |
app/src/main/java/com/example/sitiosturisticos/lista/ListViewModel.kt | unknown_repo | kotlin | package com.example.sitiosturisticos.lista
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.sitiosturisticos.data.PoiRepository
import com.example.sitiosturisticos.model.Poi
import com.example.sitiosturisticos.model.PoiItem
import com.g... |
app/src/main/java/de/svedie/eqonomize/utils/common/MessageDialog.kt | unknown_repo | kotlin | package de.svedie.eqonomize.utils.common
import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
import androidx.annotation.Nullable
import de.svedie.eqonomize.R
/**
* Creates an alert dialog with the specified title and message.
*
* @author svedie
*/
class MessageDial... |
compose-kit/src/main/java/com/nikoarap/compose_kit/composables/Timers.kt | unknown_repo | kotlin | package com.nikoarap.compose_kit.composables
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import... |
viewmodel/src/main/java/com/paul/wang/core_logic/DogBreedViewModel.kt | unknown_repo | kotlin | package com.paul.wang.core_logic
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.paul.wang.datarepository.DogRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import javax.inject.Inject
@Hilt... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Bible.kt | unknown_repo | kotlin | package me.localx.icons.straight.outline
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.Mite... |
app/src/main/java/com/dicoding/mystoryapp/view/maps/MapViewModel.kt | unknown_repo | kotlin | package com.dicoding.mystoryapp.view.maps
import androidx.lifecycle.ViewModel
import com.dicoding.mystoryapp.repository.StoryRepository
class MapViewModel(private val storyRepository: StoryRepository) : ViewModel() {
fun getAllStoriesWithLocation() = storyRepository.getStoriesWithLocation()
} |
app/src/main/kotlin/com/simplemobiletools/contacts/pro/databases/ContactsDatabase.kt | unknown_repo | kotlin | package com.simplemobiletools.contacts.pro.databases
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import androidx.sqlite.db.SupportSQLiteDatabase
import com.simplemobiletools.contacts.pro.helpers.Converters
... |
app/src/main/java/io/matchmore/ticketing/BuyFragment.kt | unknown_repo | kotlin | package io.matchmore.ticketing
import android.graphics.Color
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.yqritc.recyclerviewflexibledivider.Horiz... |
xhd/src/main/java/com/architecture/light/ui/view/PasswordKeyboardView.kt | unknown_repo | kotlin | package com.architecture.light.ui.view
import android.content.Context
import android.text.Editable
import android.text.InputType
import android.text.TextWatcher
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.EditText
import android.widget.RelativeLayout
import com.android.arc... |
app/src/main/java/com/developersbreach/firestoreandroid/SportsAdapter.kt | unknown_repo | kotlin | package com.mason.firebasesports
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.google.android.material.card.MaterialCardView
import com.google.firebase.firestore.DocumentSnapshot
impor... |
mobile/android/Jannah_Debug_Backup/app/src/main/java/io/jannah/jannah/WorkflowListDetails.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalMaterial3Api::class)
package io.jannah.jannah
import androidx.compose.material3.ExperimentalMaterial3Api |
android/ui/settings/src/main/java/any/ui/settings/ui/DarkModeItem.kt | unknown_repo | kotlin | package any.ui.settings.ui
import any.base.R as BaseR
import any.ui.common.R as CommonUiR
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.mat... |
app/src/main/java/ani/dantotsu/settings/SettingsAdapter.kt | unknown_repo | kotlin | package ani.dantotsu.settings
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import ani.dantotsu.databinding.ItemSettingsBinding
import ani.dantotsu.databinding.ItemSettingsSwitchBindi... |
sphinx/screens-detail/contact/edit-contact/src/main/java/chat/sphinx/edit_contact/navigation/EditContactNavigator.kt | unknown_repo | kotlin | package chat.sphinx.edit_contact.navigation
import androidx.navigation.NavController
import chat.sphinx.contact.navigation.ContactNavigator
import chat.sphinx.wrapper_common.dashboard.ContactId
import io.matthewnelson.concept_navigation.BaseNavigationDriver
abstract class EditContactNavigator(
detailNavigationDri... |
app/src/main/java/com/edgar/mercadosearch/ui/home/HomeActivity.kt | unknown_repo | kotlin | package com.edgar.mercadosearch.ui.home
import android.content.Intent
import android.net.ConnectivityManager
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Menu
import android.view.View
import androidx.appcompat.app.AlertDialog
import androidx.databinding.DataBindingUtil
i... |
app/src/main/java/cat/company/qrreader/history/EditBarcodeDialog.kt | unknown_repo | kotlin | package cat.company.qrreader.history
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.materia... |
core-video/src/main/java/com/chillingvan/samples/composevideo/video/PlayControlViewModel.kt | unknown_repo | kotlin | package com.chillingvan.samples.composevideo.video
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.google.android.exoplayer2.C
import com.google.android.exoplayer2.PlaybackException
import com.google.android.exopl... |
app/src/main/java/com/blaubalu/detoxrank/data/TimerDifficultyCard.kt | unknown_repo | kotlin | package com.blaubalu.detoxrank.data
import androidx.annotation.DrawableRes
enum class TimerDifficulty {
Easy, Medium, Hard
}
data class TimerDifficultyCard(
val difficulty: TimerDifficulty,
val avoidList: List<Int>,
@DrawableRes val backgroundImageRes: Int
)
|
hooks/src/main/kotlin/xyz/junerver/compose/hooks/useBoolean.kt | unknown_repo | kotlin | package xyz.junerver.compose.hooks
import androidx.compose.runtime.Composable
import xyz.junerver.kotlin.Tuple5
import xyz.junerver.kotlin.tuple
/**
* Description:
* @author Junerver
* date: 2024/1/26-13:38
* Email: <EMAIL>
* Version: v1.0
*/
@Composable
fun useBoolean(default: Boolean = false): Tuple5<Boolean,... |
preferences/src/commonMain/kotlin/com/alexvanyo/composelife/preferences/DefaultComposeLifePreferences.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
app/src/main/java/com/bera/whitehole/data/localdb/Preferences.kt | unknown_repo | kotlin | package com.bera.whitehole.data.localdb
import android.content.Context
import android.content.SharedPreferences
@Suppress("ktlint:standard:property-naming")
object Preferences {
const val botToken: String = "botToken"
const val channelId: String = "channelId"
const val startTabKey: String = "startTab"
... |
shared/src/androidMain/kotlin/com/joelkanyi/focusbloom/platform/MultiplatformSettingsWrapper.android.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 ... |
app/src/main/java/com/example/moviesearch/ui/search/SearchResultsAdapter.kt | unknown_repo | kotlin | package com.example.moviesearch.ui.search
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.moviesearch.R
import com.example.moviesearch.data.model.SearchResult
import com.example.moviesearch.databinding.... |
heima_player/app/src/main/java/com/itheima/player/adapter/VbangAdapter.kt | unknown_repo | kotlin | package com.itheima.player.adapter
import android.content.Context
import android.database.Cursor
import android.support.v4.widget.CursorAdapter
import android.view.View
import android.view.ViewGroup
import com.itheima.player.model.AudioBean
import com.itheima.player.widget.VbangItemView
/**
* ClassName:VbangAdapter... |
demo-kotlin/src/main/java/me/yokeyword/sample/zhihu/ui/fragment/third/child/ShopFragment.kt | unknown_repo | kotlin | package me.yokeyword.sample.zhihu.ui.fragment.third.child
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import java.util.ArrayList
import java.util.Arrays
import androidx.appcompat.widget.Toolbar
import me.yokeyword.fragm... |
ajs/src/main/java/com/jsongo/ajs/webloader/BaseWebLoader.kt | unknown_repo | kotlin | package com.jsongo.ajs.webloader
import android.content.res.Configuration
import android.os.Bundle
import android.view.View
import android.widget.FrameLayout
import android.widget.ProgressBar
import com.jsongo.ajs.AJs
import com.jsongo.ajs.R
import com.jsongo.ajs.helper.AjsWebViewHost
import com.jsongo.ajs.widget.AJsW... |
app/src/main/java/com/kvl/cyclotrack/StravaTokenExchangeWorker.kt | unknown_repo | kotlin | package com.kvl.cyclotrack
import android.content.Context
import androidx.hilt.work.HiltWorker
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import com.kvl.cyclotrack.util.updateStravaAuthToken
import dagger.assisted.Assisted
import dagger.assisted.AssistedInject
@HiltWorker
class StravaT... |
app/src/androidTest/java/com/poemgen/deeppoet/MainInstrumentedTest.kt | unknown_repo | kotlin | package com.poemgen.deeppoet
import android.content.Intent
import android.util.Log
import android.view.View
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.core.app.launchActivity
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.*
import org.juni... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/HatGraduation.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.regular
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.Regular.HatGraduation: ImageVector
get() {
if (_hatGraduation != nu... |
CMPE451/Android/app/src/main/java/com/example/carousel/FormValidator.kt | unknown_repo | kotlin | package com.example.carousel
import android.app.Activity
import androidx.fragment.app.FragmentActivity
import com.tapadoo.alerter.*
class FormValidator {
var errors: MutableList<String>
var targetActivity: Activity?
constructor(activity: Activity?) {
errors = mutableListOf<String>()
targe... |
app/src/main/java/com/gauravk/bubblebarsample/MainActivity.kt | unknown_repo | kotlin | package com.gauravk.bubblebarsample
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
se... |
solar/src/main/java/com/chiksmedina/solar/boldduotone/arrows/RoundArrowLeftUp.kt | unknown_repo | kotlin | package com.chiksmedina.solar.boldduotone.arrows
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.Compan... |
data/repository/src/main/java/com/netchar/repository/services/IDownloadService.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 ... |
app/src/main/java/com/thesohelshaikh/ytanalyser/ui/settings/SettingsScreen.kt | unknown_repo | kotlin | package com.thesohelshaikh.ytanalyser.ui.settings
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.hilt.navigation.compose.hiltViewModel
import com.thesohelshaikh.ytanalyser.... |
app/src/main/java/io/github/msh91/arch/di/module/DatabaseModule.kt | unknown_repo | kotlin | package io.github.msh91.arch.di.module
import android.content.Context
import androidx.room.Room
import dagger.Module
import dagger.Provides
import io.github.msh91.arch.app.ArchApplication
import io.github.msh91.arch.data.source.db.AppDataBase
import io.github.msh91.arch.data.source.db.RemoteKeysDao
import io.github.ms... |
TUIKit/TUICallKit/tuicallkit-kt/src/main/java/com/tencent/qcloud/tuikit/tuicallkit/view/component/CallTimerView.kt | unknown_repo | kotlin | package com.tencent.qcloud.tuikit.tuicallkit.view.component
import android.content.Context
import androidx.appcompat.widget.AppCompatTextView
import com.tencent.qcloud.tuicore.util.DateTimeUtil
import com.tencent.qcloud.tuikit.tuicallengine.TUICallDefine
import com.tencent.qcloud.tuikit.tuicallengine.impl.base.Observe... |
app/src/main/java/io/github/toyota32k/media/ui/theme/Shape.kt | unknown_repo | kotlin | package io.github.toyota32k.media.ui.theme
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Shapes
import androidx.compose.ui.unit.dp
val Shapes = Shapes(small = RoundedCornerShape(4.dp), medium = RoundedCornerShape(4.dp), large = RoundedCornerShape(0.dp)) |
app/src/main/java/com/iniongun/tivbible/di/modules/ViewModelsModule.kt | unknown_repo | kotlin | package com.iniongun.tivbible.di.modules
import androidx.lifecycle.ViewModelProvider
import com.iniongun.tivbible.common.base.BaseViewModel
import com.iniongun.tivbible.di.keys.AppViewModelKey
import com.iniongun.tivbible.presentation.splash.SplashActivityViewModel
import com.iniongun.tivbible.reader.home.HomeActivity... |
app/src/main/java/com/unludev/quizforteachers/data/local/QuestionsDatabaseEntities.kt | unknown_repo | kotlin | package com.unludev.quizforteachers.data.local
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.unludev.quizforteachers.domain.DomainQuestionModel
@Entity(tableName = "questions")
data class DatabaseQuestionModel(
@PrimaryKey(autoGenerate = true)
val id: I... |
app/src/androidTest/java/com/bortxapps/oompaloomparesources/endtoend/MainScreenEndToEndTest.kt | unknown_repo | kotlin | package com.bortxapps.oompaloomparesources.endtoend
import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.bortxapps.data.OompaLoompaInfo
import com.bortxapps.data.Tastes
import com.bortxapps.oompaloomparesources... |
app/src/main/java/com/eroom/erooja/feature/filter/JobGroupAdapter.kt | unknown_repo | kotlin | package com.eroom.erooja.feature.filter
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.eroom.data.entity.JobClass
import com.eroom.data.response.JobGroupA... |
octicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/octicons/octicons/Globe24.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.octicons.octicons
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.Stro... |
app/src/main/java/com/example/mini_stock/tab/sales.kt | unknown_repo | kotlin | package com.example.mini_stock.tab
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.recyclerview.widget.LinearLayoutManager
import com.exam... |
app/src/main/java/com/example/androiddevchallenge/LoginScreen.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... |
solar/src/main/java/com/chiksmedina/solar/boldduotone/arrows/ArrowDown.kt | unknown_repo | kotlin | package com.chiksmedina.solar.boldduotone.arrows
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.C... |
solar/src/main/java/com/chiksmedina/solar/boldduotone/arrows/ArrowDown.kt | unknown_repo | kotlin | package com.chiksmedina.solar.boldduotone.arrows
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.C... |
app/src/main/java/com/luckhost/lockscreen_notes/presentation/main/MainViewModel.kt | unknown_repo | kotlin | package com.luckhost.lockscreen_notes.presentation.main
import android.content.Context
import android.content.Intent
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.toMutableStateList
import androidx.lifecycle.ViewModel
import com.luckhost.domain.models.NoteModel
import com.luckhost.... |
popupmenu/src/main/kotlin/com/sixtyninefourtwenty/materialpopupmenu/builder/NormalItemBuilder.kt | unknown_repo | kotlin | package com.sixtyninefourtwenty.materialpopupmenu.builder
import android.graphics.Typeface
import android.graphics.drawable.Drawable
import androidx.annotation.ColorInt
import androidx.annotation.DrawableRes
import androidx.annotation.GravityInt
import com.sixtyninefourtwenty.materialpopupmenu.MaterialPopupMenuBuilder... |
app/src/main/java/com/vocabularyapp/database/WordDao.kt | unknown_repo | kotlin | package com.vocabularyapp.database
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.vocabularyapp.models.Word
@Dao
interface WordDao {
@Insert
suspend fun insert(word: Word)
... |
data/src/main/java/com/movies/data/repositories/intheaters/InTheatersRepository.kt | unknown_repo | kotlin | package com.movies.data.repositories.intheaters
import androidx.paging.DataSource
import com.movies.data.entities.Success
import com.movies.data.repositories.films.FilmRepository
import com.movies.data.repositories.films.LocalFilmStore
import com.movies.data.resultentities.InTheaterEntryWithFilm
import com.movies.exte... |
android/src/main/kotlin/com/dgsd/android/solar/receive/requestamount/RequestEnterMessageViewModel.kt | unknown_repo | kotlin | package com.dgsd.android.solar.receive.requestamount
import androidx.lifecycle.ViewModel
import com.dgsd.android.solar.flow.MutableEventFlow
import com.dgsd.android.solar.flow.asEventFlow
import kotlinx.coroutines.flow.MutableStateFlow
class RequestEnterMessageViewModel : ViewModel() {
private val rawInput = Mutab... |
domain/src/main/java/com/developersancho/domain/search/SearchPagingSource.kt | unknown_repo | kotlin | package com.developersancho.domain.search
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.developersancho.data.model.dto.SearchItemDto
import com.developersancho.data.model.dto.toSearchItemDtoList
import com.developersancho.data.repository.SearchRepository
class SearchPagingSource(
... |
app/src/main/java/edu/stanford/kellenvu/mymaps/MapsAdapter.kt | unknown_repo | kotlin | package edu.stanford.kellenvu.mymaps
import android.content.Context
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import edu.stanford.kellenvu.mymaps.models.UserMap
priva... |
src/commonMain/kotlin/epicarchitect/breakbadhabits/uikit/text/TextField.kt | unknown_repo | kotlin | package epicarchitect.breakbadhabits.uikit.text
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.expandVertically
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animat... |
app/src/main/java/com/devcommop/myapplication/ui/components/onboarding/OnBoardingScreen.kt | unknown_repo | kotlin | package com.devcommop.myapplication.ui.components.onboarding
import android.util.Log
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Ro... |
app/src/main/java/dev/zezula/books/ui/screen/detail/AddOrEditNoteDialog.kt | unknown_repo | kotlin | package dev.zezula.books.ui.screen.detail
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundati... |
app/common/src/main/kotlin/me/zhanghai/android/files/app/AppUpgrader.kt | unknown_repo | kotlin | package me.zhanghai.android.files.app
import android.net.Uri
import android.os.Parcel
import androidx.annotation.StringRes
import androidx.core.content.edit
import tech.nagual.app.appClassLoader
import tech.nagual.app.application
import tech.nagual.app.defaultSharedPreferences
import me.zhanghai.android.files.compat.r... |
app/src/main/java/volovyk/guerrillamail/data/local/EmailDao.kt | unknown_repo | kotlin | package volovyk.guerrillamail.data.local
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import kotlinx.coroutines.flow.Flow
import volovyk.guerrillamail.data.model.Email
@Dao
interface EmailDao {
@get:Query("SELEC... |
feature/main/src/main/java/com/hankki/feature/main/MainNavigator.kt | unknown_repo | kotlin | package com.hankki.feature.main
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.navigation.NavDestination
import androidx.navigation.NavDestination.Companion.hasRoute
import androidx.navigation.NavHostController
import androidx.navigation.NavOptions
import androidx.n... |
adt-ui-compose/testSrc/sample/SampleComposeComponentTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2023 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 app... |
app/src/main/java/dev/borisochieng/autocaretag/ui/navigation/AppRoute.kt | unknown_repo | kotlin | package dev.borisochieng.autocaretag.ui.navigation
import android.nfc.Tag
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.Modifier
import androi... |
app/src/main/java/com/mmdub/qofee/viewmodel/home/HomeViewModel.kt | unknown_repo | kotlin | package com.mmdub.qofee.viewmodel.home
import android.util.Log
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.mmdub.qofee.data.Reposi... |
app/src/main/java/com/abdallah_abdelazim/calculator/data/service/mathengine/MathEngineService.kt | unknown_repo | kotlin | package com.abdallah_abdelazim.calculator.data.service.mathengine
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service
import android.content.Context
import android.content.Intent
import android.os.Binder
import android.os.Build
import android.os.IBinder
import andro... |
ASLib/src/main/java/com/mrtr/aslib/core/storage/secure/SecureDataBaseBuilder.kt | unknown_repo | kotlin | package com.mrtr.aslib.core.storage.secure
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import java.io.Closeable
internal object SecureDataBaseBuilder {
fun build(context: Context, allowMainThreadExecution: Boolean = false): SecureDataBa... |
TestGeopagos/app/src/main/java/com/rest/testgeopagos/TestGeoPagosApp.kt | unknown_repo | kotlin | package com.rest.testgeopagos
import android.app.Application
import com.rest.testgeopagos.di.DaggerAppComponent
class TestGeoPagosApp : Application() {
val appComponent = DaggerAppComponent.create()
} |
android/sample/src/main/java/br/com/zup/beagle/sample/widgets/SampleTextField.kt | unknown_repo | kotlin | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... |
services/appnavstate/impl/src/test/kotlin/io/element/android/services/appnavstate/impl/DefaultNavigationStateServiceTest.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 New Vector Ltd
*
* 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 agr... |
core/src/main/kotlin/me/shkschneider/skeleton/helper/AndroidHelper.kt | unknown_repo | kotlin | package me.shkschneider.skeleton.helper
import android.os.Build
import androidx.annotation.IntRange
// <https://source.android.com/source/build-numbers#platform-code-names-versions-api-levels-and-ndk-releases>
object AndroidHelper {
const val API_1 = Build.VERSION_CODES.BASE // 1.0
const val API_2 = Build.VE... |
app/src/main/java/com/mobiquity/arnab/weather/ui/adapter/CityListAdapter.kt | unknown_repo | kotlin | package com.mobiquity.arnab.weather.ui.adapter
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.mobiquity.arnab.weather.R
import com.mobiquity.arnab.weather.... |
Accessibility101-Android/app/src/main/java/menegatti/accessibility101/view/price/RegularPriceView.kt | unknown_repo | kotlin | package menegatti.accessibility101.view.price
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.ImageButton
import android.widget.RelativeLayout
import android.widget.TextView
import menegatti.accessibility101.R
class Regu... |
feature-profile/src/main/java/com/stslex/feature_profile/ui/ProfileViewModel.kt | unknown_repo | kotlin | package com.stslex.feature_profile.ui
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.stslex.core.ValueState
import com.stslex.core.AppDispatchers
import com.stslex.feature_profile.data.abstraction.ProfileRepository
import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.*
... |
app/src/main/java/com/choidh/imagesearch/ui/gallery/GalleryViewModel.kt | unknown_repo | kotlin | package com.choidh.imagesearch.ui.gallery
import androidx.hilt.Assisted
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.*
import androidx.paging.cachedIn
import com.choidh.imagesearch.data.gallery.NaverRepository
class GalleryViewModel @ViewModelInject constructor(
private val repository:... |
api/src/main/java/com/stocksexchange/api/model/rest/OrderbookOrder.kt | unknown_repo | kotlin | package com.stocksexchange.api.model.rest
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
@Parcelize
data class OrderbookOrder(
@SerializedName("price") val price: Double,
@SerializedName("amount") val baseCurrencyAmount: Double,
@Seri... |
app/src/main/java/com/ai/kottest001/di/NetworkManagerHelperModule.kt | unknown_repo | kotlin | package com.ai.kottest001.di
import android.content.Context
import com.ai.kottest001.helper.NetworkManagerHelper
import com.ai.kottest001.helper.SharedPreferenceHelper
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.co... |
LOGIN/app/src/main/java/com/fcfm/poi/yourooms/login/EntregarTareaActivity.kt | unknown_repo | kotlin | package com.fcfm.poi.yourooms.login
import android.annotation.SuppressLint
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.fcfm.poi.yourooms.login.authentication.AuthenticationManager
import com.... |
bootstrap-icons-compose/src/main/java/com/wiryadev/bootstrapiconscompose/bootstrapicons/normal/Discord.kt | unknown_repo | kotlin | package com.wiryadev.bootstrapiconscompose.bootstrapicons.normal
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
imp... |
app/src/main/java/com/ms/quokkaism/ui/liked_quotes/LikedQuotesViewModel.kt | unknown_repo | kotlin | package com.ms.quokkaism.ui.liked_quotes
import android.annotation.SuppressLint
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.DataSource
import androidx.paging.LivePagedListBuilder
import ... |
app/src/main/java/com/hakmar/employeelivetracking/features/tasks/ui/screen/TasksScreen.kt | unknown_repo | kotlin | package com.hakmar.employeelivetracking.features.tasks.ui.screen
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.la... |
copper-flow/src/androidTest/java/app/cash/copper/flow/FlowContentResolverTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2015 Square, 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 agre... |
app/src/main/java/br/com/raveline/todo2021/presentation/ui/fragment/AddFragment.kt | unknown_repo | kotlin | package br.com.raveline.todo2021.presentation.ui.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.ViewMod... |
app/src/main/java/com/vladgba/keyb/Key.kt | unknown_repo | kotlin | package com.vladgba.keyb
import android.graphics.Paint
import android.media.MediaPlayer
import android.os.SystemClock
import android.util.Log
import android.view.KeyEvent
import android.widget.Toast
import kotlin.collections.ArrayList
import java.util.*
import kotlin.math.*
class Key(var c: KeybController, parent: Ke... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.