1616 along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
1818-->
19-
20- <!--
21- ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
22- android:id="@+id/fdScrollView"
23- android:layout_width="fill_parent"
24- android:layout_height="fill_parent"
25- android:background="@color/background_color"
26- android:gravity="center_horizontal"
27- -->
28- <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
19+ <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
20+ xmlns : app =" http://schemas.android.com/apk/res-auto"
2921 xmlns : tools =" http://schemas.android.com/tools"
3022 android : id =" @+id/top"
3123 android : layout_width =" match_parent"
3224 android : layout_height =" match_parent"
3325 android : background =" #000000"
34- tools : context =" .ui.preview.PreviewImageFragment"
3526 android : filterTouchesWhenObscured =" true"
36- >
27+ tools : context = " .ui.preview.PreviewImageFragment " >
3728
3829 <ProgressBar
3930 android : id =" @+id/progressWheel"
4031 android : layout_width =" wrap_content"
4132 android : layout_height =" wrap_content"
4233 android : indeterminate =" true"
4334 android : indeterminateOnly =" true"
44- android : layout_centerInParent =" true"
45- />
35+ app : layout_constraintBottom_toBottomOf =" parent"
36+ app : layout_constraintLeft_toLeftOf =" parent"
37+ app : layout_constraintRight_toRightOf =" parent"
38+ app : layout_constraintTop_toTopOf =" parent" />
39+
40+ <ImageView
41+ android : id =" @+id/error_image"
42+ android : layout_width =" wrap_content"
43+ android : layout_height =" wrap_content"
44+ android : contentDescription =" @string/downloader_preview_failed_ticker"
45+ android : src =" @drawable/image_fail"
46+ app : layout_constraintLeft_toLeftOf =" parent"
47+ app : layout_constraintRight_toRightOf =" parent"
48+ app : layout_constraintTop_toTopOf =" parent"
49+ app : layout_constraintBottom_toBottomOf =" parent" />
50+
51+ <TextView
52+ android : id =" @+id/errorText"
53+ android : layout_width =" 0dp"
54+ android : layout_height =" wrap_content"
55+ android : layout_margin =" 40dp"
56+ android : gravity =" center"
57+ android : text =" @string/downloader_preview_failed_ticker"
58+ android : textColor =" @color/dark_background_text_color"
59+ app : layout_constraintLeft_toLeftOf =" parent"
60+ app : layout_constraintRight_toRightOf =" parent"
61+ app : layout_constraintTop_toBottomOf =" @id/error_image" />
4662
4763 <com .github.chrisbanes.photoview.PhotoView
4864 android : id =" @+id/photo_view"
49- android : layout_width =" match_parent"
50- android : layout_height =" match_parent" />
65+ android : layout_width =" 0dp"
66+ android : layout_height =" 0dp"
67+ app : layout_constraintBottom_toBottomOf =" parent"
68+ app : layout_constraintLeft_toLeftOf =" parent"
69+ app : layout_constraintRight_toRightOf =" parent"
70+ app : layout_constraintTop_toTopOf =" parent" />
5171
5272 <TextView
5373 android : id =" @+id/message"
54- android : layout_width =" wrap_content "
74+ android : layout_width =" 0dp "
5575 android : layout_height =" wrap_content"
56- android : layout_centerHorizontal =" true"
57- android : layout_alignParentBottom =" true"
5876 android : layout_margin =" 40dp"
77+ android : gravity =" center"
5978 android : text =" @string/placeholder_sentence"
6079 android : textColor =" @color/owncloud_blue_bright"
61- />
80+ app : layout_constraintBottom_toBottomOf =" parent"
81+ app : layout_constraintLeft_toLeftOf =" parent"
82+ app : layout_constraintRight_toRightOf =" parent" />
6283
6384 <!-- last to draw, will be top in Z axis -->
6485 <include layout =" @layout/top_progress_bar" />
6586
66- </RelativeLayout >
87+ <androidx .constraintlayout.widget.Group
88+ tools : visibility =" visible"
89+ android : id =" @+id/error_group"
90+ android : layout_width =" wrap_content"
91+ android : layout_height =" wrap_content"
92+ android : visibility =" gone"
93+ app : constraint_referenced_ids =" error_image,errorText" />
94+
95+ </androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments