Skip to content

Commit

Permalink
20210625修改纵向控件bug
Browse files Browse the repository at this point in the history
  • Loading branch information
842869709 committed Jun 25, 2021
1 parent d826b8d commit ca78b00
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
20 changes: 13 additions & 7 deletions app/src/main/res/layout/activity_test_v.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@
tools:context=".MainActivity"
android:background="@android:color/holo_red_dark">

<com.yangxuydong.myslidingmenu.MySlidingMenuVertical
android:id="@+id/msmv"
android:layout_width="match_parent"
android:layout_height="match_parent">

<include layout="@layout/menu_t"/>
<include layout="@layout/menu_b"/>

</com.yangxuydong.myslidingmenu.MySlidingMenuVertical>

<com.yangxuydong.myslidingmenu.MySlidingMenuVertical
android:id="@+id/msmv"
android:layout_width="match_parent"
android:layout_height="match_parent">

<include layout="@layout/menu_t"/>
<include layout="@layout/menu_b"/>

</com.yangxuydong.myslidingmenu.MySlidingMenuVertical>




</androidx.constraintlayout.widget.ConstraintLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected void onFinishInflate() {
//排版
@Override
protected void onLayout(boolean b, int i, int i1, int i2, int i3) {
top.layout(i, i1, i2, i3);
top.layout(i, 0, i2, i3);
bottom.layout(i, topHeight, i2, i3+topHeight);
}

Expand Down

0 comments on commit ca78b00

Please sign in to comment.