"Pretty" ways to animate a list?

by Keith Wiley » Sat, 28 Mar 2009 09:32:50 GMT

Sponsored Links
 AK Notepad does this nice little thing where, on displaying the file
list, it "unravels" rapidly down the screen.  Are they hacking that
incredibly manually, or are there simple OS calls to make lists
display in various ways?


"Pretty" ways to animate a list?

by Carl Whalley » Sat, 28 Mar 2009 21:47:54 GMT

 Look in the API demos: Views | Layout Animation | List cascade

Android Academy:  http://www.androidacademy.com 


Sponsored Links

"Pretty" ways to animate a list?

by Keith Wiley » Sun, 29 Mar 2009 00:23:28 GMT

 Ah, I was looking in the list section.  I feel silly.

Thank you.

"Pretty" ways to animate a list?

by Keith Wiley » Sun, 29 Mar 2009 01:33:44 GMT

 So, I can get it to work if I replicate that demo perfectly, which
doesn't assign a context to the layout, it just uses some default.  I
am trying to build off the extended ListActivity example, however, in
which a context is assigned so that a special item is shown in the
list when and only when the list is empty.  When I try to assign the
context, the app crashes.  I pulled over the appropriate anim xml file
of course.  Here's my layout:

        xmlns:android=" http://schemas.android.com/apk/res/android" ;
        android:layoutAnimation="@anim/slide_top_to_bottom" >

android:layout_height="wrap_content" />
                android:text="Nothing to show message goes here" />

And here's my code, which crashes on the setContentView() call and
thus never reaches all the animation initialization below it:

        public void onCreate(Bundle savedInstanceState) {

                AnimationSet set = new AnimationSet(true);

                Animation animation = new AlphaAnimation(0.0f, 1.0f);

                animation = new TranslateAnimation(
                    Animation.RELATIVE_TO_SELF, 0.0f,Animation.RELATIVE_TO_SELF,

                LayoutAnimationController controller =  new 
(set, 0.5f);
                ListView listView = getListView();

                etc. other setup

By the nature of the crash, there is no way to study the problem in
the debugger.  It crashes hard, deep inside Android, where the
backtrace is unfathomable.

Any ideas?

Other Threads

1. Streaming video

Hi all.

I need to add a feature to my app which streams video.

- One source I have has a file extension of m3u8. I'm unsure as to
whether Android can handle this?

-  I also have to handle an RTSP protocol. This isn't something I'm
too familiar with.

1) Is MediaPlayer the right Intent to be use for these streams?

2) I could really do with an example RTSP feed which is known to be
active - it's very hard to test my code otherwise. So any active feeds
you can point in my direction would be great (RSTP or otherwise).

Thanks in advance.


2. what is the source version at the source.android.com website?

I use git clone the IM application from the source website. many errors
in source code. many obect methods are not in the sdk of above 1.5.

for example Cursor
Cursor c = mContentResolver.query(mMessageURI, projection, selection,
new String[]{Integer.toString(Imps.MessageType.POSTPONED)}, null);
if (c == null) {
Log.e(TAG, "Query error while querying postponed messages");

while (c.moveToNext()) {
String body = c.getString(1);
mAdaptee.sendMessageAsync(new Message(body));

c.updateLong(2, System.currentTimeMillis());
c.updateInt(3, Imps.MessageType.OUTGOING);

there are no Cursor.updateLong() updateInt commitUpdates . what is the


3. admob ads in android app not showing all the time

4. <compatible-screens> and <uses-gl-texture> ?

5. Proguard and Conversion to Dalvik format failed with error 1

6. How to Package .so files into .apk in linux

7. Problems by compiling native code