Skip to content

Commit

Permalink
调整视图Z高度
Browse files Browse the repository at this point in the history
  • Loading branch information
XuQK committed Apr 26, 2020
1 parent 02c7493 commit 0d4225e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/root"
tools:context=".MainActivity">

<LinearLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class KDImageViewer(
}

rootView.addView(photoViewContainer, generateDefaultLayoutParams())
rootView.translationZ = 32f
coverModule.getCoverView()?.let {
rootView.addView(it, generateDefaultLayoutParams())
}
Expand Down

0 comments on commit 0d4225e

Please sign in to comment.