blob: 04e4315a96c963bb7925e46635ce7936d13546b6 [file] [log] [blame]
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".GraphMetricsActivity" >
<com.androidplot.xy.XYPlot
android:id="@+id/graph_metrics"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
androidPlot.title="BG Image Example"
androidPlot.titleWidget.labelPaint.textSize="@dimen/title_font_size"
androidPlot.domainLabelWidget.labelPaint.textSize="@dimen/domain_label_font_size"
androidPlot.rangeLabelWidget.labelPaint.textSize="@dimen/range_label_font_size"
androidPlot.graphWidget.marginTop="20dp"
androidPlot.graphWidget.marginLeft="15dp"
androidPlot.graphWidget.marginBottom="25dp"
androidPlot.graphWidget.marginRight="10dp"
androidPlot.graphWidget.rangeLabelPaint.textSize="@dimen/range_tick_label_font_size"
androidPlot.graphWidget.rangeOriginLabelPaint.textSize="@dimen/range_tick_label_font_size"
androidPlot.graphWidget.domainLabelPaint.textSize="@dimen/domain_tick_label_font_size"
androidPlot.graphWidget.domainOriginLabelPaint.textSize="@dimen/domain_tick_label_font_size"
androidPlot.legendWidget.textPaint.textSize="@dimen/legend_text_font_size"
androidPlot.legendWidget.iconSizeMetrics.heightMetric.value="15dp"
androidPlot.legendWidget.iconSizeMetrics.widthMetric.value="15dp"
androidPlot.legendWidget.heightMetric.value="25dp"
androidPlot.legendWidget.positionMetrics.xPositionMetric.value="0"
androidPlot.legendWidget.positionMetrics.anchor="right_bottom"
android:layout_centerVertical="true"/>
<ToggleButton
android:id="@+id/style_toggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/graph_metrics"
android:layout_alignRight="@id/graph_metrics"
android:layout_marginTop="15dp"
android:layout_marginRight="15dp"
android:textOn="bg on"
android:textOff="bg off"
android:onClick="onGraphStyleToggle" />
</RelativeLayout>