Closed JefferyEmanuel closed 7 years ago
Hi,
You only need to set both symbolGravity and decimalGravity:
app:symbolGravity="start|top"
app:decimalGravity="top"
Try this:
<org.fabiomsr.moneytextview.MoneyTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:symbol="$"
app:amount="99.99"
app:symbolGravity="start|top"
app:decimalGravity="top"
app:symbolTextSize="18sp"
app:baseTextSize="35sp"
app:decimalDigitsTextSize="18sp"
app:decimalMargin="6dp"
app:symbolMargin="6dp"
app:includeDecimalSeparator="false"
app:baseTextColor="#FBFFE3"/>
your comments showed me how to do this. the android preview window wasn't updating for some reason but at runtime everything renders fine. excellent.
I'd like to adjust the height of the superscript. right now the gravity is just top or bottom . could you make one for center or the ability to add padding so i can push the decimal text down to my specification ? Or can you show me how you got it like this screenshot:
because i see thats what i want but your examples dont demo how the decimal part can be perfectly aligned with the dollar part like in that photo.