Diagonal Screen transition.

by satish bhoyar » Thu, 14 Jan 2010 01:21:51 GMT


Sponsored Links
 Hi,
I am trying to do the diagonal screen transition, & i am not able to figure
out what I should use. In my case the user should get the feel that next
screen is coming from one corner of the current screen .

Thanks,



Diagonal Screen transition.

by satish bhoyar » Thu, 14 Jan 2010 19:39:53 GMT


 Hi Guys,

I was hoping any kind of help regarding this...

please help regarding this..

Thanks
satish




>


Sponsored Links


Diagonal Screen transition.

by Sean Hodges » Thu, 14 Jan 2010 19:51:39 GMT


 As far as I'm aware, there are no diagonal screen transitions in
Android. You also can't define them per app, the activity transitions
are defined by the system theme.




>



Diagonal Screen transition.

by Justin Anderson » Thu, 14 Jan 2010 21:57:30 GMT


 You might be able to define it as a layout animation, but I have never tried
this...

So, let's say your main activity has a LinearLayout that encompasses
everything else.  You should be able to specify animations for that Layout
for when it comes on and off the screen.

Take a look at the Dev Guide where it talks about animations...




As far as I'm aware, there are no diagonal screen transitions in
Android. You also can't define them per app, the activity transitions
are defined by the system theme.

On Thu, Jan 14, 2010 at 11:39 AM, satish bhoyar <getsatonl...@gmail.com>


>



Diagonal Screen transition.

by Sean Hodges » Thu, 14 Jan 2010 22:14:32 GMT


 My understanding is that animation controllers can be applied to
layouts and views, but not whole activities.

You might be able to apply a layout animation on the root layout, and
perform a transition that appears to take up the whole screen. This
could be coupled with a screen shot of the next activity to give the
illusion that the transition is taking you to it. However, the effect
you would get is a diagonal transition, followed by the built-in
system transition (the horizontal swipe effect), which would finally
land you at the next activity.

So I think the transitions are the responsibility of the base system,
and the user-level applications have no control over them. The best
you could to is imitate them with an animation, and tell the user to
turn off the system one (Settings -> Sound & Display -> Animation);
which is not ideal.


On Thu, Jan 14, 2010 at 1:57 PM, Justin Anderson




>>



Diagonal Screen transition.

by XCaffeinated » Fri, 15 Jan 2010 09:19:27 GMT


 i Satish,

Animation between activities is indeed possible in Android 2.0 and
later, using the overridePendingTransition() API, with the caveat as
implied by Sean, that the user can override the animations if he so
wishes, in his global device settings. This API was specifically
added to give developers more control over inter-activity animations
(versus view animations which are done intra-activity).

I posted a tutorial on exactly how to use overridePendingTransition()
at anddev.org:
http://www.anddev.org/viewtopic.php?p=32766

Though the tutorial shows a fade transition between two activities, it
can easily be changed to do a diagonal transition, as per your OP: "In
my case the user should get the feel that next screen is coming from
one corner of the current screen." Here is how:

In the tutorial, replace mainfadein.xml with diagslide_enter.xml:

<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/
android"
android:fromXDelta="-100%" android:toXDelta="0%"
android:fromYDelta="-100%" android:toYDelta="0%"
android:duration="2000" />

and replace splashfadeout.xml with diagslide_leave.xml:

<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/
android"
android:fromXDelta="0%" android:toXDelta="-100%"
android:fromYDelta="0%" android:toYDelta="-100%"
android:duration="2000" />

Add diagslide_enter.xml and diagslide_leave.xml to your /res/anim
directory, and change
the overridePendingTransition() statement to:

overridePendingTransition(R.anim.diagslide_enter,
R.anim.diagslide_leave);

This will give the feel of the next screen coming from one corner,
while the previous screen leaves from the other corner.

Here's a YouTube video (forgive the quality, the emulator runs
horribly slowly on my system, but it looks terrific on the Droid):
http://www.youtube.com/watch?v=vqTbdAg_82c

If you'd rather have the next screen come from one corner, while the
previous screen stays put, do this:

overridePendingTransition(R.anim.diagslide_enter, R.anim.hold);

where hold.xml is a placeholder to keep the old activity from
disappearing too soon:

<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/
android"
android:fromXDelta="0" android:toXDelta="0"
android:duration="2000" />

