Problems with SlidingMenu library - java

I want to make a shadow in my entire activity, like the commonly used in tutorials of how to use some app, but I don't know any way to do this.
If you want more details about why I want to do this, I'll explain:
I found an old app at my works GitLab, but it was made before the oficial implementation of NavigationDrawer. So, it uses a library called "SlidingMenu" (https://github.com/jfeinstein10/SlidingMenu), but this library is very limited and I don't have any idea of how to make the activity look "disabled" while the sliding menu is open.
By the way, if someone knows how to set a maxWidth to the sliding menu please feel free to tell me because i don't.

Related

Audio/Video Capture in PhoneGap/Cordova using external Java plugin

I am developing an android application using PhoneGap/cordova and Javascript. I want to include audio/video capturing functionality in a particular html Div of my application using external Java plugin.
Or some mechanism where I can have a native Java based widget which will come in the same screen at a particular location (rather than replacing the current view completely and occupying the entire screen)
I have searched across the web but could not find an efficient way to do it. Can anyone suggest me any way to handle this?
Is it an option to use the built-in feature?
http://docs.phonegap.com/en/1.9.0/cordova_media_capture_capture.md.html
Try to read this blog,hope will be helpful
http://www.raymondcamden.com/2013/5/20/Capturing-camerapicture-data-without-PhoneGap
Might not be exactly what you want: Instead of DIV use overlay android fragment.
CordovaWebView is part of an Android activity. That means we can overlay a fragment or say dialog at a location we want. Similar to native android development.
Challenge: If you want to show DIV/Dialog in between HTML you will have to take care of lot of positioning related issue.
Solution: You can target to have your DIV/Dialog positioned at the start or end and can then re-position your HTML placeholders.
Things you would require: Cordova Plugin creation, Dialog/Fragment understanding, JavaScript to reposition the DOM elements (if required), Then all is native.
Here is a SO link which can help you.
Please let us know if it helps and it would be great if you share your end solution.

Continuous Image Marquee

I'm just curious if anyone knows the easiest solution for an image marquee in Android with clickable events, etc.
I've looked at a few various projects and flicked through the manual, but I can't seem to find anything appropriate.
I would like to create a scrolling image effect similar to the Expedia android application homepage. See https://play.google.com/store/apps/details?id=com.expedia.bookings&hl=en
What I've looked at so far :
FragmentActivity -- Scrolling seems jittery and would take a fair old amount of adapting to achieve what I want
HorizontalScrollView -- Limited scroll functionality (this would be perfect if I could
continiously loop the contents, but short of overriding the draw I can't see how it's possible)
GLSurfaceView -- So far this seems like it's the only viable solution, but it's gonna take me a while to implement all the functionality manually
Before I get cracking deep into the OpenGL route it would be of great help to know if there is something out there that can already do this.
If anyone could suggest anything it would be much appreciated!
Thanks

How to create a GMail.app like menu

I'm new into Android programming, but making steady progress with it. My app has several activities, and I would like to add an GMail.app like menu to it.
It would be very stunning if someone could give me a hint what I should search the API docs for to create a menu like this. Thanks a lot.
If you're targeting API 11 and higher you can just use the ActionBar. If you want to provide the same UI for devices with older versions of Android as well, you can give ActionBarSherlock a try. Here's a tutorial on how to use it.
You can start off by creating a custom Menu. Read up on it here. To have your Menu look a certain way, you'll want to mess with Themes and Styles. You can find a basic tutorial on that here. Your question is somewhat broad so I can't provide specific code examples, but the links should get you on your way.
Specifically what you're looking for in this case is the ActionBar Dropdown Navigation Mode (see the ActionBar docs). Of course, this is only for API level 11 and higher since it involves the ActionBar.

Android Menu Layout Front page

I want to make a menu sort of similar to Yelps front page.
The left image in particular. I feel like I've seen this on multiple apps, and I also remember thinking that this was actually something built into the default android layouts, but I can't seem to find anything on it anywhere.
How would I go about making this layout? Is there something already built for you, or do I have to make using image buttons and a relative layout?
Google+ also uses something like this on their first page; a lot of apps do now. It's called a dashboard layout. You can see an overview of that here and an explanation of how to create it here.
Using button images and a relative layout is an easy way to do this. For help on that look at this tut: http://developer.android.com/resources/tutorials/views/hello-relativelayout.html

"Home Screen" like effect while switching between views on Android

I'm creating an application on android similar to that of a book. I would simply like to have the scrolling effect between views (not activities) similar to that of the home screen. Currently I am using a ViewFlipper and don't have the animation I would like, since the shift is sudden as opposed to following your finger.
I am aware that there are several opensource projects and classes being developed to achieve such a thing more easily for the individual programmer, but wondered if there was a way I may have overlooked to implement a homescreen-esque effect. An alternative which I have thought of using would be a TabView, with no label tabs being displayed above the content of the page, yet have not heavily looked into this option yet.
If anyone has encountered the same hurdle and has any ideas of how to overcome it, I will buy you a pizza! (Not really... I don't know your address) But I'd be very appreciative! :)
Thanks
I think you're looking for the ViewPager. It's part of the compatibility library.

Categories

Resources