file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/id/co/woiapp/ui/detailbook/DetailBookViewModel.kt | unknown_repo | kotlin | package id.co.woiapp.ui.detailbook
import android.util.Log
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import id.co.woiapp.data.entities.Book
import id.co.woiapp.... |
sample/fourthaction/src/main/java/com/flownav/fourthaction/FourthFragment.kt | unknown_repo | kotlin | package com.flownav.fourthaction
import android.os.Bundle
import android.view.View
import android.widget.Button
import androidx.fragment.app.Fragment
import com.flownav.annotation.EntryFlowNav
import com.flownav.navigation.NavigationFragmentRouter
import com.flownav.navigation.NavigationFragmentRoutes
@EntryFlowNav(N... |
app/src/main/java/isel/pdm/ee/battleship/users/listAuthors/ui/AuthorsListActivity.kt | unknown_repo | kotlin | package isel.pdm.ee.battleship.users.listAuthors.ui
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import isel.pdm.ee.battleship.DependenciesContainer
import isel.pdm.ee.battleship.main.ui.MainActivity.Companion.AUTHOR... |
libhome/src/main/java/com/earth/libhome/group/GroupAssociatedActivity.kt | unknown_repo | kotlin | package com.earth.libhome.group
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.GridLayoutManager
import com.alibaba.android.arouter.facade.annotation.Route
import com.earth.libbase.base.BaseActivity
import c... |
security/lib-security/src/main/java/ru/surfstudio/android/security/session/SessionManager.kt | unknown_repo | kotlin | /*
Copyright (c) 2018-present, SurfStudio LLC, <NAME>, <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 ... |
app/src/main/java/org/simple/clinic/home/patients/links/PatientsTabLinkView.kt | unknown_repo | kotlin | package org.simple.clinic.home.patients.links
import android.content.Context
import android.os.Parcelable
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.FrameLayout
import com.jakewharton.rxbinding3.view.clicks
import io.reactivex.Observable
import io.reactivex.rxkotlin.cast
... |
mod/src/androidTest/java/org/lineageos/mod/health/e2e/heartblood/HeartRateRecordTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2020 The LineageOS 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 applicable law... |
app/src/main/java/com/itachi1706/droideggs/CurrentEgg.kt | unknown_repo | kotlin | /*
* Copyright (C) 2015 <NAME> (itachi1706)
*
* 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 ... |
mobile/app/src/main/java/org/una/mobile/viewmodel/SessionViewModel.kt | unknown_repo | kotlin | package org.una.mobile.viewmodel
import androidx.compose.material.ScaffoldState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelS... |
app/src/main/java/dk/youtec/drchannels/ui/adapter/ChannelsAdapter.kt | unknown_repo | kotlin | package dk.youtec.drchannels.ui.adapter
import android.content.Context
import android.support.annotation.LayoutRes
import android.support.annotation.MainThread
import android.support.v4.content.ContextCompat
import android.support.v7.util.DiffUtil
import android.support.v7.util.ListUpdateCallback
import android.suppor... |
android/src/main/java/com/reactnativedraggablefab/CoordinatorLayoutView.kt | unknown_repo | kotlin | package com.reactnativedraggablefab
import android.content.Context
import android.view.ViewGroup
import androidx.coordinatorlayout.widget.CoordinatorLayout
class CoordinatorLayoutView(context: Context?) : CoordinatorLayout(context!!) {
private val measureAndLayout = Runnable {
measure(
MeasureSpec.makeMe... |
java/com/example/qbite/fragments/UpdateProfileFragment.kt | unknown_repo | kotlin | package com.example.qbite.fragments
import android.app.Activity
import android.content.Intent
import android.graphics.Bitmap
import android.net.Uri
import android.os.Bundle
import android.provider.MediaStore
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGro... |
app/src/main/java/net/mikaelzero/app/ImageAdapter.kt | unknown_repo | kotlin | package net.mikaelzero.app
import android.widget.FrameLayout
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import net.mikaelzero.mojito.tools.ScreenUtils
/**
* @Author: MikaelZero
* @CreateDate: 2020/6/19 8:43 PM
* @Description:
*/... |
app/src/main/java/com/example/drtech/fragment/Chat.kt | unknown_repo | kotlin | package com.example.drtech.fragment
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.recyclervie... |
sample/src/commonMain/kotlin/dev/zt64/compose/pdf/sample/Application.kt | unknown_repo | kotlin | package dev.zt64.compose.pdf.sample
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.icons.Icons
import androidx.compose.materi... |
src/test/kotlin/io/openfuture/api/controller/api/EthereumShareHolderApiControllerTests.kt | unknown_repo | kotlin | package io.openfuture.api.controller.api
import io.openfuture.api.config.ControllerTests
import io.openfuture.api.domain.holder.AddEthereumShareHolderRequest
import io.openfuture.api.domain.holder.UpdateEthereumShareHolderRequest
import io.openfuture.api.entity.auth.OpenKey
import io.openfuture.api.entity.auth.Role
im... |
app/src/main/java/com/puc/easyagro/ui/perfil/login_cadastro/cadastro/CadastroFragment.kt | unknown_repo | kotlin | package com.puc.easyagro.ui.perfil.login_cadastro.cadastro
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import ... |
wear/src/main/java/io/homeassistant/companion/android/util/CommonFunctions.kt | unknown_repo | kotlin | package io.homeassistant.companion.android.util
import android.content.Context
import android.widget.Toast
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.hapticfeedback.HapticFeedback
import androidx.compose.ui.hapticfeedback.HapticFeedbackType
import an... |
baseLib/src/main/java/com/dyn/base/ui/databinding/DataBindingConfig.kt | unknown_repo | kotlin | package com.dyn.base.ui.databinding
import android.util.SparseArray
import androidx.annotation.LayoutRes
import androidx.lifecycle.ViewModel
data class DataBindingConfig(val vmVariableId: Int, val stateViewModel: ViewModel) {
val bindingParams by lazy {
SparseArray<Any?>()
}
fun addBindingParam(... |
src/test/java/com/squareup/kotlinpoet/FunSpecTest.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 agreed to... |
ui/src/main/java/ru/tinkoff/acquiring/sdk/ui/fragments/DynamicQrFragment.kt | unknown_repo | kotlin | /*
* Copyright © 2020 Tinkoff Bank
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
app/src/main/java/com/umairadil/smartdownloaderapp/adapters/PinsAdapter.kt | unknown_repo | kotlin | package com.umairadil.smartdownloaderapp.adapters
import android.graphics.Bitmap
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.blackbox.apps.smartdownloader.SmartLoade... |
course/app/src/main/java/com/txwstudio/app/timetable/widget/TimetableWidgetProvider.kt | unknown_repo | kotlin | package com.txwstudio.app.timetable.widget
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.widget.RemoteViews
import androidx.navigation.NavDeepLi... |
app/src/main/java/com/yz/books/db/DaoManager.kt | unknown_repo | kotlin | package com.yz.books.db
import android.content.Context
import com.yz.books.BuildConfig
import greendao.DaoMaster
import greendao.DaoSession
import org.greenrobot.greendao.query.QueryBuilder
/**
* @author lilin
* @time on 2020-02-22 16:01
*/
object DaoManager {
private var DB_NAME = "yzbook.db"
private la... |
tv_model/src/main/java/com/bytebyte6/data/entity/UserPlaylistCrossRef.kt | unknown_repo | kotlin | package com.bytebyte6.data.entity
import androidx.annotation.Keep
import androidx.room.*
@Entity(primaryKeys = ["userId", "playlistId"],indices = [Index("playlistId")])
@Keep
data class UserPlaylistCrossRef(
val userId: Long,
val playlistId: Long
)
|
app/src/main/java/com/gones/foodinventorykotlin/data/model/ProductResponse.kt | unknown_repo | kotlin | package com.gones.foodinventorykotlin.data.model
import androidx.annotation.Keep
import com.gones.foodinventorykotlin.domain.entity.Product
import com.squareup.moshi.Json
@Keep
data class ProductResponse(
@field:Json(name = "id")
var id: Int,
val categories: String,
@field:Json(name = "code")
val ... |
app/src/main/java/live/mehiz/mpvkt/ui/player/controls/components/sheets/PlaybackSpeedSheet.kt | unknown_repo | kotlin | package live.mehiz.mpvkt.ui.player.controls.components.sheets
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
im... |
app/src/main/java/com/whizsid/subtitleadjust/database/SubtitleModel.kt | unknown_repo | kotlin | package com.whizsid.subtitleadjust.database
import android.content.ContentValues
import android.database.Cursor
import android.database.DatabaseUtils
import android.database.sqlite.SQLiteDatabase
import com.whizsid.subtitleadjust.lib.Subtitle
import com.whizsid.subtitleadjust.lib.Time
object SubtitleModel : Model<Sub... |
app/src/main/java/org/ddosolitary/greendragonfly/MyApplication.kt | unknown_repo | kotlin | package org.ddosolitary.greendragonfly
import android.app.Application
import com.baidu.mapapi.SDKInitializer
import com.bugsnag.android.Bugsnag
@Suppress("UNUSED")
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
SDKInitializer.initialize(this)
Bugsnag.start(this)
}
}
|
app/src/main/java/com/example/viewmodelcontracts/RegistrationViewModel.kt | unknown_repo | kotlin | package com.example.viewmodelcontracts
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.example.viewmodelcontracts.email.EmailEntryViewModel
import com.example.viewmodelcontracts.interest.InterestSubmis... |
app/src/main/java/com/habib/cuaca/cuaca_terkini/DetailTodayActivity.kt | unknown_repo | kotlin | package com.habib.cuaca.cuaca_terkini
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.MenuItem
import android.view.View
import android.widget.ImageView
import android.widget.ProgressBar
import android.widget.Toast
import com.androidnetworking.AndroidNetworking
import com.an... |
android/src/main/kotlin/com/gstory/flutter_tencentad/rewardvideoad/RewardVideoAd.kt | unknown_repo | kotlin | package com.gstory.flutter_tencentad.rewardvideoad
import android.annotation.SuppressLint
import android.content.Context
import com.gstory.flutter_tencentad.DownloadApkConfirmDialog
import com.gstory.flutter_tencentad.DownloadConfirmHelper
import com.gstory.flutter_tencentad.LogUtil
import com.gstory.flutter_tencentad... |
app/src/main/java/com/example/dotaweather/ui/view/CircleView.kt | unknown_repo | kotlin | package com.example.dotaweather.ui.view
import android.animation.ObjectAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.Path
import android.util.AttributeSet
import android.view.View
import androidx.interpolator.v... |
dslist/src/main/java/thevoid/whichbinds/dslist/DSLdrag.kt | unknown_repo | kotlin | package thevoid.whichbinds.dslist
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.RecyclerView
interface DragTo {
var recyclerView: RecyclerView
var callBack: (viewHolder: RecyclerView.ViewHolder, target: RecyclerVie... |
app/src/main/java/com/aredruss/mangatana/view/util/views/CollapseTextView.kt | unknown_repo | kotlin | package com.aredruss.mangatana.view.util.views
import android.content.Context
import android.graphics.drawable.Drawable
import android.graphics.text.LineBreaker.JUSTIFICATION_MODE_INTER_WORD
import android.os.Build
import android.util.AttributeSet
import android.util.TypedValue
import android.view.LayoutInflater
impor... |
library/src/main/java/ando/file/core/FileType.kt | unknown_repo | kotlin | /**
* Copyright (C) javakam, FileOperator 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... |
presentation/src/main/java/com/sms/presentation/main/ui/mypage/MyPageScreen.kt | unknown_repo | kotlin | package com.sms.presentation.main.ui.mypage
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.ModalBottomSheetLayout
import androidx.compose.material.ModalBottomSheetValue
import androidx.compose.material.rememberModalB... |
app/src/main/java/com/almazov/diacompanion/data/RecordWeight.kt | unknown_repo | kotlin | package com.almazov.diacompanion.data
import androidx.room.Embedded
import androidx.room.Relation
data class RecordWeight (
@Embedded val recordEntity: RecordEntity,
@Relation(
parentColumn = "id",
entityColumn = "id"
)
val weightEntity: WeightEntity
) |
components-core/src/main/java/com/adyen/checkout/components/model/paymentmethods/Item.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019 <NAME>.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by caiof on 27/5/2019.
*/
package com.adyen.checkout.components.model.paymentmethods
import android.os.Parcel
import com.adyen.checkout.core.exception.ModelSerializati... |
app/src/main/java/com/blaubalu/detoxrank/ui/theory/screens/chapter_tolerance/CHToleranceSummary.kt | unknown_repo | kotlin | package com.blaubalu.detoxrank.ui.theory.screens.chapter_tolerance
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
imp... |
app/src/main/java/com/hd/screenrecordtool/view/ConfigFragment.kt | unknown_repo | kotlin | package com.hd.screenrecordtool.view
import android.content.Intent
import android.os.Bundle
import android.preference.ListPreference
import android.preference.Preference
import android.preference.PreferenceFragment
import android.text.TextUtils
import android.widget.Toast
import com.hd.screencapture.help.Utils
import ... |
app/src/main/java/com/spundev/hourlychime/extensions/AlarmManagerExtensions.kt | unknown_repo | kotlin | package com.spundev.hourlychime.extensions
import android.app.AlarmManager
import android.app.PendingIntent
import android.os.Build
fun AlarmManager.setAlarm(type: Int, triggerAtMillis: Long, operation: PendingIntent) {
when {
Build.VERSION.SDK_INT >= Build.VERSION_CODES.M -> setExactAndAllowWhileIdle(typ... |
module/AppModule.kt | unknown_repo | kotlin | package com.ozpehlivantugrul.widstation.module
import android.content.Context
import android.content.SharedPreferences
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import javax.inject.S... |
app/src/main/java/org/openlake/sampoorna/data/sources/entities/User.kt | unknown_repo | kotlin | package org.openlake.sampoorna.data.sources.entities
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class User(
val uid: String = "",
var name: String = "",
var username: String = "",
var email: String = "",
var photoUrl: String? = null,
var about: String = "",... |
app/src/main/java/cchcc/learn/amu/e05/E05LogListAdapter.kt | unknown_repo | kotlin | package cchcc.learn.amu.e05
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import cchcc.learn.amu.R
import kotlinx.android.synthetic.m... |
app/src/main/java/com/dscoding/takenoteapp/presentation/add_edit_note/AddEditNoteViewModel.kt | unknown_repo | kotlin | package com.dscoding.takenoteapp.presentation.add_edit_note
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.graphics.toArgb
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.... |
library/src/main/java/app/moviebase/androidx/widget/appbar/AppBarLayoutExtensions.kt | unknown_repo | kotlin | package app.moviebase.androidx.widget.appbar
import com.google.android.material.appbar.AppBarLayout
inline fun AppBarLayout.doOnStateChanged(threshold: Int, crossinline onStateChanged: (AppBarStateChangeListener.State) -> Unit) {
val listener = object : AppBarStateChangeListener(threshold) {
override fun ... |
app/src/main/java/com/example/amphibians/ui/AmphibianListFragment.kt | unknown_repo | kotlin | package com.example.amphibians.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController
import com.example.amphibians.... |
networklogger/src/main/java/dev/kgbier/util/networklogger/view/LoadableListRootView.kt | unknown_repo | kotlin | package dev.kgbier.util.networklogger.view
import android.content.Context
import android.view.Gravity
import android.widget.FrameLayout
import android.widget.ProgressBar
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
internal class LoadableListRootView(context... |
app/src/main/java/id/nexus/farmap/ui/composable/armenu/AddNode.kt | unknown_repo | kotlin | package id.nexus.farmap.ui.composable.armenu
import androidx.compose.foundation.layout.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Mod... |
app/src/main/java/br/com/android/victorcs/mvvmarvel/data/source/local/dao/GenericListDao.kt | unknown_repo | kotlin | package br.com.android.victorcs.mvvmarvel.data.source.local.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import br.com.android.victorcs.mvvmarvel.data.model.GenericList
@Dao
interface GenericListDao {
@Insert(onConflict = OnConflictS... |
app/src/main/java/com/example/newsapp/architecture/NewsRepository.kt | unknown_repo | kotlin | package com.example.newsapp.architecture
import android.content.Context
import androidx.annotation.Keep
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.example.newsapp.NewsModel
import com.example.newsapp.retrofit.NewsDataFromJson
import com.example.newsapp.utils.Constants
impor... |
sample/src/main/java/com/mr0xf00/easycrop/presentation/ImagesViewModel.kt | unknown_repo | kotlin | package com.mr0xf00.easycrop.presentation
import android.app.Application
import android.net.Uri
import androidx.compose.ui.graphics.ImageBitmap
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope
import com.mr0xf00.easycrop.CropError
import com.mr0xf00.easycrop.CropResult
import com.mr0... |
app/src/main/java/com/comunidadedevspace/taskbeats/presentation/NewsListFragment.kt | unknown_repo | kotlin | package com.comunidadedevspace.taskbeats.presentation
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.comunidadedevspace.taskbeats.R
import com.comunidade... |
app/src/main/java/tech/visvesmruti/vsmanage/activities/StudentRegActivity.kt | unknown_repo | kotlin | package tech.visvesmruti.vsmanage.activities
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.view.View
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.Button
import android.widget.EditText
import android.widget.RadioButton
import androi... |
feature-governance-impl/src/main/java/io/novafoundation/nova/feature_governance_impl/presentation/referenda/list/ReferendaListAdapter.kt | unknown_repo | kotlin | package io.novafoundation.nova.feature_governance_impl.presentation.referenda.list
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import coil.ImageLoader
import io.novafoundation.nova.common.list.BaseGroupedDiffCallback
import io.novafoundation.no... |
apps/mobile-app/src/main/kotlin/dev/marlonlom/apps/mocca/feats/settings/SettingsRoute.kt | unknown_repo | kotlin | /*
* Copyright 2024 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.apps.mocca.feats.settings
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.paddin... |
app/src/main/java/no/nordicsemi/android/ei/ui/DataAcquisition.kt | unknown_repo | kotlin | package no.nordicsemi.android.ei.ui
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.mat... |
app/src/main/java/com/example/mkodo_app/presentation/drawsList/components/BonusCircularBox.kt | unknown_repo | kotlin | package com.example.mkodo_app.presentation.drawsList.components
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.fo... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/DocumentPercent.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.DocumentPercent: ImageVector
get() {
if (_documentPercent !... |
shared/android/src/main/kotlin/team/applemango/runnerbe/shared/android/extension/activity.kt | unknown_repo | kotlin | /*
* RunnerBe © 2022 Team AppleMango. all rights reserved.
* RunnerBe license is under the MIT.
*
* [activity.kt] created by <NAME> on 22. 2. 9. 오후 5:20
*
* Please see: https://github.com/applemango-runnerbe/RunnerBe-Android/blob/main/LICENSE.
*/
package team.applemango.runnerbe.shared.android.extension
import... |
sensors/src/main/java/com/talentica/androidkotlin/sensors/MainActivity.kt | unknown_repo | kotlin | package com.talentica.androidkotlin.sensors
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.ImageView
class MainActivity : AppCompatActivity() {
private var compass: Compass? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(save... |
app/src/main/java/com/example/caiyunweather/logic/dao/PlaceDao.kt | unknown_repo | kotlin | package com.example.caiyunweather.logic.dao
import android.content.Context
import androidx.core.content.edit
import com.example.caiyunweather.CaiYunWeatherApplication
import com.example.caiyunweather.logic.model.Place
import com.google.gson.Gson
object PlaceDao {
fun savePlace(place: Place) {
sharePrefere... |
android/src/main/java/com/jimmydaddy/imagemarker/ImageProcess.kt | unknown_repo | kotlin | package com.jimmydaddy.imagemarker
import android.graphics.Bitmap
import android.graphics.Matrix
import android.util.Log
import com.jimmydaddy.imagemarker.base.Constants.IMAGE_MARKER_TAG
class ImageProcess {
companion object {
fun rotate(bitmap: Bitmap, rotation: Number): Bitmap {
val rotationMatrix = Mat... |
app/src/main/java/com/aregyan/compose/ui/ComposeApp.kt | unknown_repo | kotlin | package com.mvince.compose.ui
import androidx.compose.runtime.Composable
import androidx.lifecycle.Lifecycle
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import androidx.navigation.na... |
src/main/kotlin/passwordStore/Main.kt | unknown_repo | kotlin | package passwordStore
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.AccountBox
import andro... |
app/src/main/java/org/lotka/bp/presentation/ui/survey/Survey.kt | unknown_repo | kotlin | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/kieronquinn/app/darq/utils/PreferenceUtils.kt | unknown_repo | kotlin | package com.kieronquinn.app.darq.utils
import android.content.Context
import android.content.SharedPreferences
import android.content.pm.PackageManager
import com.kieronquinn.app.darq.BuildConfig
import com.kieronquinn.app.darq.MainActivity
import com.kieronquinn.app.darq.holders.App
import org.json.JSONArray
class P... |
app/src/main/java/com/santansarah/oauthxml/di/AppModule.kt | unknown_repo | kotlin | package com.santansarah.oauthxml.di
import android.util.Log
import com.santansarah.oauthxml.data.remote.OAuthApi
import com.santansarah.oauthxml.data.remote.UserApi
import com.santansarah.oauthxml.ui.OAuthManager
import com.santansarah.oauthxml.ui.main.MainViewModel
import io.ktor.client.HttpClient
import io.ktor.clie... |
app/src/main/java/se/barsk/park/mainui/SpecifyServerDialog.kt | unknown_repo | kotlin | package se.barsk.park.mainui
import android.annotation.SuppressLint
import android.app.Dialog
import android.content.Context
import android.content.DialogInterface
import android.os.Bundle
import androidx.fragment.app.DialogFragment
import androidx.appcompat.app.AlertDialog
import android.text.Editable
import android.... |
samples/counter/apps/src/jsMain/kotlin/com/slack/circuit/sample/counter/browser/main.kt | unknown_repo | kotlin | // Copyright (C) 2023 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
@file:Suppress("DEPRECATION")
package com.slack.circuit.sample.counter.browser
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.input.InputMode
im... |
app/src/main/java/com/prmto/rickandmortycompose/presentation/screen/character/CharacterViewModel.kt | unknown_repo | kotlin | package com.prmto.rickandmortycompose.presentation.screen.character
import android.util.Log
import androidx.annotation.DrawableRes
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.prmto.rickandmo... |
calendarheatmaplib/src/main/java/com/eudycontreras/calendarheatmaplibrary/framework/core/elements/MonthLabelArea.kt | unknown_repo | kotlin | package com.eudycontreras.calendarheatmaplibrary.framework.core.elements
import android.graphics.*
import android.util.SparseArray
import androidx.core.util.containsKey
import com.eudycontreras.calendarheatmaplibrary.common.RenderTarget
import com.eudycontreras.calendarheatmaplibrary.framework.core.DrawableShape
impor... |
glib-core/src/main/java/com/glib/core/ui/json/views/Icon.kt | unknown_repo | kotlin | package com.glib.core.ui.json.views
import android.view.View
import com.glib.core.json.GJson
import com.glib.core.screen.GActivity
import com.glib.core.screen.GFragment
import com.glib.core.ui.icon.GIcon
import com.glib.core.ui.json.JsonUi
import com.glib.core.ui.json.JsonView
import com.glib.core.ui.view.GImageView
i... |
app/src/main/java/com/zaraos/curriculum/base/extensions/ViewExtension.kt | unknown_repo | kotlin | package com.zaraos.curriculum.base.extensions
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.constraintlayout.widget.ConstraintSet
fun ViewGroup.inflate(layoutId: Int, attachToRoot: Boolean = false): Vi... |
feature/crash_screen/api/src/main/java/dev/liinahamari/feature/crash_screen/api/CrashScreenDependencies.kt | unknown_repo | kotlin | /*
* Copyright 2020-2021 liinahamari
*
* 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, ... |
libraries/androidutils/src/main/kotlin/io/element/android/libraries/androidutils/browser/ChromeCustomTab.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... |
app/src/main/java/com/hypersoft/baseproject/helpers/adapters/binding/TextBindingAdapter.kt | unknown_repo | kotlin | package com.hypersoft.baseproject.helpers.adapters.binding
import android.graphics.Paint
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.databinding.BindingAdapter
import com.hypersoft.baseproject.R
/**
* @param: dTextColor -> Set attribute color for this
* Syntax:
* ... |
app/src/main/java/com/moegirlviewer/screen/randomPages/component/actionButton.kt | unknown_repo | kotlin | package com.moegirlviewer.screen.randomPages.component
import androidx.appcompat.content.res.AppCompatResources
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compo... |
app/src/main/java/com/example/mindsmom/MainActivity.kt | unknown_repo | kotlin | package com.example.mindsmom
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_login)
}
} |
app/src/main/java/com/example/anton/sb/service/Api.kt | unknown_repo | kotlin | package com.example.anton.sb.service
import android.app.Activity
import android.content.Context
import android.widget.ProgressBar
import com.example.anton.sb.extensions.changeUser
import com.example.anton.sb.extensions.handleError
import com.example.anton.sb.extensions.removeUserData
import com.example.anton.sb.extens... |
app/src/main/java/com/univalicc/android/crud/datasource/local/AppDbHelper.kt | unknown_repo | kotlin | package com.univalicc.android.crud.datasource.local
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
class AppDbHelper
private constructor(context: Context) : SQLiteOpenHelper(context, DATABASE_NAME, null, DATABASE_VERSION) {
override fu... |
app/src/main/java/br/com/rafaseron/blankapp/ui/BlankAppApplication.kt | unknown_repo | kotlin | package br.com.rafaseron.blankapp.ui
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class BlankAppApplication: Application() {
} |
app/src/main/java/com/kovcom/mowid/ui/feature/widget/composable/QuotesWidgetContent.kt | unknown_repo | kotlin | package com.kovcom.mowid.ui.feature.widget.composable
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.datastore.preferences.core.Preferences
impo... |
app/src/main/java/com/example/pedroscott/features/main/MainActivity.kt | unknown_repo | kotlin | package com.example.pedroscott.features.main
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compo... |
app/src/main/java/com/serenegiant/widget/CameraSurfaceView.kt | unknown_repo | kotlin | package com.serenegiant.widget
import android.content.Context
import android.hardware.Camera
import android.util.AttributeSet
import android.util.Log
import android.view.SurfaceHolder
import android.view.SurfaceView
import com.serenegiant.camera.CameraConst
import com.serenegiant.camera.CameraUtils
import java.io.IOEx... |
app/src/main/java/io/innofang/koolweather/db/ForecastDbHelper.kt | unknown_repo | kotlin | package io.innofang.koolweather.db
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import io.innofang.koolweather.App
import io.innofang.koolweather.utils.SQL
/**
* Author: <NAME>
* Time: 2017/6/27 09:51
* Description:
*/
class Forecast... |
core/repository-kmp/src/androidMain/kotlin/org/michaelbel/movies/repository/impl/MovieRepositoryImpl.kt | unknown_repo | kotlin | package org.michaelbel.movies.repository.impl
import androidx.paging.PagingSource
import kotlinx.coroutines.flow.Flow
import org.michaelbel.movies.common.exceptions.MovieDetailsException
import org.michaelbel.movies.common.exceptions.MoviesUpcomingException
import org.michaelbel.movies.common.list.MovieList
import org... |
src/commonMain/kotlin/com/github/shaart/pstorage/multiplatform/ui/component/table/TextTableCell.kt | unknown_repo | kotlin | package com.github.shaart.pstorage.multiplatform.ui.component.table
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Check
import androidx.compose.material.icons.filled.Clear
import androidx.compose... |
enro-test/src/main/java/dev/enro/test/extensions/FragmentScenarioExtensions.kt | unknown_repo | kotlin | package dev.enro.test.extensions
import androidx.fragment.app.Fragment
import androidx.fragment.app.testing.FragmentScenario
import dev.enro.core.NavigationHandle
import dev.enro.core.NavigationKey
import dev.enro.core.getNavigationHandle
import dev.enro.test.TestNavigationHandle
fun <T : NavigationKey> FragmentScena... |
app/src/cliente/java/com/example/tulook/adapters/ServicioListAdapter.kt | unknown_repo | kotlin | package com.example.tulook.adapters
import android.view.LayoutInflater
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.selection.ItemDetailsLookup
import androidx.recyclerview.selection.ItemKeyProvider
import androidx.recyclerview.selection.SelectionT... |
bezier/src/main/java/io/channel/bezier/icon/Power.kt | unknown_repo | kotlin | @file:Suppress("ObjectPropertyName", "UnusedReceiverParameter")
// Auto-generated by script/generate_compose_bezier_icon.py
package io.channel.bezier.icon
import androidx.compose.foundation.layout.size
import androidx.compose.material.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifie... |
lib/src/main/java/com/kirkbushman/araw/models/Awarding.kt | unknown_repo | kotlin | package com.kirkbushman.araw.models
import android.os.Parcelable
import com.kirkbushman.araw.models.base.Thing
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import kotlinx.android.parcel.Parcelize
@JsonClass(generateAdapter = true)
@Parcelize
data class Awarding(
@Json(name = "id")
overr... |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/actions/types/UnknownActionType.kt | unknown_repo | kotlin | package ch.rmy.android.http_shortcuts.actions.types
import android.content.Context
import ch.rmy.android.http_shortcuts.actions.ActionDTO
class UnknownActionType(context: Context) : BaseActionType(context) {
override val type = ""
override fun fromDTO(actionDTO: ActionDTO) = UnknownAction(this, actionDTO.da... |
app/src/main/java/com/example/tbilisi_parking_final_exm/presentation/screen/parking/add_vehicle/AddVehicleViewModel.kt | unknown_repo | kotlin | package com.example.tbilisi_parking_final_exm.presentation.screen.parking.add_vehicle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.tbilisi_parking_final_exm.data.common.Resource
import com.example.tbilisi_parking_final_exm.domain.usecase.datastore.GetUserIdUseCase
imp... |
app/src/main/java/com/inging/notis/data/room/entity/PkgNotiInfo.kt | unknown_repo | kotlin | package com.inging.notis.data.room.entity
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
/**
* Created by annasu on 2021/04/27.
*/
// 메시지 제외한 노티 패키지 정보 저장
@Entity
data class PkgNotiInfo(
@PrimaryKey(autoGenerate = false)
val pkgNameId: String = "",
@Embedded
... |
app/src/main/java/prototypez/github/io/sq/demo/processes/auth/AuthActivity.kt | unknown_repo | kotlin | package prototypez.github.io.sq.demo.processes.auth
import android.app.Activity
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import io.reactivex.ObservableTransformer
import prototypez.github.io.sq.demo.R
import kotlinx.android.synthetic.main.activity_auth.*
import prototypez.github.io.sq.... |
testApp/app/src/main/java/com/newlandapps/testApp/MainActivity.kt | unknown_repo | kotlin | package com.newlandapps.testApp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
//LECCION 1
... |
maps-kt-features/src/commonMain/kotlin/space/kscience/maps/features/Feature.kt | unknown_repo | kotlin | package space.kscience.maps.features
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.ui.geometry.Rect
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.ImageBitmap
import androidx.compose.ui.... |
app/src/main/java/com/alexru/dufanyi/ui/components/BottomBar.kt | unknown_repo | kotlin | package com.alexru.dufanyi.ui.components
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.slideInVertically
import androidx.compose.animation.slideOutVertically
import androidx.compo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.