Adrien Béraud | ae45ffa | 2018-07-06 16:21:29 -0400 | [diff] [blame] | 1 | <?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éraud | 8bc9510 | 2018-08-25 22:34:51 -0400 | [diff] [blame] | 10 | <androidx.appcompat.widget.Toolbar |
Adrien Béraud | ae45ffa | 2018-07-06 16:21:29 -0400 | [diff] [blame] | 11 | 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éraud | 37be665 | 2019-01-31 10:51:37 -0500 | [diff] [blame] | 35 | android:inputType="textShortMessage" |
Adrien Béraud | ae45ffa | 2018-07-06 16:21:29 -0400 | [diff] [blame] | 36 | 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éraud | 8bc9510 | 2018-08-25 22:34:51 -0400 | [diff] [blame] | 56 | <androidx.recyclerview.widget.RecyclerView |
Adrien Béraud | ae45ffa | 2018-07-06 16:21:29 -0400 | [diff] [blame] | 57 | 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> |