use weight for equal child of layout. margin and padding unable to set equal child because when multi screen support and margin and padding set fix, but in weight they remains same in all layout.
In Linear Layout need orientation horizontal and vertical.
public void openDrawable() { // TODO Auto-generated method stub optionMenuStr="open"; //menuImage.setBackgroundResource(R.drawable.backk); drawerLayout.openDrawer(Gravity.LEFT); }
public void closeDrawable() { // TODO Auto-generated method stub optionMenuStr="close"; menuImage.setBackgroundResource(R.drawable.menu); drawerLayout.closeDrawers(); }
Disable Swipe Open Navigation Drawer Android:
Disable Swipe Open Navigation Drawer, sometime we use fragment and BaseActivity is same and fragment are different then in other fragments we need to stop swipe open Drawer then use this code.
programatically we can set multi color text in single TextView, first part of text show different color and other part show different color. dynamically set text on TextView.
in above code first part "Android" show green color and "Developer" show blue color. so like that we can set dynamically multi color in single Textview.
Picasso is powerful Image Loading Library in Android, it caching image and manage memory automatically and large image easily handle in Android.
Working with Images In Android:
In Android handle many Image and manage them is complex, some time "Out Of Memory Error Occur" due to large size Images and we need to recycle and free memory after image load.