page-curl

How do I create a custom page curl Core Animation?

*爱你&永不变心* 提交于 2019-12-03 02:52:09
I'm trying to create a "page curl" animation of an image in my iPhone application. I t UIViewAnimationTransitionCurlUp, and it's undocumented Core Animation siblings, however the image I need to animate is a transparent PNG, with "uneven" (some alpha pixels) outlines. When using the aforementioned pre-made transition, those alpha pixels are painted black as soon as the animation starts, which looks terribly ugly. Therefore, I seek to create a Core Animation of my own. I have tried to research the subject, but have been unable to find a good overview of the techniques involved. The

Page curl effect for Activities in Android

蹲街弑〆低调 提交于 2019-12-02 21:59:22
I need page curl effect for Activities in Android as in iPhone. I checked the following links http://code.google.com/p/android-page-curl/ https://github.com/harism/android_page_curl/ But both are useful for Bitmap (Images) only but i need curling effect at startActivity() i.e, when i am going for new Activity. Is it possible ? and how ? @surendra Here is one good example explaining how you can add page curl to activity... http://devappandroid.com/android-beginner/page-curlturn-effect-android 来源: https://stackoverflow.com/questions/8679538/page-curl-effect-for-activities-in-android

Android page curl by harism , adding TextView caused and exception :

吃可爱长大的小学妹 提交于 2019-12-02 10:06:45
I need to edit harism's project about page_curl https://github.com/harism/android_page_curl with the following requirement : I need to add TextView bellow the Curl_View (when the page is flipped the content of the textView is changed). I made an Interface that supply the TextView with the data public interface TextProvider{ public int getTextCount(); public void setText(int index); public String getText(int index); public TextView getTextView(); } and the only place to update the TextView when the pages is curles is in onDrawFrame() methode but I have the following exception : android.view

Linker command failed with Undefined symbols for architecture i386

时光毁灭记忆、已成空白 提交于 2019-11-29 12:55:39
问题 i am trying to do the half page curl feature. This is the code I am using: #import <QuartzCore/QuartzCore.h> CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setDuration:1.0f]; [animation setTimingFunction:UIViewAnimationCurveEaseInOut]; [animation setType:(notCurled ? @"mapCurl" : @"mapUnCurl")]; [animation setRemovedOnCompletion:NO]; [animation setFillMode: @"extended"]; [animation setRemovedOnCompletion: NO]; notCurled = !notCurled; But I

iBook page flip transition

99封情书 提交于 2019-11-29 10:28:25
问题 I'm trying recreate iBook like transition for pages in landscape mode for an pdf reader app. I only need the animation, not the, touch handling like iBook app; the user with a simple swipe turn the page. I have tried different sample code, including Leaves, but I can't find anything simple. Can Anyone help me to create this simple animation, or there's a simple way to recreate iBook transition? 回答1: Ole Begemann has done something like this. You can find the project here on GitHub. Ole also

Page curl not working in Action bar tabs

孤者浪人 提交于 2019-11-29 09:01:48
I am referred the Harism page curl to implement it in Action bar tabs.Because I thought this is the only thing should fulfill my requirement. Below I am showing the output what I get it till now. I need to add the pager curl in Viewpager.So that the action bar tabs will swipe along with curl page. Below I am posted the codes related to that. MainActivity.java: public class MainActivity extends FragmentActivity implements ActionBar.TabListener { private CurlView mCurlView; private ViewPager viewPager; private TabsPagerAdapter mAdapter; private ActionBar actionBar; @SuppressWarnings("unused")

Android Page Curl Animation by Harism shows inconsistency in the reverse index count in the getBitmap() method of CurlActivity()?

社会主义新天地 提交于 2019-11-29 08:31:39
I have used Harism's Page Curl animation for my application, but I have been facing a small problem, I am using the index Value in the getBitmap() method of the CurlActivity, I need to show page numbers to the user on every flip of the page(say using a call to Toast.maketext().show ), this works fine while going from page 0 to pageCount.length , but when I move page right to left(the pages, i.e. while going the other way from pageCount.lenth to 0) the index values are not consistently reduced. Can anyone please help me with this. Thanks in Advance. P.S.:That would be my first question on

How can we show Page Curl Animation on click of the Button in android

醉酒当歌 提交于 2019-11-29 03:50:57
I am using the Page curl animation in my application. Code can be found here: https://github.com/harism/android_page_curl/ . That code is working fine but i want to make some Modifications in it. 1.To display the image on full screen with no background. 2.I want to show this curl animation on click of the button also. The code for the mail CurlActvity class is http://pastebin.com/ZLzP6Zxt at there. If anyone have some Idea about where i have to made changes the code then please help me. Any help is appreciated. Edit: The 1st problem To display the image on full screen with no background is

Page curl not working in Action bar tabs

风格不统一 提交于 2019-11-28 02:22:53
问题 I am referred the Harism page curl to implement it in Action bar tabs.Because I thought this is the only thing should fulfill my requirement. Below I am showing the output what I get it till now. I need to add the pager curl in Viewpager.So that the action bar tabs will swipe along with curl page. Below I am posted the codes related to that. MainActivity.java: public class MainActivity extends FragmentActivity implements ActionBar.TabListener { private CurlView mCurlView; private ViewPager

Android Page Curl Animation by Harism shows inconsistency in the reverse index count in the getBitmap() method of CurlActivity()?

半世苍凉 提交于 2019-11-28 01:56:23
问题 I have used Harism's Page Curl animation for my application, but I have been facing a small problem, I am using the index Value in the getBitmap() method of the CurlActivity, I need to show page numbers to the user on every flip of the page(say using a call to Toast.maketext().show ), this works fine while going from page 0 to pageCount.length , but when I move page right to left(the pages, i.e. while going the other way from pageCount.lenth to 0) the index values are not consistently reduced