Animating resizing of TextView

by George » Tue, 14 Apr 2009 04:50:38 GMT


Sponsored Links
 I have a textView that changes size dynamically and I want to animate
the resizing.
Here are my steps:
(1) use TextView.layout to set the initial size - editText.layout(0,
0, 200, 50);
(2) use startAnimation(scale) to scale the textView in the Xdirection
(to animate resize)
      <scale
        android:fromXScale="1.0" android:toXScale="1.5"
        android:fromYScale="1.0" android:toYScale="1.0"
        android:pivotX="0%" android:pivotY="0%"
        android:duration="600" />
(3) Set the new size of the textview using layout() - editText.layout
(0, 0, 300, 50);

If I use ScaleAnimation, the text in the view get stretched or
squeezed. Is there a way to animate the resizing of the textview
without causing the text to get stretched or squeezed?

-George
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. GK: Urgent -- Combine all the multiple apks in one APK file

HI Mark..,
 Thats a  good  info for my mile stone.

I think i need to create a single project with multiple activity .
(MIDLET Suite in J2ME) Am i rite ?

Now  already we test completed for diff games.

On Android portal there is option to upload single APK for all
devices.

Whether i can do any thing to achive this ?   or i need to do R&D with
your information ?




Cheers,
Ganesh.







-- 

2. Re[2]: Android system binaries disappearing when running from NAND and YAFFS2

Patch for u-boot 2009.03 in attachment.

Good luck!

Thu, 25 Mar 2010 08:55:55 -0400   Ashwin Bihari <abih...@gmail.com>:










-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website:  http://www.***.com/ 

To unsubscribe from this group, send email to 
android-porting+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

3. Problem regarding Broadcast event "android.intent.action.BATTERY_CHANGED"

4. GK: Urgent -- Combine all the multiple apks in one APK file

5. GK: Urgent -- Combine all the multiple apks in one APK file

6. Unexpected Resumes Running Under 2.0

7. connect forcibly to 3G when wifi is also available