This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.LinkedList | |
import java.util.concurrent.ConcurrentHashMap | |
import java.util.concurrent.atomic.AtomicInteger | |
import kotlinx.coroutines.CoroutineScope | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.SupervisorJob | |
import kotlinx.coroutines.delay | |
import kotlinx.coroutines.launch | |
import kotlinx.coroutines.runBlocking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.lifecycle.ViewModel | |
import kotlinx.coroutines.* | |
import kotlinx.coroutines.flow.* | |
import org.koin.core.component.KoinComponent | |
import org.koin.core.component.inject | |
import org.koin.core.qualifier.named | |
import kotlin.coroutines.CoroutineContext | |
/** | |
* Base ViewModel class for MVVM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Стандартное диалоговое окно по дизайну | |
* | |
* на нём есть: | |
* - иконка success | |
* - заголовок | |
* - описание | |
* - ссылка на сайт | |
* - кнопка Закрыть, либо Вернуться на главную, либо еще куда-то |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UI как список | |
// | |
// у нас есть единый лэйаут fragment_list_reusable.xml, который используется на 10 экранов | |
<androidx.constraintlayout.motion.widget.MotionLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Расскажу про три типа локализации: | |
- полностью с сервера | |
- нативная со статичной выгрузкой | |
- через StringResource | |
*/ | |
// | |
//полностью с сервера | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package infin.api.core.legal.entities.documents.demands.create | |
import androidx.annotation.Keep | |
import com.google.gson.annotations.SerializedName | |
import infin.api.core.legal.entities.Translation | |
/** | |
* Конструктор поля в заявлениях | |
*/ | |
@Keep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package clean.utils | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.recyclerview.widget.RecyclerView | |
import kotlinx.android.extensions.LayoutContainer | |
/** | |
* Класс для работы со списками |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package my.app.kz.ui.main.offers; | |
import android.graphics.drawable.PictureDrawable; | |
import android.os.AsyncTask; | |
import android.support.annotation.NonNull; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.LruCache; | |
import android.view.LayoutInflater; | |
import android.view.ViewGroup; |