Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old November 24th, 2011, 06:31 AM   #1 (permalink)
New Member
 
Join Date: Nov 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fragment rotation

how to rotate fragment in android 3.0.I have an activity in which there is listfragment and fragment.on click of the item in list i want to apply rotation for the fragment.I have tried with below given code:

ObjectAnimator.ofFloat(getView(), "rotationY", 0, 360).setDuration(500).start();


This code works well witn listview in listfragment but when i used the same for fragment rotation it throws exception.Can anyone help me out to deal with this mess.Any help would be appreciated.Thanks

asmitalion12 is offline  
Reply With Quote
Sponsors
Old November 25th, 2011, 03:05 AM   #2 (permalink)
Premium Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
 
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
Default

Can you post the exception that gets thrown?
jiminaus is offline  
Reply With Quote
Reply

Bookmarks

Tags
android, fragment


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 08:17 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo