Questions tagged as 'textview'

1
answer

How do I get information from items in a java listview and insert them into a textview android studio?

I'm learning to program, and I started a project where q shows information about Formula 1 teams, such as riders, age, nationality and titles of each. ClickingonanitemwilltakeyoutoanActivitycontainingtheinformationabouttheteambeingplayed. Iwoul...
asked by 24.01.2018 / 20:13
2
answers

Assigning values to the views of an AlertDialog

I created a custom layout for my AlertDialog with a TextView in it, and an image, but I can not put values in it. Does anyone know how to solve it? Follow the code: private void carregaAlert(){ View v = getLayoutInflater().inflate(R.lay...
asked by 14.10.2017 / 03:16
1
answer

Update TextView Android Using Handler

I started programming now on Android, and I need to update a TextView after receiving a string from a Socket connection. I get the string correctly because apk closes giving an exception:    10-01 11: 05: 57.470: E / AndroidRuntime (753): FAT...
asked by 02.10.2017 / 19:05
1
answer

Dynamic Total according to Android NumberPicker

I'm using NumberPicker so that the user selects the quantity. Each numberpicker has a total that already appears on the screen according to the amount selected by the user. Example: NumberPicker 1 = qnt 3 = $ 15.00 NumberPicker 2 = qnt 2 =...
asked by 05.08.2017 / 20:46
2
answers

How do I set a TextView with a DOUBLE variable?

I'm trying to set the variable txtMedia1 to the value of the variable media1 . I did this, but Android Studio indicates that I have to change txtMedia1 to double or media1 to TextView : package com.app.j...
asked by 24.01.2017 / 17:19
1
answer

When inserting data in EditText, does a TextView and another EditText begin to move?

At first everything is normal: SomethingreallyhappenswhenIinsertsomecontentinEditText: ATextViewandanEditTextbegintomovetotherightasIentercharacters,whichevertheyare,untiltheyareoffthescreen: Whatistheexplanationforthis?Howtosolve?Activity:...
asked by 02.02.2017 / 22:16
0
answers

Add TextView on nav_drawer's side menu

From a standard nav_drawer layout of Android Studio, how do I add information from a textview in the menu that opens on the side? I do not want them to be clickable, only when it opens, information can be found in the side menu. I'm progra...
asked by 26.11.2018 / 00:30
1
answer

how to pass an item from a listview to a textview in the same Activity

My question is about capturing information in a ListView on Android and pasting the same information into a TextView . Example: I created a ListView of fruits and I want you to click on a fruit from the list the name of...
asked by 30.11.2018 / 18:49
0
answers

generate one textView at a time

I have 5 textViews, one underneath the other, each one will set a different text, I hedge the text in a progressive way, using animPerWord. The problem is to generate a textView at a time, from 1 to 5, I do not want to generate the 5 at once, I...
asked by 20.10.2018 / 06:46
0
answers

How to get information coming via bluetooth?

Good morning, I'm trying to use the Android Bluetooth classes to, every 2 seconds, change the text of a TextView with the information coming via bluetooth. But I do not quite understand how they work, and I have not found many clear examples. Co...
asked by 07.09.2018 / 19:08