2015-02-24 2 views
0

Я искал ответ в stackoverflow через документацию XYMultipleSeriesRenderer от achartengine, и я думаю, что пришло время задать этот вопрос.Значок значка AChartEngine Размер

Иконы в моей легенде крошечные. И нет никакой функции, чтобы сделать их более крупными. Я попытался установить высоту легенды, установить легенду, установить разные размеры текста для легенды и множество других комбинаций. Есть ли способ изменить размер значка?

Вот изображение: tiny icons.

Если вы посмотрите очень близко, есть небольшая строка с точкой для обоих предметов в легенде.

ответ

0

У меня тоже была эта проблема. Я решил ее просто скрывается легенда

mRenderer.setShowLegend(false); 

и добавил в мой .xml-File ниже моей диаграмме моей легенды:

graph.xml:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent"> 

<LinearLayout 
     android:id="@+id/chart" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:orientation="horizontal" /> 

<LinearLayout 
    android:id="@+id/legend" 
    android:layout_below="@+id/chart" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:layout_alignParentLeft="true" 
    android:layout_alignParentStart="true" 
    android:layout_centerHorizontal="true" 
    android:orientation="horizontal"> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="-.- Correct" 
     android:textColor="@android:color/holo_red_dark"/> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_marginLeft="5dp" 
     android:text="-.- Total" 
     android:textColor="@android:color/holo_blue_dark/> 

</LinearLayout> 

</RelativeLayout> 
Смежные вопросы