Hi, first I know that there is a group for achartengine but it's rather slowly one so sorry for trying to solve it here.
I am trying to display BarChart with ChartFactory.getBarChartView. I have created xml file that's like this: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="horizontal" android:layout_weight="1" > <TextView android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="bla3" android:layout_weight="1" android:gravity="center_horizontal" /> <TextView android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="bla2" android:layout_weight="1" android:gravity="center_horizontal" /> <TextView android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="bla1" android:layout_weight="1" android:gravity="center_horizontal" /> </LinearLayout> <LinearLayout xmlns:android="http://schemas.android.com/apk/ res/ android" android:id="@+id/chart" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" /> </LinearLayout> and I am adding chart like this: layout = (LinearLayout) findViewById(R.id.chart); mChartView = ChartFactory.getBarChartView(this, buildBarDataset(titles, values), renderer, Type.DEFAULT); layout.addView(mChartView, new LayoutParams (LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); Why does chart expands and doesn't leave any room for first linear layout? is this bug or what. How can you make it wrap or get smaller in proportion to other stuff in xml layout file. Tnx in advance. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

