I want to create an activity with a side panel. More precisely, i want an activity similar to Google Play Store app (i.e. if swiped left-rigt, a panel opens).
Please help me solve this problem.
It's called navigation drawer.
I'd suggest read up on it on official site, it has even a sample app you could try it on.
https://developer.android.com/training/implementing-navigation/nav-drawer.html
Related
I'm just starting to develop an Android TV app.
below video link is the main setting screen of Google TV.
If you look, the top menu is displayed on the left and the sub menu is displayed on the right.
And when the top menu is selected, the submenu on the right moves to the left.
I want to implement a setting page like this, but I can't find it.
Should I use BrowseSupportFragment from Leanback library?
Any help would be appreciated.
You can check the video at the link below
video link
Since the shared link is expired, I couldn't look at your desired output, but iirc tv settings app is implemented using GuidedStepSupportFragment. You can refer to this guide to find out how to use this Fragment. Also there are some code samples in Showcase app which might be helpful.
.
I was surfing some apps couple of hours ago and I saw something common in all of them. One clear instance for that is when you open YouTube app you see a narrow horizontal tool just above the device's home button which seems to be in charge of controlling what page user want To go I guess.
It has search button, a button which leads to the home page of the app and etc.
Question: Is it just a strip with buttons which is used to switch between activities ( by Intent class)? Or something else?
my bro you should use some library for apply this such as chip navigation
if you interest to learn it recommend you to see this tutorial https://www.youtube.com/watch?v=DQtdOSN21lQ&feature=emb_logo and the library https://github.com/ismaeldivita/chip-navigation-bar
Do you mean the bottom app bar?
If so you'll find the details here: https://material.io/components/app-bars-bottom
And yes you can use it to switch between activities.
I am newbie in android programming, but I'd like to try any application, I already got Navigation Drawer menu, which shows fragments, but in one of the fragments I want another drawer from right side, is there any way to do it ? I am using ActionBarSherlock. Any help would be good. Thanks :)
Sliding menu will solve your problem.
gibhub library
There is even a sample app to check it out.
google play store sample app
I want to make a moving list appear from the left of the screen of the activity in the android app.
Something like the facebook app shown below :
,,
how can I make something like that in an android app.
Thanks.
This is a very popular UI pattern called a sliding menu / slider. You can search for open source libraries / projects which implement this for you.
Here is the first one I found on google.
This one is useful if you want to support old (pre holo) android devices too. It's an addon to the excellent holoeverywhere library.
And last but not least, take a look at this official pattern by google which also implements the same behavior. The code for creating it is available here.
The concept behind this is that you are taking a screen grab of the current activity and then loading in the menu. Your not actually sliding between activities, your moving the screen shot. Thats a very basic explanation of whats happening.
If you search for slide navigation on github I'm sure you'll find something.
in my android app I would like to create a ux like the new Google+ app for android, in wich moving from one tab to the other (for example viewing a user profile: 'post','info' and 'photos') is possible simply swiping on the screen..
Can anyone please help me providing some example or tutorial?
Thanks everyone in advance!
They're doing horizontal swiping with a ViewPager. Here's a post on the android blog about how to do that.