Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Edit height of charts to show the pin
Browse files Browse the repository at this point in the history
  • Loading branch information
hadiidbouk committed Dec 6, 2017
1 parent dac48cb commit 430ab69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void build() {
Drawable d = getResources().getDrawable(mPinDrawable);
int h = d.getIntrinsicHeight();

linearLayout.setPadding(0, h * 2, 0, 0);
linearLayout.setPadding(0, h + mPinMarginBottom/2, 0, 0);
linearLayout.setLayoutParams(params);

addView(linearLayout);
Expand Down
3 changes: 1 addition & 2 deletions sample/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
app:hdBarTitleColor="@color/bar_title_color"
app:hdBarTitleTxtSize="12sp"
app:hdPinTxtSize="17sp"
app:hdPinMarginTop="10dp"
app:hdPinMarginBottom="55dp"
app:hdPinMarginBottom="45dp"
app:hdPinMarginEnd="22dp"
app:hdBarTitleMarginTop="9dp"
app:hdPinDrawable="@drawable/ic_pin"
Expand Down

0 comments on commit 430ab69

Please sign in to comment.