How to use chart inside fragment in Android using Achartengine library?

后端 未结 2 1442
再見小時候
再見小時候 2021-01-03 14:17

I have an activity 3ChartPerTabActivity where i have 3 tabs fragment with Viepager.Each fragment view has just different color.So far is working.

My problem occurs w

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-03 14:47

    In my case, I use the SherlockFragment and had the same problem.

    After replacing the LinearLayout to ViewGroup, it shows the graph.

    ViewGroup chartContainer = (ViewGroup)view.findViewById(R.id.chart_container);
    

    I hope it works for you and others who have the same problem.

提交回复
热议问题