Create a menu like on youtube in android studio - java

I want to make a menu like on youtube account fragment in my app. When I search about menus I just get answers "How to make a ActionBar Menu". Do you know what kind of element this is and how I can create this kind of menu?

The stuff you've highlighted is probably either a ListView or RecyclerView that has a good material design.
Here is the Google documentation on RecyclerView's:
https://developer.android.com/training/material/lists-cards.html
And here is an example tutorial I have previously followed:
http://www.androidwarriors.com/2015/11/android-recyclerview-example.html?m=1

Related

UI parallelism between Swift and Android

I'm trying to develop and Android app which is based on the UI of this iOS app. I'd like to reproduce two things:
As you can see, there are three buttons on the bottom of the app and by clicking on them you can move between the screens without refreshing the whole activity. Are there similar views I can use in Android to reproduce it?
On the activity of the screen, there is a list of film. I would thinking to reproduce it by creating a listview. Do you are there better alternatives?
You could use a BottomNavigationView to recreate this style of navigation. You can add the BottomNavigationView to your Activity and then use individual Fragments for the inner views i.e. Home, Search and More.
ListView would be alright for this or you could use a RecyclerView with a LinearLayoutManager. RecyclerView is a bit more flexible than ListView as you could change the LayoutManager for a GridLayoutManager if you wanted on larger devices.
I'd also recommend checking out https://material.io/components/ where you can see what sort of design guidance Google give for their Material design system.

How to make bubbles and FAB like Facebook messenger in android

Hi I need simple help from an android programmers
I've seen Facebook Messenger and noticed the chat icon that stays in the screen when you open any other application .
I want to do one like her but it's as simple, When the user clicks on it, it shows some other icons such as Float action button.
Thank you
You can start customizing this library, which aims to provide a similar experience to the Facebook bubble chat.
You can replace the drawing code with yours, or use an XML to inflate a view based on your needs.

How to layout UI app android like facebook?

I saw some same topic here but can not find the anwser so I create my ask question.
I am a newbie in android and I am learning to build a layout by my self, I see facebook app and wonder how they layout UI with friend list behind main content. And when you click toggle friends main content will slide to left side and friends list show up.I try to use navigation drawer and viewpager but can not achive. I wrong something or it must use by other technique. Anyone can give some idea how to do that.
After two days, finally i found the answer by use a great this SlidingMenu.
https://github.com/jfeinstein10/SlidingMenu

How can I use ViewPager to display apps?

As the title states, how exactly can I use ViewPager to display a list of apps. Right now I'm using a GridView to display the list of apps on my device and it runs the app upon selection. However I wish to get a similar effect from launchers in the Play Store, the app drawer is split into different views and displays a set number of apps on one page. And when you swipe it goes to the second page and displays more apps.
How can I do this? At the moment I just have a simple GridView which can be scrolled up and down,
I have looked all around the internet and i have gotten no answers, I've taken a look at the aosp launchers src on github but it's too complicated to understand.
Thank to whoever answers my question.
You can use Jake Wharton's Android-ViewPagerIndicator in ViewPager to display your content. You can also try astutez's PagerSlidingTabStrip, it will me more suitable for your requirements. Implementation is very simple, you can also find the sample in the repository.

How to implement a swipe-gesture between Fragments?

I would like to implement in my android app that I'm developing with the Android studio ide.
The swipe between the different tabs (fragment). I tried searching online and on StackOverflow but I could not quite understand.
My action bar is the classic one that works with Android above 3.0
If you can give me some advice or examples of aid etc. I shall be very grateful.
With this I thank you.
I suppose the Android ViewPager is what you are looking for:
http://developer.android.com/reference/android/support/v4/view/ViewPager.html
Here is a nice tutorial on how to implement it:
http://developer.android.com/training/animation/screen-slide.html
The basic idea is that you have multiple Fragments, each representing
a different Screen. The ViewPager enables the user to swipe between
the different Fragments and display different content.
Also take a look at this question:
How to implement a ViewPager with different Fragments / Layouts
And how to include the Support-Library: http://developer.android.com/tools/support-library/setup.html

Categories

Resources