Skip to content

Commit

Permalink
Fixes Part of #2326: Changes in Views inside Practice Tab [A11y] (#2525)
Browse files Browse the repository at this point in the history
* fixed accessibility issue with checkboxes

* reverted header file and edited subtopic item

* reverted changes for Project.xml file

* removed minHeight attribute for all layouts
  • Loading branch information
Mehul-Bisht authored Jan 21, 2021
1 parent 5393abe commit 1144075
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
5 changes: 2 additions & 3 deletions app/src/main/res/layout-land/topic_practice_subtopic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
android:layout_height="wrap_content"
android:layout_marginStart="104dp"
android:layout_marginEnd="96dp"
android:layout_marginBottom="26dp"
app:barrierDirection="right">

<androidx.constraintlayout.widget.Barrier
Expand All @@ -32,13 +31,13 @@
android:id="@+id/subtopic_check_box"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="26dp"
android:button="@drawable/selector_checkbox"
android:checked="@{isChecked}"
android:drawableStart="@android:color/transparent"
android:drawablePadding="20dp"
android:fontFamily="sans-serif"
android:gravity="start"
android:minHeight="22dp"
android:gravity="start|top"
android:text="@{viewModel.subtopic.title}"
android:textAlignment="viewStart"
android:textColor="@color/oppiaPrimaryText"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp">
android:layout_height="wrap_content">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="360dp"
Expand All @@ -42,8 +40,8 @@
android:drawableStart="@android:color/transparent"
android:drawablePadding="20dp"
android:fontFamily="sans-serif"
android:gravity="start"
android:minHeight="22dp"
android:gravity="start|top"
android:paddingBottom="24dp"
android:text="@{viewModel.subtopic.title}"
android:textAlignment="viewStart"
android:textColor="@color/oppiaPrimaryText"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp">
android:layout_height="wrap_content">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="360dp"
Expand All @@ -42,8 +40,8 @@
android:drawableStart="@android:color/transparent"
android:drawablePadding="20dp"
android:fontFamily="sans-serif"
android:gravity="start"
android:minHeight="22dp"
android:gravity="start|top"
android:paddingBottom="24dp"
android:text="@{viewModel.subtopic.title}"
android:textAlignment="viewStart"
android:textColor="@color/oppiaPrimaryText"
Expand Down
5 changes: 2 additions & 3 deletions app/src/main/res/layout/topic_practice_subtopic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
android:layout_height="wrap_content"
android:layout_marginStart="40dp"
android:layout_marginEnd="48dp"
android:layout_marginBottom="26dp"
app:barrierDirection="right"
app:constraint_referenced_ids="button_example,text_view_status">

Expand All @@ -33,13 +32,13 @@
android:id="@+id/subtopic_check_box"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="26dp"
android:button="@drawable/selector_checkbox"
android:checked="@{isChecked}"
android:drawableStart="@android:color/transparent"
android:drawablePadding="20dp"
android:fontFamily="sans-serif"
android:gravity="start"
android:minHeight="22dp"
android:gravity="start|top"
android:text="@{viewModel.subtopic.title}"
android:textAlignment="viewStart"
android:textColor="@color/oppiaPrimaryText"
Expand Down

0 comments on commit 1144075

Please sign in to comment.