1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright 2012 AndroidPlot.com 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17 18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 style="@style/sample_activity" 20 android:orientation="vertical"> 21 22 <com.androidplot.xy.XYPlot 23 android:id="@+id/mySimpleXYPlot" 24 android:layout_width="fill_parent" 25 android:layout_height="fill_parent" 26 androidPlot.title="ScrollZoom Example" 27 androidPlot.titleWidget.labelPaint.textSize="@dimen/title_font_size" 28 androidPlot.domainLabelWidget.labelPaint.textSize="@dimen/domain_label_font_size" 29 androidPlot.rangeLabelWidget.labelPaint.textSize="@dimen/range_label_font_size" 30 androidPlot.graphWidget.marginTop="20dp" 31 androidPlot.graphWidget.marginLeft="15dp" 32 androidPlot.graphWidget.marginBottom="25dp" 33 androidPlot.graphWidget.marginRight="10dp" 34 androidPlot.graphWidget.rangeLabelPaint.textSize="@dimen/range_tick_label_font_size" 35 androidPlot.graphWidget.rangeOriginLabelPaint.textSize="@dimen/range_tick_label_font_size" 36 androidPlot.graphWidget.domainLabelPaint.textSize="@dimen/domain_tick_label_font_size" 37 androidPlot.graphWidget.domainOriginLabelPaint.textSize="@dimen/domain_tick_label_font_size" 38 androidPlot.legendWidget.textPaint.textSize="@dimen/legend_text_font_size" 39 androidPlot.legendWidget.iconSizeMetrics.heightMetric.value="15dp" 40 androidPlot.legendWidget.iconSizeMetrics.widthMetric.value="15dp" 41 androidPlot.legendWidget.widthMetric.value="1" 42 androidPlot.legendWidget.heightMetric.value="25dp" 43 androidPlot.legendWidget.positionMetrics.xPositionMetric.value="0" 44 androidPlot.legendWidget.positionMetrics.anchor="right_bottom" 45 android:layout_weight="1"/> 46 47 <Button android:id="@+id/resetButton" 48 android:layout_width="fill_parent" 49 android:layout_height="wrap_content" 50 android:text="Reset"/> 51</LinearLayout>