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 pl.onyszko.rxjavasearch | |
import android.os.Bundle | |
import android.util.Log | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import android.widget.TextView | |
import android.widget.Toast | |
import androidx.appcompat.app.AppCompatActivity |
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.Scanner | |
fun main() { | |
val presenter: UserContract.UserPresenter = UserPresenterImpl() | |
val view: UserContract.UserView = UserViewImpl(presenter) | |
view.init() | |
} | |
interface UserContract { | |
interface UserView { |
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 android.app.Activity | |
import android.app.Application | |
import android.content.Context | |
import android.os.Bundle | |
import android.support.v4.app.Fragment | |
import android.support.v4.app.FragmentManager | |
import android.view.View | |
fun Application.registerActivityLifecycleCallbacks( | |
onActivityPaused: ((Activity) -> Unit?)? = null, |
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 android.databinding.BindingAdapter; | |
import com.github.gcacace.signaturepad.views.SignaturePad; | |
/** | |
* Example: | |
* | |
* <pre> | |
* {@code | |
* <com.github.gcacace.signaturepad.views.SignaturePad xmlns:bind="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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:gravity="center"> | |
<shape android:shape="oval"> | |
<gradient | |
android:centerColor="#80000000" | |
android:endColor="#00000000" | |
android:gradientRadius="90" | |
android:startColor="#ff000000" | |
android:type="radial" /> |
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 pl.gratitude.expandablex; | |
import android.content.Context; | |
import android.util.Log; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.widget.ExpandableListView; | |
import android.widget.Toast; | |
/** |
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 android.app.Activity; | |
import android.content.Intent; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.Toolbar; | |
import android.util.Log; | |
/** | |
* Created on 05.02.2016 | |
* | |
* @author Sławomir Onyszko |