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 | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 10 | <com.google.android.material.appbar.MaterialToolbar |
Adrien Béraud | ae45ffa | 2018-07-06 16:21:29 -0400 | [diff] [blame] | 11 | android:id="@+id/toolbar" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 12 | style="@style/Widget.MaterialComponents.Toolbar.Surface" |
Adrien Béraud | ae45ffa | 2018-07-06 16:21:29 -0400 | [diff] [blame] | 13 | android:layout_width="match_parent" |
| 14 | android:layout_height="wrap_content" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 15 | android:elevation="0dp" |
| 16 | android:minHeight="?attr/actionBarSize" /> |
Adrien Béraud | ae45ffa | 2018-07-06 16:21:29 -0400 | [diff] [blame] | 17 | |
| 18 | <FrameLayout |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
Rayan Osseiran | 8a56d36 | 2019-06-07 17:03:37 -0400 | [diff] [blame] | 21 | android:focusableInTouchMode="true" |
Adrien Béraud | ae45ffa | 2018-07-06 16:21:29 -0400 | [diff] [blame] | 22 | android:elevation="2dp"> |
| 23 | |
| 24 | <EditText |
| 25 | android:id="@+id/previewText" |
| 26 | android:layout_width="match_parent" |
| 27 | android:layout_height="wrap_content" |
Rayan Osseiran | 8a56d36 | 2019-06-07 17:03:37 -0400 | [diff] [blame] | 28 | android:layout_marginLeft="10dp" |
| 29 | android:layout_marginTop="10dp" |
| 30 | android:layout_marginRight="10dp" |
| 31 | android:layout_marginBottom="10dp" |
Adrien Béraud | ae45ffa | 2018-07-06 16:21:29 -0400 | [diff] [blame] | 32 | android:background="@null" |
Rayan Osseiran | 8a56d36 | 2019-06-07 17:03:37 -0400 | [diff] [blame] | 33 | android:inputType="textMultiLine" |
Adrien Béraud | ae45ffa | 2018-07-06 16:21:29 -0400 | [diff] [blame] | 34 | android:singleLine="false" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 35 | android:textColor="@color/textColorPrimary" |
Adrien Béraud | ae45ffa | 2018-07-06 16:21:29 -0400 | [diff] [blame] | 36 | android:visibility="gone" |
| 37 | tools:text="Test text message" /> |
| 38 | |
| 39 | <ImageView |
| 40 | android:id="@+id/previewImage" |
| 41 | android:layout_width="match_parent" |
| 42 | android:layout_height="@dimen/share_preview_height" |
| 43 | android:layout_margin="8dp" |
| 44 | android:visibility="gone" |
| 45 | tools:visibility="visible" /> |
| 46 | |
| 47 | <cx.ring.views.PreviewVideoView |
| 48 | android:id="@+id/previewVideo" |
| 49 | android:layout_width="match_parent" |
| 50 | android:layout_height="@dimen/share_preview_height" |
| 51 | android:layout_gravity="center_horizontal" |
| 52 | android:layout_margin="8dp" |
| 53 | android:visibility="gone" /> |
| 54 | |
| 55 | </FrameLayout> |
| 56 | |
Rayan Osseiran | 8a56d36 | 2019-06-07 17:03:37 -0400 | [diff] [blame] | 57 | <View |
| 58 | android:id="@+id/divider" |
| 59 | android:layout_width="match_parent" |
| 60 | android:layout_height="2dp" |
| 61 | android:background="?android:attr/listDivider" /> |
| 62 | |
Adrien Béraud | 8bc9510 | 2018-08-25 22:34:51 -0400 | [diff] [blame] | 63 | <androidx.recyclerview.widget.RecyclerView |
Adrien Béraud | ae45ffa | 2018-07-06 16:21:29 -0400 | [diff] [blame] | 64 | android:id="@+id/shareList" |
| 65 | android:layout_width="match_parent" |
| 66 | android:layout_height="wrap_content" |
| 67 | android:clipToPadding="false" |
| 68 | android:paddingTop="8dp" |
| 69 | app:layoutManager="LinearLayoutManager" |
| 70 | tools:context=".fragments.ShareWithFragment" |
| 71 | tools:listitem="@layout/item_smartlist" /> |
| 72 | |
| 73 | </LinearLayout> |