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 your_package_name; | |
import android.text.Layout; | |
import android.text.Selection; | |
import android.text.Spannable; | |
import android.text.method.LinkMovementMethod; | |
import android.text.method.Touch; | |
import android.text.style.ClickableSpan; | |
import android.view.MotionEvent; | |
import android.widget.TextView; |
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
public class CloneView extends View { | |
private View mSource; | |
public CloneView(Context context) { | |
super(context); | |
} | |
public CloneView(Context context, @Nullable AttributeSet attrs) { | |
super(context, attrs); |
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 io.reactivex.Observable | |
import io.reactivex.ObservableSource | |
import io.reactivex.ObservableTransformer | |
import io.reactivex.functions.Predicate | |
import retrofit2.Response | |
enum class HttpCode(val code: Int) { | |
UNAUTHORIZED(401) | |
} |
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 /* your package name */ | |
import android.content.Context | |
const val PREFS_FILE_NAME = "your_prefs_file_name" | |
class PreferenceStorage constructor(private val context: Context) { | |
fun save(_key: String, _value: String) { | |
val prefs = context.getSharedPreferences(PREFS_FILE_NAME, Context.MODE_PRIVATE) |