Most voted "textview" questions
Textview is used to display text to the user, as well as Swing Jlabel.
Learn more…68 questions
Sort by count of
-
6
votes1
answer933
viewsHorizontal scrollview of a Textview automatically slide when inserting dynamic texts
I have a layout simple according to the shown below that it has a ScrollView horizontal when exceeding the limit of TextView. But I would like when inserting text the focus of TextView was always at…
-
5
votes1
answer281
viewsText gradient android
It is possible to create a gradient in the text (and not in the background) of a textView using only XML? I know using Shader it is possible to do with code(here) It is possible to do this using…
-
4
votes2
answers322
viewsSearch simple data Sqlite
I want to return only two simple data in TextView using SQLite. I have a common "Products" table and another temporary table "Information" I use SUM() to add the column of the first table. Dbhelper:…
-
4
votes1
answer2307
viewsHow to format text in a Textview?
I want to add a formatted text (can be in html) on my Textview screen but I’m not getting it. I have string in values: <string name="lbl_explicacao"> <![CDATA[ <b> TESTE </b>…
-
4
votes3
answers1946
viewsAnimate the text of a textView in order to be displayed progressively?
I would like the text of the textView present in my Activity not to be displayed all at once, but gradually, something like a Power Point transition. An example of what I want to do exactly would be…
-
3
votes1
answer298
viewsHow to set SELECT values in Textview?
I have the following class for bank appointments: package com.example.tais.books.Dados; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase;…
-
2
votes1
answer44
viewsCorrectly exchange text using Textswitcher
I need to use a component TextSwitcher with the intention that when the user moves this TextSwitcher to the right as well as to the left the text of the same. For this I created a variable of type…
-
2
votes1
answer118
viewsInsert marginRight in a Textview from Java code
I made the following code to insert Textviews in a Linearlayout already defined. public void inserirLacunas(){ LinearLayout ll = (LinearLayout) findViewById(R.id.layoutLetras); for(int i = 0; i <…
-
2
votes1
answer115
viewsHow to turn text into an 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 Textview to be replaced by an image. According to the displayed…
-
2
votes1
answer1405
viewsI wonder if it is possible to have a phone mask in a text View
I would like to know how to have a phone mask in a text View field. In my case I have a listview with contacts where in each line of this listview appears the name of the contact and the phone. I’d…
-
2
votes2
answers1710
viewsTextview with scratched letter
how can I get this result ̶W̶a̶l̶l̶a̶c̶e̶ ̶R̶o̶b̶e̶r̶t̶o̶c̶ like this in the name of the first list below... the one on the list is crossed out because I did it on the server side.. the intention…
-
2
votes1
answer361
viewsHow to display a parse string in a Textview?
I’m trying to add an image with a description on the server parse. I’ve already been able to add the image description by objectId, but the problem is that I don’t know how to display the text of…
-
2
votes0
answers23
viewsTextview does not show all the long text, no automatic line break
Textview name does not show all text, name text is dynamic, I’ve tried to leave it with multiple lines but it didn’t work. <?xml version="1.0" encoding="utf-8"?>…
-
1
votes1
answer891
viewsHow to set margin in a Textview in java source code?
When I’m in the xml, only applies the property: android:margin="15" I want to make the application of this same property, only, in the source code of the java, how do I do that?…
-
1
votes1
answer415
viewsInserting Textview into a Listview
I have a problem. I need to insert a textview inside a listview. Follows the basic method class MyKickAssAdapter extends BaseAdapter { LayoutInflater mInflater = LayoutInflater.from(getContext());…
-
1
votes2
answers87
viewsHow to make Textview track writing
I need Textview to follow when I write because if this does not happen I end up writing under keyboard, I already gave an up in textview but it is very big and will end up being down anyway. how do…
-
1
votes1
answer69
viewsreceive the size of a folder in textview
I’m an Android development intern, as a challenge I need to create an App to receive/discover the size of the folder/ directory of images Whatsapp... I researched and I couldn’t find anything, I saw…
-
1
votes0
answers303
viewsAutocompletetextview display items that have accent when typed without accent
I own a AutoCompleteTextView, defined as your Adapter I have a list that receives the name of cities as, for example, São Paulo, but if I inform you in the field the value Sao Paulo, without the…
-
1
votes2
answers684
viewsHow to pass data from one fragment to another
Hello! I received the following exercise: • Fragment 1 must have two text boxes where the user can enter two numbers that will be added, and a button to trigger the addition • Fragment 2 must have a…
-
1
votes1
answer78
viewsSet the initial time of a Chonometer with the text of a textView
Hello, I wonder if it is possible to define the initial value of a chonometer based on a textView. texView who would like to set the beginning of Chronometer in blue highlight. This textView…
-
1
votes1
answer73
viewsMany logs with the message "setTypeface with style : 0"
I’m making a app in the android studio, and after spending a few activities the screen becomes black and the last record of the log cat is this message. I’ve looked at the other questions about it…
-
1
votes1
answer27
viewsHow to change to property android:fontFamily="casual" in a textView dynamically?
I would like to know how to change the font to casual in my textView through java code. TextView text1 = findViewById(R.id.myTextView); I want to change the font from text1 to casual…
-
1
votes1
answer556
viewsHow to add content to a textview without having to copy what’s already in it?
Guys, here’s the deal. 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 it already has in it. I’d like you to…
-
1
votes2
answers1303
viewsPosition text in Textviews and Edittexts with an image as background?
I created a simple app that has only one Textview and a Edittext: As you can see changed the background of both, so far no problem: The problem appears when I insert texts, because they are poorly…
-
1
votes1
answer782
viewsHow, using java, to bold certain parts of a Textview?
I would like to know how to make a certain part of a text that will be displayed in a TEXTVIEW bold: I would like the text displayed to look like this: Total value => R$ 1100. Activity: package…
-
1
votes2
answers108
viewsWeb link in Textview without showing url, type "Click here"
The goal is to create a dialog with some links to websites. The following code already does this, but the URL appear explicitly (www....) and I would like it to be 'hidden' behind words like 'click…
-
1
votes1
answer531
viewsHow to create a textView by code in a specific Activity location?
I wonder how to choose the place where the textView created by code will appear, because by default it is created at the top left of the Activity. Activity: package genesysgeneration.classsound;…
-
1
votes1
answer70
viewsHow to play a sound only while an animated Textview is playing?
The sound I’m using is from a keyboard being keyboard and was taken from this video => https://www.youtube.com/watch?v=pcNlc0zTMuU Duration => 2,577 seconds I added it to the RAW folder of the…
-
1
votes1
answer27
viewsHow I customize these Edittext that will be generated (backcground, Textcolor, fontsize, etc.)
Does anyone know how I customize these edittext that will be generated (backcground, Textcolor, fontsize, etc.) public class Main2Activity extends AppCompatActivity { private LinearLayout layout;…
-
1
votes1
answer197
viewsHow do you make a Button visible only after an animated Textview has been fully written?
In the protected void onCreate(Bundle savedInstanceState) of Mainactivity eu I serve the button so that it is invisible and also so that it does not occupy space with the following code:…
-
1
votes1
answer1267
viewsProblem in making Textview display updated value
I’m making a simple application, it’s just a counter, with two buttons, "+"e"-", which consists of displaying an initial value of 0, and if I click any of the buttons, the value displayed on the…
-
1
votes2
answers66
viewsWhy does my "Textappearence" and my "Textcolor" not work on some Android devices?
I am developing an app and obviously it contains many textViews. I noticed that when installing my app on some devices, more specifically on MOTO G2, I noticed that my textViews get weird and does…
-
0
votes1
answer630
viewsAdd a button inside a Textview
I have a text at the end of the text I want to put a button see more, it has like a hyperlink or have to create a button right next to the Textview ?…
-
0
votes0
answers44
viewsProblem in a "self shrinking" class
I asked a question of how to implement this class "self-sealing" but I have this problem when it will start to decrease the text , it is as it truncated the text, then you will be typing it will…
-
0
votes1
answer4002
viewsTextview allowing only numbers
I want my TextView only accepted as input numbers, but the line android:numeric="decimal" does not effect, it still allows me to type letters.
-
0
votes1
answer673
views -
0
votes2
answers154
viewsHow to turn a system out to string?
I want to display a message on the device screen. The message is in System.out.println("Mensagem "); how do I turn into a string and print on screen using a textView?…
-
0
votes1
answer821
viewsWhen entering data into Edittext, do one Textview and one Edittext start moving?
At first everything is normal: Something really strange happens when I insert some content in Edittext: A Textview and an Edittext start to move to the right, as I insert characters, whatever they…
-
0
votes0
answers31
viewsError in compiling my file . tex
The error gives me indication of some problem in the file subcaption.sty, resulting in the following error: ! Undefined control Quence. l.64 \caption@AtBeginDocument {% The control Sequence at the…
-
0
votes2
answers117
viewsSave phrase in Textview when closing the app
I have many phrases that will be displayed in a Textview, while I’m clicking on the button will appear new phrases, I wonder if the phrase that is in the Indice 0, when you click it goes to Indice…
-
0
votes0
answers39
viewsThe getSelectionStart(Textview) method returns incorrect value
I need to recover a user-selected string in a Textview, but the method getSelectionStart returns the same value as getSelectionEnd. Here is an example in the image below: I performed the test on a…
-
0
votes1
answer103
viewsVárias Textview
I was wondering if there’s any way I can add a Textview to a layout in java. type I have an xml that has a Textview and in class Activity I use setContentView() to link the two, but I wanted to put…
-
0
votes2
answers39
viewshow to pass an item from a listview to a textview in the same Activity
My question is regarding the capture of information in a ListView on Android and paste the same information into a TextView. Example: I created a ListView fruit and I want to click on a fruit from…
-
0
votes1
answer2642
viewsHow to display an entire variable in a textView and add +1 to it each time I click on a button present in the same Activity?
I would like 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…
-
0
votes1
answer174
viewsHow to assign values to variables through Checkboxes and from there create specific Textviews in another Activity
Guys, I would like to assign values to a variable according to the selection of a particular Checkbox in my project. In an example. If the first checkbox was selected, the following variable would…
-
0
votes0
answers8
viewsScrollview - Scroll codeTo not working properly
Well, according to the title, I’m having trouble solving a problem in my code, the line to textView that Scrollview brings through scrollTo code. When I press the button he does not show me the line…
-
0
votes2
answers4385
viewsHow to set a Textview with a DOUBLE variable?
I’m trying to set the variable txtMedia1 with the value of the variable media1. I did so, but the Android Studio indicates that I have to change txtMedia1 to double or media1 for TextView: package…
-
0
votes1
answer514
viewsI can’t get a Textview to display the content in an Edittext!
I created an app where in its layout contains a Edittext and a Textview. The initial content of Textview is: "nameless". I would like the content of Textview was changed when I inserted something…
-
0
votes2
answers877
viewsTextview is not displaying decimal numbers of a long type variable!
I created 3 Textviews and 2 variables of the type long. 2 of the Textviews will display the two long variables separately, while the last one displays the result of a split of the first (N01) long…
-
0
votes1
answer143
viewsError using Long.parseLong to capture Edittext value for a LONG variable
I created an app that contains only one Activity. In this app there are 3 Edittexts and 1 Textview. I created 3 variables of the type long (l01, l02 e l03) to receive the value of the 3 Edittexts.…