Skip to content

Commit

Permalink
Fix #3551 option_audio_language.xml into single xml file (#4220)
Browse files Browse the repository at this point in the history
* Good

* Done

* Amend
  • Loading branch information
shankarpriyank authored Mar 2, 2022
1 parent 4ccd35a commit dd02432
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 109 deletions.
51 changes: 0 additions & 51 deletions app/src/main/res/layout-land/option_audio_language.xml

This file was deleted.

55 changes: 0 additions & 55 deletions app/src/main/res/layout-sw600dp/option_audio_language.xml

This file was deleted.

9 changes: 6 additions & 3 deletions app/src/main/res/layout/option_audio_language.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
xmlns:app="http://schemas.android.com/apk/res-auto">

<data>
<variable
name="commonViewModel"
type="org.oppia.android.app.options.OptionControlsViewModel" />

<variable
name="viewModel"
Expand All @@ -13,12 +16,12 @@
android:id="@+id/audio_laguage_item_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/general_item_background_border"
android:background="@{commonViewModel.selectedFragmentIndex == viewModel.itemIndex ? @drawable/general_item_background_border_cyan : @drawable/general_item_background_border}"
android:minHeight="48dp"
android:onClick="@{(v) -> viewModel.onAudioLanguageClicked()}"
android:paddingStart="16dp"
android:paddingStart="@dimen/option_audio_language_padding_start"
android:paddingTop="20dp"
android:paddingEnd="16dp"
android:paddingEnd="@dimen/option_audio_language_padding_end"
android:paddingBottom="20dp">

<TextView
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values-land/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -447,4 +447,8 @@
<dimen name="administrator_controls_download_permissions_view_auto_update_topic_constraint_layout_padding_start">36dp</dimen>
<dimen name="administrator_controls_download_permissions_view_auto_update_topic_constraint_layout_padding_end">36dp</dimen>
<dimen name="administrator_controls_download_permissions_view_auto_update_topic_widget_switch_compat_margin_end">0dp</dimen>

<!-- OptionAudioLanguage -->
<dimen name="option_audio_language_padding_start">36dp</dimen>
<dimen name="option_audio_language_padding_end">36dp</dimen>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-sw600dp-land/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -439,4 +439,8 @@
<dimen name="administrator_controls_download_permissions_view_auto_update_topic_constraint_layout_padding_start">16dp</dimen>
<dimen name="administrator_controls_download_permissions_view_auto_update_topic_constraint_layout_padding_end">16dp</dimen>
<dimen name="administrator_controls_download_permissions_view_auto_update_topic_widget_switch_compat_margin_end">4dp</dimen>

<!-- OptionAudioLanguage -->
<dimen name="option_audio_language_padding_start">16dp</dimen>
<dimen name="option_audio_language_padding_end">16dp</dimen>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-sw600dp-port/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -438,4 +438,8 @@
<dimen name="administrator_controls_download_permissions_view_auto_update_topic_constraint_layout_padding_start">16dp</dimen>
<dimen name="administrator_controls_download_permissions_view_auto_update_topic_constraint_layout_padding_end">16dp</dimen>
<dimen name="administrator_controls_download_permissions_view_auto_update_topic_widget_switch_compat_margin_end">4dp</dimen>

<!-- OptionAudioLanguage -->
<dimen name="option_audio_language_padding_start">16dp</dimen>
<dimen name="option_audio_language_padding_end">16dp</dimen>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -648,4 +648,8 @@
<dimen name="administrator_controls_download_permissions_view_auto_update_topic_constraint_layout_padding_start">16dp</dimen>
<dimen name="administrator_controls_download_permissions_view_auto_update_topic_constraint_layout_padding_end">16dp</dimen>
<dimen name="administrator_controls_download_permissions_view_auto_update_topic_widget_switch_compat_margin_end">4dp</dimen>

<!-- OptionAudioLanguage -->
<dimen name="option_audio_language_padding_start">16dp</dimen>
<dimen name="option_audio_language_padding_end">16dp</dimen>
</resources>

0 comments on commit dd02432

Please sign in to comment.