file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
psclient/src/main/java/com/majeur/psclient/ui/JoinChatRoomDialog.kt | unknown_repo | kotlin | package com.majeur.psclient.ui
import android.os.Bundle
import android.text.Editable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.BaseAdapter
import android.widget.ListAdapter
import android.widget.Toast
import com.goo... |
app/src/main/java/com/github/naz013/tasker/data/TasksConverter.kt | unknown_repo | kotlin | package com.github.naz013.tasker.data
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
/**
* Copyright 2017 Nazar Suhovich
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
app/src/main/java/com/bpdsulteng/mobile/utils/BindingUtils.kt | unknown_repo | kotlin | package com.bpdsulteng.mobile.utils
import android.databinding.BindingAdapter
import android.support.v4.view.ViewPager
import android.support.v7.widget.RecyclerView
import android.widget.ImageView
import com.bpdsulteng.mobile.model.Chat
import com.bpdsulteng.mobile.model.User
import com.bpdsulteng.mobile.ui.chatroom.C... |
src/main/kotlin/ru/tinkoff/cyclohexane/ui/component/cluster/tree/TreeIconView.kt | unknown_repo | kotlin | package ru.tinkoff.cyclohexane.ui.component.cluster.tree
import androidx.compose.material.Colors
import androidx.compose.material.Icon
import androidx.compose.material.LocalContentColor
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.KeyboardArrowDown
import androidx.compose.... |
app/src/main/java/com/xuanlocle/weatherapp/ui/base/BaseDialog.kt | unknown_repo | kotlin | package com.xuanlocle.weatherapp.ui.base
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.Window
import androidx.fragment.app.DialogFragment
abstract class... |
app/src/main/kotlin/com/kamer/orny/di/app/DataModule.kt | unknown_repo | kotlin | package com.kamer.orny.di.app
import android.arch.persistence.room.Room
import android.content.Context
import com.kamer.orny.data.android.*
import com.kamer.orny.data.domain.*
import com.kamer.orny.data.domain.mapper.ExpenseMapper
import com.kamer.orny.data.domain.mapper.ExpenseMapperImpl
import com.kamer.orny.data.go... |
app/src/main/java/com/example/mcard/presentation/adapters/CardsLoaderStateAdapter.kt | unknown_repo | kotlin | package com.example.mcard.presentation.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.LoadState
import androidx.paging.LoadStateAdapter
import androidx.recyclerview.widget.RecyclerView
import com.example.mcard.databinding.CardsItemProgressBinding
import com.example.mca... |
app/src/main/java/com/mshaw/pokemon/core/viewmodels/SampleViewModel.kt | unknown_repo | kotlin | package com.mshaw.vin.core.viewmodels
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.mshaw.vin.data.models.request.toPokemon
import com.mshaw.vin.dat... |
app/src/main/java/com/ahmetocak/shoppingapp/presentation/home/Home.kt | unknown_repo | kotlin | package com.ahmetocak.shoppingapp.presentation.home
import androidx.annotation.StringRes
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.AccountCircle
import androidx.compose.material.icons.filled.Favorite
import androidx.compose.material.icons.filled.Home
import androidx.com... |
app/src/main/java/com/eky/evimiss/data/model/EventEntity.kt | unknown_repo | kotlin | package com.eky.evimiss.data.model
import android.os.Parcelable
import com.eky.evimiss.utils.*
import kotlinx.parcelize.Parcelize
import org.threeten.bp.LocalDate
import org.threeten.bp.LocalDateTime
@Parcelize
data class EventEntity(
var id: String? = "",
val calendarId: String? = "",
val title: String? ... |
app/src/main/java/com/example/cpudefense/Marketplace.kt | unknown_repo | kotlin | package com.example.cpudefense
import android.graphics.*
import android.view.MotionEvent
import androidx.appcompat.app.AlertDialog
import com.example.cpudefense.effects.Fader
import com.example.cpudefense.gameElements.Button
import com.example.cpudefense.gameElements.GameElement
import com.example.cpudefense.networkma... |
app/src/main/java/io/traxa/ui/main/MainViewModel.kt | unknown_repo | kotlin | package io.traxa.ui.main
import android.app.Application
import android.content.Intent
import android.content.res.Configuration
import android.graphics.Color
import android.location.Location
import android.view.Surface
import android.view.View
import android.widget.Toast
import androidx.camera.core.CameraSelector
impor... |
app/src/main/java/projects/nyinyihtunlwin/diyrecipes/destinations/MealCategoryList.kt | unknown_repo | kotlin | package projects.nyinyihtunlwin.diyrecipes.destinations
import androidx.compose.runtime.Composable
import com.ramcosta.composedestinations.annotation.Destination
import com.ramcosta.composedestinations.annotation.RootNavGraph
import com.ramcosta.composedestinations.navigation.DestinationsNavigator
import projects.nyin... |
app/src/main/java/com/lorenzovainigli/foodexpirationdates/model/worker/CheckExpirationsWorker.kt | unknown_repo | kotlin | package com.lorenzovainigli.foodexpirationdates.model.worker
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import androidx.core.app.NotificationCompat
import androidx.core.content.ContextComp... |
app/src/main/java/com/example/tophair/app/data/entities/enum/TitleType.kt | unknown_repo | kotlin | package com.example.tophair.app.data.entities.enum
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.sp
enum class TitleType(val tipoTitulo: String, val fontSize: TextUnit) {
H1(tipoTitulo = "h1", fontSize = 22.sp),
H2(tipoTitulo = "h2", fontSize = 20.sp),
H3(tipoTitulo = "h3", font... |
kickassanime/src/main/java/com/otaku/kickassanime/page/frontpage/list/PopularFragment.kt | unknown_repo | kotlin | package com.otaku.kickassanime.page.frontpage.list
import androidx.navigation.fragment.findNavController
import com.otaku.fetch.data.ITileData
import com.otaku.kickassanime.db.models.AnimeTile
class PopularFragment : FrontPageListFragment() {
override fun getList() = frontPageListViewModel.popular
override fu... |
client/app/src/main/java/com/microsoft/research/karya/selectAppLanguage/FetchFileResourcesForAppLanguage.kt | unknown_repo | kotlin | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
* Activity to fetch file resources for the selected app language.
*/
package com.microsoft.research.karya.selectAppLanguage
import android.content.Intent
import com.microsoft.research.karya.R.string
import com.microsoft.research.karya.c... |
app/src/main/java/com/nlasagni/countrylist/viewmodel/CountryViewModel.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2021 <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, m... |
base/src/main/java/moadgara/base/util/ResourceProvider.kt | unknown_repo | kotlin | package moadgara.base.util
import android.content.Context
import android.content.res.ColorStateList
import android.content.res.Resources
import android.graphics.Typeface
import android.graphics.drawable.Drawable
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import androidx.annota... |
byco/src/main/java/androidapp/byco/ui/ShareRideActivity.kt | unknown_repo | kotlin | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
app/src/main/java/com/youtubedl/ui/component/binding/ViewPagerBinding.kt | unknown_repo | kotlin | package com.youtubedl.ui.component.binding
import android.databinding.BindingAdapter
import android.support.v4.view.PagerAdapter
import android.support.v4.view.ViewPager
/**
* Created by cuongpm on 12/9/18.
*/
object ViewPagerBinding {
@BindingAdapter("app:currentItem")
@JvmStatic
fun setCurrentItem(v... |
libraries/VastJIntent/src/main/kotlin/com/ave/vastgui/jintent/JIntentRegister.kt | unknown_repo | kotlin | /*
* Copyright 2022 VastGui <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 agreed to ... |
app/src/main/java/is/tiro/heyra/RecognitionActivity.kt | unknown_repo | kotlin | package `is`.tiro.heyra
import android.Manifest
import android.app.Activity
import android.app.SearchManager
import android.content.ComponentName
import android.content.DialogInterface
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.speech.RecognitionListe... |
utils-android/src/main/java/me/lwb/utils/android/utils/SpannableUtils.kt | unknown_repo | kotlin | package me.lwb.utils.android.utils
import android.graphics.MaskFilter
import android.text.SpannableStringBuilder
import android.text.Spanned
import android.text.TextPaint
import android.text.style.*
import android.view.View
import androidx.annotation.ColorInt
import androidx.annotation.Px
import java.util.*
/**
* Cr... |
chapter_three/app/src/main/java/com/madona/chapter_three/MainActivity.kt | unknown_repo | kotlin | package com.madona.chapter_three
import android.annotation.SuppressLint
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Scaff... |
app/src/main/java/com/takusemba/jethub/ui/MainActivity.kt | unknown_repo | kotlin | package com.takusemba.jethub.ui
import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.flowWithLifecycle
import androidx.lifecycle.lifecycleScope
import an... |
app/src/main/kotlin/fr/letroll/githubbookmarkmanager/flow/activity/MainActivity.kt | unknown_repo | kotlin | package fr.letroll.githubbookmarkmanager.flow.activity
import android.os.Bundle
import android.widget.Button
import fr.letroll.githubbookmarkmanager.R
import fr.letroll.githubbookmarkmanager.api.GithubApi
import fr.letroll.kotlinandroidlib.findView
import rx.functions.Action1
/**
* Created by jquievreux on 26/11/14.... |
composeApp/src/commonMain/kotlin/presentation/screens/home/pager/FriendListPagerProvider.kt | unknown_repo | kotlin | package io.github.vrcmteam.vrcm.presentation.screens.home.pager
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.PaddingValues
impor... |
composeApp/src/commonMain/kotlin/presentation/screens/home/pager/FriendListPagerProvider.kt | unknown_repo | kotlin | package io.github.vrcmteam.vrcm.presentation.screens.home.pager
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.PaddingValues
impor... |
mobile/src/main/java/io/github/tonnyl/latticify/data/UsersProfile.kt | unknown_repo | kotlin | package io.github.tonnyl.latticify.data
import android.annotation.SuppressLint
import android.arch.persistence.room.ColumnInfo
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
/**
* Created by lizhaotailang on 08/10/2017.
*/
@Parcelize
@SuppressL... |
app/src/main/java/com/merxury/blocker/ui/detail/component/ComponentAdapter.kt | unknown_repo | kotlin | package com.merxury.blocker.ui.detail.component
import android.content.Context
import android.view.ContextMenu
import android.view.LayoutInflater
import android.view.Menu
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.recyclerview.widget.DiffUtil
import andro... |
Manga_Library/app/src/main/java/roch/manga_library/model/NewReleasesMangaViewModel.kt | unknown_repo | kotlin | package roch.manga_library.model
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch
import retrofit2.HttpException
import roch.mang... |
Validator/src/main/java/com/barnea/validator/validations/PhoneValidator.kt | unknown_repo | kotlin | package com.barnea.validator.validations
import android.util.Patterns
class PhoneValidator(private val error: String = "Illegal phone number"): BaseValidation {
override fun validate(text: String): Boolean = text.matches(Regex("^[+]?[0-9]{10,13}\$"))
override fun errorMessage(): String = error
} |
common/common-base/src/main/java/com/bbgo/common_base/base/BaseFragment.kt | unknown_repo | kotlin | package com.bbgo.common_base.base
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.viewbinding.ViewBinding
/**
* author: wangyb
* date: 2021/5/20 3:01 下午
* description: todo
*/
abstract class... |
app/src/main/java/com/example/quizapp/ui/QuestionsActivity.kt | unknown_repo | kotlin | package com.example.quizapp.ui
import android.content.Intent
import android.graphics.Color
import android.graphics.Typeface
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.CountDownTimer
import android.text.Spannable
import android.text.SpannableString
import android.text.sty... |
Tutorial1-1Basics/src/main/java/com/smarttoolfactory/tutorial1_1basics/chapter3_layout/chat/widget/ChatFlexBoxLayout.kt | unknown_repo | kotlin | package com.smarttoolfactory.tutorial1_1basics.chapter3_layout.chat.widget
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import android... |
vector/src/main/java/im/vector/app/features/crypto/keysbackup/settings/KeysBackupManageActivity.kt | unknown_repo | kotlin | /*
* Copyright 2019 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 agreed ... |
app/src/main/java/com/simplekjl/stores/ui/screens/search/RestaurantSearch.kt | unknown_repo | kotlin | package com.simplekjl.stores.ui.screens.search
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.ru... |
sample/src/main/java/com/pengxr/sample/LifecycleObserverDemoActivity.kt | unknown_repo | kotlin | package com.pengxr.sample
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.pengxr.modular.eventbus.generated.events.EventDefineOfMainEventsKt
import com.pengxr.sample.utils.toast
class LifecycleObserverDemoActivity : AppCompatActivity() {
companion obje... |
app/src/main/java/com/example/jetpackdemo/ui/fragment/module/cinema/MovieVideoFragment.kt | unknown_repo | kotlin | package com.example.jetpackdemo.ui.fragment.module.cinema
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.lifecycle.MutableLiveData
import cn.jzvd.JzvdStd
import com.example.jetpackdemo.R
import com.example.jetpackdemo.base.BaseFragment
import com.example.jetpackdemo.data.model.bean.Vide... |
common/src/main/java/com/mrl/pixiv/common/router/DestinationsDeepLink.kt | unknown_repo | kotlin | package com.mrl.pixiv.common.router
import androidx.core.net.toUri
object DestinationsDeepLink {
val illustRegex = "http(s)?://(www\\.)?pixiv\\.(net|me)/artworks/(\\d+)".toRegex()
val userRegex = "http(s)?://(www\\.)?pixiv\\.(net|me)/users/(\\d+)".toRegex()
private val BaseUri = listOf(
"https://... |
kotlin_homework/src/main/java/chapter/android/aweme/ss/com/kotlin_homework/devapp/WordRoomDatabase.kt | unknown_repo | kotlin | package chapter.android.aweme.ss.com.kotlin_homework.devapp
import android.arch.persistence.db.SupportSQLiteDatabase
import android.arch.persistence.room.Database
import android.arch.persistence.room.Room
import android.arch.persistence.room.RoomDatabase
import android.content.Context
import kotlinx.coroutines.Corouti... |
packages/SystemUI/compose/features/src/com/android/systemui/common/ui/compose/ContentDescription.kt | unknown_repo | kotlin | /*
* Copyright (C) 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 app... |
app/src/main/java/dev/salih/ampligram/ui/theme/Color.kt | unknown_repo | kotlin | package dev.salih.ampligram.ui.theme
import androidx.compose.ui.graphics.Color
val md_theme_light_primary = Color(0xFF006A64)
val md_theme_light_onPrimary = Color(0xFFFFFFFF)
val md_theme_light_primaryContainer = Color(0xFF71F7EC)
val md_theme_light_secondary = Color(0xFF0661A4)
val md_theme_light_onSecondary = Color(... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/Dragon.kt | unknown_repo | kotlin | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... |
app/src/main/java/com/batodev/tetris/presentation/game/grid/style/types/SaturatedStyle.kt | unknown_repo | kotlin | package com.batodev.tetris.presentation.game.grid.style.types
import android.content.Context
import com.batodev.tetris.presentation.game.grid.block.SaturatedBlock
import com.batodev.tetris.presentation.game.grid.colors.VibrantColorChooser
import com.batodev.tetris.presentation.game.grid.style.StyleCreator
class Satur... |
homecontrol/app/src/main/java/com/centaq/homecontrol/SMSController.kt | unknown_repo | kotlin | package com.centaq.homecontrol
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.telephony.SmsManager
import android.widget.Toast
import androidx.core.app.ActivityCompat
public final class SMSController() {
companion object {
@JvmStatic
... |
smash-ranks-android/app/src/main/java/com/garpr/android/misc/RequestCodes.kt | unknown_repo | kotlin | package com.garpr.android.misc
import android.os.Parcel
import android.os.Parcelable
import com.garpr.android.extensions.createParcel
enum class RequestCodes : Parcelable {
CHANGE_IDENTITY,
CHANGE_REGION,
CHANGE_RINGTONE;
companion object {
@JvmField
val CREATOR = createParcel { val... |
cupertino/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/outlined/Xmark.kt | unknown_repo | kotlin | package io.github.alexzhirkevich.cupertino.icons.outlined
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.StrokeJo... |
app/src/main/java/com/benxinm/travelapp/ui/community/Community.kt | unknown_repo | kotlin | package com.benxinm.travelapp.ui.community
import android.util.Log
import android.widget.Toast
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.Icon
import androidx.compose.runtime.*
import andr... |
app/src/main/java/br/com/dfn/swipebutton/MainActivity.kt | unknown_repo | kotlin | package br.com.dfn.swipebutton
import android.animation.Animator
import android.content.res.Resources
import android.os.Bundle
import android.os.Handler
import android.support.v7.app.AppCompatActivity
import android.view.MotionEvent
import android.view.View.OnTouchListener
import android.widget.Toast
import kotlinx.an... |
app/src/main/java/io/gebes/composer/MainActivity.kt | unknown_repo | kotlin | package io.gebes.composer
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
impor... |
feature/favorites/src/main/kotlin/com/donghanx/favorites/FavoritesScreen.kt | unknown_repo | kotlin | package com.donghanx.favorites
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.donghanx.favorites.navigation.FAVORITES_R... |
app/src/main/java/com/tahadardev/exchangerate/feature/currency_exchange/data/repository/CurrencyRepositoryImpl.kt | unknown_repo | kotlin | package com.tahadardev.exchangerate.feature.currency_exchange.data.repository
import android.content.Context
import com.tahadardev.exchangerate.R
import com.tahadardev.exchangerate.common.DataStorePreferences
import com.tahadardev.exchangerate.common.Resource
import com.tahadardev.exchangerate.feature.currency_exchang... |
core/common/src/main/java/com/greenie/app/common/audioanalyze/RecordFileManager.kt | unknown_repo | kotlin | package com.greenie.app.common.audioanalyze
import android.content.Context
import android.os.Environment
import dagger.hilt.android.qualifiers.ApplicationContext
import java.io.DataOutputStream
import java.io.File
import java.io.FileOutputStream
import java.io.IOException
import java.nio.ByteBuffer
import java.nio.Byt... |
app/src/main/java/com/arcadone/cheers/ui/mainFragment/MainFragment.kt | unknown_repo | kotlin | package com.arcadone.cheers.ui.mainFragment
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 androidx.navigation.fragment.findNavController
import androidx.recyclerview... |
mvvmArch/src/main/java/com/qisan/mvvm/base/fragment/BaseVMFragment.kt | unknown_repo | kotlin | package com.qisan.mvvm.base.fragment
import android.text.TextUtils
import android.view.View
import android.widget.LinearLayout
import android.widget.RelativeLayout
import android.widget.TextView
import androidx.lifecycle.ViewModelProvider
import androidx.viewbinding.ViewBinding
import com.qisan.baselib.ext.saveAs
impo... |
app/src/main/java/com/example/androiddevchallenge/ui/screen/list/MainViewModel.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/sunnyweather/android/SunnyWeatherApplication.kt | unknown_repo | kotlin | package com.sunnyweather.android
import android.app.Application
import android.content.Context
class SunnyWeatherApplication:Application() {
companion object{
@SuppressWarnings("StaticFieldLeak")
lateinit var context: Context
const val TOKEN = "oSoUfTIHLPyAwhOo"
}
override fun onC... |
app/src/main/java/com/sunnyweather/android/SunnyWeatherApplication.kt | unknown_repo | kotlin | package com.sunnyweather.android
import android.app.Application
import android.content.Context
class SunnyWeatherApplication:Application() {
companion object{
@SuppressWarnings("StaticFieldLeak")
lateinit var context: Context
const val TOKEN = "oSoUfTIHLPyAwhOo"
}
override fun onC... |
app/src/main/java/xyz/ivaniskandar/wear/watchface_3100/MyWatchFaceDigital.kt | unknown_repo | kotlin | package xyz.ivaniskandar.wear.watchface_3100
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.graphics.*
import android.graphics.drawable.Icon
import android.os.Handler
import android.os.Message
import android.suppo... |
app/src/main/java/com/chandu/qr/ForgotPasswordActivity.kt | unknown_repo | kotlin | package com.gitclonepeace.letsrebug
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class ForgotPasswordActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_forgot_password... |
composeApp/src/desktopMain/kotlin/ru/rznnike/demokmp/app/ui/view/SelectableOutlinedButton.kt | unknown_repo | kotlin | package ru.rznnike.demokmp.app.ui.view
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.interaction.collectIsFocusedAsState
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundatio... |
feature/employee/src/main/java/com/niyaj/employee/details/EmployeeDetailsViewModel.kt | unknown_repo | kotlin | package com.niyaj.employee.details
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.snapshotFlow
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.niyaj.data.repository.E... |
feature_album/src/test/java/com/igorwojda/showcase/feature/album/presentation/albumlist/AlbumListViewModelTest.kt | unknown_repo | kotlin | package com.igorwojda.showcase.feature.album.presentation.albumlist
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.igorwojda.showcase.feature.album.domain.model.AlbumDomainModel
import com.igorwojda.showcase.feature.album.domain.usecase.GetAlbumListUseCase
import com.igorwojda.showcase.f... |
SurfaceDuoSamples/src/main/java/com/microsoft/device/display/samples/duosamples/DuoSamplesActivity.kt | unknown_repo | kotlin | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
*/
package com.microsoft.device.display.samples.duosamples
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
class DuoSamplesActivity : AppCompatActivity() {
override fun onCreate(savedIn... |
app/src/main/java/dog/snow/androidrecruittest/ui/DetailsFragment.kt | unknown_repo | kotlin | package dog.snow.androidrecruittest.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.navArgs
import dog.snow.androidrecruittest.R
im... |
compose/material3/material3-window-size-class/src/test/kotlin/androidx/compose/material3/windowsizeclass/WindowSizeClassTest.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... |
kotlin/advanced/APIDemo/app/src/main/java/com/google/android/gms/example/apidemo/ads/AdsNativeManager.kt | unknown_repo | kotlin | package com.google.android.gms.example.apidemo.ads
import android.app.Activity
import android.util.Log
import android.view.View
import android.view.ViewGroup
import android.view.ViewTreeObserver
import android.widget.*
import com.google.android.gms.ads.*
import com.google.android.gms.ads.admanager.AdManagerAdRequest
i... |
qchatkit/src/main/java/com/netease/yunxin/kit/qchatkit/repo/model/QChatChannelMember.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/
package com.netease.yunxin.kit.qchatkit.repo.model
import android.text.TextUtils
import java.io.Serializable
class QChatChannelMember(
val serverId: Lo... |
sample/src/main/java/jp/kuluna/calendarviewpager/sample/DetailActivity.kt | unknown_repo | kotlin | package jp.kuluna.calendarviewpager.sample
import android.content.Context
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.text.format.DateUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import android... |
fskin/src/main/java/com/tencent/fskin/SkinManager.kt | unknown_repo | kotlin | package com.tencent.fskin
import android.app.Activity
import android.app.Application
import android.content.pm.PackageManager
import android.content.res.AssetManager
import android.content.res.Resources
import android.os.Bundle
import android.util.Log
import android.view.View
import com.tencent.fskin.util.PreferencesU... |
instautils/src/main/java/com/sanjaydevtech/instautils/InstaDownloader.kt | unknown_repo | kotlin | package com.sanjaydevtech.instautils
import android.content.Context
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.util.Log
import android.widget.ImageView
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.lifecycleSco... |
app/src/main/java/com/avermedia/samples/cameraserve/MainActivityKt.kt | unknown_repo | kotlin | package com.avermedia.samples.cameraserve
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.ImageFormat
import android.graphics.SurfaceTexture
import android.hardware.camera2.CameraAccessException
import android.hardware.camera2.CameraCaptureSession
import android.hardware.c... |
beetle/src/main/java/com/karacca/beetle/ext/Int.kt | unknown_repo | kotlin | package com.karacca.beetle.ext
import android.content.res.Resources
/**
* @user: omerkaraca
* @date: 2019-07-15
*/
val Int.dp: Int
get() = (this / Resources.getSystem().displayMetrics.density).toInt()
val Int.px: Int
get() = (this * Resources.getSystem().displayMetrics.density).toInt() |
app/src/main/java/com/joketng/timeline/AllProgressTestActivity.kt | unknown_repo | kotlin | package com.joketng.timeline
import android.content.Context
import android.graphics.BitmapFactory
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory
import android.support.v7.app.AppCompatActivity
import android.view.LayoutI... |
module-kotlin/src/main/java/com/alibaba/android/arouter/demo/kotlin/KotlinTestActivity.kt | unknown_repo | kotlin | package com.alibaba.android.arouter.demo.kotlin
import android.app.Activity
import android.os.Bundle
import android.widget.TextView
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
//import kotl... |
app/src/main/java/com/example/details_design/branch/Branch_Activity.kt | unknown_repo | kotlin | package com.example.details_design.branch
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.RecyclerView
import android.widget.GridLayout.VERTICAL
import com.example.details_design.R
class Branch_Activity : AppC... |
subprojects/android-test/ui-testing-core/src/main/kotlin/com/avito/android/test/InteractionContext.kt | unknown_repo | kotlin | package com.avito.android.test
import android.view.View
import com.avito.android.test.action.ActionsDriver
import com.avito.android.test.checks.ChecksDriver
import org.hamcrest.Matcher
public interface InteractionContext : ActionsDriver, ChecksDriver {
public fun provideChildContext(matcher: Matcher<View>): Inte... |
app/src/main/java/com/brins/lightmusic/ui/activity/MusicPlayActivity.kt | unknown_repo | kotlin | package com.brins.lightmusic.ui.activity
import android.annotation.SuppressLint
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.Color
import android.graphics.PorterDuff
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.graphics... |
app/src/main/java/com/romandevyatov/bestfinance/utils/service/BaseService.kt | unknown_repo | kotlin | package com.romandevyatov.bestfinance.utils.service
import android.app.Service
import android.content.Intent
import android.content.res.Resources
import android.os.Build
import androidx.annotation.CallSuper
import com.romandevyatov.bestfinance.BudgetApplication
import com.romandevyatov.bestfinance.utils.localization.L... |
network/core/src/jvmMain/kotlin/co/yml/network/core/NetworkCallAndroidExtension.kt | unknown_repo | kotlin | package co.yml.network.core
import co.yml.network.core.response.DataResponse
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
/**
* Execute the network request in async manner i... |
app/src/main/java/co/tiagoaguiar/course/instagram/main/view/MainActivity.kt | unknown_repo | kotlin | package co.tiagoaguiar.course.instagram.main.view
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.Environment
import android.provider.MediaStore
import android.util.Log
import android.view.MenuItem
import android.view.WindowInsetsController
import... |
app/src/main/java/com/aliernfrog/lactool/ui/dialog/SaveWarningDialog.kt | unknown_repo | kotlin | package com.aliernfrog.lactool.ui.dialog
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.Warning
import androidx.compose.material3.AlertDialog
import androidx.compose.mat... |
bitcoincore/src/main/kotlin/io/horizontalsystems/bitcoincore/serializers/BlockHeaderParser.kt | unknown_repo | kotlin | package io.horizontalsystems.bitcoincore.serializers
import android.util.Log
import io.horizontalsystems.bitcoincore.core.IHasher
import io.horizontalsystems.bitcoincore.extensions.toHexString
import io.horizontalsystems.bitcoincore.extensions.toReversedHex
import io.horizontalsystems.bitcoincore.io.BitcoinInputMarkab... |
app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceCompactGrid.kt | unknown_repo | kotlin | package eu.kanade.presentation.browse.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.GridItemSpan
import androidx.compose.foundation.lazy.grid.La... |
app/src/main/java/com/realestate/model/UserModel.kt | unknown_repo | kotlin | package com.realestate.model
import android.os.Parcel
import android.os.Parcelable
import kotlinx.android.parcel.Parceler
import kotlinx.android.parcel.Parcelize
/**
* Created by Chandan on 27/12/20
* Company: Endue Technologies Pvt. LTD
* Email: chandanjana@enduetechnologies.com
*/
@Parcelize
data class UserMode... |
fashion-compose/src/main/kotlin/com/aiuta/fashionsdk/compose/tokens/icon/AiutaDrawableIcons.kt | unknown_repo | kotlin | package com.aiuta.fashionsdk.compose.tokens.icon
import android.graphics.drawable.Drawable
/**
* Public class for providing drawable icons in the SDK.
*
* This class allows the host application to override the default drawable icons used by the SDK,
* enabling a more personalized user experience.
*
* The icons ... |
app/src/main/java/com/example/androiddevchallenge/ui/screen/overview/child_composables/PetsList.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/dev/elshaarawy/moviesii/MainActivity.kt | unknown_repo | kotlin | package dev.elshaarawy.moviesii
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.bottomnavigation.BottomNavigationView
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
private va... |
data/settings/src/androidTest/java/com/google/jetpackcamera/settings/LocalSettingsRepositoryInstrumentedTest.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... |
demos/chat-demo-mpp/common/src/commonMain/kotlin/io/github/jan/supabase/common/ui/components/AlertDialog.kt | unknown_repo | kotlin | package io.github.jan.supabase.common.ui.components
import androidx.compose.runtime.Composable
@Composable
expect fun AlertDialog(text: String, close: () -> Unit) |
feature-assets/src/main/java/io/novafoundation/nova/feature_assets/presentation/transaction/filter/TransactionHistoryFilterViewModel.kt | unknown_repo | kotlin | package io.novafoundation.nova.feature_assets.presentation.transaction.filter
import androidx.lifecycle.viewModelScope
import io.novafoundation.nova.common.base.BaseViewModel
import io.novafoundation.nova.common.utils.checkEnabled
import io.novafoundation.nova.common.utils.filterToSet
import io.novafoundation.nova.com... |
app/src/main/java/motiapps/melodify/core/data/source/Converters.kt | unknown_repo | kotlin | package motiapps.melodify.core.data.source
import androidx.room.TypeConverter
import com.google.firebase.Timestamp
import java.util.Date
class Converters {
@TypeConverter
fun fromTimestamp(value: Long?): Timestamp? {
return value?.let { Timestamp(Date(it)) }
}
@TypeConverter
fun dateToTim... |
FluentUI.Demo/src/androidTest/java/com/microsoft/fluentuidemo/demos/V2AvatarGroupActivityUITest.kt | unknown_repo | kotlin | package com.microsoft.fluentuidemo.demos
import android.content.Intent
import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.test.core.app.ActivityScenario
import androidx.test.espresso.intent.Intents
import androidx.test.platform.app.InstrumentationRegistry
import ... |
libraries/core/src/test/kotlin/com/bumble/appyx/core/lifecycle/ChildLifecycleTest.kt | unknown_repo | kotlin | package com.bumble.appyx.core.lifecycle
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
impor... |
azure-communication-ui/demo-app/src/calling/java/com/azure/android/communication/ui/callingcompositedemoapp/CallLauncherViewModel.kt | unknown_repo | kotlin | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.android.communication.ui.callingcompositedemoapp
import android.content.Context
import androidx.lifecycle.ViewModel
import com.azure.android.communication.common.CommunicationTokenCredential
import com.az... |
app/src/main/kotlin/uk/co/ribot/androidboilerplate/data/local/DbOpenHelper.kt | unknown_repo | kotlin | package br.com.maiconhellmann.pomodoro.data.local
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import timber.log.Timber
import java.sql.SQLException
class DbOpenHelper constructor(val context: Context):
SQLiteOpenHelper(context, D... |
mbmobilesdk/src/main/java/com/daimler/mbmobilesdk/utils/MBMobileSDKFileProvider.kt | unknown_repo | kotlin | package com.daimler.mbmobilesdk.utils
import androidx.core.content.FileProvider
class MBMobileSDKFileProvider : FileProvider() |
app/src/main/kotlin/com/example/myhealth/document/DocumentActivity.kt | unknown_repo | kotlin | package com.example.myhealth.document
import android.annotation.SuppressLint
import android.app.Activity
import android.app.AlertDialog
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.provider.MediaStore
import android.provider.OpenableColumns
import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.