Questions tagged as 'textview'

2
answers

Find simple SQLite data

I want to return only two simple data in TextView using SQLite . I have a common "Products" table and another "Information" temporary table that I use SUM() to add the column of the first table. DBHelper : public Li...
asked by 15.07.2016 / 17:42
1
answer

How to turn text into image

In my application, I have a listView that displays the database information, I want when loading the listView the String of one of the TextViews is replaced by an image. According to the text presented, a different image will appear. Can you do...
asked by 23.10.2015 / 21:30
2
answers

Web link in TextView without url display, type "Click here"

The goal is to create a dialog with some links to websites. The following code already does this, but the URLs appear explicit (www ....) and I wish they were 'hidden' behind words like 'click here'. public void show() { PackageInfo ver...
asked by 14.03.2017 / 14:49
2
answers

Position text in TextViews and EditTexts with an image as background?

I've created a simple app that has only one TextView and one EditText : Asyoucanseechangedthebackgroundofboth,sofarnoproblem: TheproblemappearswhenIinserttext,asitispoorlypositionedinthelayoutofbothTextViewandEditText: Evenindifferentways...
asked by 10.02.2017 / 00:53
1
answer

Problem in making TextView display value updated

I'm doing a simple application, it's just a counter, with two buttons, "+" and "-", which consists of displaying an initial value of 0, and if I click on any of the buttons, the value displayed on the screen will be increased, or decremented, ac...
asked by 28.07.2017 / 05:18
2
answers

How to pass data from one fragment to another

Hello I received the following exercise: • Fragment 1 should have two text boxes where the user can enter two numbers to be added, and a button to trigger the addition • Fragment 2 must have a TextView in the center of the screen to dis...
asked by 19.04.2016 / 05:10
1
answer

How do I make a Button visible only after an animated TextView has been completely typed?

Protected void onCreate (Bundle savedInstanceState) from MainActivity I set the button so that it is invisible and also does not occupy space with the following code: button.setVisibility(View.GONE); MainActivity : package genes...
asked by 15.05.2017 / 21:01
1
answer

How to add content to a textview without having to copy what's already in it?

Galera is as follows. I would like to know how to add a paragraph or a single word to a textview that already contains content without necessarily copying what already has in it. I would like you to show me something that would suit any text....
asked by 14.01.2017 / 23:23
1
answer

How do I set margin in a TextView in java source code?

When I'm in xml , it only applies the property: android:margin="15" I want to apply this same property, but in the source code of java , how do I do this?     
asked by 24.04.2015 / 02:20
1
answer

How do I play a sound only while an animated TextView is playing?

The sound I am using is from a keyboard being keyboard and was taken from this video = > link Duration = > 2.577 seconds I added it to the RAW folder of the project in question and would like to know how to make it play and repe...
asked by 31.03.2017 / 01:57