summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-07-31 18:32:01 +0200
committercyBerta <cyberta@riseup.net>2021-11-14 19:44:25 +0100
commit033ac24155bf9b56fbf8a247ab582ecd2b934e9a (patch)
tree1e139c3fcee0bb185b03e6e3866c20cb3b30de2b /app/src/main/res/layout
parent6d3c122bebf0ad4f7dc22d4963dc73dea4248251 (diff)
initial implementation of classic on-off push button
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/v_main_button.xml14
1 files changed, 9 insertions, 5 deletions
diff --git a/app/src/main/res/layout/v_main_button.xml b/app/src/main/res/layout/v_main_button.xml
index d8ae211c..741fc88f 100644
--- a/app/src/main/res/layout/v_main_button.xml
+++ b/app/src/main/res/layout/v_main_button.xml
@@ -102,6 +102,7 @@
app:layout_constraintEnd_toEndOf="@id/border_guideline_right"
app:layout_constraintStart_toStartOf="@id/border_guideline_left"
app:layout_constraintTop_toTopOf="@id/border_guideline_top"
+ app:layout_constraintDimensionRatio="1:1"
android:indeterminate="true"
android:indeterminateDuration="800"
android:indeterminateDrawable="@drawable/progressbar_circle"
@@ -117,16 +118,19 @@
app:layout_constraintEnd_toStartOf="@+id/vpn_btn_guideline_right"
app:layout_constraintStart_toStartOf="@+id/vpn_btn_guideline_left"
app:layout_constraintTop_toTopOf="@+id/vpn_btn_guideline_top"
+ app:layout_constraintDimensionRatio="1:1"
app:srcCompat="@drawable/black_circle" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/vpn_state_key"
android:layout_width="0dp"
android:layout_height="0dp"
- app:layout_constraintBottom_toTopOf="@id/icn_guideline_bottom"
- app:layout_constraintEnd_toStartOf="@id/icn_guideline_right"
- app:layout_constraintStart_toStartOf="@id/icn_guideline_left"
- app:layout_constraintTop_toTopOf="@id/icn_guideline_top"
- app:srcCompat="@drawable/vpn_connected" />
+ app:layout_constraintBottom_toTopOf="@+id/icn_guideline_bottom"
+ app:layout_constraintEnd_toStartOf="@+id/icn_guideline_right"
+ app:layout_constraintStart_toStartOf="@+id/icn_guideline_left"
+ app:layout_constraintTop_toTopOf="@+id/icn_guideline_top"
+ app:layout_constraintDimensionRatio="1:1"
+ app:layout_constraintVertical_bias="0.35"
+ app:srcCompat="@drawable/ic_btn_on_disabled" />
</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file