
Search In
In the below example , I have added swipe gestures on ListView. When you swipe particular ListItem in ListView then swipe gestures will perform. Here first I have added ListView in actvity_main.xml layout. In second step I have created a n
Using below code i have created Linkify function. Here I have created MainActivity class and In main.xml layout I have added Text View property. Below code will clearly described you how to make Linkify function.
Step(1)-Create MainActivity-
publi
For changing the image on swipe can be done by implementing the ViewPager in your android app.
For implementation of ViewPager we need to follow the steps mentioned below:-
1) Create ViewPager tag in your xml file .
activity_main.xml
<Relativ
In the below example code I have created a CustomDialog Fragment. Here, first I have created custom_dialog.xml layout , On this xml layout I have added EditText and Button. In next step, in activity_main.xml layout I have added a Button and Tex
Rotating a view in a 2D plane
To rotate a view, we'll create a animation object from a xml file.
First, create a anim folder in /res directory.
Then right-click on the /res directory then navigate to new -> Animation resource file.
Na
Android Support Library 23.2, Google has given support for Bottom Sheets. AS per Material Design, Bottom Sheets are elements displayed only as a result of a user-initiated action, used to reveal more content from the bottom upwards. Th
In the below example I have created Circular Reveal Animation like chat app(Whatsapp). First I have created activity_main.xml layout, here I have added FrameLayout, all layout and attributes like LinearLayout, ImageButton, TextView, View are
Here I have created Checkbox function in android. In android CheckBox is a type of two state button either checked or unchecked. We can use checkbox to activate/deactivate the specific action. In the below code example, I have described how to make c
In the below example I have created a simple chat app . Here first I have added ListView , TextView , EditText and Button in activity_main.xml layout. After then I have created two new layout left.xml and right.xml , In both layout I have added
Here I have created AlertDialog function in android. We can use alertdialog for choice to continue or discontinue. AlertDialog can be used to display the dialog message with OK and Cancel buttons. Android AlertDialog is the subclass of Dialog class.