Questions tagged [settext]

The concept of assigning text to a UI element

The concept of assigning text to a UI element.

Does not specifically refer to a programming language-specific or library-specific API but the general concept.

793 questions
0
votes
3 answers

I can't setText() in another class in android

I have a TextView with the id android:id="@+id/yazi", and I have a button that has build in android:OnClick="gonderB" and I can complie this code: package com.seri.bir; import android.app.Activity; import android.os.Bundle; import…
natrollus
  • 321
  • 1
  • 4
  • 11
0
votes
5 answers

Error setting text to a textView from strings.xml via java code

I just want to set a text in a textView from strings.xml using java code but I just can't, eclipse gives me this error: "textView1 cannot be resolved" and "textView2 cannot be resolved". Here is mi activity: package com.example.activity; import…
Jacobo
  • 87
  • 1
  • 1
  • 13
0
votes
2 answers

Can't setText of a TextView using a String with data from db

I have a TextView and a String randomWord. When the app starts I open my db and call a method db.open() which opens it and then the db.randomize() which calls the randomize() method and queries the db for random entry and returns it as a String.…
Emanuel Olsson
  • 183
  • 3
  • 16
0
votes
1 answer

Custom CursorAdapter setText() not updating android

I'm developing an app for android with a ListView using a custom CursorAdapter to retrieve data from a SQLite database. The (cut-down) code for the adapter is supplied below, the problem is that in the onClick() method the…
Will Andrew
  • 693
  • 1
  • 10
  • 29
0
votes
1 answer

Android .setText(TypeValue, float) not working

this is how im implementing it topBar.setTextSize(TypedValue.COMPLEX_UNIT_DIP, R.dimen.sTextSize); this is the dimension 30.0 the text size comes out to be very very very small, whats going…
user1459976
  • 207
  • 6
  • 14
0
votes
2 answers

ViewPager: SetText of inflated view

I'm trying to set the text of a TextView in a layout using ViewPager. This is the code I have: setContentView(R.layout.main); MyPagerAdapter adapter = new MyPagerAdapter(); ViewPager myPager = (ViewPager) findViewById(R.id.Panel); …
mgalal
  • 427
  • 12
  • 24
0
votes
1 answer

set text string in template link button "eval"

I need to set the Text in a gridview column to something other than what shows up in gridview with this code: Of course…
user1589714
  • 1
  • 1
  • 2
0
votes
1 answer

Android: Array of dynamically generated ImageButtons only returns info from last one created when clicked

I have an activity that generates and displays a GridLayout of custom ImageButtons called MapCells (It's a game map, surprise.) The MapCells are randomly generated and contain some variables that relate to terrain type as well as looking different…
0
votes
2 answers

[UIImageView setText:]: unrecognized selector sent to instance

I'm sorry if it has already been asked, but here comes the problem: I get this message when I scroll fast the tableView : Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView setText:]: unrecognized selector…
Abdessamad
  • 57
  • 1
  • 9
0
votes
1 answer

Is it possible to use an NSMutableString inside a UITextField to optimize the setting of text?

The use of Instruments Time Profiler has revealed that the setting of UITextField's text property is very expensive in my app and so I would like to somehow optimise this. I thought it possible that mutating the existing text/NSString would be…
Barjavel
  • 1,626
  • 3
  • 19
  • 31
0
votes
2 answers

android change setText

I'm developing an android application.. I want to set a text in an editText based on the user's entered keys from softkeyboard. How can I change the text content before it is set in the EditText in android application???
Noha Nhe
  • 235
  • 1
  • 3
  • 14
0
votes
1 answer

Lower text in a QMessagebox

I have a QMessagebox with a custom background image. Since there is some stuff on the top side of the background image I want to see, the text of the messagebox should be lowered. Does anybody know how I can do this? I already tried throwing in some…
Frank
  • 2,446
  • 7
  • 33
  • 67
0
votes
3 answers

Android: setText onItemClick NPE

I don't get why I am getting a NPE while setting a text view string. I use these all over but why a NPE on this onItemClick() method?? Thnx for your help. public void onItemClick(AdapterView parent, View view, int position, long id) { . .…
user742030
0
votes
1 answer

Args Bundle Not Passing to Android TextView

I have a Bundle in a fragment that passes a string to another fragment. This string needs to set text in a text view and my method isn't working. I'm not sure why but all my other strings pass thru. Please take a look at my code and let me know…
user742030
0
votes
4 answers

Conditions on a editText

I'm a bit struggling with some editText :S I'd like to check with some conditions if the user has filled a field or not : my code just doesn't seem to work. The code : ... input.setText("rrr"); input2.setText("rrr"); …
Karly
  • 389
  • 2
  • 7
  • 25