mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
parent
554d7e17be
commit
e99762b814
3 changed files with 11 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
package com.beemdevelopment.aegis.ui.views;
|
package com.beemdevelopment.aegis.ui.views;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.PorterDuff;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
|
@ -49,8 +48,6 @@ public class EntryListView extends Fragment implements EntryAdapter.Listener {
|
||||||
View view = inflater.inflate(R.layout.fragment_entry_list_view, container, false);
|
View view = inflater.inflate(R.layout.fragment_entry_list_view, container, false);
|
||||||
|
|
||||||
_progressBar = view.findViewById(R.id.progressBar);
|
_progressBar = view.findViewById(R.id.progressBar);
|
||||||
int primaryColorId = getResources().getColor(R.color.colorPrimary);
|
|
||||||
_progressBar.getProgressDrawable().setColorFilter(primaryColorId, PorterDuff.Mode.SRC_IN);
|
|
||||||
|
|
||||||
// set up the recycler view
|
// set up the recycler view
|
||||||
_rvKeyProfiles = view.findViewById(R.id.rvKeyProfiles);
|
_rvKeyProfiles = view.findViewById(R.id.rvKeyProfiles);
|
||||||
|
|
10
app/src/main/res/drawable/progress_horizontal.xml
Normal file
10
app/src/main/res/drawable/progress_horizontal.xml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:id="@android:id/progress">
|
||||||
|
<clip>
|
||||||
|
<shape>
|
||||||
|
<solid android:color="@color/colorAccent"/>
|
||||||
|
</shape>
|
||||||
|
</clip>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
</layer-list>
|
|
@ -10,6 +10,7 @@
|
||||||
style="?android:attr/progressBarStyleHorizontal"
|
style="?android:attr/progressBarStyleHorizontal"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="4dp"
|
android:layout_height="4dp"
|
||||||
|
android:progressDrawable="@drawable/progress_horizontal"
|
||||||
android:id="@+id/progressBar"
|
android:id="@+id/progressBar"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:max="1000"/>
|
android:max="1000"/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue