mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 22:29:53 +01:00
Make entire collapsed view clickable.
This commit is contained in:
@@ -42,7 +42,7 @@ class PluginViewController {
|
|||||||
bottom, oldLeft, oldTop, oldRight, oldBottom) ->
|
bottom, oldLeft, oldTop, oldRight, oldBottom) ->
|
||||||
scrollView.fullScroll(FOCUS_DOWN));
|
scrollView.fullScroll(FOCUS_DOWN));
|
||||||
|
|
||||||
v.findViewById(R.id.chevronViewCollapsed).setOnClickListener(view -> {
|
collapsedLayout.setOnClickListener(view -> {
|
||||||
expandedLayout.setVisibility(VISIBLE);
|
expandedLayout.setVisibility(VISIBLE);
|
||||||
collapsedLayout.setVisibility(GONE);
|
collapsedLayout.setVisibility(GONE);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -8,12 +8,12 @@
|
|||||||
android:id="@+id/expandedLayout"
|
android:id="@+id/expandedLayout"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/navigation"
|
android:visibility="gone"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintVertical_bias="1.0"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
android:visibility="gone">
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/navigation"
|
||||||
|
app:layout_constraintVertical_bias="1.0">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageButton
|
<androidx.appcompat.widget.AppCompatImageButton
|
||||||
android:id="@+id/chevronViewExpanded"
|
android:id="@+id/chevronViewExpanded"
|
||||||
@@ -156,10 +156,10 @@
|
|||||||
android:id="@+id/collapsedLayout"
|
android:id="@+id/collapsedLayout"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/navigation"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/navigation"
|
||||||
app:layout_constraintVertical_bias="1.0">
|
app:layout_constraintVertical_bias="1.0">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageButton
|
<androidx.appcompat.widget.AppCompatImageButton
|
||||||
@@ -168,6 +168,8 @@
|
|||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_marginBottom="8dp"
|
||||||
android:background="@color/divider"
|
android:background="@color/divider"
|
||||||
|
android:clickable="false"
|
||||||
|
android:focusable="false"
|
||||||
android:foreground="?attr/selectableItemBackground"
|
android:foreground="?attr/selectableItemBackground"
|
||||||
android:src="@drawable/chevron_up_white"
|
android:src="@drawable/chevron_up_white"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
|||||||
Reference in New Issue
Block a user