Home | History | Annotate | Download | only in layout
      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/mySimpleXYPlot"
     23             android:layout_width="fill_parent"
     24             android:layout_height="fill_parent"
     25             androidPlot.title="A Simple XY Plot"
     26             androidPlot.domainLabel="Domain"
     27             androidPlot.rangeLabel="Range"
     28             androidPlot.titleWidget.labelPaint.textSize="@dimen/title_font_size"
     29             androidPlot.domainLabelWidget.labelPaint.textSize="@dimen/domain_label_font_size"
     30             androidPlot.rangeLabelWidget.labelPaint.textSize="@dimen/range_label_font_size"
     31             androidPlot.graphWidget.marginTop="20dp"
     32             androidPlot.graphWidget.marginLeft="15dp"
     33             androidPlot.graphWidget.marginBottom="25dp"
     34             androidPlot.graphWidget.marginRight="10dp"
     35             androidPlot.graphWidget.rangeLabelPaint.textSize="@dimen/range_tick_label_font_size"
     36             androidPlot.graphWidget.rangeOriginLabelPaint.textSize="@dimen/range_tick_label_font_size"
     37             androidPlot.graphWidget.domainLabelPaint.textSize="@dimen/domain_tick_label_font_size"
     38             androidPlot.graphWidget.domainOriginLabelPaint.textSize="@dimen/domain_tick_label_font_size"
     39             androidPlot.legendWidget.textPaint.textSize="@dimen/legend_text_font_size"
     40             androidPlot.legendWidget.iconSizeMetrics.heightMetric.value="15dp"
     41             androidPlot.legendWidget.iconSizeMetrics.widthMetric.value="15dp"
     42             androidPlot.legendWidget.heightMetric.value="25dp"
     43             androidPlot.legendWidget.positionMetrics.anchor="right_bottom"
     44             androidPlot.graphWidget.gridLinePaint.color="#000000"/>
     45 </LinearLayout>