0% found this document useful (0 votes)
4 views14 pages

Lucky Wheel Timer View Implementation

The document defines a class `LuckyWheelTimerView` that extends `LinearLayout` in Android. It includes multiple constructors for initializing the view with context and attributes, and methods for formatting and updating timer display in text views. The class utilizes Kotlin and Java interoperability for its implementation.

Uploaded by

Khadim Bamba
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views14 pages

Lucky Wheel Timer View Implementation

The document defines a class `LuckyWheelTimerView` that extends `LinearLayout` in Android. It includes multiple constructors for initializing the view with context and attributes, and methods for formatting and updating timer display in text views. The class utilizes Kotlin and Java interoperability for its implementation.

Uploaded by

Khadim Bamba
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

# classes7.

dex

.class public final Lorg/xbet/lucky_wheel/presentation/views/LuckyWheelTimerView;

.super Landroid/widget/LinearLayout;

.source "[Link]"

# instance fields

.field public final a:Lhl1/c;

# direct methods

.method public constructor <init>(Landroid/content/Context;)V

.registers 9

.line 1

const-string v0, "context"

invoke-static {p1, v0}, Lkotlin/jvm/internal/t;->i(Ljava/lang/Object;Ljava/lang/String;)V

const/4 v3, 0x0

const/4 v4, 0x0

const/4 v5, 0x6


const/4 v6, 0x0

move-object v1, p0

move-object v2, p1

invoke-direct/range {v1 .. v6},


Lorg/xbet/lucky_wheel/presentation/views/LuckyWheelTimerView;
-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/o;)V

return-void

.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

.registers 10

.line 2

const-string v0, "context"

invoke-static {p1, v0}, Lkotlin/jvm/internal/t;->i(Ljava/lang/Object;Ljava/lang/String;)V

const/4 v4, 0x0

const/4 v5, 0x4


const/4 v6, 0x0

move-object v1, p0

move-object v2, p1

move-object v3, p2

invoke-direct/range {v1 .. v6},


Lorg/xbet/lucky_wheel/presentation/views/LuckyWheelTimerView;
-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/o;)V

return-void

.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

.registers 5

const-string v0, "context"

invoke-static {p1, v0}, Lkotlin/jvm/internal/t;->i(Ljava/lang/Object;Ljava/lang/String;)V

.line 4

invoke-direct {p0, p1, p2, p3}, Landroid/widget/LinearLayout;


-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

.line 5
invoke-static {p1}, Landroid/view/LayoutInflater;
->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

move-result-object p1

invoke-static {p1, p0}, Lhl1/c;


->b(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;)Lhl1/c;

move-result-object p1

const-string p2, "inflate([Link](context), this)"

invoke-static {p1, p2}, Lkotlin/jvm/internal/t;->h(Ljava/lang/Object;Ljava/lang/String;)V

iput-object p1, p0, Lorg/xbet/lucky_wheel/presentation/views/LuckyWheelTimerView;


->a:Lhl1/c;

const/4 p1, 0x1

.line 6

invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->setGravity(I)V

return-void

.end method

.method public synthetic constructor


<init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/o;)V
.registers 6

and-int/lit8 p5, p4, 0x2

if-eqz p5, :cond_5

const/4 p2, 0x0

:cond_5

and-int/lit8 p4, p4, 0x4

if-eqz p4, :cond_a

const/4 p3, 0x0

.line 3

:cond_a

invoke-direct {p0, p1, p2, p3},


Lorg/xbet/lucky_wheel/presentation/views/LuckyWheelTimerView;
-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

return-void

.end method

# virtual methods
.method public final a(I)Ljava/lang/String;

.registers 6

.line 1

sget-object v0, Lkotlin/jvm/internal/z;->a:Lkotlin/jvm/internal/z;

.line 2

.line 3

sget-object v0, Ljava/util/Locale;->ENGLISH:Ljava/util/Locale;

.line 4

.line 5

const/4 v1, 0x1

.line 6

