Android

Android


3.BOTONES

Página 36 de 286

o

r

e

a

l

i

z

a

p

e

r

f

e

c

t

a

m

e

n

t

e

l

a

s

o

p

e

r

a

c

i

o

n

e

s

i

n

d

i

c

a

d

a

s

.

 

 

 

 

p

u

b

l

i

c

c

l

a

s

s

C

a

l

c

u

l

a

d

o

r

a

e

x

t

e

n

d

s

A

c

t

i

v

i

t

y

i

m

p

l

e

m

e

n

t

s

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

O

n

C

l

i

c

k

L

i

s

t

e

n

e

r

{

 

T

e

x

t

V

i

e

w

m

y

T

e

x

t

V

i

e

w

,

m

y

T

e

x

t

V

i

e

w

2

;

 

 

@

O

v

e

r

r

i

d

e

 

 

p

u

b

l

i

c

v

o

i

d

o

n

C

r

e

a

t

e

(

B

u

n

d

l

e

s

a

v

e

d

I

n

s

t

a

n

c

e

S

t

a

t

e

)

{

 

 

 

 

 

 

s

u

p

e

r

.

o

n

C

r

e

a

t

e

(

s

a

v

e

d

I

n

s

t

a

n

c

e

S

t

a

t

e

)

;

 

 

 

 

 

 

s

e

t

C

o

n

t

e

n

t

V

i

e

w

(

R

.

l

a

y

o

u

t

.

m

a

i

n

)

;

 

 

 

 

 

 

V

i

e

w

v

1

=

f

i

n

d

V

i

e

w

B

y

I

d

(

R

.

i

d

.

m

y

T

e

x

t

V

i

e

w

)

;

 

 

 

 

 

 

m

y

T

e

x

t

V

i

e

w

=

(

T

e

x

t

V

i

e

w

)

v

1

;

 

 

 

 

 

 

m

y

T

e

x

t

V

i

e

w

.

s

e

t

T

e

x

t

(

"

"

)

;

 

 

 

 

 

 

V

i

e

w

v

2

=

f

i

n

d

V

i

e

w

B

y

I

d

(

R

.

i

d

.

m

y

T

e

x

t

V

i

e

w

2

)

;

 

 

 

 

 

 

m

y

T

e

x

t

V

i

e

w

2

=

(

T

e

x

t

V

i

e

w

)

v

2

;

 

 

 

 

 

 

m

y

T

e

x

t

V

i

e

w

2

.

s

e

t

T

e

x

t

(

"

"

)

;

 

 

 

 

 

 

V

i

e

w

b

o

t

o

n

1

=

f

i

n

d

V

i

e

w

B

y

I

d

(

R

.

i

d

.

b

u

t

t

o

n

1

)

;

 

 

 

 

 

 

b

o

t

o

n

1

.

s

e

t

O

n

C

l

i

c

k

L

i

s

t

e

n

e

r

(

t

h

i

s

)

;

 

 

 

 

 

 

V

i

e

w

b

o

t

o

n

2

=

f

i

n

d

V

i

e

w

B

y

I

d

(

R

.

i

d

.

b

u

t

t

o

n

2

)

;

 

 

 

 

 

 

b

o

t

o

n

2

.

s

e

t

O

n

C

l

i

c

k

L

i

s

t

e

n

e

r

(

t

h

i

s

)

;

 

 

 

 

 

 

V

i

e

w

b

o

t

o

n

3

=

f

i

n

d

V

i

e

w

B

y

I

d

(

R

.

i

d

.

b

u

t

t

o

n

3

)

;

 

 

 

 

 

 

b

o

t

o

n

3

.

s

e

t

O

n

C

l

i

c

k

L

i

s

t

e

n

e

r

(

t

h

i

s

)

;

 

 

 

 

 

 

V

i

e

w

b

o

t

o

n

4

=

f

i

n

d

V

i

e

w

B

y

I

d

(

R

.

i

d

.

b

u

t

t

o

n

4

)

;

 

 

 

 

 

 

b

o

t

o

n

4

.

s

e

t

O

n

C

l

i

c

k

L

i

s

t

e

n

e

r

(

t

h

i

s

)

;

 

 

 

 

 

 

V

i

e

w

b

o

t

o

n

5

=

f

i

n

d

V

i

e

w

B

y

I

d

(

R

.

i

d

.

b

u

t

t

o

n

5

)

;

 

 

 

 

 

 

b

o

t

o

n

5

.

s

e

t

O

n

C

l

i

c

k

L

i

s

t

e

n

e

r

(

t

h

i

s

)

;

 

 

 

 

 

 

V

i

e

w

b

o

t

o

n

6

=

f

i

n

d

V

i

e

w

B

y

I

d

(

R

.

i

d

.

b

u

t

t

o

n

6

)

;

 

 

 

 

 

 

b

o

t

o

n

6

.

s

e

t

O

n

C

l

i

c

k

L

i

s

t

e

n

e

r

(

t

h

i

s

)

;

 

 

 

 

 

 

V

i

e

w

b

o

t

o

n

7

Ir a la siguiente página

Report Page