• 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              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="Growth"
27            androidPlot.domainLabel="Month"
28            androidPlot.rangeLabel="Revenue (millions)"
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.gridBackgroundPaint.color="#000000"
37            androidPlot.graphWidget.domainGridLinePaint.alpha="0"
38            androidPlot.graphWidget.domainOriginLinePaint.alpha="0"
39            androidPlot.graphWidget.rangeLabelPaint.textSize="@dimen/range_tick_label_font_size"
40            androidPlot.graphWidget.rangeOriginLabelPaint.textSize="@dimen/range_tick_label_font_size"
41            androidPlot.graphWidget.domainLabelPaint.textSize="@dimen/domain_tick_label_font_size"
42            androidPlot.graphWidget.domainOriginLabelPaint.textSize="@dimen/domain_tick_label_font_size"
43            androidPlot.legendWidget.textPaint.textSize="@dimen/legend_text_font_size"
44            androidPlot.legendWidget.iconSizeMetrics.heightMetric.value="15dp"
45            androidPlot.legendWidget.iconSizeMetrics.widthMetric.value="15dp"
46            androidPlot.legendWidget.heightMetric.value="25dp"
47            androidPlot.legendWidget.positionMetrics.anchor="right_bottom"
48            android:layout_weight="1"
49            androidPlot.graphWidget.gridLinePaint.color="#000000"/>
50
51    <LinearLayout
52            android:layout_height="wrap_content"
53            android:layout_width="fill_parent"
54            android:layout_gravity="center"
55            android:orientation="horizontal">
56        <Spinner
57                android:id="@+id/spRenderStyle"
58                android:layout_width="wrap_content"
59                android:layout_height="wrap_content"/>
60        <Spinner
61                android:id="@+id/spSeriesSize"
62                android:layout_width="wrap_content"
63                android:layout_height="wrap_content"/>
64
65    </LinearLayout>
66
67    <LinearLayout
68            android:layout_height="wrap_content"
69            android:layout_width="fill_parent"
70            android:layout_gravity="center"
71            android:orientation="horizontal">
72        <Spinner
73                android:id="@+id/spWidthStyle"
74                android:layout_width="wrap_content"
75                android:layout_height="wrap_content"/>
76        <RelativeLayout
77                android:id="@+id/sectionGraph"
78                android:layout_width="fill_parent"
79                android:layout_height="wrap_content">
80            <SeekBar
81                    android:layout_width="fill_parent"
82                    android:layout_height="wrap_content"
83                    android:paddingLeft="10dp"
84                    android:paddingRight="10dp"
85                    android:max="300"
86                    android:progress="10"
87                    android:id="@+id/sbFixed"/>
88            <SeekBar
89                    android:layout_width="fill_parent"
90                    android:layout_height="wrap_content"
91                    android:paddingLeft="10dp"
92                    android:paddingRight="10dp"
93                    android:max="50"
94                    android:progress="1"
95                    android:id="@+id/sbVariable"/>
96        </RelativeLayout>
97    </LinearLayout>
98    <LinearLayout
99            android:layout_height="wrap_content"
100            android:layout_width="wrap_content"
101            android:layout_gravity="center"
102            android:orientation="horizontal">
103        <CheckBox android:id="@+id/s1CheckBox"
104                  android:text="Series 1"
105                  android:checked="true"
106                  android:layout_height="wrap_content"
107                  android:layout_width="fill_parent"/>
108        <CheckBox android:id="@+id/s2CheckBox"
109                  android:text="Series 2"
110                  android:checked="true"
111                  android:layout_height="wrap_content"
112                  android:layout_width="fill_parent"/>
113    </LinearLayout>
114</LinearLayout>