DockPanel - new OpenSource widget, and issues

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

DockPanel - new OpenSource widget, and issues

Postby odedo » Fri Jan 07, 2011 3:47 pm

Hi,

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
odedo
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue May 11, 2010 9:37 pm

Top

Re: DockPanel - new OpenSource widget, and issues

Postby pyretta » Wed Feb 23, 2011 10:09 am

Hi odedo,

thank you very much for your great widget! :)

I really would like to use it in my app. But I use Eclipse to develop my apps for android.

Version: Helios Service Release 1
Build id: 20100917-0705

In this Version I can't use your Widget, because Eclipse don't know or find it in its libraries.

This is what Eclipse give me back in the Error Log:

Warning
Tue Feb 22 10:22:01 CET 2011
AndroidManifest: Ignoring unknown 'com.MobileAnarchy.Android.Widgets.DockPanel.DockPanel' XML element


Do I have to put any code into my AndroidManifest which references to your widget?
I use in this Android Project the 2.1 SDK, if you need to know.

Can you help me to fix this Problem?
That would be very nice.
Thank you very much.

Best regards,
pyretta
pyretta
Freshman
Freshman
 
Posts: 2
Joined: Wed Feb 23, 2011 9:56 am
Location: Germany

Re: DockPanel - new OpenSource widget, and issues

Postby pyretta » Mon Feb 28, 2011 1:15 pm

Can anyone else help me, please?
I really don't have any clue why it doesn't work.
I can't imagine that this problem occurs just on my system.

Which solution did you find zu solve this problem?

I would be very glad for any help.
Thank you.
pyretta
Freshman
Freshman
 
Posts: 2
Joined: Wed Feb 23, 2011 9:56 am
Location: Germany

Re: DockPanel - new OpenSource widget, and issues

Postby odedo » Mon Mar 07, 2011 11:44 am

I suggest you'd copy the entire "DockPanel" folder into your project, keeping the namespace unchanged.
That's what I did when I used this view on my projects.

The widgets project is to "group" all my custom widgets into one place, but I don't reference this project from other projects.

Regards,
Oded
odedo
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue May 11, 2010 9:37 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests