
Search In
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
In the below example I have created Toolbar text animation function. Here In activity_main.xml layout first I have created Toolbar and added a TextView, then In MainActivity I have used ObjectAnimator class. You can see below program it will clearly
In the below example code I have created a Custom Spinner. Here first, I have added spinner library in build.gradle file. After that, I have added Spinner layout in activity_main.xml layout. In MainActivity I have added items name in String.
You can
In the below example I have describes "how to use FlexBox layout". FlexboxLayout extends the ViewGroup like relative layout and linear layout. You can add different attributes to the flexlayout like flexDirection, flexWrap, justifyCon
If you are looking to change the image or color of the widget when it is clicked or focused, Here is the code snippet that explains it:-
Step 1:- set the widget in an XML file for which you want to applying selector:-
<ImageView
android:
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"