mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-07-08 22:51:37 +02:00
7c597b325a
- model package contains mostly shared interfaces (UI+service), not named GB* - impl package contains implementations of those interfaces, named GB* the impl classes should not be used by the service (not completely done) - the service classes should mostly use classes inside the service and deviceevents packages (tbd) Every device now has two packages: - devices/[device name] for UI related functionality - service[device name] for lowlevel communication
32 lines
844 B
Java
32 lines
844 B
Java
package nodomain.freeyourgadget.gadgetbridge.activities.charts;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
|
|
import com.github.mikephil.charting.charts.BarChart;
|
|
|
|
/**
|
|
* A BarChart with some specific customization, like
|
|
* <li>using a custom legend renderer that always uses fixed labels and colors</li>
|
|
*/
|
|
public class CustomBarChart extends BarChart {
|
|
|
|
public CustomBarChart(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
public CustomBarChart(Context context, AttributeSet attrs) {
|
|
super(context, attrs);
|
|
}
|
|
|
|
public CustomBarChart(Context context, AttributeSet attrs, int defStyle) {
|
|
super(context, attrs, defStyle);
|
|
}
|
|
|
|
@Override
|
|
protected void init() {
|
|
super.init();
|
|
mLegendRenderer = new CustomLegendRenderer(getViewPortHandler(), getLegend());
|
|
}
|
|
}
|