Documentation for CardView and RecyclerView - android

I am trying out these new UIs from Android L, did not have much issue in implementing the static views but I could not find the relevant documentations for these two views, such as how to call methods to add or remove items from RecyclerView(using RecyclerView.Adapter or LinearLayoutManager), how to configure behaviours for CardView.
I assume the documentation should be here at the reference page for Android API 20 but I could not find any.

Thanks for everyone.
Now CardView and RecyclerView are documented here, after official release of Android 5.0 Lollipop.

At the present time, RecyclerView and CardView are part of the "L" Developer Preview, whose documentation is not integrated into the main JavaDocs.
That being said, the documentation is just JavaDocs, and so you will also need to use your favorite search engine to turn up the blog posts and the like that try to fill in the documentation gaps.

What CommonsWare said, with the addition of a popular blog post going into the concepts, along with code examples:
http://www.grokkingandroid.com/first-glance-androids-recyclerview/

This is probably what you're looking for:
http://pbz.kt.agh.edu.pl/~krusek/l-developer-preview/reference/android/support/v7/widget/RecyclerView.html
It's obviously not the official one (Google had one online a few days ago, but they removed it for some reason), but this is pretty accurate. The links there aren't broken, and it's pretty reliable.
Can't seem to find a CardView API document anywhere.

Related

Android official alphabet fast scroll view

Is there an Android official alphabet fast scroll view? If yes, how to use it?
And I find some third party lib like MaterialScrollBar, but I prefer official version if it exists.
Any help is very appreciated.
What a pity, there is no such thing untill now. However, there are some useful classes such as:AlphabetIndexer in case you want to implement yourself from official components like NestedScrollView, RecyclerView
https://developer.android.com/reference/android/widget/AlphabetIndexer.html

Is there an official Android section View?

List sections are used quite a lot in Android through out Google's own applications and in some of the framework's features as well, i.e. preferences.
This made me wonder if there is an offical section View available in Android? If so, it seems to be hidden.
Here's a picture from the Android Design site that shows what I'm talking about:
This made me wonder if there is an offical section View available in Android?
No, sorry. There are plenty of libraries for this, and you can probably grab some code out of AOSP for it as well, but there is nothing in the SDK for it. Just because the design folk think it is a good idea does not mean that we actually have code in the SDK to leverage such ideas.

Android terminology

I have created a few apps with basic features with the help of tutorials. But when I decided to explore the next level of features, I didn't know what the features were termed, and hence found it difficult to get help (features like fling, horizontal view paging, and so on). What is the indicator of the view paging called? How does one do it and with dynamic pages?
Your best bet is to go here and read.
Android Dev
Also check out commonsware books on developement. This is the best way to get started.

Where is the documentation of Honeycomb's new widgets?

I'm looking to create some widgets for Honeycomb, and I've successfully created a StackView widget for my application, but I'd like to add some others of the new widgets in Honeycomb.
I'm especially looking for documentation on the widget to the right in the above image, but so far haven't been able to find anything on the Android developer site nor by searching on Google. Any help would be much appreciated!
That's a GridView. You can probably just replace StackView with GridView in your layout and it should work.
There is a documentation on honeycomb,
http://developer.android.com/sdk/android-3.0.html
you can also find all api levels here,
http://developer.android.com/guide/appendix/api-levels.html

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