If you'd rather have the next screen come from one corner over an
empty background, do this:

overridePendingTransition(R.anim.diagslide_enter, 0);

Once you get it working you should probably consider shortening the
durations, 2 seconds is kind of long.

Great info on other animation attributes is here:

http://developer.android.com/intl/zh-CN/guide/topics/resources/available-resources.html#animation

There are examples in the SDK (search *.java in the 2.X platforms for
overridePendingTransition).

I will add some of this info to the anddev tutorial, and post a
trackback.

Hope this helps!
XCaf



On Jan 8, 7:55am, satish bhoyar <getsatonl...@gmail.com



Diagonal Screen transition.

by satish bhoyar » Fri, 15 Jan 2010 13:01:17 GMT


 hanks a lot guys..
I will try this out..

Thanks,
satish

On Fri, Jan 15, 2010 at 6:49 AM, XCaffeinated <ssatn...@gmail.com> wrote:

>



Other Threads

1. Keunggulan Android dan Google

Forward ya...

syd
ptk
snet form granimauss a10

---------- Forwarded message ----------
From: "Jack Haz" <jack_...@yahoo.co.id>
Date: Dec 20, 2010 9:33 PM
Subject: [id-gps] Keunggulan Android dan Google
To: <id-...@yahoogroups.com>



Berhubung yang pernah dipertanyakan adalah masih maukah kita menggunakan
perangkat ber sistem opreasi Android...plus GPS tentunya daripada diomelin
di ID-GPS.
Jawabannya sederhana dan pasti tentu mau karena sesungguhnya Android itu
lumayan jinak-jinak merpati ...:-)

Aku cuma mencoba melihatnya dari sudut pandang sedikit lain, hasil dari baca
sebisa mungkin dan coba-coba lihat jeroannya karena memang
dimungkinkan...:-)
Google OS Android yang banyak dikatakan sebagai terbuka tentu bisa dibilang
benar secara garis besarnya saja karena memang sebuah modifikasi dari kernel
nya Linux,ditambah intrepeter Java berserta library-library khas Android.
Boleh dibilang Google hampir selalu melepas sebagian besar dari kode
Androidnya untuk setiap releasenya. Yang berarti kita sangat bisa mengunduh
OS Android tsb dan mencoba mengisntalasikannya pada sebuah perangkat bahkan
pilihan kita sendiri,dan yang terpenting tidak perlu bayar sedikitpun ke
Google.
Mereka hanya tidak mendistribusikan aplikasi-aplikasi yang dianggap
propietary oleh mereka ke khalayak umum dan cuma memberikan akses kepada
yang dinamakan OHA (Open Handset Alliance). Mungkin maksudnya mencoba
memproteksi kode-kode yang ada pada aplikasi-aplikasi dimaksud.
Jadi disini jelas bahwa Google tidak membuat HH dan cuma partner-partnernya
saja yang buat kemudian jual HH tersebut yang bisa diartikan bahwa Google
tidak mengumpulkan pendapatannya dari sisi OS Android ini.
Mereka cuma berkepentingan untuk mendistribusikannya sebanyak mungkin
kekhalayak ramai karena pendapatan mereka yang sesungguhnya adalah dari
advertensi hasil dari Google search,paid placements,dsb yang ternyata
dapatnya sangat berlimpah dari perangkat selular.
Kesimpulannya berhubung Android sangat kental dengan bebrbagai
layanan-layanan Google tsb yah artinya semakin banyak yang pakai layanannya
yah semakin banyak duit yang mengalir kekocek mereka dan yang gilanya secara
berkesinambungan terus-menerus lagi.

