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
class MyTextView | |
@JvmOverloads | |
constructor( | |
context: Context, | |
attrs: AttributeSet? = null, | |
defStyleAttr: Int = 0 | |
) : AppCompatTextView(context, attrs, defStyleAttr) { | |
fun setTheme(theme: ThemeManager.Theme) { | |
setTextColor( |
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
private fun setTheme(theme: Theme) { | |
if (imageView.isVisible) { | |
return | |
} | |
val w = container.measuredWidth | |
val h = container.measuredHeight | |
val bitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888) | |
val canvas = Canvas(bitmap) |
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"?> | |
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".MainActivity" | |
tools:ignore="HardcodedText"> | |
<ImageView | |
android:id="@+id/imageView" |
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 com.krossovochkin.butterknifetest | |
import io.reactivex.Observable | |
import io.reactivex.subjects.BehaviorSubject | |
import org.junit.Test | |
class RxUnitTest { | |
/* Base tests */ |
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
.class public final Lcom/krossovochkin/butterknifetest/ExtensionsActivity; | |
.super Landroidx/appcompat/app/c; | |
# instance fields | |
.field private j:Ljava/util/HashMap; | |
# direct methods | |
.method public constructor <init>()V |
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
.class public final Lcom/krossovochkin/butterknifetest/ExtensionsActivity; | |
.super Landroidx/appcompat/app/c; | |
# instance fields | |
.field private j:Ljava/util/HashMap; | |
# direct methods | |
.method public constructor <init>()V |
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 final class ExtensionsActivity extends AppCompatActivity { | |
private SparseArray _$_findViewCache; | |
protected void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
this.setContentView(-1300009); | |
this.update(); | |
} | |
private final void update() { |
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 kotlinx.android.synthetic.main.activity_main.* | |
class ExtensionsActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
update() | |
} |
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 final class ButterKnifeAcivity_ViewBinding implements Unbinder { | |
private ButterKnifeAcivity target; | |
@UiThread | |
public ButterKnifeAcivity_ViewBinding(ButterKnifeAcivity target) { | |
this(target, target.getWindow().getDecorView()); | |
} | |
@UiThread | |
public ButterKnifeAcivity_ViewBinding(ButterKnifeAcivity target, View source) { |
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 final class ButterKnifeAcivity extends AppCompatActivity { | |
@BindView(-1000050) | |
@NotNull | |
public TextView textView; | |
@NotNull | |
public final TextView getTextView() { | |
TextView var10000 = this.textView; | |
if (this.textView == null) { | |
Intrinsics.throwUninitializedPropertyAccessException("textView"); |