Finish work on the single progressbar for db's with uniform periods

This commit is contained in:
Alexander Bakker 2018-06-05 18:52:31 +02:00
parent 8a8cb94c16
commit 3f3863a187
9 changed files with 175 additions and 155 deletions

View file

@ -15,23 +15,6 @@
android:layout_width="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
<LinearLayout
android:orientation="horizontal"
android:padding="0dp"
android:layout_margin="0dp"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="wrap_content"
android:layout_height="4dp"
android:id="@+id/progressBar"
android:max="1000"
android:layout_weight="1"/>
</LinearLayout>
<!-- note: the fab should always be the last element to be sure it's displayed on top -->
<com.getbase.floatingactionbutton.FloatingActionsMenu
android:id="@+id/fab"

View file

@ -104,12 +104,11 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<ProgressBar
<me.impy.aegis.ui.views.PeriodProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="wrap_content"
android:layout_height="4dp"
android:id="@+id/progressBar"
android:visibility="invisible"
android:max="1000"
android:layout_weight="1"/>
</LinearLayout>

View file

@ -3,10 +3,20 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/background">
android:background="?attr/background"
android:orientation="vertical">
<me.impy.aegis.ui.views.PeriodProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="4dp"
android:id="@+id/progressBar"
android:max="1000"/>
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="0dp"
android:scrollbars="vertical"
android:id="@+id/rvKeyProfiles"/>
android:id="@+id/rvKeyProfiles"
android:layout_weight="1"/>
</LinearLayout>