Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update to ConstraintLayout 2.0.0-beta1
  • Loading branch information
chrisbanes committed May 10, 2019
1 parent 807e6e9 commit 272215e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Expand Up @@ -23,6 +23,7 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.constraintlayout.motion.widget.MotionLayout
import androidx.constraintlayout.motion.widget.MotionScene
import androidx.core.os.bundleOf
import androidx.core.view.isGone
import androidx.core.view.isVisible
Expand Down Expand Up @@ -119,6 +120,10 @@ class ShowDetailsFragment : TiviMvRxFragment() {
}
}
}

override fun allowsTransition(transition: MotionScene.Transition): Boolean {
return true
}
})

binding.detailsFollowFab.setOnClickListener {
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/xml/scene_home_nav.xml
Expand Up @@ -27,20 +27,20 @@
<ConstraintSet android:id="@+id/nav_closed">
<Constraint android:id="@id/home_content_background">
<Layout
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/home_toolbar"
app:layout_height="0dp"
app:layout_width="match_parent" />
app:layout_constraintTop_toBottomOf="@id/home_toolbar" />
</Constraint>
</ConstraintSet>

<ConstraintSet android:id="@+id/nav_open">
<Constraint android:id="@id/home_content_background">
<Layout
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/home_nav_rv"
app:layout_height="0dp"
app:layout_width="match_parent" />
app:layout_constraintTop_toBottomOf="@id/home_nav_rv" />
</Constraint>
</ConstraintSet>

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/app/tivi/buildsrc/dependencies.kt
Expand Up @@ -108,7 +108,7 @@ object Libs {

val preference = "androidx.preference:preference:1.1.0-alpha02"

val constraintlayout = "androidx.constraintlayout:constraintlayout:2.0.0-alpha5"
val constraintlayout = "androidx.constraintlayout:constraintlayout:2.0.0-beta1"

val coreKtx = "androidx.core:core-ktx:1.0.1"

Expand Down

0 comments on commit 272215e

Please sign in to comment.