List of usage examples for android.graphics PixelFormat OPAQUE
int OPAQUE
To view the source code for android.graphics PixelFormat OPAQUE.
Click Source Link
From source file:com.appunite.list.HorizontalListView.java
/** * Sets the drawable that will be drawn between each item in the list. If the drawable does * not have an intrinsic width, you should also call {@link #setDividerWidth(int)} * * @param divider The drawable to use.//from ww w .j a v a 2 s . co m */ public void setDivider(Drawable divider) { if (divider != null) { mDividerWidth = divider.getIntrinsicWidth(); } else { mDividerWidth = 0; } mDivider = divider; mDividerIsOpaque = divider == null || divider.getOpacity() == PixelFormat.OPAQUE; requestLayout(); invalidate(); }
From source file:com.appunite.list.ListView.java
/** * Sets the drawable that will be drawn between each item in the list. If the drawable does * not have an intrinsic width, you should also call {@link #setDividerHeight(int)} * * @param divider The drawable to use.// w ww . jav a2 s . c o m */ public void setDivider(Drawable divider) { if (divider != null) { mDividerHeight = divider.getIntrinsicHeight(); } else { mDividerHeight = 0; } mDivider = divider; mDividerIsOpaque = divider == null || divider.getOpacity() == PixelFormat.OPAQUE; requestLayout(); invalidate(); }
From source file:com.awrtechnologies.carbudgetsales.hlistview.widget.HListView.java
/** * Sets the drawable that will be drawn between each item in the list. If the drawable does not have an intrinsic height, you * should also call {@link #setDividerHeight(int)} * //from w w w .j a v a 2 s . c o m * @param divider * The drawable to use. */ public void setDivider(Drawable divider) { if (LOG_ENABLED) { Log.i(LOG_TAG, "setDivider: " + divider); } if (divider != null) { mDividerWidth = divider.getIntrinsicWidth(); } else { mDividerWidth = 0; } mDivider = divider; mDividerIsOpaque = divider == null || divider.getOpacity() == PixelFormat.OPAQUE; requestLayout(); invalidate(); }
From source file:com.cognizant.trumobi.PersonaLauncher.java
public void setWindowBackground(boolean lwp) { wallpaperHack = lwp;/* w ww .j a v a 2s . c om*/ if (!lwp) { getWindow().setBackgroundDrawable(null); getWindow().setFormat(PixelFormat.OPAQUE); // getWindow().clearFlags(WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER); } else { getWindow().setBackgroundDrawable(new ColorDrawable(0)); getWindow().setFormat(PixelFormat.TRANSPARENT); // getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER); } }