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 | |
| 10 | <android.support.v7.widget.Toolbar |
| 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" |
| 35 | tools:text="Test text message" /> |
| 36 | |
| 37 | <ImageView |
| 38 | android:id="@+id/previewImage" |
| 39 | android:layout_width="match_parent" |
| 40 | android:layout_height="@dimen/share_preview_height" |
| 41 | android:layout_margin="8dp" |
| 42 | android:visibility="gone" |
| 43 | tools:visibility="visible" /> |
| 44 | |
| 45 | <cx.ring.views.PreviewVideoView |
| 46 | android:id="@+id/previewVideo" |
| 47 | android:layout_width="match_parent" |
| 48 | android:layout_height="@dimen/share_preview_height" |
| 49 | android:layout_gravity="center_horizontal" |
| 50 | android:layout_margin="8dp" |
| 51 | android:visibility="gone" /> |
| 52 | |
| 53 | </FrameLayout> |
| 54 | |
| 55 | <android.support.v7.widget.RecyclerView |
| 56 | android:id="@+id/shareList" |
| 57 | android:layout_width="match_parent" |
| 58 | android:layout_height="wrap_content" |
| 59 | android:clipToPadding="false" |
| 60 | android:paddingTop="8dp" |
| 61 | app:layoutManager="LinearLayoutManager" |
| 62 | tools:context=".fragments.ShareWithFragment" |
| 63 | tools:listitem="@layout/item_smartlist" /> |
| 64 | |
| 65 | </LinearLayout> |