Hello
I am taking my first steps in Android and am starting with a very simple app which keeps track of progress through a knitting pattern and shows the instructions for the relevant row.
I want to update a couple of TextView objects programmatically. However, using getViewById() does not seem to identify them properly and the app cra...
The iPhone has the method adjustsFontSizeToFitWidth for the UILabel.
Is there a way to automatically adjust the width of the text to match the width TextView or Button in android?
...
Can we align our text line by line(I mean whatever the text we have selected that should be aligned instead of the whole text) in android text-view dynamically!!
Regards,
vani.
...
Is there any way that I can link a keyword in a TextView to a file or directory on the user's SD card? My app produces stack trace files when it crashes and I want the user to able to click a link in my About dialog to view either the latest one or the folder containing all of them. (Something like "If this app crashes, please send [link...
Is this possible to interchange a TextView and an EditText. Like display the text when needed, but allow editing when needed. Is there a method (as in NON-XML) way of editing a TextView or non-editing a EditText?
...
I find myself stuck in something I think would be really easy to solve. My app contains a lot of TextViews and ImageViews, and one TextView contains the content listed. I want each element of the displayed content internally linked to the respective TextView. Probably the TextView isn't the right element to use, but I have trouble findin...
I need to show a really huge amount of text data in my piece of code - first i tried to use TextBox (and of course it was too slow in rendering). Now i'm using FlowDocumentView - and its awesome but recently i have had another request - text shouldnt be hyphenated. Well actually it is not
(
document.IsHyphenationEnabled = false;...
I have a TextView with location data that I want to Linkify. When link will be clicked an Intent should be fired that will start Maps. How should I achieve this effect?
UPDATE:
I have something like "My street 9, My city". Now I want to have all this text to appear like a link and have intent fired with URI: geo:0,0?q=My+street+9,+My+c...
I working on a chat app.
Whenever I submit or receive a text message, I append them to the chatbox.
When the list get longer, I need to scroll down to see them.
How can I make it to autoscroll to the newly append text?
<ScrollView
android:id="@+id/scrollView01"
android:layout_width="fill_parent"
android:layout_height="100p...
Calling TextView.setTextSize is working abnormally. Right after the call to setTextSize if we get a getTextSize its returning a much higher value that what we set it to earlier.
Here's what we're doing:
zoomControl.setOnZoomInClickListener(new OnClickListener() {
public void onClick(View view) {
fl...
I'm attempting Google University Android lab1 you are asked to change a TextView's text content according to the value passed via the Intent from another activity.
I tried out the rest of my code but...
why does my app force close when I add the "tv.settext(...) line"?
public class HelloWorld extends Activity {
/** Called when the ...
I'm setting a textview as a child to a TableRow view programmatically and I cannot seem to get the text to wrap inside of the parent.
Here is the code which should be wrapping the text inside of the TableRow. Notice the setSingleLine is being set to false.
TextView value = new TextView(this);
![alt text][1]value.setLayo...
I have a TextView which I fill with text from a string resources in strings.xml. The string resource contains < li > elements to create a bullet list inside the TextView. My problem is that I want to control the indention of lines in the bullet list that span over more than one line. Default the text isn't indented past the bullet so it ...
I have an application that shows a textview occupying most of the screen. When the user clicks on a portion of the textview I want to find the closest character to where they clicked so I can show them information about that part of the text in detail. I have the OnTouchListener and I can get the x,y of the click but does anyone have a...
Hi,
I´m working with a lineal layout and I´m trying to change the text of a TextView but it doesn´t refresh. When I debug I´ve checked that the text have changed correctly.
Thanks
public class Position extends Activity {
Button botonempezar;
Button botonsalir;
TextView text;
@Override
public void onCreate(Bundle savedInstanceS...
Hi,
I am trying to display some ImageView and TextView in a TableLayout.
However, for the TextView (in the second column), it is partially hidden and does not go to the next line.
A screen capture is attached here.
<TableLayout android:id="@+id/RestTable"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
an...
I am trying to setText(string) on a TextView component and I am not seeing the text I set. The input String is larger than 4000 in length(). I find that if I reduce the text size, the text will display.
How can I setText(string) on a TextView with all of the input String visible without changing the text size of the TextView?
Do I ha...
My application include Text Viewer that grabs a file and shows it.
For some reason this file is trancuated on Samsung Epic. My questions are:
1. Why is happening only on the Epic.
2. Is there an Emulator to test on Epic (since I can't reproduce this on the 2.1 or 2.2 emulator)
Ohad
...
Hi stackies,
I'm filling programmatically a LinearLayout with some TextViews using the addView() method.
Is it even possible to let a LinearLayout scroll? Is there a widget that I could use instead? I tried quite a few but nothing worked.
I found a few websites that recommended to use a TextView to create a scrolling area, but a Text...
I am in the process of trying to convert a desktop app to Android - and am struggling with some very basic stuff.
When I specify a layout including a textview that holds a sizable amount of text wrap_content seems to arbitrarily break in the middle of a word - and I can not find any documentation indicating this can be controlled.
...