notificationcell.xml revision 79fc8de71b0555965aac460c9657bb158a340069
<?xml version="1.0" encoding="utf-8"?>
<!--
~ The contents of this file are subject to the terms of the Common Development and
~ Distribution License (the License). You may not use this file except in compliance with the
~ License.
~
~ You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
~ specific language governing permission and limitations under the License.
~
~ When distributing Covered Software, include this CDDL Header Notice in each file and include
~ the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
~ Header, with the fields enclosed by brackets [] replaced by your own identifying
~ information: "Portions copyright [year] [name of copyright owner]".
~
~ Copyright 2016 ForgeRock AS.
-->
<com.forgerock.authenticator.notifications.NotificationLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="78dp"
android:background="@drawable/token"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imageURL"
android:layout_width="78dp"
android:layout_height="78dp"
android:padding="20dp"
android:layout_gravity="left"
android:src="@drawable/forgerock_icon_pending"
android:scaleType="fitCenter"
/>
<LinearLayout
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/imageURL"
android:layout_toEndOf="@id/imageURL"
android:layout_centerVertical="true"
android:orientation="vertical">
<TextView
android:id="@+id/info"
android:text="Authentication Request"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/status"
android:text="Pending"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<TextView
android:id="@+id/time"
android:text="10 minutes ago"
android:gravity="end"
android:layout_toRightOf="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_centerVertical="true" />
</RelativeLayout>
</com.forgerock.authenticator.notifications.NotificationLayout>