pinch-zoom image displayed in gallery

by martin.grotzke » Fri, 13 Aug 2010 02:17:55 GMT


Sponsored Links
 Hi,

I'm trying to create a gallery (each image taking the whole screen)
that allows the user to pinch-zoom the currently displayed image.

I found the code for a TouchImageView on stackoverflow (http://
stackoverflow.com/questions/2537238/how-can-i-get-zoom-functionality-
for-images ) which works fine for a single image (in a LinearLayout).
Unfortunately, when I combine the Gallery and the TouchImageView
(returning a TouchImageView in the adapters getView), it does not
work:
- there's no pinch-zoom
- it's no longer possible to switch the images (via fling)

I found some similar posts here, the best match seems to be



pinch-zoom image displayed in gallery

by Martin Grotzke » Fri, 13 Aug 2010 06:22:47 GMT


 Is my previous message really still waiting for approval? I can't find it in
the groups website...

Thanx && cheers,
Martin

Am 2010 8 11 01:28 schrieb "martin.grotzke" <martin.grot...@googlemail.com>:


Sponsored Links


pinch-zoom image displayed in gallery

by Bob Kerns » Sat, 14 Aug 2010 00:23:53 GMT


 It looks like you just missed it; it's there:




Other Threads

1. Run android apps on Linux

I have ported and built the android kernel for x86 and it is booting
up on ubuntu. Now I want to know how to run android applications
natively on ubuntu without SDK. As I have said i have the android
kernel working. How do I go about running or executing these android
applications.?

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. "Nexus" and "Many" Wallpaper not working

Hi All,
I tried to run live wallpapers on eclair 2.1 but they are not working.
I tried to run "Nexus" and "Many" but it is giving following error:

droid.wallpaper: page allocation failure. order:9, mode:0x40d0
[<c0030894>] (dump_stack+0x0/0x14) from [<c0084ea0>]
(__alloc_pages_internal+0x3bc/0x3d4)
[<c0084ae4>] (__alloc_pages_internal+0x0/0x3d4) from [<c0084ed8>]
(__get_free_pages+0x20/0x54)
[<c0084eb8>] (__get_free_pages+0x0/0x54) from [<c00a7e24>]
(__kmalloc+0x40/0xcc)
[<c00a7de4>] (__kmalloc+0x0/0xcc) from [<bf025d04>] (gsl_kmod_ioctl
+0xa08/0xde8
[gpu_z430])
 r8:c002d084 r7:45934b18 r6:cacc5680 r5:00000013 r4:45934b18
[<bf0252fc>] (gsl_kmod_ioctl+0x0/0xde8 [gpu_z430]) from [<c00b7d64>]
(vfs_ioctl+0x7c/0x98)
 r6:00000013 r5:45934b18 r4:cacc5680
[<c00b7ce8>] (vfs_ioctl+0x0/0x98) from [<c00b831c>] (do_vfs_ioctl
+0x494/0x4f0)
 r6:00000013 r5:0000001c r4:cacc5680
[<c00b7e88>] (do_vfs_ioctl+0x0/0x4f0) from [<c00b83b8>] (sys_ioctl
+0x40/0x64)
[<c00b8378>] (sys_ioctl+0x0/0x64) from [<c002cf00>] (ret_fast_syscall
+0x0/0x2c)
 r6:0004558d r5:00000000 r4:0004558e
Mem-info:
DMA per-cpu:
CPU    0: hi:   18, btch:   3 usd:   0
Normal per-cpu:
CPU    0: hi:   42, btch:   7 usd:   0
Active_anon:9094 active_file:4 inactive_anon:7865
 inactive_file:649 unevictable:200 dirty:2 writeback:0 unstable:0
 free:19379 slab:1035 mapped:724 pagetables:1443 bounce:0
DMA free:39228kB min:588kB low:732kB high:880kB active_anon:0kB
inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB
present:65024kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 32512 32512
Normal free:38288kB min:1176kB low:1468kB high:1764kB active_anon:
36376kB
inactive_anon:31460kB active_file:16kB inactive_file:2596kB
unevictable:800kB
present:130048kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 5*4kB 3*8kB 5*16kB 6*32kB 4*64kB 4*128kB 3*256kB 3*512kB 3*1024kB
2*2048kB
1*4096kB 1*8192kB 1*16384kB = 39228kB
Normal: 2396*4kB 588*8kB 204*16kB 108*32kB 74*64kB 32*128kB 19*256kB
5*512kB
1*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB = 38288kB
901 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
49152 pages of RAM
19756 free pages
6588 reserved pages
894 slab pages
34759 pages shared
0 pages swap cached

gsl_kmod_ioctl: unable to allocate temporary memory. Requested size
1536000
bytes

Can anyone help here?


-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. How to change text size and color in android:summary

4. Need help in Porting Android on JOP (Java Optimized Processor)

5. JetPlayer help

6. How to hide the status bar when using WebView?

7. Can't open dex cache '/data/dalvik-cache/sys...@app@myapp....@classes.dex': No such file or directory