Skip to content

Commit

Permalink
HMA 6727 change link visibility (#116)
Browse files Browse the repository at this point in the history
* HMA-6727 action button visibility fixes

* HMA-6727 further action button visibility changes

* HMA-6727 further action button visibility changes
  • Loading branch information
emmaatkins authored Mar 29, 2023
1 parent 84346da commit ae5fb5b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Allowed headings:

## [Unreleased]

### Fixed

* `EditableListView` further action button visibility fixes.

## [4.5.4] - 2023-03-27

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package uk.gov.hmrc.components.organism.editable

import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView
Expand Down Expand Up @@ -91,7 +92,7 @@ class EditableListViewAdapter : RecyclerView.Adapter<EditableListViewAdapter.Vie
} else {
itemView.isClickable = false
actionButton.isClickable = false
actionButton.isVisible = false
actionButton.visibility = View.INVISIBLE
motionLayout.transitionToStart()
}
}
Expand Down
3 changes: 2 additions & 1 deletion components/src/main/res/layout/editable_list_items.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
android:minHeight="0dp"
android:importantForAccessibility="no"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:visibility="invisible" />

<View
android:id="@+id/divider"
Expand Down
6 changes: 4 additions & 2 deletions components/src/main/res/xml/scene_editing_mode.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
motion:layout_constraintWidth_max="120dp"
motion:layout_constraintBottom_toBottomOf="parent"
motion:layout_constraintEnd_toEndOf="parent"
motion:layout_constraintTop_toTopOf="parent" />
motion:layout_constraintTop_toTopOf="parent"
motion:visibilityMode="ignore" />

<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier"
Expand Down Expand Up @@ -100,7 +101,8 @@
motion:layout_constraintWidth_max="120dp"
motion:layout_constraintBottom_toBottomOf="parent"
motion:layout_constraintEnd_toEndOf="parent"
motion:layout_constraintTop_toTopOf="parent" />
motion:layout_constraintTop_toTopOf="parent"
motion:visibilityMode="ignore" />

<androidx.constraintlayout.widget.Barrier
android:id="@id/barrier"
Expand Down

0 comments on commit ae5fb5b

Please sign in to comment.