Introduction screens in Google Apps - android

I just bought a new phone and I noticed, opening for the first time Gmail and other G apps, some quite cool introduction screens.
I was wondering how this is implemented..
It doesn't look like just a simple ViewPager with fragments.
Could someone please give me an help?
I can't find any information online but those about ShowcaseView which is not what I'm looking for.

I developed a library which does exactly that: https://github.com/rubengees/introduction
And yes, it is done with a ViewPager with Fragments, but with a fairly complex layout.
Another library I have found also does it with a Viewpager: https://github.com/PaoloRotolo/AppIntro

Related

Android - What is the standard way to implement the tab now?

I'm a newbie of Android. I have searched for hours but I see many different approaches and many is deprecated.
I know this question is silly, but I really need someone's help.
What is the standard way that most developers do when they want to implement the tab, please give some informations.
Thanks.
The Android Design Support Library adds TabLayout, providing a tab implementation that matches the material design guidelines for tabs. A complete walkthrough of how to implement Tabs and ViewPager can be found in this video.

Which one to use with tabhost: FragmentActivity or TabActivity?

I'm beginner in android development. When searching the web I have found that it is possible to make tabs by having the separate activities for each tab or have fragments instead. I would like to know more about theory so, my question is where it will be appropriate to use fragments and where activities? I'm curious because there might be some considerable differences for example in memory, performance or UI. Hope that I'm clear and will appreciate any help.
After reading articles on developer site, particularly page below, I have found that TabActivity is deprecated. They advice to use FragmentActivity and with the help of v4 support library it can be implemented in older version of android.
https://developer.android.com/reference/android/app/TabActivity.html

Split screen concept for tablet in android

I am developing an application for tablet which has Split screen functionality,as we see an Gmail Application. My Left layout is fixed and my right one will change as per the buttons clicked on it.
I googled a lot for the solution,I found that we need to use Fragments for performing these.
Can anyone help me in solving these things.
Thanks
You could have explored d.android.com but now I would suggest you to refer it whenever you are facing problems/issues or looking for basic help.
Now, As you want to provide split functionality kind of UI in Android, check: Building a Flexible UI and I would suggest you to learn and explore Fragments.
Yes, you got that right. Fragments is the solution here. Using Fragments is easy and it's lifecycle is similar to that of an Activity. First get an overview of what a Fragment is here. Go over some of the tutorials about the use of Fragments : here and here.
this is a working example of what you want to achieve, good luck!
https://github.com/Jachu5/Android-UIprojects/tree/master/FragmentSplitedScreen

Design pattern for fragments in android

I am reading a book and it says like this
"Right now, fragments are very new, so there are few well-established
patterns to follow"
But I do not know where to read more about the design patterns for fragments at all.
I want to make an application with a lot of different screens and the app should be available for a tablet and for a phone, so the fragments will help me a lot here. But as I said this is big one and I am about to start designing it. So I really need good design. And before I start I want to see some design patterns guidelines for fragments in android.
I there something like best practices or something ?
I read a lot about fragments their usage and all those stuff, but I didn't find some well established design pattern for making app for phones and tablets.
I really need advanced chapter about this.
Thanks
You've probably read this but just in case, the Android Reference Document on Fragments quite nicely explains how to separate your UI and the Example right at the bottom of the page shows a reasonable way of how a UI using fragments can include more or less fragments given a change in orientation.

Android - first launch interactive tutorial

I'm writing a new app for android and I would like to implement also a first launch tutorial. In particular, the tutorial has to be interactive. Basically, after a user registers to the service, a minimum settings will be required.
I'd like something like today we have into Google Apps, like Sheets, Docs and so far. The exception there is that those tutorials have the aim to explain how the app works. Here I want to have something where user can input some data.
I was looking at ShowcaseView but seems to be deprecated and old in style.
So here the question is: what is the best way to implement that? ViewPager?
I also had a look to this other question, but it did not help too much.
Any advice is really appreciated.
EDIT: I have found this other nice alternative. AppIntro It seems what I was looking for. :)
There are few I found by quick searching Github:
https://github.com/Seishin/showcaseview-android
https://github.com/worker8/TourGuide
https://github.com/amlcurran/ShowcaseView
I'm pretty sure you can find the right one for you ;)
You can do it in several ways that really depends on you and your app. Basically you can create a "Boarding" experience with ViewPager that will go thru the main screen of your app (with static images for example) where you explain the user what goes on in your app. The other way way is an interactive tutorial as the user already landed into your app - you can achieve this with something like Showcase (I'm pretty sure that there are libs on GitHub that are still maintained).
I would recommend Roman Nuriks Wizard Pager code on Github as a starting point. It's not so much a library as a sample code showing you how to do what you want.
The general approach is to use a ViewPager with some form of navigation buttons to move the user forwards and backwards through the pager Fragments.
https://github.com/romannurik/Android-WizardPager

Categories

Resources