Browse Source

Proper fix for the ConstraintLayout issues

pipelines/135724
Nicolas Pomepuy 5 years ago
parent
commit
9527b98e71
  1. 1
      application/vlc-android/res/layout/audio_browser_item.xml
  2. 5
      application/vlc-android/res/layout/playlist_item.xml
  3. 1
      build.gradle

1
application/vlc-android/res/layout/audio_browser_item.xml

@ -38,6 +38,7 @@
android:background="@{bgColor}"
android:clickable="true"
android:focusable="true"
vlc:layout_optimizationLevel="cache_measures"
android:longClickable="true"
android:foreground="?attr/selectableItemBackground"
android:minHeight="@dimen/audio_browser_item_size"

5
application/vlc-android/res/layout/playlist_item.xml

@ -35,7 +35,8 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
app:layout_optimizationLevel="cache_measures">
<View
android:layout_width="0dp"
@ -60,7 +61,7 @@
<ImageView
android:layout_width="40dp"
android:layout_width="0dp"
android:layout_height="40dp"
android:id="@+id/coverImage"
android:layout_weight="1"

1
build.gradle

@ -58,6 +58,7 @@ ext {
//fixme : When we update this dep, please verify of this issue is fixed: https://github.com/material-components/material-components-android/issues/1086
// if so, revert application/vlc-android/res/values[-v21]/styles.xml -> AppModalStyle
androidxMaterialVersion = '1.3.0'
//fixme: when updating to 2.1.x+, we should remove the 'layout_optimizationLevel' attribute we added in some layouts as a workaround for this issue: https://issuetracker.google.com/issues/170313444
constraintLayoutVersion = '2.0.4'
viewPager2Version = "1.0.0"
archVersion = '2.1.0'

Loading…
Cancel
Save