
Search In
To give imageview / button vibrate animation, need to follow these steps.
create xml file "vibrate_anim.xml" in anim folder
<!--?xml version="1.0" encoding="utf-8"?-->
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
In the below code I have created Menu Groups. Simply I have added menu items in menu folder, all menu item are added in group. See the below code it will clearly described how to make Menu Groups .
Step(1)-MainActivity-
public class MainActivity ex
To make the layout interactive and to look good, we need to modify the default of certain widgets. Here is the simple customisation of the progress bar:-
Step 1:- Create a drawable xml say customised_progress.xml
<?xml version="1.0" encoding="
In certain cases, according to the application we need to change the mark or the drawable of the checkbox.
Step 1:- Create selector in the drawable, say checkbox_selector.xml :-
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns
Here I have created Popup function , Popup function can be used to display menu item list, anchor text and listitem etc. In the below example when we clicked on menu button the popup will be open and if we click outside the popup it will disappears.
1) Here I will rotate a View around its vertical axis using the rotationY property. we will create an XML resource file in the /res/animator directory named as flip_on_vertical.xml.
<objectAnimator xmlns:android="http://schemas.android.com/apk/re
Using below Layout code you can create a Radial Gradient, Here I have created a Gradient.xml layout by using shape and gradient property. By using GradientDrawer we can make smooth transition between two or three colors in liner, radial or sweep pat
In the below code layout I have created floting action button layout. Here I have used CoordinatorLayout, LinearLayout, TextView and FloatingActionButton. FloatingActionButton move left or right when we changes layout_anchorGravity. In this layout Fl
In the below example I have created a animation button. Here I have added Button and TextView in activity_main xml layout then I have created new directory (anim) , In anim directory I have created new anim_traslate.xml layout. In MainActivity I have
In the below example I have created popup layout. In popup.activity layout, First I have created LinearLayout, In LinearLayout I added a TextViw and Button, then in step second I have created rounded.xml layout & in drawable folder, here I have a