Kembali lagi kepernyataan kenapa Android dibilang jinak,setelah semua
bla-bla dibicarakan diatas.
Mungkin buat tipe yang terima jadi dan pakai tanpa perlu tahu apa isi
dalamnya dan tentunya secara pasti banyak terbantu aktivitasnya dengan
sukarela menggunakan perangkat ini berserta seluruh layanannya...fair
enough.
Namun sebaliknya klo kebeneran kita ini sebagai tipe yang senang oprek dan
coba-coba sok tahu banyak pikir dan berulah ha-ha-ha dan sangat senang
bereksperimentasi dengan mencoba pakai berbagai custom ROM keperangkat HH
atau bahkan kesebuah perangkat yang bukan golongan keluarga menak Jinggo
Google atau yang umum disebuah apotik dibilang generik...:-) bakalan banyak
aplikasi yang akan jadi hilang donk...so pasti.
Seperti misalnya Gmail,maps,Navigasi,Street View,GTalk,Car mode,dan berbagai
aplikasi sarat aktivitas sync seperti:
(Contact,Calendar,Picasa,dll),GVoice,You Tube bahkan Voice search belum lagi
yang ada di market resmi.
Mungkin yang bisa dibilang TANPA yang wah-wahnya deh di perangkat Android
umumnya,tanapa itu semua kita sesungguhnya masih bisa menginstalasi dan
menjalankan sistem berbasis Android...wah...wah...wah.
Cuma jelas jadinya mungkin bukan khas Google Android (tanpa GApps) lagi
yah,tapi jangan khawatir karena ada bang Cyanogen sobatnya Om Buyung tea,dia
selalu buatkan dan sediakan bahkan sebuah paket komplit khusus GApps jadi
siap pakai,atau bahkan klo kita mau pilih-pilih cuma aplikasi-aplikasi
tertentu yang mau disertakan ada yang namanya GApss Kitchen. Coba-coba saja
cari dan unduh yang hasil akhirnya bernama update.zip yang berisi
aplikasi-aplikasi Google didalamnya (berbagai jenis apk) tinggal
kurang-kurang,kali-kali,tambah dsb sesuai selera.
Bahkan hilangkan yang dirasakan akan sangat mengganggu atau mencurigakan
untuk djadikan alat mata-mata...hmmm....yummi. (
http://kitchen.yaam.mobi/#22),tinggal<http://kitchen.yaam.mobi/#22%29,tinggal>sertakan
saja yang benar-benar mandatory paling juga sekitar sepuluh apk an
misalkan tentunya vending.apk (Market RESMI Android) kesukaan banyak orang
:-)

Jadi silahkan bakar-bakar,goreng-goreng,masak-masak,tumis-tumis sreng-sreng
daghhh,siapa tahu jadi lebih enak tidur dan mau pakai Android,siapa takut
ada yang intip karena sudah bisa lumayan dijinakan...jadi merpati elegan
lagi.
Tambahan:
http://android.git.kernel.org/
http://wiki.cyanogenmod.com/index.php?title=Latest_Version
http://www.multiupload.com/3GWEETE265

Aduh roti jahe semakin legit
SK

 __._,_.___
  Reply to 
sender<jack_...@yahoo.co.id?subject=re%3a%20keunggulan%20android%20dan%20google>|
Reply
to 
group<id-...@yahoogroups.com?subject=re%3a%20keunggulan%20android%20dan%20google>|
Reply
via web 
post<http://groups.yahoo.com/group/id-gps/post;_ylc=X3oDMTJxMmczZHZmBF9TAzk3MzU5NzE0BGdycElkAzM4MTUwNTUEZ3Jwc3BJZAMxNzA1MzI5NzI5BG1zZ0lkAzY1MDQ1BHNlYwNmdHIEc2xrA3JwbHkEc3RpbWUDMTI5Mjg1NTU4OA--?act=reply&messageNum=65045>|
Start
a New 
Topic<http://groups.yahoo.com/group/id-gps/post;_ylc=X3oDMTJlbnZhMmdiBF9TAzk3MzU5NzE0BGdycElkAzM4MTUwNTUEZ3Jwc3BJZAMxNzA1MzI5NzI5BHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTI5Mjg1NTU4OA-->
Messages in this
topic<http://groups.yahoo.com/group/id-gps/message/65045;_ylc=X3oDMTM2aXZkbTNxBF9TAzk3MzU5NzE0BGdycElkAzM4MTUwNTUEZ3Jwc3BJZAMxNzA1MzI5NzI5BG1zZ0lkAzY1MDQ1BHNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTI5Mjg1NTU4OAR0cGNJZAM2NTA0NQ-->(
1)
 Recent Activity:

   - New 
Members<http://groups.yahoo.com/group/id-gps/members;_ylc=X3oDMTJmM3JzYjRrBF9TAzk3MzU5NzE0BGdycElkAzM4MTUwNTUEZ3Jwc3BJZAMxNzA1MzI5NzI5BHNlYwN2dGwEc2xrA3ZtYnJzBHN0aW1lAzEyOTI4NTU1ODg-?o=6>
   6

 Visit Your 
