Xml文件  |  47行  |  2.22 KB

<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright 2012 AndroidPlot.com
  ~
  ~    Licensed under the Apache License, Version 2.0 (the "License");
  ~    you may not use this file except in compliance with the License.
  ~    You may obtain a copy of the License at
  ~
  ~        http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~    Unless required by applicable law or agreed to in writing, software
  ~    distributed under the License is distributed on an "AS IS" BASIS,
  ~    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~    See the License for the specific language governing permissions and
  ~    limitations under the License.
  -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              style="@style/sample_activity">

    <com.androidplot.xy.XYPlot
    android:id="@+id/dynamicXYPlot"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    androidplot.renderMode="use_background_thread"
    androidPlot.title="A Dynamic XY Plot"
    androidPlot.domainLabel="Domain"
    androidPlot.rangeLabel="Range"
    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.anchor="right_bottom"/>

</LinearLayout>