I'm having a toolbar in which I have a menu option so when the guide button from the menu is clicked the guide activity opens but now I want to add a back arrow on toolbar so I can navigate through button clcik and as I see some solutions many of them are suggesting
android:parentActivityName=".UI.HomeActivity" // UI.HomeActivity is where i want to go back
but I don't know why it doesn't seems to work I was not able to see any arrow on the left of the toolbar
and dont know(correct me if wrong) but tbh using android:parentActivityName=".UI.HomeActivity"
for navigating doesn't looks good to me , i was preferring manaul onClick listner on the icon(as image) in the tool bar , but dont know how do i do that
Related
So I want to create a back button on every View I open in my Xamarin Android app. To explain better here is the screenshots, that will help me explain my problem:
Lets assume this is my first view when I open app:
When I click three dots popup menu opens. And for example I select Profile item.
Then this view opens:
Now as you can see at the top I have back button, but the text near the button is hardcoded... How can I make it show me previous view name? In this case it should be "List".
Moreover, I don't know how to implement back button to get back, and I was looking for any kind of tutorial or example, but couldn't find any... could someone please help me?
UPDATE 1
I am using MvvmCross in my application there are some places where I navigate between activities and some places where I navigate between fragments, I thinking about unifying everything and make navigation only between fragments...
For now I didn't made any implementation of back button, I need some help with that
I want to transform the upper left button that normally allows to open the Navigation Drawer to become a "Up" button (with the left arrow).
I looked everywhere but I couldn't find even a question where this problem is answered in a quick way.
Details:
I have a single Activity. The NavigationDrawer contains a list of elements. Let's call them Element1 and so on.
When I open the application I can see a "Home" Fragment that contains a sort of splash screen with some basic details of my application.
If I open the Drawer and select Element4 I switch the "Home" Fragment with the "Element4" Fragment. The icon at the top left should become the classic "Up" icon as intended in the Google developer site and allow me, touching it, to come back to the "Home" Fragment.
A simple example could be the NavigationDrawer application mockup created by Eclipse in its wizard. I want to modify it to make the 0 section the home section and if the 1 section its child.
Maybe if someone that knows how to do answer me it'll be a big help not only for me but for many other people.
Thanks
I was curious, since I couldn't really find anything on this, if there was a way to do what happens, when you say have tabs with android, for a normal action button. Onclick on the button, I was curious if there was a way to highlight the bottom of it like the below image. Please give me your thoughts, right now, I can switch the image fine, but I am really looking for just an indication while they are inside that buttons fragment to see as is shown below where movies has the highlighted bar under it. So for my menuitem when they click it until they go back, to normalize it, I was curious if I could get this functionality somehow.
I am trying to create a YouTube style UI for my app.
I have two Fragment.. lets say A(left) and B(right). On clicking the app icon in the Action bar, B should slides to the right. On clicking again, it should slides back to the left.
I have a Listview on B and A is empty. Also, I am using ActionBarSherlock.
The following behaviour is experienced:
1. When App icon clicked,
B slides to the right normally
When App icon is clicked again
B slides to the left normally
When App icon is clicked again
B doesnt slide unless the fragment is touched manually.
On subsequent clicks, B slides to left normally. But it slides to the right only when touched after clicking the button.
what could be the issue and how can i solve it? Thank you.
Friend's
I need to get slider pop up window,when i click a tab control available at bottom.when i click the tab,i need to show the slider pop up from bottom to top animated to show the login button,after login i have to move my actual tab Activity.How can i get the view for slider pop up.
lets refer the screenshots,i attached here what i need exactly..
.
From these when user to choose login at the time second screen appears looks like it.
How can i get the view like this above.
Thanks in advance..
Get the sliding drawer view by id, cast it to a SlidingDrawer and then there is a function the SlidingDrawer object to pop it up. You might have some weird issues though with screen state if users do stuff like hit back or close the slider.
To do what you need in the screenshot, do a sliding drawer with an empty handle and slide that up from the bottom as needed. The sliding drawer is just another layout that can contain buttons, etc.
Here is an example: http://www.androidpeople.com/android-sliding-drawer-example-tutorial/