Daynight theme for media preview & overview activities.
parent
4da13f8541
commit
b05350b5aa
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- This seems to be the dirties and the only way to set AppBar's elevation property.
|
||||||
|
God help Android and us all.
|
||||||
|
https://stackoverflow.com/a/45703684/3802890 -->
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<objectAnimator
|
||||||
|
android:duration="1"
|
||||||
|
android:propertyName="elevation"
|
||||||
|
android:valueTo="1dp"
|
||||||
|
android:valueType="floatType" />
|
||||||
|
</item>
|
||||||
|
</selector>
|
@ -1,22 +1,25 @@
|
|||||||
<?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"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_height="match_parent">
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/recycler_view"
|
android:id="@+id/recycler_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:scrollbars="vertical" />
|
android:scrollbars="vertical"
|
||||||
|
tools:listitem="@layout/media_overview_document_item" />
|
||||||
|
|
||||||
<TextView android:id="@+id/no_documents"
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/no_documents"
|
||||||
android:layout_height="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:textSize="@dimen/medium_font_size"
|
android:layout_height="match_parent"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:visibility="gone"
|
android:text="@string/media_overview_documents_fragment__no_documents_found"
|
||||||
android:textColor="@color/text"
|
android:textSize="@dimen/medium_font_size"
|
||||||
android:text="@string/media_overview_documents_fragment__no_documents_found" />
|
android:visibility="gone"
|
||||||
|
tools:visibility="visible" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||||
<style name="TextSecure.LightRegistrationTheme" parent="TextSecure.LightNoActionBar">
|
|
||||||
<item name="android:windowLightStatusBar">true</item>
|
|
||||||
<item name="android:statusBarColor">@color/core_grey_02</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="TextSecure.DarkRegistrationTheme" parent="Theme.TextSecure.DayNight.NoActionBar">
|
<style name="Theme.Session.ForceDark" parent="Base.Theme.Session.ForceDark">
|
||||||
<item name="android:windowLightStatusBar">false</item>
|
<item name="android:windowLightStatusBar">false</item>
|
||||||
<item name="android:statusBarColor">@color/core_black</item>
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in New Issue