Can I skin the Activity Dialog to have a custom animation? - dialog

as explained in the title I would like to know if I can set a custom animation and/or background for the Activity Dialog. I don't find in your documentation any information regarding this... and further than that I have problems setting the Theme... it doesn't matter which theme I set, always see the same.
All this look the same:
DialogTheme.DEVICE_DEFAULT_LIGHT, DialogTheme.MATERIAL_LIGHT, DialogTheme.DEVICE_DEFAULT_DARK...
I use the following code:
_activityDialog = Dialog.service.create(
new ActivityBuilder()
.setTheme( new DialogTheme( DialogTheme.DEVICE_DEFAULT_LIGHT))
.build()
);
Thanks in advance for any help

There is no way to control the animations of native dialogs at this point.
The themes are applicable only to Android and depend on the version of Android you are using.
If you are looking for an enhancement to the ANE feel free to drop an enhancement request into github: (http://github.com/distriqt/ANE-Dialog/issues)
Or add a request to our suggestion site: http://distriqt.uservoice.com

Related

expandable (month view)/collapsable(week view) calendar widget for android

I saw this android calendar widget used in an app called cal and was quite impressed.
I would like to implement a similar one in my app as well. Currently I am using an android calendar framework called caldroid and I am using it as a Fragment and will be invoked on action bar button click and will get collapsed clicking back on the action bar button.
But I would like to do the widget like in the app. Screen shots attached.
I would like to know if you guys are aware of any frameworks that can used to achieve this or any approach or tips on how to code this.
I am bit new and know basics of android. Haven't attempted to create custom widgets yet.
Thanks,
Bala
Maybe this library can help you.
https://github.com/blazsolar/android-collapse-calendar-view

How to perform ActionListener() in eclipse

Actually, I want to perform pure mouse actions(Clicking buttons, selecting check boxes, and select radio button)based upon the GUI label(name), But all the tutorials are given the example to perform with JFrame which we have created.
These examples makes me confusing.
Honestly I'm not professional developer. My professional is testing(QA), but I believe I have sufficient programming knowledge to understand the code. Please give me some sample that i can perform in eclipse IDE.
Note:
The objective of my question is:
How to perform the ActionEvent() in existed iDE?(The frame have File menu, Edit menu and so on.) Is it possible to do with Java?
Please share your ideas with me.
Thanks in advance.
Santhosh.
Create a frame.
Put a button into it.
Call the addActionListener class and add a ActionLister object
into it.
Override the actionPerformed method inside the anonymous inner
class.
As your question talks specifically about eclipse. You should use a plugin called window builder, built by google. It helps you handle action events.
Read the oracle's documentation for learning. http://docs.oracle.com/javase/tutorial/uiswing/components/button.html
I can't write all the code here. But just to get you started here's a link. http://www.javaprogrammingforums.com/java-swing-tutorials/278-how-add-actionlistener-jbutton-swing.html.

Create Custom view in Android

I need to create a Custom view in android which will have dynamic text like price, address etc. and also an ImageView inside it as shown in the image below. I tried to find google some tutorial for custom view but didn't find something satisfactory to do all these things. I also need to use onClick event on this view. Please guys, some code would be of great help. I'm a novice to android. I read google tutorial to create custom view but couldn't implement this.
https://lh4.ggpht.com/HmwmRTx3g9ddkHbgvZXpZOB3Am-O9OQARQ2qpxJ16zTDZbG57CmvgxUC75sGFzC3cqrH
Thanks for attention.
This is called Custom Overlay for MapView.
You can check example and implement as per your requirement - Android MapView Balloons
You can use FrameLayouts. It is very simple to use. FrameLayout can add several views on top of each other. It creates a stack of the views. Just add whatever views you want to inside FrameLayout and use the property setVisibility() to control when to show which view.

Android googledocs app component name

I am planning to provide menus for my app similar to the sliding menu shown in the below image when clicking on the button in the list view. Could you give me some pointers on, how it can be achieved. Is it SubMenu ?
http://static5.businessinsider.com/image/4db84baeccd1d58435080000/google-docs-for-android.jpg
I got it, the behavior or pattern name is QuikActions.
Useful introductory article for the beginners like me is available in the following link
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/

What View Component does the Google Plus App (Stream) use?

if you use the Google Plus App on Android and switch to the Stream, you get a view where you can swipe to the left and right between the All circles/Incoming/Nearby-Stream. What view component is used for this? Is this a standard Android component? Or where can I find democode how i can build such a view component?
You should take a look at the ViewPager from Android Compatibility Package for the desired widget/swipe navigation. Find more about it here
http://developer.android.com/sdk/compatibility-library.html
Also, checkout this recently posted tutorial and some sample code on ViewPager by Richard:
http://geekyouup.blogspot.com/2011/07/viewpager-example-from-paug.html
It is a combination of a ViewPager together with an indicator for where you are currently and where you can go swiping left and right.
A sample of how this can be done along with code you can use in your own apps may for example be found here. I've played with this code a little and it works pretty well.
None of the default widgets/views. I guess, it's some kind of a custom view with swipe functionality.
Honeycomb opens up a few new widgets which seem to have these functionality. Have a look here.
http://developer.android.com/sdk/android-3.0.html (New Widgets)
I used APKTool to take a look at what's going on. Hopefully it is okay to post this here. This is from version 1.0.2 of the G+ APK.
removed google+ app code as per CommonsWare's suggestion
So, it looks like they're using standard views, though perhaps with a good deal of gesture detection and smooth animation magic.
EDIT) If you really want to know about the exact inner-workings of what is going on in the Stream activity, I suggest you use APKTool yourself and examine the .smali code

Resources