cogitolearning
December 2, 2013
Programming Tips, QuantLib, Tutorials
boost, c++, quantlib, random numbers, tutorial
QuantLib uses random numbers in many places, such as in Pricing Engines to calculate the NPV of an instrument, in the Brownian Generator that is used in market-model simulations and in the Monte Carlo Model for path samples. In financial…
Read more
cogitolearning
November 28, 2013
Android, Tutorials
android, animation, introduction, tutorial
In a previous post I introduced you to the different types of animation systems that Android provides before explaining the View Animation System. The View Animation System allowed you to simply animate changes in the appearance of a View element….
Read more
cogitolearning
November 21, 2013
Android, Tutorials
android, animation, design, transition, tutorial, ui
In this series of posts I will develop a more practical example to show where transitions can be useful. In this post I will start with the initial layout and design of a user interface and create the default transitions…
Read more
cogitolearning
November 7, 2013
Android, Tutorials
android, animation, scene, transition, tutorial
In Android KitKat (API level 19) Google introduces a new system for animating layout changes. Before KitKat the only way to animate layout changes in XML was to set the flag animateLayoutChange on a ViewGroup. This did not give you…
Read more
cogitolearning
October 31, 2013
Android, Tutorials
android, animation, tutorial
When reading though the documentation for View Animations you might stumble across the three flags fillBefore, fillAfter and fillEnabled. You can set the flags in the XML resource of an animation, something like this. <scale android:duration=”300″ android:fillAfter=”true” android:fillBefore=”false” android:fillEnabled=”true” android:fromXScale=”0.0″…
Read more
cogitolearning
October 30, 2013
Android, Tutorials
android, animation, startOffset, tutorial
Until now we have avoided talking about startOffset, a property that allows you to delay the start of an animation by a specified number of milliseconds. You can do this in the XML resource file of your animation. <scale android:duration=”300″…
Read more
cogitolearning
October 24, 2013
Android, Tutorials
android, animation, interpolator, tutorial
Today I will show you how to customise and even create your own interpolators. As discussed previously, the View Animation system provides a number of ready made interpolators. But sometimes you have your own requirements and you just want that…
Read more
cogitolearning
October 17, 2013
Android, Tutorials
android, animation, java, tutorial
Previously I showed you how to create View animations using XML resources. I just wrote a few lines of actual Java code that was only needed to start the animation. In this post I will show you how you can…
Read more
cogitolearning
October 9, 2013
Android, Tutorials
android, animation, interpolator, tutorial
In the last post I promised to continue the animations tutorial with telling you how customise your animation using interpolators and attributes that are common to all ViewAnimation objects. In this post I will be using a simple animation of…
Read more
cogitolearning
September 18, 2013
Android, Tutorials
android, animation, tutorial
In the last post I introduced the Android’s simple View Animation system and implemented a basic animation. In this post I will tell you what properties you can animate with the View Animation systems and how to combine multiple animations….
Read more