new-array v2, v1, [Ljava/lang/Object;

.line 7

.line 8

const/4 v3, 0x0

.line 9

invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

.line 10
.line 11

.line 12

move-result-object p1

.line 13

aput-object p1, v2, v3

.line 14

.line 15

invoke-static {v2, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;

.line 16

.line 17

.line 18

move-result-object p1

.line 19

const-string v1, "%02d"

.line 20

.line 21

invoke-static {v0, v1, p1}, Ljava/lang/String;


->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

.line 22

.line 23
.line 24

move-result-object p1

.line 25

const-string v0, "format(locale, format, *args)"

.line 26

.line 27

invoke-static {p1, v0}, Lkotlin/jvm/internal/t;->h(Ljava/lang/Object;Ljava/lang/String;)V

.line 28

.line 29

.line 30

return-object p1

.line 31

.line 32

.line 33

.line 34

.line 35

.line 36

.line 37

.line 38

.line 39

.line 40

.line 41
.line 42

.line 43

.line 44

.line 45

.line 46

.line 47

.line 48

.line 49

.line 50

.line 51

.line 52

.line 53

.line 54

.line 55

.line 56

.line 57

.line 58

.line 59

.line 60

.line 61

.line 62

.line 63

.line 64

.line 65

.line 66
.line 67

.end method

.method public final b(Lorg/xbet/lucky_wheel/presentation/game/e;)V

.registers 4

.line 1

const-string v0, "timer"

.line 2

.line 3

invoke-static {p1, v0}, Lkotlin/jvm/internal/t;->i(Ljava/lang/Object;Ljava/lang/String;)V

.line 4

.line 5

.line 6

iget-object v0, p0, Lorg/xbet/lucky_wheel/presentation/views/LuckyWheelTimerView;


->a:Lhl1/c;

.line 7

.line 8

iget-object v0, v0, Lhl1/c;->d:Landroid/widget/TextView;

.line 9

.line 10

invoke-virtual {p1}, Lorg/xbet/lucky_wheel/presentation/game/e;->a()I


.line 11

.line 12

.line 13

move-result v1

.line 14

invoke-virtual {p0, v1}, Lorg/xbet/lucky_wheel/presentation/views/LuckyWheelTimerView;


->a(I)Ljava/lang/String;

.line 15

.line 16

.line 17

move-result-object v1

.line 18

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

.line 19

.line 20

.line 21

iget-object v0, p0, Lorg/xbet/lucky_wheel/presentation/views/LuckyWheelTimerView;


->a:Lhl1/c;

.line 22

.line 23
iget-object v0, v0, Lhl1/c;->e:Landroid/widget/TextView;

.line 24

.line 25

invoke-virtual {p1}, Lorg/xbet/lucky_wheel/presentation/game/e;->b()I

.line 26

.line 27

.line 28

move-result v1

.line 29

invoke-virtual {p0, v1}, Lorg/xbet/lucky_wheel/presentation/views/LuckyWheelTimerView;


->a(I)Ljava/lang/String;

.line 30

.line 31

.line 32

move-result-object v1

.line 33

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

.line 34

.line 35

.line 36
iget-object v0, p0, Lorg/xbet/lucky_wheel/presentation/views/LuckyWheelTimerView;
->a:Lhl1/c;

.line 37

.line 38

iget-object v0, v0, Lhl1/c;->f:Landroid/widget/TextView;

.line 39

.line 40

invoke-virtual {p1}, Lorg/xbet/lucky_wheel/presentation/game/e;->c()I

.line 41

.line 42

.line 43

move-result p1

.line 44

invoke-virtual {p0, p1}, Lorg/xbet/lucky_wheel/presentation/views/LuckyWheelTimerView;


->a(I)Ljava/lang/String;

.line 45

.line 46

.line 47

move-result-object p1

.line 48
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

.line 49

.line 50

.line 51

return-void

.line 52

.line 53

.line 54

.line 55

.line 56

.line 57

.line 58

.line 59

.line 60

.line 61

.line 62

.line 63

.line 64

.line 65

.line 66

.line 67

.end method

You might also like