blob: 23ef18673ebf0de30552947c179f5ad6ea8d276c [file] [log] [blame]
Adrien Béraudae45ffa2018-07-06 16:21:29 -04001<?xml version="1.0" encoding="utf-8"?>
2
3<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
4 xmlns:app="http://schemas.android.com/apk/res-auto"
5 xmlns:tools="http://schemas.android.com/tools"
6 android:layout_width="match_parent"
7 android:layout_height="match_parent"
8 android:orientation="vertical">
9
Adrien Béraud8bc95102018-08-25 22:34:51 -040010 <androidx.appcompat.widget.Toolbar
Adrien Béraudae45ffa2018-07-06 16:21:29 -040011 android:id="@+id/toolbar"
12 android:layout_width="match_parent"
13 android:layout_height="wrap_content"
14 android:background="?attr/colorPrimary"
15 android:elevation="4dp"
16 android:minHeight="?attr/actionBarSize"
17 android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
18 app:title="Share with..." />
19
20 <FrameLayout
21 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
23 android:background="#888888"
24 android:elevation="2dp">
25
26 <EditText
27 android:id="@+id/previewText"
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
30 android:background="@null"
31 android:maxHeight="@dimen/share_preview_height"
32 android:singleLine="false"
33 android:textColor="@color/text_color_primary_dark"
34 android:visibility="gone"
Adrien Béraud37be6652019-01-31 10:51:37 -050035 android:inputType="textShortMessage"
Adrien Béraudae45ffa2018-07-06 16:21:29 -040036 tools:text="Test text message" />
37
38 <ImageView
39 android:id="@+id/previewImage"
40 android:layout_width="match_parent"
41 android:layout_height="@dimen/share_preview_height"
42 android:layout_margin="8dp"
43 android:visibility="gone"
44 tools:visibility="visible" />
45
46 <cx.ring.views.PreviewVideoView
47 android:id="@+id/previewVideo"
48 android:layout_width="match_parent"
49 android:layout_height="@dimen/share_preview_height"
50 android:layout_gravity="center_horizontal"
51 android:layout_margin="8dp"
52 android:visibility="gone" />
53
54 </FrameLayout>
55
Adrien Béraud8bc95102018-08-25 22:34:51 -040056 <androidx.recyclerview.widget.RecyclerView
Adrien Béraudae45ffa2018-07-06 16:21:29 -040057 android:id="@+id/shareList"
58 android:layout_width="match_parent"
59 android:layout_height="wrap_content"
60 android:clipToPadding="false"
61 android:paddingTop="8dp"
62 app:layoutManager="LinearLayoutManager"
63 tools:context=".fragments.ShareWithFragment"
64 tools:listitem="@layout/item_smartlist" />
65
66</LinearLayout>