Skip to content

Commit

Permalink
Header Image: Fix negative side margins
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmud0808 committed May 2, 2023
1 parent d7ee68a commit 49c3653
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ public void handleLayoutInflated(XC_LayoutInflated.LayoutInflatedParam liparam)

mQsHeaderLayout = new LinearLayout(mContext);
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, imageHeight, mContext.getResources().getDisplayMetrics()));
layoutParams.leftMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, -50, mContext.getResources().getDisplayMetrics());
layoutParams.rightMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, -50, mContext.getResources().getDisplayMetrics());
layoutParams.leftMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, -16, mContext.getResources().getDisplayMetrics());
layoutParams.rightMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, -16, mContext.getResources().getDisplayMetrics());
mQsHeaderLayout.setLayoutParams(layoutParams);
mQsHeaderLayout.setVisibility(View.GONE);

Expand Down

0 comments on commit 49c3653

Please sign in to comment.