You can use GSON to convert Object -> JSON(.toJSON) and JSON -> Object(.fromJSON).
1.build.gradle
dependencies......
Home
Archives for 2017
Friday, June 16, 2017
Wednesday, May 24, 2017
3D-flip Animation
Tags
1. FlipListener.java
import android.animation.ValueAnimator;
import android.view.View;
public......
Get the height of soft keyboard of device
Tags
I. AdjustResize and AdjustPan
You can get the height of soft keyboard that......
Wednesday, May 17, 2017
Volley with HTTPS
1.Add volley to build.gradle dependencies
dependencies {
...
......
RadioGroup in ListView

1.activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout......
Monday, April 24, 2017
Customize EditText with Delete button

Customize EditText with delete button that clear all text when press.
1.button_delete.png
2.CustomEditText.java
import......
Make Buttons as RadioButton

Make a group of buttons that can be selected and activate only one of them as RadioButton......
Friday, March 31, 2017
Customize android default PopupMenu

Tags
Android Popup Menu displays the menu below the anchor text if space......
Wednesday, March 29, 2017
Number Picker Virtical

1.dimens.xml
<dimen name="item_dob_width">100dp</dimen>
<dimen......
Number Picker Horizontal

1.dimens.xml
<dimen name="item_dob_width">100dp</dimen>
2.recyclerview.xml
<?xml......
Friday, February 10, 2017
Dialog theme transparent

Tags
1.style.xml
<style name="NewDialog">
<item name="android:windowFrame">@null</item>
......
Customize character of EditText to image when input

Tags
This is pwd_icon.png
If image does not work properly, create an android......
Hide keyboard when touch outside EditText

Tags
You can put this up in a utility class, or if you are defining it within an activity,......
Wednesday, February 1, 2017
Get resource id by resource name

Tags
Example you have a picture name pic1.jpg in drawalbe folder. You can access your......
Textview selector text color

Creating text selector for TextView to change text color when users presse or click......
Creating Dash line using XML

Tags
Create xml in drawable folder named dash_line.xml and then in the layout just define......
Expandable Textview

ExpandableTextView is a TextView which can expand/collapse just like the Google......
Subscribe to:
Posts (Atom)