Search code examples
androidxmlkeyboardactionbarsherlockcalculator

How to implement this keyboard?


This is the keyboard from the Sony Xperia calculator app (ICS):

enter image description here

It can be slid left to bring up the scientific buttons.

enter image description here

  • How do I implement a keyboard like this?
  • Can the State Pager from Action Bar Sherlock be used? (how?)

My app's minSdkVersion is 8, targetSdkVersion is 17.

If not any other alternatives to implement both the basic and scientific keyboard (mine has lots of keys)?


Solution

  • you can implement this by using ViewFlipper.

    ViewFlipper is a simple ViewAnimator that will animate between two or more views that have been added to it. Only one child is shown at a time. If requested, can automatically flip between each child at a regular interval.

    So you can design multiple screen and show it using viewflipper