file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/org/wildaid/ofish/util/ViewExt.kt | unknown_repo | kotlin | package org.wildaid.ofish.util
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
fun View.setVisible(visible: Boolean) {
if (visible) {
this.visibility = View.VISIBLE
} else {
this.visibility = View.GONE
}
}
fun View.hideKeyboard() ... |
src/app/src/main/java/com/dev_vlad/car_v/views/sellers/offers/ReceivedOffersFragment.kt | unknown_repo | kotlin | package com.dev_vlad.car_v.views.sellers.offers
import android.os.Bundle
import android.view.*
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import androidx.navigation.fragment.findNavController
import androidx.navig... |
app/common/src/desktopMain/kotlin/com/denchic45/studiversity/ui/CardContent.kt | unknown_repo | kotlin | package com.denchic45.studiversity.ui
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.mater... |
components/notification/impl/src/main/java/com/flipperdevices/notification/api/FlipperAppNotificationDialogApiImpl.kt | unknown_repo | kotlin | package com.flipperdevices.notification.api
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
i... |
app/src/main/java/com/deadgame/dota2/data/source/local/LocalDataDao.kt | unknown_repo | kotlin | package com.deadgame.dota2.data.source.local
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.deadgame.dota2.data.Hero
/**
* Created by liuwei04 on 2021/1/8.
*/
@Dao
interface LocalDataDao {
@Query("SELECT * FROM Heroes")
susp... |
app/src/main/java/mx/equipo6/proyectoapp/model/CalenModel.kt | unknown_repo | kotlin | package mx.equipo6.proyectoapp.model
import android.content.Context
import java.util.Calendar
/**
* @author <NAME> | A01750311
* Función para guardar la fecha de actividad sexual en SharedPreferences
* @param context: Context
* @param dateInMillis: Long
*/
fun saveSexualActivityDate(context: Context, dateInMillis... |
mylibrary/src/main/java/id/indosw/igdownloader/api/CommonClassForAPI.kt | unknown_repo | kotlin | @file:Suppress("LocalVariableName")
package id.indosw.igdownloader.api
import android.annotation.SuppressLint
import com.google.gson.JsonObject
import id.indosw.igdownloader.model.story.FullDetailModel
import id.indosw.igdownloader.model.story.StoryModel
import id.indosw.igdownloader.util.Utils.Companion.isNullOrEmpt... |
service-api/src/main/kotlin/io/sweers/catchup/service/api/CatchUpItem.kt | unknown_repo | kotlin | /*
* Copyright (C) 2019. <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
app/src/main/java/eu/kanade/tachiyomi/data/database/resolvers/HistoryChapterIdPutResolver.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.data.database.resolvers
import androidx.core.content.contentValuesOf
import com.pushtorefresh.storio.sqlite.StorIOSQLite
import com.pushtorefresh.storio.sqlite.operations.put.PutResolver
import com.pushtorefresh.storio.sqlite.operations.put.PutResult
import com.pushtorefresh.storio.sqlite.q... |
app/src/main/java/com/xwq/companyvxwhelper/bean/dataBindingBean/RadioButtonBean.kt | unknown_repo | kotlin | package com.xwq.companyvxwhelper.bean.dataBindingBean
import android.graphics.drawable.Drawable
import com.xwq.companyvxwhelper.base.BaseEntity
data class RadioButtonBean(var items : List<RadioButtonItem>?, var mark : Int) : BaseEntity(){
data class RadioButtonItem(var title : String, var tag : String, var image... |
community/src/main/java/com/kotlin/android/community/ui/person/binder/CommunityPersonPhotoBinder.kt | unknown_repo | kotlin | package com.kotlin.android.community.ui.person.binder
import android.view.View
import com.kotlin.android.community.R
import com.kotlin.android.community.databinding.ItemCommunityPersonPhotoBinding
import com.kotlin.android.community.ui.person.bean.CommunityPhotoViewBean
import com.kotlin.android.app.router.path.Route... |
android/anc/src/test/java/org/smartregister/fhircore/anc/ui/family/details/FamilyDetailsActivityTest.kt | unknown_repo | kotlin | /*
* Copyright 2021 Ona Systems, 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 agr... |
view/src/main/java/cmm/apps/esmorga/view/eventlist/MyEventListView.kt | unknown_repo | kotlin | package cmm.apps.esmorga.view.eventlist
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.c... |
app/src/main/java/sl/recharge/call/app/extensions/EliminateResult.kt | unknown_repo | kotlin | package sl.recharge.call.app.extensions
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import androidx.core.app.ActivityCompat
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.Fragm... |
repository/src/main/java/com/aglushkov/repository/command/RepositoryCommand.kt | unknown_repo | kotlin | package com.aglushkov.repository.command
import androidx.lifecycle.LiveData
interface RepositoryCommand<T,R> {
val liveData: LiveData<T>
val commandId: R
fun cancel()
} |
app/src/main/java/com/lighttigerxiv/simple/mp/compose/ui/composables/MiniPlayer.kt | unknown_repo | kotlin | package com.lighttigerxiv.simple.mp.compose.ui.composables
import android.graphics.BitmapFactory
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.Round... |
app-ui/src/main/java/ru/shafran/ui/auth/type/AuthTypeUI.kt | unknown_repo | kotlin | package ru.shafran.ui.auth.type
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.FilledTonalButton
import androidx.compose.material3.OutlinedButton
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
... |
app-tv/src/main/kotlin/app/ss/tv/presentation/account/languages/LanguagesScreenUi.kt | unknown_repo | kotlin | /*
* Copyright (c) 2024. Adventech <<EMAIL>>
*
* 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... |
app/src/main/java/com/ankit/mediapickerdemo/MainActivity.kt | unknown_repo | kotlin | package com.ankit.mediapickerdemo
import android.media.browse.MediaBrowser
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose... |
app/src/main/java/org/oppia/android/app/profile/AdminPinActivityPresenter.kt | unknown_repo | kotlin | package org.oppia.android.app.profile
import android.content.Context
import android.text.Editable
import android.text.TextWatcher
import android.view.inputmethod.EditorInfo
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.lifecyc... |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/CommentSolid.kt | unknown_repo | kotlin | package compose.icons.lineawesomeicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.gra... |
app/src/main/java/com/hypertrack/android/ui/screens/visits_management/tabs/history/HistoryViewModel.kt | unknown_repo | kotlin | package com.hypertrack.android.ui.screens.visits_management.tabs.history
import androidx.lifecycle.*
import com.google.android.gms.maps.GoogleMap
import com.hypertrack.android.interactors.app.HistoryViewAppAction
import com.hypertrack.android.interactors.app.AppInteractor
import com.hypertrack.android.interactors.app.... |
component-acgschedule/src/main/java/com/rabtman/acgschedule/mvp/ui/adapter/ScheduleDetailEpisodeItemAdapter.kt | unknown_repo | kotlin | package com.rabtman.acgschedule.mvp.ui.adapter
import android.widget.TextView
import androidx.core.content.ContextCompat
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.rabtman.acgschedule.R
import com.rabtman.acgschedule.mvp.model.jsoup.S... |
app/src/main/java/com/mapswithme/maps/downloader/ExpandRetryConfirmationListener.kt | unknown_repo | kotlin | package com.mapswithme.maps.downloader
import android.app.Application
import com.mapswithme.util.Utils.Proc
internal class ExpandRetryConfirmationListener(
app: Application,
private val mDialogClickListener: Proc<Boolean>?
) : RetryFailedDownloadConfirmationListener(app) {
override fun run() {
sup... |
app/src/main/java/com/saulodev/river/screens/MenuScreen.kt | unknown_repo | kotlin | package com.saulodev.river.ui.theme
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx... |
app/src/main/java/com/mvince/compose/ui/details/DetailsViewModel.kt | unknown_repo | kotlin | package com.mvince.compose.ui.details
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.mvince.compose.repository.DetailsRepository
import com.mvince.compose.ui.Argument
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.co... |
GoTrue/src/androidMain/kotlin/io/github/jan/supabase/gotrue/Utils.android.kt | unknown_repo | kotlin | @file:Suppress("RedundantSuspendModifier")
package io.github.jan.supabase.gotrue
import android.net.Uri
import io.github.jan.supabase.SupabaseClient
import io.github.jan.supabase.gotrue.user.UserSession
internal actual suspend fun SupabaseClient.openExternalUrl(url: String) {
openUrl(Uri.parse(url), auth.config.d... |
microapp/profile/src/main/java/bruhcollective/itaysonlab/microapp/profile/ui/screens/edit/ProfileEditViewModel.kt | unknown_repo | kotlin | package bruhcollective.itaysonlab.microapp.profile.ui.screens.edit
import androidx.annotation.StringRes
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.*
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.s... |
app/src/main/java/net/imoya/android/preference/app/SamplePlainActivity.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 IceImo-P
*
* 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/com/hodinv/weatherforecast/database/dao/ForecastDao.kt | unknown_repo | kotlin | package com.hodinv.weatherforecast.database.dao
import android.arch.persistence.room.Dao
import android.arch.persistence.room.Insert
import android.arch.persistence.room.Query
import android.arch.persistence.room.Update
import com.hodinv.weatherforecast.data.ForecastRecord
/**
* Created by vasily on 26.03.18.
* DAO... |
library/src/main/java/com/mastercard/creditorcommerce/library/webapiservice/repository/SignatureValidator.kt | unknown_repo | kotlin | package com.mastercard.creditorcommerce.library.webapiservice.repository
import android.content.Context
import android.webkit.URLUtil
import com.mastercard.creditorcommerce.library.LibraryCallbackListener
import com.mastercard.creditorcommerce.library.exception.LibraryError
import com.mastercard.creditorcommerce.libra... |
library/src/main/java/com/chuckerteam/chucker/internal/ui/transaction/TransactionOverviewFragment.kt | unknown_repo | kotlin | package com.chuckerteam.chucker.internal.ui.transaction
import android.os.Bundle
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
impo... |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/regular/PauseCircle.kt | unknown_repo | kotlin | package compose.icons.fontawesomeicons.regular
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.Companio... |
app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersAdapter.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.ui.manga.chapter
import android.content.Context
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
import eu.kanade.tachiyomi.ui.manga.MangaController
import eu.kanade.tachiyomi.ui.manga.chapter.base.BaseChaptersAdapter
import eu.kanade.tachiyomi.util.... |
ui/media/src/main/java/com/afterroot/watchdone/ui/media/SeasonInfo.kt | unknown_repo | kotlin | /*
* Copyright (C) 2020-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 agree... |
lib/src/main/java/debug_artist/menu/utils/shake_detector/AndroidShakeDetector.kt | unknown_repo | kotlin | package debug_artist.menu.utils.shake_detector
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
/**
* Detect shakes on Android Devices
* source: http://jasonmcreynolds.com/?p=388
*/
cl... |
features/popular/src/main/java/com/fappslab/features/popular/presentation/viewmodel/PopularViewModel.kt | unknown_repo | kotlin | package com.fappslab.features.popular.presentation.viewmodel
import androidx.lifecycle.viewModelScope
import androidx.paging.cachedIn
import androidx.paging.compose.LazyPagingItems
import com.fappslab.core.domain.model.Movie
import com.fappslab.features.popular.domain.usecase.GetMoviesUseCase
import com.fappslab.libra... |
delegationadapter-extras/src/main/java/com/kevin/delegationadapter/extras/span/SpanDelegationAdapter.kt | unknown_repo | kotlin | /*
* Copyright (c) 2018 <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 ... |
sketch-core/src/androidTest/kotlin/com/github/panpf/sketch/core/test/util/MessageDigestUtilsTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 panpf <panpfpanpf@outlook.com>
*
* 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 appl... |
delegapter/src/main/kotlin/net/aquadc/delegapter/adapter/SingleTypeAdapter.kt | unknown_repo | kotlin | package net.aquadc.delegapter.adapter
import android.view.ViewGroup
import androidx.annotation.RequiresApi
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView.Adapter
import net.aquadc.delegapter.Delegate
import net.aquadc.delegapter.DiffDelegate
import net.aquadc.delegapter.M... |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/FaceSmileTear.kt | unknown_repo | kotlin | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... |
app/src/main/java/com/stocksexchange/android/Constants.kt | unknown_repo | kotlin | package com.stocksexchange.android
import android.os.Build
import com.stocksexchange.android.model.DashboardTabs
import com.stocksexchange.android.model.OrderTabs
import java.util.Locale
/**
* A singleton holding application specific constants.
*/
object Constants {
// Request codes related
const val REQU... |
Revision/app/src/main/java/com/example/revision/model/Square.kt | unknown_repo | kotlin | package com.example.revision.model
import android.content.Context
class Square (var side: Double, context: Context) {
fun calculateArea(): String {
return "Area: " + side * side
}
fun calculatePerimeter(): String {
return "Perimeter: " + side * 4
}
override fun toString(): String... |
app/src/main/java/com/zhuzichu/orange/ui/file/viewmodel/FileViewModel.kt | unknown_repo | kotlin | package com.zhuzichu.orange.ui.file.viewmodel
import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.zhuzichu.mvvm.base.BaseViewModel
import com.zhuzichu.mvvm.bus.event.SingleLiveEvent
import com.zhuzichu.mvvm.utils.itemBindingOf
import com.zhuzichu.mvvm.utils.itemDiffOf
import com.zhuzich... |
app/src/test/java/org/p2p/wallet/wallet/deeplinks/DeeplinkUtilsTest.kt | unknown_repo | kotlin | package org.p2p.wallet.wallet.deeplinks
import android.net.Uri
import io.mockk.every
import io.mockk.mockk
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
import org.p2p.wallet.deeplinks.DeeplinkTarget
import org.p2p.wallet.deeplinks.DeeplinkUtils
/**
* Tests for Deeplink... |
app/src/main/java/com/pcm/gallery/adapter/AdapterMediaAlbum.kt | unknown_repo | kotlin | package com.pcm.gallery.adapter
import android.content.Context
import android.net.Uri
import android.support.v7.widget.RecyclerView
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
impo... |
main/src/main/java/com/work/theIsle/jetpack/observer/MyLocationObserver.kt | unknown_repo | kotlin | package com.work.theIsle.jetpack.observer
import android.Manifest
import android.content.Context
import android.location.Location
import android.location.LocationListener
import android.location.LocationManager
import android.os.Bundle
import androidx.core.app.ActivityCompat
import androidx.core.content.PermissionChec... |
lbcglance/src/main/kotlin/studio/lunabee/compose/glance/extensions/GlanceModifierExt.kt | unknown_repo | kotlin | /*
* Copyright (c) 2024 Lunabee Studio
*
* 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... |
android/src/main/java/io/github/alphicc/android/overlaySample/drawerScreen/DrawerScreen.kt | unknown_repo | kotlin | package io.github.alphicc.android.overlaySample.drawerScreen
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.ExperimentalCompo... |
app/src/main/java/com/antonicastejon/cryptodata/common/ActivityUtils.kt | unknown_repo | kotlin | package com.antonicastejon.cryptodata.common
import androidx.annotation.IdRes
import androidx.fragment.app.Fragment
import androidx.appcompat.app.AppCompatActivity
fun AppCompatActivity.replaceFragment(@IdRes where: Int, fragment: androidx.fragment.app.Fragment, tag: String) {
supportFragmentManager.beginTransact... |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/LinkSlash.kt | unknown_repo | kotlin | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... |
app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/common/ClickableIconButton.kt | unknown_repo | kotlin | package com.zaneschepke.wireguardautotunnel.ui.common
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.size
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Icon
import androidx.compose.material3.Te... |
app/src/main/java/com/wechantloup/thermostat/ui/roomselection/RoomSelectionScreen.kt | unknown_repo | kotlin | package com.wechantloup.thermostat.ui.roomselection
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material3.Card
import androidx.co... |
app/src/main/java/com/vishnu/testapplication/di/AppModule.kt | unknown_repo | kotlin | package com.vishnu.testapplication.di
import android.content.Context
import android.content.SharedPreferences
import androidx.room.Room
import com.vishnu.testapplication.data.source.DefaultDataSource
import com.vishnu.testapplication.data.source.getApiClient
import com.vishnu.testapplication.data.source.MobileBankingR... |
app/src/main/java/com/frogobox/appapi/mvvm/pixabay/PixabayActivity.kt | unknown_repo | kotlin | package com.frogobox.appapi.mvvm.pixabay
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import com.bumptech.glide.Glide
import com.frogobox.appapi.databinding.ActivityPixabayBinding
import com.frogobox.appapi.databinding.ItemGridImageBinding
import com.frogobox.coreutil.news.... |
data/src/main/java/com/github/lexleontiev/chatexample/data/room/MessageDTO.kt | unknown_repo | kotlin | package com.github.lexleontiev.chatexample.data.room
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.github.lexleontiev.chatexample.data.Message
@Entity(tableName = "messages")
data class MessageDTO(
@PrimaryKey(autoGenerate = true) val id: Int = 0,
val content: String,
val timesta... |
app/src/main/kotlin/com/fevziomurtekin/hackernewsapp/data/domain/ItemModel.kt | unknown_repo | kotlin | package com.fevziomurtekin.hackernewsapp.data.domain
import android.os.Parcelable
import com.fevziomurtekin.hackernewsapp.data.room.AskEntity
import com.fevziomurtekin.hackernewsapp.data.room.JobEntity
import com.fevziomurtekin.hackernewsapp.data.room.NewEntity
import kotlinx.android.parcel.Parcelize
@Parcelize
data ... |
app/src/main/java/com/khoben/autotitle/extension/ViewExt.kt | unknown_repo | kotlin | package com.khoben.autotitle.extension
import android.graphics.Rect
import android.view.View
import android.view.ViewGroup
import com.khoben.autotitle.util.ViewUtils
/**
* Get bounding rectangle of [View]
*/
fun View.getRect() = Rect(left, top, right, bottom)
/**
* Get bitmap from [parent] with applied scale fact... |
app/src/main/java/com/sample/app/todolist/todo/presentation/ui/PleaseWaitDialog.kt | unknown_repo | kotlin | package com.sample.app.todolist.todo.presentation.ui
import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import androidx.constraintlayout.widget.ConstraintLayout
import com.sample.app.todolist.R
class PleaseWait... |
app/src/main/java/no/usn/mob3000/ui/screens/info/faq/CreateFAQScreen.kt | unknown_repo | kotlin | package no.usn.mob3000.ui.screens.info.faq
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.comp... |
lifecycle/lifecycle-compiler/src/test/kotlin/androidx/lifecycle/InvalidCasesTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017 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... |
user/src/main/java/org/the_chance/honeymart/ui/feature/authentication/signup/SignupScreen.kt | unknown_repo | kotlin | package org.the_chance.honeymart.ui.feature.authentication.signup
import android.widget.Toast
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.co... |
Proje Dosyaları/Part 09 Proje /DevBytesstarter/app/src/main/java/com/begumyolcu/devbytes_starter/util/BindingAdapters.kt | unknown_repo | kotlin | package com.begumyolcu.devbytesworkmanager.util
import android.view.View
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide
/**
* Veri mevcut olduğunda spinner'ı gizlemek için kullanılan binding adapter.
*/
@BindingAdapter("isNetworkError", "playlist")
fun hid... |
chat-sdk/src/main/java/ru/usedesk/chat_sdk/service/notifications/UsedeskNotificationsServiceFactory.kt | unknown_repo | kotlin | package ru.usedesk.chat_sdk.service.notifications
import android.content.Context
import android.content.Intent
import ru.usedesk.chat_sdk.entity.UsedeskChatConfiguration
import ru.usedesk.chat_sdk.service.notifications.view.UsedeskNotificationsService
import ru.usedesk.chat_sdk.service.notifications.view.UsedeskNotifi... |
mjpeg/src/main/java/info/dvkr/screenstream/mjpeg/ui/settings/image/Rotation.kt | unknown_repo | kotlin | package info.dvkr.screenstream.mjpeg.ui.settings.image
import android.content.res.Resources
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.defaultMinSize
import androidx.compose.founda... |
app/src/main/java/com/roomapp/toolsloan/ui/tools/ToolsViewModel.kt | unknown_repo | kotlin | package com.roomapp.toolsloan.ui.tools
import androidx.lifecycle.ViewModel
import com.roomapp.toolsloan.entity.Loan
import com.roomapp.toolsloan.entity.Tool
import com.roomapp.toolsloan.repository.LoanRepository
import com.roomapp.toolsloan.repository.ToolsRepository
import com.roomapp.toolsloan.utality.lazyDeferred
i... |
app/src/main/java/com/googof/bitcointimechainwidgets/TotalNodesAppWidget.kt | unknown_repo | kotlin | package com.googof.bitcointimechainwidgets
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.Context
import android.content.Intent
import android.os.Build
import android.widget.RemoteViews
import androidx.annotation.RequiresApi
... |
app/src/main/java/org/sk/hopelife/SetDietActivity.kt | unknown_repo | kotlin | package org.sk.hopelife
import android.app.TimePickerDialog
import android.os.Bundle
import android.text.Html
import android.text.method.LinkMovementMethod
import android.view.View
import android.widget.*
import androidx.appcompat.app.AppCompatActivity
import java.util.*
class SetDietActivity : AppCompatActivity(), ... |
persistence_room/src/main/java/com/vmenon/mpo/persistence/room/dao/EpisodeDao.kt | unknown_repo | kotlin | package com.vmenon.mpo.persistence.room.dao
import androidx.room.Dao
import androidx.room.Query
import com.vmenon.mpo.persistence.room.base.dao.BaseDao
import com.vmenon.mpo.persistence.room.entity.EpisodeEntity
import com.vmenon.mpo.persistence.room.entity.EpisodeWithShowDetailsEntity
@Dao
abstract class EpisodeDao... |
samples/hello-overridingback/src/main/java/com/nhaarman/acorn/samples/hellooverridingback/FirstScene.kt | unknown_repo | kotlin | /*
* Copyright 2018 Niek Haarman
*
* 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 applicabl... |
sample/mpp-library/src/iosMain/kotlin/com/icerockdev/library/UILabelExt.kt | unknown_repo | kotlin | /*
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package com.icerockdev.library
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch
import platform.UIKit.UILabel
class LiveData<T>
interface Closeab... |
app/src/main/java/com/yelinaung/luluaung/adapters/viewholders/ProgressViewHolder.kt | unknown_repo | kotlin | package com.yelinaung.luluaung.adapters.viewholders
import android.support.v7.widget.RecyclerView
import android.view.View
/**
* Created by user on 9/8/16.
*/
class ProgressViewHolder : RecyclerView.ViewHolder {
constructor(itemView: View?) : super(itemView) {
}
}
|
app/src/main/java/com/xuexiang/templateproject/core/webview/AgentWebFragment.kt | unknown_repo | kotlin | /*
* Copyright (C) 2019 xuexiangjys(xuexiangjys@163.com)
*
* 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 a... |
app/src/main/java/ru/gc986/calc_testmvvm_kotlin/MainActivity.kt | unknown_repo | kotlin | package ru.gc986.calc_testmvvm_kotlin
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.databinding.DataBindingUtil
import ru.gc986.calc_testmvvm_kotlin.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
val model : MainActivityM = MainActivityM()
... |
app/src/main/java/ci/projccb/mobile/activities/forms/UniteAgricoleProducteurActivity.kt | unknown_repo | kotlin | package ci.projccb.mobile.activities.forms
import android.annotation.SuppressLint
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ArrayAdapter
import and... |
app/src/main/java/dev/thiaago/finn/features/home/ui/components/IncomeAndExpensesSection.kt | unknown_repo | kotlin | package dev.thiaago.finn.features.home.ui.components
import android.widget.Space
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layou... |
stripe/src/test/java/com/stripe/android/view/SelectShippingMethodWidgetTest.kt | unknown_repo | kotlin | package com.stripe.android.view
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import kotlin.test.Test
import kotlin.test.assertEquals
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
/**
* Test for [SelectShippingMethodWidget]
*/
@RunWith(RobolectricTes... |
app/src/androidTest/java/io/github/wykopmobilny/tests/pages/MainPage.kt | unknown_repo | kotlin | package io.github.wykopmobilny.tests.pages
import androidx.annotation.IdRes
import androidx.drawerlayout.widget.DrawerLayout
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.contrib.DrawerActions.close
import androidx.test.espresso.contrib.DrawerActions.open
import androidx.test.espresso.con... |
app/src/main/java/be/digitalia/fosdem/widgets/MultiChoiceHelper.kt | unknown_repo | kotlin | package org.matomocamp.companion.widgets
import android.os.Bundle
import android.os.Parcel
import android.os.Parcelable
import android.util.LongSparseArray
import android.util.SparseBooleanArray
import android.view.View
import android.widget.Checkable
import androidx.appcompat.app.AppCompatActivity
import androidx.app... |
app/src/main/java/com/playground/utils/InflaterExtension.kt | unknown_repo | kotlin | package com.playground.utils
import android.support.annotation.LayoutRes
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
/**
* Created by emil.ivanov on 9/8/18.
*/
fun ViewGroup.inflate(@LayoutRes layoutRes: Int, attachToRoot: Boolean = false): View {
return LayoutInfla... |
app/src/main/java/com/luuu/seven/adapter/ComicIndexItemAdapter.kt | unknown_repo | kotlin | package com.luuu.seven.adapter
import android.widget.ImageView
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.luuu.seven.R
import com.luuu.seven.bean.IndexDataBean
import com.luuu.seven.util.*
/**
* author : del... |
vhk/src/main/java/com/mozhimen/xmlk/vhk/VHKRecycler.kt | unknown_repo | kotlin | package com.mozhimen.xmlk.vhk
import android.util.SparseArray
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.IdRes
import androidx.annotation.LayoutRes
import com.mozhimen.basick.elemk.android.view.ViewProxy
import com.mozhimen.basick.elemk.kotlin.c... |
app/src/main/java/ru/tech/imageresizershrinker/presentation/root/widget/dialogs/ExitWithoutSavingDialog.kt | unknown_repo | kotlin | package ru.tech.imageresizershrinker.presentation.root.widget.dialogs
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Save
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.co... |
MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/DrawChartActivity.kt | unknown_repo | kotlin | // TODO: Finish and add to main activity list
package com.xxmassdeveloper.mpchartexample
import android.Manifest
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.WindowManager
import androidx.core.content... |
app/src/main/java/com/frogobox/keyboard/ui/keyboard/main/MainHeaderKeyboard.kt | unknown_repo | kotlin | package com.frogobox.keyboard.ui.keyboard.main
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import com.frogobox.keyboard.common.base.BaseKeyboard
import com.frogobox.keyboard.databinding.KeyboardMainHeaderBinding
/**
* Created by <NAME> on 10/11/22
* -----------... |
app/src/test/kotlin/fr/free/nrw/commons/notification/NotificationActivityUnitTests.kt | unknown_repo | kotlin | package fr.free.nrw.commons.notification
import android.content.Context
import android.content.Intent
import android.view.Menu
import android.view.MenuItem
import androidx.test.core.app.ApplicationProvider
import fr.free.nrw.commons.OkHttpConnectionFactory
import fr.free.nrw.commons.R
import fr.free.nrw.commons.Shadow... |
app/src/main/java/com/skydoves/themovies/room/AppDatabase.kt | unknown_repo | kotlin | package com.skydoves.themovies.room
import android.arch.persistence.room.Database
import android.arch.persistence.room.RoomDatabase
import android.arch.persistence.room.TypeConverters
import com.skydoves.themovies.models.entity.Movie
import com.skydoves.themovies.models.entity.Person
import com.skydoves.themovies.mode... |
mobile/src/main/java/io/github/prefanatic/toomanysensors/ui/fragment/LogDataListFragment.kt | unknown_repo | kotlin | /*
* Copyright 2015-2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
feature/settings-impl/src/main/kotlin/org/michaelbel/movies/settings/ui/SettingsMovieListDialog.kt | unknown_repo | kotlin | package org.michaelbel.movies.settings.ui
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundatio... |
kotlin/android/app/src/main/java/dev/firezone/android/core/BaseUrlInterceptor.kt | unknown_repo | kotlin | /* Licensed under Apache 2.0 (C) 2023 Firezone, Inc. */
package dev.firezone.android.core
import android.content.SharedPreferences
import dev.firezone.android.BuildConfig
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
import okhttp3.Interceptor
import okhttp3.Response
private const val ACCOUNT_ID_KEY = "accountId"
... |
app/src/main/java/dev/marcocattaneo/playground/navigation/NavigationControllerImpl.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 w... |
app/src/main/java/com/macode/realla/fragments/AuthenticateUserFragment.kt | unknown_repo | kotlin | package com.macode.realla.fragments
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.widget.RelativeLayout
import androidx.appcompat.app.AppCompatActivity
import... |
app/src/main/kotlin/org/sourcei/xpns/ui/sheets/RoundedBottomSheet.kt | unknown_repo | kotlin | package org.sourcei.xpns.ui.sheets
import android.app.Dialog
import android.os.Bundle
import com.google.android.material.bottomsheet.BottomSheetDialog
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import org.sourcei.xpns.R
/**
* @info -
*
* @author - Saksham
* @tnote Last Branch Update ... |
ui/graph/src/main/java/com/example/graph/top_action_bar/selection_bars/HomeSelectionTopAppBar.kt | unknown_repo | kotlin | package com.example.grqph.top_action_bar
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Ex... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/GalaxyStar.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/egoriku/radiotok/presentation/ui/radio/miniplayer/component/RadioLogoSmall.kt | unknown_repo | kotlin | package com.egoriku.radiotok.presentation.ui.radio.miniplayer.component
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import android... |
app/src/main/java/com/launchkey/android/authenticator/sdk/ui/internal/auth_method/circle_code/CircleCodeAddViewModel.kt | unknown_repo | kotlin | package com.launchkey.android.authenticator.sdk.ui.internal.auth_method.circle_code
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import com.launchkey.android.authenticator.sdk.core.auth_method_management.Circ... |
lib/java/mobi/lab/components/textfield/LabTextField.kt | unknown_repo | kotlin | package mobi.lab.components.textfield
import android.content.Context
import android.content.res.ColorStateList
import android.os.Build
import android.os.Bundle
import android.os.Parcelable
import android.text.TextUtils
import android.util.AttributeSet
import android.view.KeyEvent
import android.view.MotionEvent
import... |
imageframe/src/main/java/com/nofish/imageframe/MainActivity.kt | unknown_repo | kotlin | package com.nofish.imageframe
import android.app.Application
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import coil.ImageLoader
import coil.ImageLoaderFactory
import coil.load
import coil.request.CachePolicy
import coil.request.Disposable
import coil.request.ErrorResult
import coil.reques... |
backstack/src/commonMain/kotlin/com/slack/circuit/backstack/BackStackRecordLocalProvider.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.