I've built a small widget that I think some of you might like.
Here is a screen recording of the view in action:
http://www.youtube.com/watch?v=NARZmoyZypk
It's basically a retractable panel that can be docked to any side of the screen.
You must provide the Drawable for the toggle button and a layout id for the inner content of the panel,
For example
- Code: Select all
<com.MobileAnarchy.Android.Widgets.DockPanel.DockPanel
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_gravity="right"
ma:dockPosition="right"
ma:handleButtonDrawableResourceId="@drawable/right_dock_handle"
ma:contentLayoutId="@layout/dockpanel_vertical_content"
ma:animationDuration="1000" />
The full source code and a demo project can be found at:
http://code.google.com/p/mobile-anarchy-widgets/
I have one issue: When the animation ends and I set the inner panel's visibility to "GONE", there is a very small (but noticable) flicker on the toggle button.
You can't actually see it in the video, you must download and run the project yourself.
Is there a "trick" to overcome this flickering?
Hopefully one of you has the answer, so I will be able to finish this widget and move on to the next one
Regards,
Oded


