mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
eb1b762a76
On Jelly Bean and above: - Use the standard notification style for a better and consistent visual appearance - Use the JB notification actions API for the locking action - Use a lower notification priority to prioritize other notifications over TextSecure On ICS: - Use the existing custom notification layout Everywhere: - Allow opening the app itself from the notification - Simplify strings: don't talk about a "cached passphrase" but about the app being "unlocked"/"locked"
44 lines
1.7 KiB
XML
44 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent">
|
|
|
|
<LinearLayout android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_centerVertical="true"
|
|
android:orientation="vertical"
|
|
android:layout_marginLeft="10dip">
|
|
<TextView android:id="@+id/title"
|
|
android:textAppearance="@style/NotificationTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:ellipsize="marquee"
|
|
android:fadingEdge="horizontal"
|
|
android:text="@string/KeyCachingService_passphrase_cached"
|
|
/>
|
|
|
|
<TextView android:id="@+id/text2"
|
|
android:textAppearance="@style/NotificationText"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="-2dp"
|
|
android:layout_marginBottom="-2dp"
|
|
android:singleLine="true"
|
|
android:fadingEdge="horizontal"
|
|
android:ellipsize="marquee"
|
|
android:text="@string/KeyCachingService_textsecure_passphrase_cached_with_lock"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<ImageView android:id="@+id/lock_cache_icon"
|
|
android:src="@drawable/icon_lock"
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:background="@drawable/notify_panel_notification_icon_bg_tile"
|
|
android:scaleType="center"
|
|
android:layout_alignParentRight="true"
|
|
/>
|
|
|
|
</RelativeLayout> |