Tuesday, 14 June 2016

Create CollapsingToolbarLayout with using Recyclerview


android-robot.jpg

In the below example layout I have created CollapsingToolbarLayout with using Recyclerview. Here first I have created CoordinatorLayout created all layout in CoordinatorLayout. Now I have added AppBarLayout, CollapsingToolbarLayout, ImageView, Toolbar, RecyclerView and FloatingActionButton. You can see below program it will clearly describe how to create CollapsingToolbarLayout with using Recyclerview.
  1. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.   xmlns:app="http://schemas.android.com/apk/res-auto"
  3.   android:layout_width="match_parent"
  4.   android:layout_height="match_parent"
  5.   android:fitsSystemWindows="true">
  6.   <android.support.design.widget.AppBarLayout
  7.       android:id="@+id/app_bar_layout"
  8.       android:layout_width="match_parent"
  9.       android:layout_height="wrap_content"
  10.       android:fitsSystemWindows="true"
  11.       android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">


Explore Findnerd to read such more blogs of Android, iOS, Java,PHP etc.

Monday, 13 June 2016

How to create Registration form in android ?


android.jpg

Here I have created a registration form in android. In my registration form i have used validation function to check inputs like email ,name,age etc. And I have also used check box , radio button and spinner function. Therefor below example will clearly described you to make Registration form.
Step(1)- create main.xml layout file. For (Inputs data)
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.   xmlns:tools="http://schemas.android.com/tools"
  3.   android:layout_width="match_parent"
  4.   android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
  5.   android:paddingRight="@dimen/activity_horizontal_margin"
View the full code about How to create Registration form in android ? at findnerd.
Want to read such more blogs about Android, Click here>>