Display performances in the Gallery Widget, working with thumbnails.

by Batuka » Tue, 06 Oct 2009 01:18:06 GMT


Sponsored Links
 help me how to get bitmap X,Y of canvas
i wont to controll bitmap X ,  Y

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



Other Threads

1. WebView with Gears:

As anyone successfully tested running Gears enabled web pages in WebView ?
The Gear samples are running ok in the android 'browser' application, but
not on 'WebView'. Do I need to enable any WebViewSetting() options ?


Thank You.


Kumar    _/|\_
www.saisk.com
ku...@saisk.com
"making a profound difference with knowledge and creativity..."

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

2. Which one scales with the screen... Dip, sp, px.....?

Given the recent discovery with the cupcake emulator I'm trying to re-work
the layout file so it's cupcake friendly and future proofed, but have hit a
problem.

What I want is for 6 buttons to take up a total of three quarters of the
screen width, but I can't seem to find the measurement unit which correlates
to this. All I've found is;

px  : Not screen resolution independent, so something that works on a
320x480 screen won't take 3/4s of the screen on different resolution
display.

dip : Scales with pixel density and not screen resolution, so the object
won't scale up as the physical screen size gets bigger.
Pt, in & mm : Don't scale with screen size so a 1 unit button is the same
size on a 3 or 30 inch screen.

sp : Based on font size and there's no guaranteed correlation between font
width and screen width. 


The closest I've got is the following;

<TableLayout    android:layout_gravity="center_horizontal"
                        android:layout_height="wrap_content"
                        android:layout_width="fill_parent">
<TableRow>
        <Button android:id="@+id/button1"
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content"/>
        <Button android:id="@+id/button2"
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content"/>
        <Button android:id="@+id/button3"
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content"/>
        <Button android:id="@+id/button4"
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content"/>
        <Button android:id="@+id/button5"
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content"/>
        <Button android:id="@+id/button6"
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content"/>                      
</TableRow>
</TableLayout>

But this results in buttons with uneven widths which is not what I'm after.


Does anyone have a solution?

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. 



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

3. Android Touch Inputs via adb

4. Audio SetParameter() use

5. Static librari is not linking with functions like abs, sincos etc.

6. Static librari is not linking with functions like abs, sincos etc.

7. Definite need for a Cupcake SDK & release details.