Skip to content

Commit 1dc5e3f

Browse files
fix: align center content & background 🐛
1 parent f43cd5c commit 1dc5e3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spacelib/src/main/java/com/luseen/spacenavigation/SpaceNavigationView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ public boolean onLongClick(View v) {
327327
*/
328328
LayoutParams centreContentParams = new LayoutParams(centreContentWight, spaceNavigationHeight);
329329
centreContentParams.addRule(RelativeLayout.CENTER_HORIZONTAL);
330+
centreContentParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
330331

331332
/**
332333
* Centre Background View content size and position

0 commit comments

Comments
 (0)