How do you make a steam like menu?
Below is a screenshot from my Samsung Galaxy S. The menu unfolds when you press the menu button on the bottom of the phone and it pushes the current window to the side and displays the menu. So it steals 70% of the screen. Question is, how is it built? I don't even know where to start building something like this. Any ideas? Tutorials?
Should be compliant with android 2.3.3.
Use Jeremy Feinstein's SlidingMenu library. It works very well and actually performs smoother than the Steam implementation of it.
Related
So, I started learning android development recently, and after a week, I've gotten far enough to create a simple calculator. I have two problems with the layout.
First is, I wish to remove the toolbar. I tried to change the theme to one without a toolbar (NoActionBar). This works in the design view, but doesn't reflect in the emulator (AVD) or my phone.
The second and more bothersome problem is with the buttons. I used a GridLayout for a 5x4 button grid, and I use the layout_columnWeight and layout_rowWeight to ensure they are the same size across the screen. It appears nice in the design view AND in the emulator, but it looks very weird on my phone. Also, the buttons don't show any reaction animation when pressed.... Kinda like a static image.
My minimum SDK for the project is 5.0 lollipop and my phone is 5.1 lollipop.
The first attached image is the design view, and that's exactly how it looks in the emulator. The second image is a screenshot from my phone.
I just started learning to program for android and sadly after making one program (Hello World) I have already ran into an issue. The gesture for "Swipe to Unlock" or for the camera are not functioning. I can bypass it on the stock emulator because it shows a notification i can click that will skip the screen, however i would much rather just figure out a solution, i have searched around on Google and StackOverflow to no avail... maybe someone can help out.
Thanks in advance,
Jon
ok solved! for those that might have the same problem, just press f2
adb shell input keyevent 82
I had the same issue and grew tired of it, this always worked.
AVD_WXGA_TABLET emulator.
Android v 7
F2 does nothing.
Dragging with left-down mouse tries to do a swipe up but bounces back down when I release the mouse.
I've tried fast and slow, release on the virtual device or off it. Short and long strokes. You name it...
The f'ing thing won't unlock. And for all the keystrokes available in the tool pallet including fingerprints, there is no simple swipe-left/up/down/right. You'd think they would have had cntrol-alt-arrow for that out of sheer common sense or as the result of the developer trying to use it.
In my case, I just restarted the simulator by holding down the "Power" button in the simulator menu for a couple of seconds and then choosing "Restart." I was able to unlock the simulator easily after that.
I'm not sure exactly which step solved it, maybe all, but these were my steps
Use the SDK manager to update to the latest version of the emulator
Turn off the emulator (hold the power button and select Power Off)
Close Android Studio
Reopen Android Studio
Launch the emulator from the AVD manager
On mac you can keep holding the command key and then do the swipe gesture with the mouse or trackpad of your computer.
Video
Try using one of two ways
Swipe up from top section of screen
Swipe up from bottom section of screen i.e. just above the navigation buttons.
I am creating a application which needs to show all the time to user, User also can hide that app, When he drag his finger from left to right or right to left(On android screen, No matter in which application he was) then all of my document list will be shown.
I know its all most impossible, But some apps are all ready doing this, I dont know how this is possible.
I searched on google but didn't find any useful link.
Here look at this snapshot what i want.
App which is using this:-
Multitasking
I am an Apple iPhone user. I have never owned an Android of any type so I am used to the button I have to tap on the screen to go back a screen instead of the physical "back button" that Android has. An iPhone developer has to code the back button in for the user to operate the game but an Android developer does not necessarily have to code a back button and can just rely on the physical button on the phone.
My question is if it is okay for me not to code a button for my Android app and just let the user use the hardware back button on their phone? If there is no back button to tap, will an Android user instinctively know to hit the physical back button to jump back a screen? I don't really know this answer since I have never owned an Android and always rely on the iPhone coded in buttons.
The picture below is me coding in the back button instead of relying on the physical button on the phone. I am wanting to back out the back button from my code.
You shouldn't code a back button on your app. See the pure android guidelines here for more info on android apps look and feel.
Every Android Device contains Back Button. And Android users using the Back button since first version of android released. They All have idea on Back button , No need to implement it separately, User already Habituated it.
I have developed for both iOS and Android, and find the best answer to be using both. Android users know to use the hardware back button, but new users, or former iPhone users, often expect an on-screen button. There is no harm in having both, and an on-screen button may be a nice visual touch.
Cases where you may decide not to have a back button include layout for smaller screens - when screen real-estate is very precious. Just keep in mind that the most important part of an application is the user experience.
The key is to make your app as user friendly to all users - but don't take away the expected experience from dedicated Android users (for instance, if you are developing a single-activity app with multiple popup Views, the ideal performance of the back button will close the view, rather than closing the whole app).
Also if you want to have a button to go back at the top right of the activity, there is a way to add one on the action bar. Take a look at the Android Developers page if you want.
I want to make a Button or ImageView or something like that to launch an app. At some point i want to make several to keep adding shortcuts like the Samsung desk clock app.
At the moment ive set up some blank Button's in which i want to be able to click, choose the app i want then the app create the icon and name to the button (like above) and it launch the intent when i click it afterwards.
Any ideas, examples etc are brilliant ive got brain ache searching for a way to do this :/
Check out this post: https://stackoverflow.com/a/7107138/1337412
You're basically trying to create a custom "launcher app" if you search StackOverflow and Google, you should be able to find plenty of examples of launcher apps.