Widget Performance Question

by Romain Guy » Wed, 29 Apr 2009 07:58:57 GMT


Sponsored Links
 #2 :)






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Puzzled By ImageView

Hi all,

My first post. Greetings.

I'm toying around with the Notepad tutorial and adding some
functionality. So far, I've successfully added a timestamp to the note
which is subsequently displayed to the left of the note title in the
listview after saving a new note. However, as you can see below, I'm
attempting to load and display  a small .png file in the row as the
first element - no luck so far. It seems fairly straight forward from
the few docs I have found. The resource (yellowbutton) is created and
listed as a drawable in the R file after saving the image to the
drawable folder, and everything compiles fine. However the image
(yellowbutton) isn't displayed in the row. Perhaps ImageView isn't the
class/attribute I should be using? Any insight would be greatly
appreciated. Code is below. Thanks.


<?xml version="1.0" encoding="utf-8"?>
        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
            android:orientation="horizontal"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content">

                <ImageView android:id="@+id/yellowbutton"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"/>

                <TextView android:id="@+id/text1" xmlns:android="http://
schemas.android.com/apk/res/android"
                android:textColor="#FFF0CC"
                android:textStyle="bold"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"/>

                <TextView android:id="@+id/date" xmlns:android="http://
schemas.android.com/apk/res/android"
                    android:textColor="#FFF0CC"
                    android:textStyle="italic"
                    android:gravity="right"
                    android:layout_marginLeft="40px"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"/>

        </LinearLayout>

-- 

2. How do I get my Moto Droid to read my text messages out loud?

I have  TTS service installed, but I do not know how to get my Droid
to read text messages out loud.  Actually, it would be cool if it
would read my email out loud too, but that is not my primary
interest.

Does anyone know how to do this?

John

-- 

3. Bluetooth Voice dialing on Droid

4. How much number of voices can android support for MIDI?

5. destructor, constructor in c++

6. droidcon London 2009 (conference for android developers) on December 2nd Wednesday in London

7. Changing view then sleeping does not show up on screen.