This file contains hidden or 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 ru.whalemare.vkbirthday.mvp.presenter.base | |
import com.hannesdorfmann.mosby.mvp.MvpBasePresenter | |
import com.hannesdorfmann.mosby.mvp.MvpView | |
/** | |
* @since 2017 | |
* @author Anton Vlasov - whalemare | |
*/ | |
open class BaseMvpPresenterK<V : MvpView> : MvpBasePresenter<V>() { |
This file contains hidden or 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
/** | |
* @since 2017 | |
* @author Anton Vlasov - whalemare | |
*/ | |
class NoteMakerPresenterImpl : BaseMvpPresenterK<NoteMakerView>(), NoteMakerPresenter { | |
override fun onClickNoteView() { | |
isActive { it.showKeyboard() } | |
} |
This file contains hidden or 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
<vector | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:width="48dp" | |
android:height="48dp" | |
android:viewportHeight="12" | |
android:viewportWidth="12"> | |
<!-- Этот путь рисует оранжевый треугольник --> | |
<path | |
android:fillColor="#FF9800" |
This file contains hidden or 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
# RxJava | |
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* { | |
long producerIndex; | |
long consumerIndex; | |
} | |
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef { | |
rx.internal.util.atomic.LinkedQueueNode producerNode; | |
} |
This file contains hidden or 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
<resources> | |
<string name="roboto_light" translatable="false">sans-serif-light</string> | |
<string name="roboto_medium" translatable="false">sans-serif-medium</string> | |
<string name="roboto_regular" translatable="false">sans-serif</string> | |
<string name="roboto_condensed" translatable="false">sans-serif-condensed</string> | |
<string name="roboto_black" translatable="false">sans-serif-black</string> | |
<string name="roboto_thin" translatable="false">sans-serif-thin</string> | |
</resources> |
This file contains hidden or 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
/** | |
* @since 2017 | |
* @author Anton Vlasov - whalemare | |
*/ | |
interface BasePresenter<in V : BaseView, R> { | |
fun attachView(view: V) | |
fun detachView() | |
fun attachRouter(router: R?) | |
fun detachRouter() |
This file contains hidden or 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
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-kapt' | |
android { | |
compileSdkVersion 26 | |
buildToolsVersion "26.0.0" | |
defaultConfig { | |
applicationId "ru.whalemare.app" | |
minSdkVersion 16 |
This file contains hidden or 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
#NAME "Lingua" | |
#INDEX_LANGUAGE "Russian" | |
#CONTENTS_LANGUAGE "Chinese" | |
быть в силе | |
[m1]1) ([i]обладать физическими и душевными силами[/i]) 有势力[/m][m1]2) ([i]иметь власть, влияние[/i]) 有权力[/m] | |
не с того конца | |
[m1]\[做得\]不对头[/m] |
This file contains hidden or 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 android.app.Activity | |
import android.os.Bundle | |
class MainActivity extends Activity { | |
override def onCreate(savedInstanceState: Bundle) = { | |
super.onCreate(savedInstanceState) | |
findView[Button](R.id.button).onClick { view : View => | |
Toast.makeText(this, "You have clicked the button", Toast.LENGTH_LONG).show() | |
} |
This file contains hidden or 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 com.mscharhag.groovytodo.activities | |
import android.app.Activity | |
import com.mscharhag.groovytodo.R | |
import com.mscharhag.groovytodo.ToDo | |
class MainActivity extends Activity { | |
@Override | |
protected void onStart() { |