Group<http://groups.yahoo.com/group/id-gps;_ylc=X3oDMTJlaWg0N25hBF9TAzk3MzU5NzE0BGdycElkAzM4MTUwNTUEZ3Jwc3BJZAMxNzA1MzI5NzI5BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTI5Mjg1NTU4OA-->
 Download New and Free Indonesia Map
http://www.navigasi.net/goptd.php
======================================
How To Install Map
http://navigasi.net/goart.php?a=gpmapsrc
======================================
Fix the wrong map
http://www.navigasi.net/gofrl.php?c=FS
======================================
 MARKETPLACE

Hobbies & Activities Zone: Find others who share your passions! Explore new
interests.<http://global.ard.yahoo.com/SIG=15ore2fmc/M=493064.14012770.13963757.13298430/D=groups/S=1705329729:MKP1/Y=YAHOO/EXP=1292862789/L=1103693a-0c46-11e0-a975-d7c837efb5b7/B=VXAVEUwNPO0-/J=1292855589393100/K=NkpMpL5tYgbx6oQIcvxyug/A=6015306/R=0/SIG=11vlkvigg/*http://advision.webevents.yahoo.com/hobbiesandactivitieszone/>
 ------------------------------

Get great advice about dogs and cats. Visit the Dog & Cat Answers
Center.<http://global.ard.yahoo.com/SIG=15oguorlg/M=493064.13814537.14041040.10835568/D=groups/S=1705329729:MKP1/Y=YAHOO/EXP=1292862789/L=1103693a-0c46-11e0-a975-d7c837efb5b7/B=VHAVEUwNPO0-/J=1292855589393100/K=NkpMpL5tYgbx6oQIcvxyug/A=6078812/R=0/SIG=114ae4ln1/*http://dogandcatanswers.yahoo.com/>
 ------------------------------

Stay on top of your group activity without leaving the page you're on - Get
the Yahoo! Toolbar
now.<http://global.ard.yahoo.com/SIG=15or57ftg/M=493064.13983314.14041046.13298430/D=groups/S=1705329729:MKP1/Y=YAHOO/EXP=1292862789/L=1103693a-0c46-11e0-a975-d7c837efb5b7/B=U3AVEUwNPO0-/J=1292855589393100/K=NkpMpL5tYgbx6oQIcvxyug/A=6060255/R=0/SIG=1194m4keh/*http://us.toolbar.yahoo.com/?.cpdl=grpj>
   [image: Yahoo!
Groups]<http://groups.yahoo.com/;_ylc=X3oDMTJkdmFpNnJxBF9TAzk3NDc2NTkwBGdycElkAzM4MTUwNTUEZ3Jwc3BJZAMxNzA1MzI5NzI5BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMjkyODU1NTg4>
Switch to: 
Text-Only<id-gps-traditio...@yahoogroups.com?subject=change+delivery+format:+Traditional>,
Daily Digest <id-gps-dig...@yahoogroups.com?subject=email+delivery:+Digest>Unsubscribe <id-gps-unsubscr...@yahoogroups.com?subject=unsubscribe> Terms
of Use <http://docs.yahoo.com/info/terms/>
   .

__,_._,___

-- 
===============
"

2. Test roti djahe on moto droid 1

Link bisa didapat disini
http://www.droidforums.net/forum/android-roms/107547-rom-gingerbread-rebakedv2.html

Setelah install dan mencicipinya.
Masih ada bbrp bug yg belum sempurna :
- gps yg tidak jalan, pakai gmap standar lgsg FC
- dial number / telp mengakibat kan sinyal evdo jd tdk sync, ini dpt
dipancing kembali dg mengaktifka airplane mode.

Secara keseluruhan berjalan dengan sempurna semua fungsi dan performance
meningkat sinyal tmbah bagus, virtual keyboard lbh akurat, batre lbh irit.

Baru itu yg saya temukan :-) mau coba?

-- 
===============
"

3. Sansui MiniPad 7" LAN Problem

4. SQLite Encryption

5. Artis / Org terkenal ber Android

6. Its funny but irritating

7. gtalk bermasalah?