Questions tagged as 'textview'

1
answer

How to display an integer variable in a textView and add +1 to it every time I click on a button in the same activity?

I would like the textView to display the value of the variable I created in MainActivity "int numero = 0". package genesysgeneration.a10; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.Button;...
asked by 02.01.2017 / 23:08
0
answers

The getSelectionStart (TextView) method returns incorrect value

I need to retrieve a user-selected string in a TextView, but the method getSelectionStart returns the same value as getSelectionEnd. Here's an example in the image below: I performed the test on a Samsung Galaxy S7 Edge and an Asus...
asked by 06.10.2016 / 19:55
0
answers

Problem in a class of "self-shrinking"

I asked how to implement this class # full screen startingtyping Asyoucansee,itisdecreasing,butwhatyouaretypingdoesnotappear,butitisthere.followscodefromthe"autocollapse" class link ** * DO WHAT YOU WANT TO PUBLIC...
asked by 16.06.2015 / 15:47
1
answer

How to keep TextView centralized in the emulator?

I am a beginner in development and have learned how to develop for Android with Android Studio 3.1.1. In one of the exercises I'm doing, it is necessary to retrieve which checkbox was checked and display in a textView, in the interface I center...
asked by 26.04.2018 / 15:19
1
answer

Format Variable Int in currency R $ in Android

I use the Maskformatter lib to format Edittext fields. But now I'm getting a value from an int variable and I wanted to format it in the R $ currency value. Example: In the variable containing 1000 Format: 10.00 Using the lib I can not bec...
asked by 26.07.2017 / 16:49