I have a source code to do (Slider menu)..
But I want to do like it to just open a specific content, meaning that I want the second content to appear over the current content from right to left by pressing a button.
Hint: I'm not want to open activity totally by
overridePendingTransition(R.anim.animation, R.anim.animation2);
I just want the second content opens over the current content like what sliding menu acts.
(sliding menu appears from left to right by moving my finger from left to right, I want my second content opens from right to left and appears partially by pressing a button and back to hide my passing my fingers over it and move from left to right)
example: https://play.google.com/store/apps/details?id=com.wunderkinder.wunderlistandroid
Sorry if I could not explain, and hope anyone got my mean.
I think you got the "Activity" concept wrong.
I understand, you can never show 2 activities at the same time. An activity is not a "screen", "view" or something like that... it is a context itself. It covers a whole state in your application. If you want to do something like a slider, you can play with views, animations or even better, fragments.
Related
I want to implement a side drawer widget. I don't know if I am using the right words or not. A small icon will be placed on the left/right side of the screen, if it is swiped, it should open an activity. If I close it, it should remain on the side of the screen until application is closed from the inside. I have seen this in an application and I am posting screen shot too.
Notice the image hint on the left side. Its always there even if we press home button:
I searched for it but didn't find anything. I guess it's because I am not searching with the correct words maybe? It would be great if I knew the name of this widget.
I have a news app.It is supposed to launch by swiping on the screen(homescreen or while in any other activity like switchr app).I learned to code swiping patterns but in my case I have to do exactly in the following way(swiping bottom right to top left)..Kindly have a look over following pictorial representation
1.Firstly app should launch by swiping bottom right to top left on the screen
2.next,show the user with list of scrollable arc menu buttons embedded in it like second image
3.when a user clicks on particular button it has to show a brief description about the content like third image
my problems:
creating arc like scrollable menu on bottom right side of the screen(I googled sia ahmed's solution over here ,it helped me a bit)
creating that parachute like structure(image 3) when user clicks particular bubble like button in arc menu..
please guide me
For the menu check out arcmenu by daCapricorn on github. Also see this question.
The balloon bit is trickier. I know of a balloon hint code for android but i haven't seen it in action.
Hope this helps!
I'm trying to make an extra effect to menu that will come down from the top of the screen
I want to make it enter the screen while swiping it from the top and if the user left it, it should continue to the end
this is the figure that demonstrate what I want to do:
I tried to do it with animation but the animation will not go on while swiping and it will go to the end without touching
any other ideas to move the view down with finger ?
Check this out for a sliding Drawer http://developer.android.com/reference/android/widget/SlidingDrawer.html
it sound like you kind of want the same thing as the pulldown menu at the top of all android phones except you want it customized, the link will show you that.
OK
It works for me now
I used SlidingTray.java class from this API
API Website
btw : this api open source
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/