Start Activity with Sliding Menu slide animation - java

I implemented the Sliding Menu library in my app but I have an issue with the navigation.
In the behind view, I've set some buttons which when pressed change the Fragment of my current Activity. Normally, when the fragment is changed, the Activity slides back in it's place.
But I encountered a problem and I am forced to use a new Activity on button click. The thing is that, when I start the new Activity, it opens a new "screen" (as expected). What I want to do is to slide the screen back to it's original position with the new Activity in. Any way I could do that?
Basically, I want to launch an Activity with Drop-Down navigation and 2 normal activities.

Related

How to set selectedItem in bottomNavigationView to nothing?

I currently have a bottom navigation with 3 items for my 3 activities. I have a separate button on one of the screens that opens a new activity. When this happens, I'd like to program it so none of the 3 options of the bottom navigation view are selected.
bottomNavigationView.setSelectedItemId(R.id.______)
This is the line I use to select which icon I'd like to be shown as currently clicked. If I leave this line out of my activity, the first item of the bottom navigation view is selected by default.
I think that it will be better for you to use fragments for this task.

making a View like Fragment Drawer

I would like to make a Fragment show up just like a Fragment Drawer would, but not only to a list of intents.
(If you don't know what I mean by Fragment Drawer):
Google products such as Gmail, "Google app", Google Play... utilize them frequently.
The Fragment Drawer is a menu on one of these apps created by swiping from left to right or clicking the "Hamburger" button.
I would like to highlight the distinction between what I want and the Fragment Drawer is: I would like to be able to place TextViews, ImageViews, and Buttons inside of it as if it were a normal fragment in which I could just inflate a layout in it and I would rather it come from the right instead.
If a visual representation is needed I would be happy to try my hand at making one.

Adding app widget from my app

I have written an app which has main activity and app widget.
Dragging the widget to the home screen creates new widgets, as it should. I am looking for the way to do it when the user presses a button in the app activity.
There is no way to put widget on the "Home" screen programicaly.

android UI implementation Opinion

I i've a layout with 4 tabs at bottom a menu bar at the top and the all content it's to display in the center of the screen, and the tabs and menu bar is visible in all screens. In some screens I want to have some buttons to open another page (different of the tabs content) but in the center of the screen as the others.
I tried to implement that with tabhost (4 tabs), one activity per tab, but then I was in random tab and i've per example a button to show me another activity i want it to show in the center of the ecran without losing the menu bar and tab bar.
So, the best way to do this is with tabHost and a activity per tab like I did and try to find a solution for this, or just implement this using fragments?
Thanks
Instead of using the activity for each tab, use fragment for each tabhost.
Please refer the below link
http://developer.android.com/training/implementing-navigation/lateral.html

Activity on top of mapview

I have a Activity on top of a MapView that only covers a small portion at the top to display additional data.This Activity is called when a Polygon is touched on the map. The issue that I am faced with is that the first activity gets disable when the second Activity is in view. Is there a way to still interact with the first activity when the second one is being displayed? Or is there a better way of accomplishing what I am trying to achieve which is displaying a custom view at the top of the MapView. Thanks

Categories