Add dep on ui_style to attachment viewer

This commit is contained in:
Benoit Marty 2021-06-15 18:22:26 +02:00
parent bbbe76b91c
commit 9c9d0a5d21
4 changed files with 7 additions and 13 deletions

View File

@ -47,6 +47,8 @@ android {
} }
dependencies { dependencies {
implementation project(":library:ui-styles")
implementation 'com.github.chrisbanes:PhotoView:2.3.0' implementation 'com.github.chrisbanes:PhotoView:2.3.0'
implementation 'io.reactivex.rxjava2:rxkotlin:2.4.0' implementation 'io.reactivex.rxjava2:rxkotlin:2.4.0'

View File

@ -1,22 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
xmlns:tools="http://schemas.android.com/tools">
<com.github.chrisbanes.photoview.PhotoView <com.github.chrisbanes.photoview.PhotoView
android:id="@+id/touchImageView" android:id="@+id/touchImageView"
android:visibility="visible"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"/> android:layout_height="match_parent" />
<ProgressBar <ProgressBar
android:layout_centerInParent="true"
android:id="@+id/imageLoaderProgress" android:id="@+id/imageLoaderProgress"
style="?android:attr/progressBarStyle" style="?android:attr/progressBarStyle"
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="40dp" android:layout_height="40dp"
android:visibility="visible" android:layout_centerInParent="true" />
tools:visibility="gone" />
</RelativeLayout> </RelativeLayout>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<color name="half_transparent_status_bar">#80000000</color>
</resources>

View File

@ -29,6 +29,8 @@
<!-- Emoji text has to use a black text color --> <!-- Emoji text has to use a black text color -->
<color name="emoji_color">@android:color/black</color> <color name="emoji_color">@android:color/black</color>
<color name="half_transparent_status_bar">#80000000</color>
<color name="black_alpha">#55000000</color> <color name="black_alpha">#55000000</color>
<color name="black_54">#8A000000</color> <color name="black_54">#8A000000</color>