Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timrijckaert/23cb27af47cae3d81a633f32aec50efb to your computer and use it in GitHub Desktop.
Save timrijckaert/23cb27af47cae3d81a633f32aec50efb to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#55000000"
android:centerColor="#33000000"
android:endColor="#AA000000"
android:type="linear"/>
</shape>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="256dp">
<ImageView
android:id="@+id/notification_background_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:background="#0000FF"/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/notification_big_content_gradient_overlay"/>
<TextView
android:id="@+id/notification_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:ellipsize="end"
android:lineSpacingMultiplier="1.2"
android:maxLines="6"
android:paddingBottom="@dimen/spacing_normal"
android:paddingLeft="@dimen/spacing_medium"
android:paddingRight="@dimen/spacing_medium"
android:shadowColor="@color/black"
android:shadowDx="1.5"
android:shadowDy="1.3"
android:shadowRadius="1.6"
android:textColor="@color/white"
android:textSize="16sp"
android:textStyle="bold"
tools:text="@tools:sample/lorem/random"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:src="@drawable/logo_vrt_nws_toolbar_white"/>
<ImageView
android:id="@+id/notification_pill"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/notification_text"
android:layout_marginBottom="@dimen/spacing_normal"
android:layout_marginLeft="@dimen/spacing_medium"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment