Thursday, May 18, 2017

Android Floating Action Button with animation part-2

May 18, 2017
Welcome to the part two of our today's android project. In the previous part, we create animation XML and drawable. Now we add fab code in the layout. (if you miss part one click here) In my case my layout is activity_main.xml before doing this we need two colors in colors.xml. Let's add this <color name="fab1">#e2e21d</color> <color name="fab2">#47e92e</color> Now add three fab button. I share this code one by one. <android.support.design.widget.FloatingActionButton ...
Read More

Android Floating Action Button with animation

May 18, 2017
In this android project, we create 3 floating action button. The main fab button is only showing when activity is launch. other's two are invisible. After clicking the main fab button it will show the other's fab button. Those buttons are now visible and clickable. after clicking again main fab button is rotate 45 degrees and close others fab button with animation. That's our main goal today. Let's start to making our today's android app First, add those dependencies to your build.gradle file dependencies...
Read More

Monday, May 15, 2017

Android Material Date picker Dialog

May 15, 2017
datePicker-min
Welcome to this post. In this post, we are going to create a material date picker. Date picker Dialog helps you to pick the date for your application. If you have an option for user pick their date then you can use it. This popup in your layout. SO it's won't take place on your layout. In this post, we learn about how we can use Date picker Dialog and pick our date. Ok, let's started. First,...
Read More

Android Material Time Picker Dialog

May 15, 2017
timePicker-min
Time picker Dialog helps you to pick the time for your application. If you have an option for user pick their time then you can use it. This popup in your layout. SO it's won't take place on your layout. In this post, we learn about how we can use time picker Dialog and pick our time. First, you need to create a class name here TimePickerFragment and extend to DialogFragment and implement TimePickerDialog.OnTimeSetListener ok,...
Read More

Android App Settings with Preference Fragment Compat

May 15, 2017
settings-min
In this post, we will make Android app settings with new Style. We use PreferenceFragmentCompat. Why Preference fragment compact?  Because by using this we can show toolbar on settings activity easily. Before starting to take a look at documentation click here. So we need a separate fragment class. Settings is an activity just like others but we implement fragment here.  Ok, that's...
Read More

Saturday, May 13, 2017

Android Custom Dialog with Material Design

May 13, 2017
dialog-min
Hello, reader. Welcome to my blog. How about your day? In this post, we will make a custom dialog with user input option. we also use material edit text. Edit text has a floating hint option. we can use it on login option or feedback option. But I am using for feedback option. So we are going to add a custom dialog so we have to add a layout file. Our dialog will show exactly what we will...
Read More