Skip to main content

Posts

Showing posts from October, 2018

Java Tutorial-Static Keyword In Java by-Teachmeandroidhub

Java Tutorial-Static Keyword In Java by-Teachmeandroidhub Static Keyword:- First of all we need to know about static .This terms defines stability itself .Suppose your name “ aman” so all the person who knows you they will call you “aman” in case you changed you name then all will call you with  new name mean term related with static is common for all object of class. Let discuss with a figure.                             fig-1                                                                                             fig-2 According to fig-1 let’s suppose a glass full of water and two person watching this glass after some time someone has drunk some amount of water Now glass is half empty and half filled.as like this when we make a variable static it means it will be available for all objects of class. Static Keyword in Java: Static Is just a keyword in java “keyword” means program don’t need to definition static they just have to use it and meaning of key

Android Tutorial:-How to create View Pager With Cover-Flow-Teachmeandroidhub(An animation Under Viewpager).

View-Pager  with Cover-flow  :- This Android tutorial  is all about how to create a wonderful  layout using-view pager  with some special  effect  that called carousel effect also to do such  layout  you don’t need  to add  any  dependencies  to  the  gradle  so let’s start this  tutorial first of all just need to create new Project in android studio I hope you know about how to create new project in android studio   Step -1:- In  this step you have create main activity that may be created with your  new project  creation this layout contain view pager that will adapt image view that I am going to show in this tutorial Activity_main.xml <? xml version= "1.0" encoding= "utf-8" ?> < LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android"     xmlns: tools = "http://schemas.android.com/tools"     android :id= "@+id/activity_main_layout"     android :layout_width= "match_pa