The problem is that the "wrap_content" doesn't seem to be working with the View pager.
Here is the solution:
import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.View;
public class CustomViewPager extends ViewPager {
public CustomViewPager(Context context) {
super(context);
}
public CustomViewPager(Context...
Friday, May 9, 2014
Dimming the background behind the dialogs
Posted by Polaris on 1:33 PM
I'm just reblogging what you can find here.
WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();
lp.dimAmount=0.78f;
dialog.getWindow().setAttributes(lp);
dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
That's it, don't hesitate to comment, to share your knowledge and to correct m...
Posted in Android
Subscribe to:
Posts (Atom)
How to force the View Pager to wrap its content.