settext Questions

3

Solved

How do I setText to a Material Design TextInputLayout (Material Design) in Android Studio? //setValue BarCode.setText(MainPage.ResultCode.getText()); TextInputLayout BarCode; @Override prote...
Alameda asked 4/5, 2020 at 13:34

8

I am having trouble with setting text in a text view with format and multiple values. holder.car.setText(R.string.mycar + lm.getCarName() + R.string.year + lm.getYear()); this is giving me " 214...
Handy asked 18/7, 2012 at 7:28

11

I have a problem, I want to click on the list, calling a new activity and rename the button to another name. I tried several things, nothing worked, can someone please help me? My class EditarTimes...
Beard asked 8/11, 2015 at 18:13

3

Solved

This is my ListActivity after clicking on the list it will start a new activity which shows Full detail of each attraction place. I have no idea how to implement Full detail page. Can you guys show...

5

Solved

I have a section of code where I want to change the text showing in a textView when the user selects an EditText box. The problem I am having is that the textView only changes when I double click ...
Lomond asked 21/11, 2012 at 15:7

5

Solved

I'm having a problem that I've never had before in almost three years of developing with Android... I want to take a picture and after the picture is taked, the EditTexts of the activity become cl...
Bookkeeper asked 14/11, 2012 at 21:6

1

Solved

I tried the following code for concatenation of 'number'(integer variable) and '$'(string) but I got a warning from android studio: "Do not concatenate text displayed with setText. Use resource str...
Gastight asked 7/6, 2020 at 13:8

4

Solved

I'm trying to clear the JTextArea. Currently, I'm using jtextarea.setText(null); What is the difference if I use jtextarea.setText("");
Bet asked 3/4, 2013 at 21:32

7

Solved

How can I change the text of an Android Button widget within code and not the XML file?
Bromine asked 3/10, 2010 at 20:37

2

Solved

I want to display the connected ssid and ip address when the activity starts. It contais an image view (for title, because i'm not using the action bar) and 4 text view (ssid label, ssid value, ipa...
Emeliaemelin asked 14/10, 2014 at 16:55

3

Solved

I'm trying to set the text of a button to "<<<" from my xml but I get an "Error:(20) Error parsing XML: not well-formed (invalid token)" <Button android:id="@+id/test" android:text=...
Recaption asked 17/5, 2018 at 17:26

5

Solved

I'm curious about the difference setText() and append() are creating. I'm writing a very basic editor with line numbers. I have a TextView to hold line numbers on the left, paired with an EditText ...
Bessiebessy asked 14/10, 2013 at 5:30

4

Solved

Trying to get started with Android development, and doing some basic work with TextViews.. For some reason TextView's setText() method is causing huge problems for me.. here's a simplified version...
Odont asked 8/8, 2013 at 20:1

1

Solved

I need an official list of supported HTML tags on Android TextView. I'm using textView.setText(Html.fromHtml(label)); but I don't know which tags are supported.
Amaty asked 7/6, 2017 at 10:54

4

Solved

How to dynamically change the content of a TextView from another part of the screen? I have a TabActivity class that draws a RelativeLayout that contains a TextView followed by a with several tabs...
Savory asked 7/7, 2011 at 3:48

2

I am a newbie in android development, I want to provide a number to setText, I am facing this problem and tried many ways to solve it. Code is: public class GameActivity extends Activity implements...
Anneal asked 31/1, 2016 at 12:4

5

Solved

Maybe this is a silly question, but I cannot guess how to solve it if it's not creating a method. Maybe there's a "natural way" to do it, like in C for example. Here's the problem: I have a ...
Olympic asked 9/11, 2011 at 12:35

1

Solved

Qt5's documentation doesn't mention that QPlainTextEdit has setText(QString) like QTextEdit does. But, I don't think it's impossible. The only way I found is to use QTextDocument which can has setP...
Pavior asked 23/5, 2015 at 4:49

2

why is that? while (flag) { outCPU.setText(getCpuInfo()); } getCpuInfo returns string, if I try to write this method's return out into a log, there is everything that should be, but nothing happ...
Kunz asked 8/5, 2015 at 16:29

2

Solved

I am setting text in TextView from string resource. Normally, Hebrew works in Right-To-Left format. When I set a text, it sets the text Right-To-Left format in LG, Samsung, Sony Phone but in HTC it...
Nady asked 10/6, 2011 at 5:11

3

Solved

Following iOS 8 code is called every second: - (void)appendString(NSString *)newString toTextView:(UITextView *)textView { textView.scrollEnabled = NO; textView.text = [NSString stringWithFormat...
Pilotage asked 25/9, 2014 at 11:58

6

Solved

I'm trying to set the text of a UIButton on a new view when a "Next" button is pressed from a previous view. I have set the IBOutlet correctly and I've looked all over for answers to this but it ju...
Uranometry asked 2/11, 2011 at 19:17

1

Solved

In My app I'm using AutoCompleteTextView. When the user select a result item, one of the option is inserting the selected text into the AutoCompleteTextView. After inserting text, the cursor return...
Geehan asked 21/5, 2014 at 7:32

5

Solved

Hi and thank you for looking at my question. I am an intermediate programmer in C but an Android newbie. I have been trying to get a chat programming working. Assuming everything else in the code b...
Emblazonment asked 23/2, 2011 at 21:18

1

Solved

I try to display the text and image in Html.fromHtml() but it is doesn't work in image display. message = (TextView) findViewById (R.id.message); message.setText(Html.fromHtml( "<p>...
Canalize asked 6/5, 2013 at 10:10

© 2022 - 2024 — McMap. All rights reserved.