anastr / SpeedView

Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape :zap:
Apache License 2.0
1.28k stars 321 forks source link

value in ImageLinearGauge is not visible #228

Closed holbli closed 2 years ago

holbli commented 2 years ago

Hi all,

I have a problem with the ImageLinearGauge: i can not see the value - the unit is there and the gauge itself works fine. surprisingly also the unit moves a litte bit, when the displayed value changes from a one digit value tzo a two digit value.

My xml: <com.github.anastr.speedviewlib.ImageLinearGauge android:id="@+id/speedViewPWR_BSG" android:layout_width="match_parent" android:layout_height="60dp" android:layout_margin="5dp" android:visibility="visible" app:sv_image="@drawable/green_rounded" app:sv_maxSpeed="100" app:sv_minSpeed="-100" app:sv_speedTextColor="#DDDDDD" app:sv_speedTextFormat="FLOAT" app:sv_speedTextPadding="0dp" app:sv_speedTextPosition="CENTER" app:sv_speedTextSize="30sp" app:sv_speedometerBackColor="#857d7d" app:sv_unit="kW" app:sv_unitTextColor="#DDDDDD" app:sv_unitTextSize="30sp" app:sv_unitUnderSpeedText="false" app:sv_withTremble="false" />

my java definition: mGaugePWR_BSG = (ImageLinearGauge) findViewById(R.id.speedViewPWR_BSG);

setting the value: mGaugePWR_BSG.speedTo(pwr_iBSG);

That's what i get: grafik

What's wrong in there?

Thanks in advance.

Cheers, holbli

anastr commented 2 years ago

Hi @holbli, It works fine on my device. Make sure to use the last version.