Created
November 20, 2013 20:28
-
-
Save snadjafi/7570436 to your computer and use it in GitHub Desktop.
frame to mask underling view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_height="wrap_content" android:layout_width="fill_parent"> | |
| <!-- this can be any layout that you want to mask --> | |
| <LinearLayout android:id="@+id/mainLayout" | |
| android:layout_height="wrap_content" | |
| android:layout_width="fill_parent" android:orientation="vertical" | |
| android:background="@android:color/white"> | |
| <TextView android:layout_height="wrap_content" | |
| android:layout_width="wrap_content" android:layout_gravity="center" | |
| android:text="Random text..." /> | |
| </LinearLayout> | |
| <!-- FRAME TO MASK UNDERLYING VIEW --> | |
| <ImageView android:layout_height="fill_parent" | |
| android:layout_width="fill_parent" | |
| android:background="@drawable/grey_frame" | |
| android:layout_alignTop="@+id/mainLayout" | |
| android:layout_alignBottom="@+id/mainLayout" /> | |
| </RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment