[android-developers] TextView getting cut in some resolutions

2017-02-01 Thread Amitai Rosenberg
I have a RecyclerView which consists of CardViews that have a TextView and an ImageView, among some other layouts. The problem is, in some screen resolutions the TextView gets cut off or shoved to the next line, which I don't want. In other resolutions, the TextView has plenty of room. Small

[android-developers] TextView within ListView not visible (but still clickable) since upgrading to Android M.

2016-11-21 Thread James McKie
Came across a peculiar bug since upgrading my app to Android M. I have a drawer layout which has a list view that is visible when the user swipes. However, the TextViews that get rendered inside the ListView are not visible on devices running Android M. Has anyone else faced this problem. If so

[android-developers] Textview not scrolling marquee in lollipop version and above

2016-07-13 Thread thepooja93
-1down votefavorite Textview text marquee are scolling in pre lolliop versions but not support for lollipop and after that..please help me . following are code for xml and added code in java

[android-developers] TextView only updates the first time from callback method

2014-04-12 Thread Dustin LaRoche
I have written a Weather class that gets weather information from an online API. The Weather class uses a callback so when weather information gets returned from the API the calling Activity will be notified of available weather data. This all works great the first time. Then after closing the

Re: [android-developers] TextView maxLines based on height

2014-02-17 Thread Ankur Avlani
Hi, I guess now i have understood my issue and can explain it much better and clearly. I am loading all my view dynamically in a Horizontal ViewGroup. Inside one view there a collection of pictures along with text and the bottom. I have the width and height of the view fixed (When creating a vi

Re: [android-developers] TextView maxLines based on height

2014-02-15 Thread Ralph Bergmann | the4thFloor.eu
Am 13.02.14 03:54, schrieb Ankur Avlani: > Can someone please suggest me some faster was to achieve my requirement. try this one: /** * Calculates the lines needed to show the text. * * @param paint * the TextPaint from the TextView * @param text * the text for the calcu

[android-developers] TextView maxLines based on height

2014-02-12 Thread Ankur Avlani
Hi All, I am designing an native custom article view in android. My requirement is such that I have a "long" text which i need to break into pages. I can find out the total height of my TextView, how do i calculate the max visible lines for the view based on the height? I know Paint.breakText w

[android-developers] TextView vs Button

2013-02-25 Thread Seshu
Hi All, I have one textview and one button. i know the purpose of both views but if i used background image and displayed text on both then both r looking same only. Is there any particular point which differentiate them. Thanks for all, Thanks and Regards, S.Seshu -- -- You received this

[android-developers] textview and autolink=web question

2012-11-25 Thread Mike Adams
I have a textview set up with the following xml: I initially didn't think android:autoLink="web" worked because i was writing http links to the console and they were not linked. But i noticed the other day if i backed out of the program and opened another app then came back to this program, the

[android-developers] TextView textSize unknown during Constrcutor (Jellybean)?

2012-07-15 Thread Piren
Hi I've noticed Jellybean is having a different behavior when it comes to creating TextViews. I have a class that extends Widget.TextView, up until API 16 the textSize was already known after you initialize your class using TextView's constructors (at least on APIs 7-15) Why is this no longer

Re: [android-developers] TextView ellipsize marquee on Ice Cream Sandwich

2012-05-03 Thread Kostya Vasilyev
On my Galaxy Nexus, now with 4.0.4, I see the fading edges in my app. This is in an activity, not an app widget, but I'm not doing anything special to enable them (I wouldn't have noticed on my own). On the home screen, app shortcuts with long names have one dot at the end (not three) and are cli

Re: [android-developers] Textview gravity resets

2012-03-31 Thread Narendra Singh Rathore
On Sat, Mar 31, 2012 at 4:24 AM, adev wrote: > > How can I avoid this in xml > Why don't you try to do this in your activity/java file (dynamically)? I think that will solve your problem. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Textview gravity resets

2012-03-30 Thread adev
My layout is as follows I have a table of textviews in a linear layout. that is in a realative layout above an adview. Relative layout -linear layout --tablelayout ---tablerow textview . AdView All the textviews have gravity set to "right|centervertical" When it first loads, it looks f

Re: [android-developers] TextView,Button and List view in the same screen

2012-03-08 Thread Justin Anderson
Try this: http://catb.org/esr/faqs/smart-questions.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Mar 5, 2012 at 10:14 PM, Rakesh Boyapally < boyapally.rak...@gmail.com> wrote: > I want Textview , List view and Button on the same screen.I'm u

[android-developers] TextView,Button and List view in the same screen

2012-03-08 Thread Rakesh Boyapally
I want Textview , List view and Button on the same screen.I'm using customer list view adapter ... please help me ASAP !! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.c

Re: [android-developers] TextView: How to make non-breaking string?

2012-02-15 Thread Kostya Vasilyev
Have you tried using non-breaking space? On 02/16/2012 12:11 AM, Karim Varela wrote: Is there a way to designate a substring within a string as non breakable? i.e. to designate a part of a string that won't word wrap, but the entire substring would be displayed on the next line? -- You receiv

[android-developers] TextView: How to make non-breaking string?

2012-02-15 Thread Karim Varela
Is there a way to designate a substring within a string as non breakable? i.e. to designate a part of a string that won't word wrap, but the entire substring would be displayed on the next line? -- You received this message because you are subscribed to the Google Groups "Android Developers" grou

[android-developers] TextView scroll in an activity.

2012-02-07 Thread Put_tiMe
I have a main activity. Based on a button press, I have to launch a 'new' activity. This 'new' activity has just one UI item, i.e a TextView. I've added properties which will indicate that it is scrollable: * android:scrollbars*

[android-developers] TextView ellipsize marquee on Ice Cream Sandwich

2011-12-20 Thread YuviDroid
Hey there, I found something strange about ellipsize="marquee" on my Galaxy Nexus...or better...it doesn't work. Instead of seeing nice fading edges at the end of the word (when the word doesn't fit the view of course), you get the normal dots ("..."). After some digging through the ICS source cod

[android-developers] TextView with an element inserted just at the and of the text

2011-11-11 Thread Damian Skrodzki
I need a multiline text that allows me to insert a small element just after the last word of my text, so I could draw on that element. All text should be selectable, and it would be great if I could insert some other elements inside this text, but it's not essential for now. I tried to: 1. Sepa

Re: [android-developers] TextView and white-space

2011-11-11 Thread Kostya Vasilyev
Subclass EditTextPreference, override persistString and do your trimming there. 11.11.2011 14:17, dashman пишет: Is there an xml setting for TextView - to auto-trim white-space. I intercept the onPreferenceChange() callback - but in that call you can't call trim() on the string and save it - j

[android-developers] TextView and white-space

2011-11-11 Thread dashman
Is there an xml setting for TextView - to auto-trim white-space. I intercept the onPreferenceChange() callback - but in that call you can't call trim() on the string and save it - just return true or false. So right now, if there's a white-space, i just toast an error message and return false. i

Re: [android-developers] TextView -- text transformation

2011-10-31 Thread TreKing
On Mon, Oct 31, 2011 at 9:37 PM, Zsolt Vasvari wrote: > What I want to do is have an EditText (or TextView) where I want to do a > text replacement for display purposes only. > > Any ideas? > Off the cuff, I'd say Map, original string being first, display string being second. --

[android-developers] TextView -- text transformation

2011-10-31 Thread Zsolt Vasvari
I could probably figure this out on my own eventually, but there are so many classes involved, I am just going to ask first: What I want to do is have an EditText (or TextView) where I want to do a text replacement for display purposes only. For example, let's say that the actual text is: "Text1

[android-developers] textView Clears on Rotation

2011-10-07 Thread King Salamon
Please can anyone give me a full coding example for getting data to persist after the device is rotated. All of my textView fields go back to zero when the device is rotated. I understand that the activity is destroyed and then recreated due to configuration change, and I think that using onSav

Re: [android-developers] Textview from thread

2011-09-12 Thread HideCheck
You need to use the Handler. http://developer.android.com/reference/android/os/Handler.html Handler handler = new Handler(); ex) public void run() { handler.post(new Runnable() { public void run() { textvi

[android-developers] Textview from thread

2011-09-10 Thread Kristoffer
Hello. I have been searching for answer how to update a textview from another thread, i have found several answer that point to using "Handler" but i dont know how i should implement that in my code, maybe you could point it out for me. Iam checking if the user is logged in or not to Twitter, her

[android-developers] TextView overlaps Imageview

2011-08-13 Thread Goutom
Hi All In my xml layout TextView overlaps ImageView.I need to prevent it. - http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="fill_parent" androi

[android-developers] TextView

2011-08-13 Thread rich friedel
Also this is the second post (i've seen) where you say LogCat shows "nothing"... if that is truly the case then you need to fix that! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@g

[android-developers] TextView

2011-08-13 Thread rich friedel
what is 'orgname'? Is it a string? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googleg

[android-developers] TextView

2011-08-13 Thread Goutom
Hi I have a TextView. TextView navi_org_name; navi_org_name = (TextView) findViewById(R.id.pio_navi_ org_name); navi_org_name.setText(orgname+""); red line crashes my program.Logcat shows nothing.just crushes. why? Regards RiskyCoder -- You received this message because you are subscribed

[android-developers] textview catching onclick?

2011-08-02 Thread RichardLalancette.Blogspot.com
Hi Guys, for some reason, a textview I have inside a layout is catching the onclick event and won't let it pass to the parent view. I would like to stop categoryname from catching events so the underlying controls can handle it. Any idea? The following layout is 5 times in another layout. htt

[android-developers] TextView in TabHost

2011-07-20 Thread nika-...@ya.ru
Hi all! I have class MyTabHost extends TabActivity and there is a method public static View getTextView(Context c) { View view = LayoutInflater.from(c).inflate(R.layout.tabhost_new, null); TextView amount = (TextView) view.findViewById(R.id.amount2);

Re: [android-developers] textview auto scroll

2011-07-12 Thread Justin Anderson
http://tinyurl.com/68hsx68 * * Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Jul 10, 2011 at 9:52 PM, bob wrote: > How do you make a TextView always auto-scroll to the bottom? > > -- > You received this message because you are subscribed to the G

[android-developers] textview auto scroll

2011-07-10 Thread bob
How do you make a TextView always auto-scroll to the bottom? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-deve

[android-developers] TextView, EditView, cut/copy/paste, select - how do I get what I want?

2011-07-01 Thread James Moore
In 2.2, what combination of options to either TextView or EditText, called from Java (not xml), gets you: * Text that is not editable. * In response to a long press, the select/cut/copy context menu comes up, preferably with select and copy, but without paste and cut. * Text can be scrolled by dra

[android-developers] TextView and TransitionDrawable

2011-06-20 Thread Mike
Hi, I have a textview with the background set to a transition drawable which has two 9 patches that are the same size but different content. Each 9 patch also has identical lef,top stretching and right,bottom padding. When the user long presses on the textview i would like to transition from the

[android-developers] textview and unicode

2011-06-20 Thread dashman
i'm setting some text into textview .setText( "\u2399" ); not working - shows up as a box. help! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

Re: [android-developers] TextView, ProgressBar, TextView (unexpected exception)

2011-05-28 Thread Rajesh Kumar
Hi All, Do you own an iphone, iPad, iPod or any other other device like Samsung, HTC, blackberry etc? Have scared about scratches on your device? Want to protect your Device? Then You just buy your scratch proof guard here, Its highly recommended. http://goo.gl/gHixr -- Prabhu On Saturday,

[android-developers] TextView, ProgressBar, TextView (unexpected exception)

2011-05-28 Thread Anuj Goyal
import android.app.ListActivity; import android.widget.TextView; import android.widget.ProgressBar; import android.os.Bundle; public class HelloLinearLayout extends ListActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Re: [android-developers] TextView looks great, but drawText() looks crummy !

2011-05-15 Thread Romain Guy
You need to enable anti-aliasing your Paint object: myPaint.setAntiAlias(true) On Sun, May 15, 2011 at 1:00 PM, RLScott wrote: > If you look closely at a TextView, you will see that it is clean and > clear because it uses half-tone shading to avoid that pixelated look. > But in my custom view I

[android-developers] TextView looks great, but drawText() looks crummy !

2011-05-15 Thread RLScott
If you look closely at a TextView, you will see that it is clean and clear because it uses half-tone shading to avoid that pixelated look. But in my custom view I am calling drawText, and the results are not as good. The stuff drawn with drawText looks a bit ragged because it does not use any half

[android-developers] Textview background with text inside background image

2011-05-07 Thread ArcDroid
Hello, I have a background image in my textview (like a chat bubble) and want to make the text inside the background image. How Do i add padding to the text, but not the image? Thanks, http://www.arcdroid.com -- You received this message because you are subscribed to the Google Groups "Andr

[android-developers] TextView showing tops of 2nd line when lines="1" or maxLines="1" in 3.0

2011-05-06 Thread Kim
I am using a ListView to create a specialized grid of images. The xml for the list items is: http://schemas.android.com/apk/res/android"; android:id="@+id/cover_art" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizo

[android-developers] TextView Html.ImageGetter Widget

2011-05-06 Thread Marcel Atnyashev
Hello. I'm developing a widget, that will show html with images in a TextView. I've found a couple posts on the internet: http://stackoverflow.com/questions/3087121/displaying-images-on-android-widgets-using-html-textview, http://translate.google.ru/translate?hl=en&sl=zh-CN&u=http://www.eoeandroid

[android-developers] TextView zoom out height stuck issue

2011-03-21 Thread illion
Hello, I have a zoomView which implements ViewGroup. I have then attached a TextView to a RelativeLayout and that layout to the zoomView. -zoomView ---RelativeLayout --TextView I override the onMeasure and onLayout method in zoomView. In onMeasure I change the textSize depending on the zoom

[android-developers] TextView at the bottom of a Layout, like a status bar of sorts

2011-03-21 Thread Chris Stewart
I'm working on a Honeycomb app and I'd like to have a scrolling ticker at the bottom of the screen. I did something similar with a phone app, where I effectively had a LinearLayout that took up the bottom of the screen and contained a TextView inside of it. I attempted to reuse that code in this

[android-developers] TextView behavior with the same attributes is different in API 7 and 9 !?

2011-03-14 Thread jgaribay
Hi, I was debugging an Activity that was working fine (the view is displayed) using API 7 but not using API 9. This is a snippet of code simplified of what I am doing to reproduce the issue: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLay

Re: [android-developers] TextView gravity off on Galaxy Tab?

2011-03-05 Thread Nikolay Elenkov
On Sat, Mar 5, 2011 at 1:10 PM, Nikolay Elenkov wrote: > Hi, > I have a TextView displaying a single character, centered inside the view. > It works fine on all sort of devices, but on Galaxy Tab, the character is > aligned with the top of the view and slightly clipped. I've reproduced it > with t

[android-developers] TextView gravity off on Galaxy Tab?

2011-03-04 Thread Nikolay Elenkov
Hi, I have a TextView displaying a single character, centered inside the view. It works fine on all sort of devices, but on Galaxy Tab, the character is aligned with the top of the view and slightly clipped. I've reproduced it with the emulator, and tried all combination of gravity (center_ve

[android-developers] TextView adjusts, ImageView stays static when keyboard pops up - How To?

2011-02-22 Thread Matt M
Hello, I have a TextView on top of an ImageView. When the keyboard pops up I want the TextView to shrink and adjust to the keyboard popping up (like normal) but I want the ImageView to stay static, thus I do not want the image to shrink. I tried using android:windowSoftInputMode="statePan" manife

[android-developers] TextView length limit? How strange!

2011-02-14 Thread Jenus Dong
Hi, everyone. I having a ListView, which has three TextView components in every item. One TextView possiblily display too long text, for example 5000 characters in Ascii code. The testing result is: G7 ,2.2 , it is ok. But when it running in G3, it just display space, no at all one character. So I

[android-developers] TextView with a top margin that is proportional to the height of the parent view

2011-01-28 Thread John Gaby
Is there a way to position text within a linear layout such that the position of the text is proportional to the height, rather than a fixed distance. For example, I would like the text to be displayed down from the top a distance equal to 20% of the height of the view. Thanks. -- You received

Re: [android-developers] TextView - how to make appended text visible?

2011-01-28 Thread John Lussmyer
I wrapped the TextView in a ScrollView (even though TextView is documented as handling it's own scrolling and doesn't need a ScrollView). This let me call the fullScroll( View.FOCUS_DOWN) method in the ScrollView to make the newest text visible. On Fri, Jan 28, 2011 at 11:35 AM, Tobiah wrote: >

Re: [android-developers] TextView - how to make appended text visible?

2011-01-28 Thread Tobiah
On 01/28/2011 09:50 AM, John Lussmyer wrote: I have a TextView that frequently has text appended from a service. I can append the text just fine, but how do I make the TextView scroll so the newly appended text is visible? Once the view fills, the new text is below the bottom edge. I haven't u

[android-developers] TextView - how to make appended text visible?

2011-01-28 Thread John Lussmyer
I have a TextView that frequently has text appended from a service. I can append the text just fine, but how do I make the TextView scroll so the newly appended text is visible? Once the view fills, the new text is below the bottom edge. -- You received this message because you are subscribed to

[android-developers] TextView borders when contained in a tablerow?

2011-01-24 Thread Mark Freeman
Hi everyone. I have an interesting problem. I am using a TableLayout to arrange a series of labels and TextViews. In some cases, the text within the TextView is bold and colored blue to represent a field which is clickable. Meaning that I have a listener on it to launch a new activity. On fi

Re: [android-developers] TextView setCompoundDrawables inconsistent size

2011-01-08 Thread Romain Guy
You should use setCompoundDrawablesWithIntrinsicBounds() On Sat, Jan 8, 2011 at 6:40 PM, Henrik Lindqvist wrote: > I'am trying to use TextView's setCompoundDrawables feature because i > wan't a button with a label above it. I set android:drawableBottom to > my button drawable, which is a with a

[android-developers] TextView setCompoundDrawables inconsistent size

2011-01-08 Thread Henrik Lindqvist
I'am trying to use TextView's setCompoundDrawables feature because i wan't a button with a label above it. I set android:drawableBottom to my button drawable, which is a with a button background, an icon and a toggle indicator. First app launch every thing looks nice, close app, launch again and

Re: [android-developers] TextView and ellipsize

2011-01-06 Thread TreKing
On Thu, Jan 6, 2011 at 5:14 PM, Neilz wrote: > Any ideas what's happening? No, but try this: http://developer.android.com/reference/android/widget/TextView.html#attr_android:maxLines - TreKing

[android-developers] TextView and ellipsize

2011-01-06 Thread Neilz
Hi all. I have a textview which has the height set to show three lines of text. The text is dynamic and often larger than the space available in the view, so I want to ellipsize it. However, with the ellipsize property set, it only displays two lines of text, with the "..." at the end of the secon

Re: [android-developers] TextView bug or feature?

2010-12-21 Thread xiaoxiong weng
maybe it's just galaxy? my U8100 is fine with strong tag~ On Tue, Dec 21, 2010 at 12:51 AM, Brill Pappin wrote: > Ok, I might be mistaken about this, and I can't image nobody else has > noticed... so before I put in a bug report: > > The TextView seems to be doing something odd with HTML input.

[android-developers] TextView bug or feature?

2010-12-20 Thread Brill Pappin
Ok, I might be mistaken about this, and I can't image nobody else has noticed... so before I put in a bug report: The TextView seems to be doing something odd with HTML input. the *strong* tag is renders as the *em* tag and the *em* tag is ignored. This is on a Galaxy Tab so it could be somethin

Re: [android-developers] TextView doesn't show complete text.

2010-10-26 Thread TreKing
On Tue, Oct 26, 2010 at 8:01 AM, umakantpatil wrote: > conV.setEllipsize(TruncateAt.START); > This probably has something to do with it. - TreKing

[android-developers] TextView doesn't show complete text.

2010-10-26 Thread umakantpatil
Hey all... I'm stuck around issue of TextView. I have string which has around 2000+ characters also has some HTML in it. I'm using below code to display this TextView. TableRow tr = new TableRow(this); TextView conV = new TextView(this); conV.layout(0, 15, 0, 0);

[android-developers] TextView visibility problem

2010-10-19 Thread sisko
The following code is causing me problems as the last view, the TextView, does not display : http://schemas.android.com/apk/res/android"; android:id="@+id/LinearLayout01" android:background="@drawable/bkgrnd" android:layout_height="fill_parent" android:layout_width="fill_parent">

Re: [android-developers] TextView visibility problem

2010-10-18 Thread Mark Murphy
Use hierarchyviewer to help determine why your TextView is misbehaving: http://developer.android.com/guide/developing/tools/hierarchy-viewer.html On Mon, Oct 18, 2010 at 5:43 PM, sisko wrote: > Hi guys, > > the code I pasted below works great with the exception of the last > view - the textView.

[android-developers] TextView visibility problem

2010-10-18 Thread sisko
Hi guys, the code I pasted below works great with the exception of the last view - the textView. The TextView does not display: http://schemas.android.com/apk/res/android"; android:id="@+id/LinearLayout01" android:background="@drawable/bkgrnd" android:layout_height="fill_parent"

Re: [android-developers] TextView height not collapsing

2010-10-06 Thread TreKing
On Thu, Sep 30, 2010 at 2:25 PM, Tim S wrote: > How exactly do you get them to go away without removing them altogether? > http://developer.android.com/reference/android/view/View.html#GONE - TreKing

[android-developers] TextView height not collapsing

2010-10-06 Thread Tim S
I have TextViews in a View that are dynamically populated. But even when there's no text in them they still seem to take up space, specifically height, even though the TextView and the parent have layout_height set to wrap_content. Coming from HTML land, I would expect them to collapse. Even if

Re: [android-developers] TextView setCompoundDrawables how to scale

2010-10-06 Thread Romain Guy
Instead of calling setCompoundDrawablesWithIntrinsicBounds(), just use setCompoundDrawables() and set your own bounds. On Wed, Oct 6, 2010 at 10:28 AM, jotobjects wrote: > Is there a way to scale the Drawable passed to > TextView.setCompoundDrawables ?  The following code works very well > but of

[android-developers] TextView setCompoundDrawables how to scale

2010-10-06 Thread jotobjects
Is there a way to scale the Drawable passed to TextView.setCompoundDrawables ? The following code works very well but of course is set to the full intrinsic size of the drawable. This code is used with the Holder pattern in a ListView where the purpose is to update the drawable without two more V

RE: [android-developers] TextView resets its location after an animation

2010-09-17 Thread Tommy
opers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of ClarkBattle Sent: Friday, September 17, 2010 3:37 PM To: Android Developers Subject: [android-developers] TextView resets its location after an animation I am using a Translate animation on a text

[android-developers] TextView resets its location after an animation

2010-09-17 Thread ClarkBattle
I am using a Translate animation on a text view. TranslateAnimation animation = new TranslateAnimation( TranslateAnimation.RELATIVE_TO_SELF, 0.0f, TranslateAnimation.RELATIVE_TO_SELF, 0.8f, TranslateAnimatio

[android-developers] TextView: Different font scaling if specified in XML or programmatically?

2010-08-09 Thread Tom
I'm working with a phone with a high-resolution screen. For layouts, I have declared a font size as follows: 12sp For a first TextView, I apply this in the XML layout file as follows: For a second TextView, on the same screen, I apply it programmatically:

[android-developers] TextView wrapped in ScrollView, click problem !! (a bug of android 2.2 ?)

2010-07-27 Thread Tiger
Suppose that a text view is on the bottom of a scroll view. When I scroll to bottom and click the text, the result is the scroll bar disappears, rather than the text view is clicked. If I don't click the text at once, the scroll bar will disappear a few seconds late

[android-developers] TextView wrapped in ScrollView, click problem !! (a bug of android 2.2 ?)

2010-07-27 Thread Tiger
The text view is on the bottom of the scroll view. When I scroll to bottom and click the text, the result is the scroll bar disappears, rather than the text view is clicked. If I don't click the text at once, the scroll bar will disappear a few seconds later. After

[android-developers] TextView showing invisible chars in 2.0 - 2.1

2010-06-27 Thread Connick
In testing my app across different OS versions I've noticed what appears to be carriage returns showing as visible squares in TextView. This doesn't happen on Froyo ...wondering if anyone knows how get around this in previous versions? Thanks, Stace -- You received this message because you are s

[android-developers] TextView/Spannable - Applying Alignment to portion of the text

2010-06-20 Thread Markus
Dear Community I've been struggling with a problem concerning Spannables. What I'm trying to do is apply a AlignmentSpan.Standard(Alignment.ALIGN_NORMAL) to the left portion of the text, and AlignmentSpan.Standard(Alignment.ALIGN_OPPOSITE) to the right portion of the text. However, this does not w

[android-developers] Textview Editable - Virtual Keyboard Error

2010-06-08 Thread Sasikumar.S
Hi, I set my textview as editable. when i try to type in virtual keyboard it throws an error & force close the application. Error = ' java.lang.IndexOutOfBoundsException: getChars (-1 ... 0) starts before 0 ' Its work in pc keyboard. Any suggestion ?. -- You received this message because you are

Re: [android-developers] TextView cuts off part of an initial capital "J"

2010-05-03 Thread Anurag Singh
Paste your xml file. - Anurag Singh On Mon, May 3, 2010 at 11:59 PM, bwin wrote: > I'm having a problem with TextView and would appreciate some help > finding out what I might be doing wrong. (Or if this is in fact an > Android problem, a workaround :-) > > If the first letter of text in a Tex

[android-developers] TextView cuts off part of an initial capital "J"

2010-05-03 Thread bwin
I'm having a problem with TextView and would appreciate some help finding out what I might be doing wrong. (Or if this is in fact an Android problem, a workaround :-) If the first letter of text in a TextView is capital "J", the first pixel or two are cut off so that the "J" starts looking a bit

[android-developers] TextView "..." when using multiple lines

2010-04-23 Thread Alina
I have noticed that when a textview has a fixed width (let's say fill_parent), if the text you set doesn't fit, android adds automatically three dots "...". But this happens only when singleLine=true How would I accomplish this with a textview that has singleLine=false and maxLines=4 ? Thank you

Re: [android-developers] TextView with URL throwing exception when finish() called in onResume()

2010-04-06 Thread Mark Murphy
> I created a TextView and put an url to it, using > setText(Html.fromHtml("");. Its opening the web page in the built-in > browser and when I press back, its coming back to the application. > > I don't want to come back to the application, so in activity's > onResume(), I call finish(). Its exitin

[android-developers] TextView with URL throwing exception when finish() called in onResume()

2010-04-06 Thread Nithin
Hi, I created a TextView and put an url to it, using setText(Html.fromHtml("");. Its opening the web page in the built-in browser and when I press back, its coming back to the application. I don't want to come back to the application, so in activity's onResume(), I call finish(). Its exiting at t

[android-developers] TextView onClick never being called (for a specific TextView)

2010-04-03 Thread Gabriel Simões
Hello all, Well, I´ve been trying to figure it out alone for quite some time, so I decided to ask for help. It seems to be something dumb indeed, simple, but I can´t find what´s going on. I have many TextViews and buttons over a RelativeLayout. For all the buttons and some textviews I´ve set their

[android-developers] TextView inner shadow

2010-03-15 Thread Grégory Dorrifourt
Hi! I'm new to Android developement and I have a question. How can we set an inner shadow to a TextView? HTC widgets use it and I don't think they are using images to make this effect... If you don't see what I'm talking about here is an example : http://www.techtutor.tv/photoshop-cs3/add-an-inner

[android-developers] textview and selectors

2010-03-15 Thread joca_bt
hi, I have some TextViews that are clickable and focusable and I tried to set their background with a selector: fill_parent fill_parent true [android-developers] TextView before ListView
Dear All, I've tried to add a TextView before a ListView in a LinearLayout. The result is that the ListView wont show at all. The same thing happens if I put the TextView after the ListView, but then I will only see the ListView. Is there a way to get a text view above the ListView without to muc

[android-developers] Textview Editable Place Holder

Hi, I'm using Textview Editable function. When i click the textview it is showing keyboard to type. Now i need is it should show place holder in that place to type. Please see the below link image . In that LastName Text will have a place holder (Sky Blue Color) to type http://img109.imageshac

[android-developers] Textview Editable Cursor Visible

Hi, I'm using Textview Editable function. When i click the textview it is showing kaeyboard to type. Now i need is it should show marker in that place to type. Please see the below link image . In that LastName Text will have a marker (Sky Blue Color) to type http://img109.imageshack.us/img109

[android-developers] TextView, autoLink, and RemoteViews?

I have a TextView in an AppWidget where the text is set by a user. This text can include one or more URL links (i.e http:/ www.google.com). I want these URLs to be clickable and open the browser and go to whatever link was clicked. I have accomlished this partially.The code I have at this point is

[android-developers] TextView with Clear Button

Hi, Please see the below link http://img69.yfrog.com/img69/8931/keyboardv.png In that you can see (first red circled) textbox with clear button. How to make like that button in android?... And the second red circled is How to make Enter button character to Go.? -- Thanks & Regards Sasikum

[android-developers] TextView Animation problem

Hi all, i am working on some animation application where i am trying to apply 2 kind of animation on the TextView. during onCreate() of the activity I am rotating it by 45 degrees & on onTouch() event i want it to translate & then rotate it to proper shape. But on onTouch it comes to normal shap

[android-developers] Textview Editable Error

Hi, I'm using Textview with editable. I'm giving a default value to textview. After executing the program when i try to erase the default value it is not deleting? why? -- Thanks & Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups "Android Develop

[android-developers] Textview with graphic (dynamically changing) inside.

Hello, I've a TextView that in the onCreate is build with an image to the left from the static drawables, and with a text in the right. I want to dynamically change the text and the image, (and maintain the same image size), I have the image stored in a Bitmap named bm, (yes I know I could change

Re: [android-developers] TextView scrollHorizontally doesn't work

scrollHorizontally enables user scrolling for editable text fields. If you want automatic scrolling, use android:ellipsis="marquee" On Mon, Feb 1, 2010 at 3:11 PM, jotobjects wrote: > Is there a way to put a single line of static text into a TextView and > allow the user to scroll over the part t

[android-developers] TextView scrollHorizontally doesn't work

Is there a way to put a single line of static text into a TextView and allow the user to scroll over the part that is not initially visible? I have tried scrollHorizontally, but I get text that is truncated. This is the layout (that doesn't scroll). I tried setting in the layout and a

[android-developers] TextView & StaticLayout

Hi, I'm trying to calculate whether a string will fit into a textview or not, using a StaticLayout and the trimming the string to fit. But cannot figure out what the actual width and height of the "printable" textarea of the textview, how to subtract(?) padding, margins etc from the height and wid

[android-developers] TextView - disable focus

Hi, I have a listview, and wanted to make some list items to be non-focusable. i.e On pressing the down-arrow key, some items in the middle of the list gets skipped. I tried the following method. 1. created separate ArrayAdapter class. 2. override getView method. 3. In getView, I called setSelect

  1   2   >