Definations And Use :- Annotations

Annotation is Metadata. Metadata is data about data

 

person shubham sharmaaccess_time September 11, 2018launch Read More

Definations And Use :- Interface

What is Interface An interface in java is a blueprint of a class. Purposes of Interfaces create loosely coupled software support design by contract (an implementor must provide the entire interface) allow for pluggable software allow different objects to interact easily hide implementation details of classes from each other facilitate reuse of software It is used to achieve total […]

person shubham sharmaaccess_time September 11, 2018launch Read More

Common Issues

ViewPager PagerAdapter not updating the View

 

person shubham sharmaaccess_time September 10, 2018launch Read More

ViewPager PagerAdapter not updating the View

There are several ways to achieve this. The first option is easier, but bit more inefficient. Override getItemPosition in your PagerAdapter like this:

This way, when you call notifyDataSetChanged(), the view pager will remove all views and reload them all. As so the reload effect is obtained. The second option, suggested by Alvaro Luis Bustamante (previously alvarolb), is to setTag()method in instantiateItem() when […]

person shubham sharmaaccess_time July 20, 2018launch Read More

Moving and resizing DrawerLayout’s content on sliding

You can do this by translating and scaling the content View in the onDrawerSlide() method of a DrawerListener on your DrawerLayout. Since the content View itself is resizing, and there’s a separate TextView that appears in the bottom right corner, we’ll stick both of these in another holder ViewGroup. If that label TextView isn’t needed, the holder ViewGroup can be omitted, as well. A basic DrawerLayout setup for the example:

  The […]

person shubham sharmaaccess_time June 6, 2018launch Read More

What are RecyclerView advantages compared to ListView?

With the advent of Android Lollipop, the RecyclerView made its way officially. The RecyclerView is much more powerful, flexible and a major enhancement over ListView. I will try to give you a detailed insight into it. Advantages 1) ViewHolder Pattern In a ListView, it was recommended to use the ViewHolder pattern but it was never a compulsion. In […]

person shubham sharmaaccess_time April 16, 2018launch Read More

Add/Include/inflate layout into a View Group

 

person shubham sharmaaccess_time December 28, 2017launch Read More

Add New folder menu default name current date

Create a bat file  paste this line

and save file where you wants to save it.(folder.bat) then Open regedit (Type regedit in run) navigate to HKEY_CLASSES_ROOT\Directory\Background\shell Create new key name it whatever you wants (eg: Create Date Folder) inside Create Date Folder create new key name it command and modify it’s default value location of your bat […]

person shubham sharmaaccess_time November 22, 2017launch Read More

SQL Random Queries

Finding duplicate values in a SQL table

  MySQL Update Column from other column in same table

 

person shubham sharmaaccess_time November 18, 2017launch Read More

Short div(Element) by jQuery

 

person shubham sharmaaccess_time November 18, 2017launch Read More