android - View outside a Dialogs bounds -
i want this:
the users profile picture "popping out" on dialogs bounds.
i've tried everything: messing clipping every possibly combination under sun, dynamically creating view after dialog , adding root content view, using seperate view , loading in dialog.setcustomtitle(), hacking images ondraw() methods , applying all-sorts of bounds/positional hacks --- no matter image gets clipped , split in half.
i've gone extent of decompiling play store apk , seeing how did it. unfortunately resource files don't give away , can't find in smali.
can help? please... :-(
edit: i'm talking user profile image @ top of dialog, not dialog itself.
dialog method:
dialog dialog = new dialog(this); dialog.requestwindowfeature(window.feature_no_title); dialog.setcontentview(r.layout.mhp); dialog.getwindow().setbackgrounddrawable(new colordrawable(color.transparent)); dialog.show();
mhp.xml
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:color/transparent" > <linearlayout android:id="@+id/linearlayout1" android:layout_width="match_parent" android:layout_height="100dp" android:layout_alignparenttop="true" android:layout_centerhorizontal="true" android:layout_margintop="57dp" android:background="#f00" android:orientation="vertical" > </linearlayout> <imageview android:id="@+id/imageview1" android:layout_width="100dp" android:layout_height="100dp" android:layout_alignparenttop="true" android:layout_centerhorizontal="true" android:src="@drawable/ic_launcher" /> </relativelayout>
result
Comments
Post a Comment