NikhithaTarala / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

the embeded chart split to two parts when put a ScrollView below it #152

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a layout which contains two LinearLayout for a Activity,one 
LinearLayout for em chart , another for greendroid.widget.PagedView , chart 
above greendroid.widget.PagedView
2. I create a ScrollView which will be placed in greendroid.widget.PagedView
3. when I scroll the text in ScrollView , the chart split into two parts in 
horizental direction occasionally; when I use a LinearLayout which can't scoll 
instead,the chart is regular

What is the expected output? What do you see instead?

Please provide a source code snippet that we can use to replicate the issue.

What version of the product binary library are you using?

1. main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="fill_parent"
    android:layout_width="fill_parent" android:orientation="vertical"
    android:id="@+id/bgHttpLayout">
    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:paddingTop="7dip">
        <AutoCompleteTextView
            android:id="@+id/destinationDnsText"
            android:layout_weight="1"
            android:text="@string/url"
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"
            android:layout_marginLeft="10dip"
            android:dropDownWidth="fill_parent"
            android:textColor="#D8AB80"
            android:background="@drawable/bg"
            android:paddingLeft="10dip"
            android:singleLine="true">
        </AutoCompleteTextView>
        <ImageButton
            android:id="@+id/executeButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/testimg"
            android:layout_marginRight="10dip">
        </ImageButton>
    </LinearLayout>
    <LinearLayout android:id="@+id/dnsChart" android:orientation="horizontal"
        android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="5" 
        android:padding="5dip"/>
    <LinearLayout xmlns:greendroid="http://schemas.android.com/apk/res/com.mycompany.droid"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="5"
        android:padding="5dip">
        <greendroid.widget.PagedView
            android:id="@+id/paged_view"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"/>
    </LinearLayout>
</LinearLayout>

2. paged_view_item.xml
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
    <TextView android:id="@+id/dnsItemTextView"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:gravity="left"
    android:textColor="@android:color/white"
    android:textStyle="bold"/>
</ScrollView>
Please provide any additional information below.

Original issue reported on code.google.com by tianlife...@gmail.com on 10 Nov 2011 at 2:10

Attachments:

GoogleCodeExporter commented 8 years ago
I use achartengine-0.7.0.jar

Original comment by tianlife...@gmail.com on 10 Nov 2011 at 3:09

GoogleCodeExporter commented 8 years ago
when I remove AutoCompleteTextView in main.xml , it seams regular

Original comment by tianlife...@gmail.com on 10 Nov 2011 at 11:43

GoogleCodeExporter commented 8 years ago
when I replace AutoCompleteTextView with a TextEdit , it has the same problem

Original comment by tianlife...@gmail.com on 10 Nov 2011 at 11:44

GoogleCodeExporter commented 8 years ago
the problem is solved after I call "graphicalView.toBitmap();"

Original comment by tianlife...@gmail.com on 11 Nov 2011 at 10:19

GoogleCodeExporter commented 8 years ago

Original comment by dandrome...@gmail.com on 10 Dec 2011 at 3:16