Skip to content

Instantly share code, notes, and snippets.

View behdad222's full-sized avatar

Behdad behdad222

  • Tehran
View GitHub Profile
// Discoed
66.22.243.5 frankfurt2601
66.22.243.36 frankfurt4488
66.22.199.84 rotterdam9550
66.22.217.33 russia9602
66.22.199.191 rotterdam518
66.22.216.45 russia8510
66.22.214.17 newark8916
66.22.216.37 russia6443
66.22.216.150 russia6443
class PriceTextInputLayout @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = R.attr.textInputStyle
) : TextInputLayout(context, attrs, defStyleAttr) {
val locale = Locale(LOCALE_LANGUAGE_FA)
override fun onAttachedToWindow() {
@behdad222
behdad222 / ThousandsSeparator.kt
Last active March 30, 2022 23:38
Don't use this
//Don't use this
class PriceInputTextWatcher(
private val editText: EditText
) : TextWatcher {
private var ignoreOnPhoneChange = false
private var characterAction = CHARACTER_ACTION_UNKNOWN
private var actionPosition = 0
override fun beforeTextChanged(
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
* امنیت
* ci cd
* RXKotilin
* git
* code review
* concurrency
* constraintlayout
public abstract class ResponseWithErrorHandling<R, E> implements Callback<ResponseBody> {
private Type responseType;
private Type errorType;
public abstract void onResponseRequest(Call<ResponseBody> call, R response);
public abstract void onErrorRequest(Call<ResponseBody> call, E error);
public abstract void onFailureRequest(Call<ResponseBody> call, Throwable error);
developers.google.com,
dl.google.com,
firebase.google.com,
android.com,
googleapis.com,
oracle.com,
themeforest.net,
bintray.com,
atlassian.com,
bitbucket.org,