Definite need for a Cupcake SDK & release details.

by Romain Guy » Fri, 03 Apr 2009 15:58:33 GMT


Sponsored Links
 The layout is actually working.

However, Cupcake has new assets for buttons (and other widgets) and it
happens that the minimum width of the buttons has changed. I don't
know how you set up your layout but it looks like you were relying on
that minimum size to get all the buttons aligned (which would be bad
since such a layout would break anyway on devices with different
resolutions and/or densities, but that's another topic.)






-- 
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

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



Definite need for a Cupcake SDK & release details.

by Al Sutton » Fri, 03 Apr 2009 16:12:54 GMT


 omain,

I accept that it may not have been the best way of doing it, but my main
point is that many developers have absolutely no way of checking for
problems like this.

Now I am fortunate in that my company has a Linux machine that I can
download and build the SDK on, but I suspect there are many developers who
are either coding on Windows and don't have a spare machine to install Linux
on and build a cupcake SDK, or may not have the resources to download the
sources from git and run a full build.

Even I can't fully test my apps because the Linux box is a headless server,
and running the cupcake emulator images in the 1.1 SDK emulator installed on
the Windows desktops we have here does not bring networking up.

So please, please, please, can we have either a windows SDK, a method of
building a windows SDK, or something that will let us test our apps in
cupcake.

Al.

---

* Written an Android App? - List it at http://andappstore.com/ *

======
Funky Android Limited is registered in England & Wales with the
company number 6741909. The registered head office is Kemp House,
152-160 City Road, London, EC1V 2NX, UK.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's
subsidiaries.


-----Original Message-----
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Romain Guy
Sent: 03 April 2009 08:58
To: android-developers@googlegroups.com
Subject: [android-developers] Re: Definite need for a Cupcake SDK & release
details.


The layout is actually working.

However, Cupcake has new assets for buttons (and other widgets) and it
happens that the minimum width of the buttons has changed. I don't know how
you set up your layout but it looks like you were relying on that minimum
size to get all the buttons aligned (which would be bad since such a layout
would break anyway on devices with different resolutions and/or densities,
but that's another topic.)

On Fri, Apr 3, 2009 at 12:50 AM, Al Sutton <a...@funkyandroid.com> wrote:



--
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




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


Sponsored Links


Other Threads

1. Service and application got crash





Sorry, but posting hundreds of lines of poorly formatted output is not a
good way to get help.

Please try to explain your problem in more detail. Explain the steps you're
taking that lead you to your problem and only post logs that are relevant to
the issue at hand.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 

2. StateListDrawable and activity-menu-shown state?

Hi,

I have a linear layout that is focusable, I'd like it to use the same
background drawable as found in listview items:

    StateListDrawable sld =
(StateListDrawable)context.getResources().getDrawable(
        android.R.drawable.list_selector_background);
    linearLayout..setBackgroundDrawable(sld);
    linearLayout.setFocusable(true);

The default state of this selector is to be transparent, but I want a
specific background drawable used in an unselected state. It would be
ideal if we could just "override" this one state, and leave everything
else the same:

    sld.addState(new int[] { -android.R.attr.state_window_focused },
        context.getResources().getDrawable(R.drawable.my_background));

That seems to work - but if I display a menu in the parent activity,
the background reverts to transparent again. When the menu is hidden,
the background comes back to the drawable I had used for the override.
I'm not sure what states I could override to fix the menu-display-
state-issue - but I'm not sure if this is even a proper use of
StateListDrawables. I could just make my own sld to mimic what the one
bundled with android does, but if I make its highlight state orange
for example, it'll look strange on some devices that have changed the
focus color to green for example with listviews (droid eris for
example). It'd be great to keep everything consistent.

Below is the xml def for android.R.drawable.list_selector_background.
If anyone knows what states to change for the menu display, that'd be
great.

Thanks




   <selector xmlns:android="http://schemas.android.com/apk/res/
android">

       <item android:state_window_focused="false"
           android:drawable="@color/transparent" />

       <!-- Even though these two point to the same resource, have two
states so the drawable will invalidate itself when coming out of
pressed state. -->
       <item android:state_focused="true"
android:state_enabled="false"
           android:state_pressed="true"
           android:drawable="@drawable/
list_selector_background_disabled" />
       <item android:state_focused="true"
android:state_enabled="false"
           android:drawable="@drawable/
list_selector_background_disabled" />

       <item android:state_focused="true" android:state_pressed="true"
           android:drawable="@drawable/
list_selector_background_transition" />
       <item android:state_focused="false"
android:state_pressed="true"
           android:drawable="@drawable/
list_selector_background_transition" />

       <item android:state_focused="true"
           android:drawable="@drawable/
list_selector_background_focus" />

   </selector>

-- 

3. How to reverse ListView scrolling behavior?

4. HttpClient routine works but w/o connection, it times out?

5. SIM state ready intent

6. To the Moderators: is there a way to find my earlier post threads?

7. What is exactly the X and Y coordinates in method "canvas.rotate"