• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
21    <com.androidplot.xy.XYPlot
22    android:id="@+id/dynamicXYPlot"
23    android:layout_width="fill_parent"
24    android:layout_height="fill_parent"
25    androidplot.renderMode="use_background_thread"
26    androidPlot.title="A Dynamic XY Plot"
27    androidPlot.domainLabel="Domain"
28    androidPlot.rangeLabel="Range"
29    androidPlot.titleWidget.labelPaint.textSize="@dimen/title_font_size"
30    androidPlot.domainLabelWidget.labelPaint.textSize="@dimen/domain_label_font_size"
31    androidPlot.rangeLabelWidget.labelPaint.textSize="@dimen/range_label_font_size"
32    androidPlot.graphWidget.marginTop="20dp"
33    androidPlot.graphWidget.marginLeft="15dp"
34    androidPlot.graphWidget.marginBottom="25dp"
35    androidPlot.graphWidget.marginRight="10dp"
36    androidPlot.graphWidget.rangeLabelPaint.textSize="@dimen/range_tick_label_font_size"
37    androidPlot.graphWidget.rangeOriginLabelPaint.textSize="@dimen/range_tick_label_font_size"
38    androidPlot.graphWidget.domainLabelPaint.textSize="@dimen/domain_tick_label_font_size"
39    androidPlot.graphWidget.domainOriginLabelPaint.textSize="@dimen/domain_tick_label_font_size"
40    androidPlot.legendWidget.textPaint.textSize="@dimen/legend_text_font_size"
41    androidPlot.legendWidget.iconSizeMetrics.heightMetric.value="15dp"
42    androidPlot.legendWidget.iconSizeMetrics.widthMetric.value="15dp"
43    androidPlot.legendWidget.heightMetric.value="25dp"
44    androidPlot.legendWidget.positionMetrics.anchor="right_bottom"/>
45
46</LinearLayout>
47