-
Notifications
You must be signed in to change notification settings - Fork 52
Description
Hi ,
Thanks for library. I am using tableview and mapview as child inside split pane layout .
I want to implement horizontal scrollview for tableview .If i add horizontal scrollview as parent to table view following error occuring in split pane layout. I have tried put a layout for horizontal scrollview with table view as one child and map view as another child,but same error is coming.
Sample code
<com.mobidevelop.spl.widget.SplitPaneLayout
android:id="@+id/layout_map_track"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/appBar_reprt_map"
android:visibility="visible">
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_below="@+id/toolbar"
android:layout_height="wrap_content">
<de.codecrafters.tableview.SortableTableView
android:id="@+id/tableView_map"
android:layout_width="800dp"
android:layout_height="match_parent"
android:scrollbars="horizontal"
/>
</HorizontalScrollView>
<fragment
android:id="@+id/map"
class="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.mobidevelop.spl.widget.SplitPaneLayout>
Error
java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
at android.widget.FrameLayout.onMeasure(FrameLayout.java:224)
at android.widget.HorizontalScrollView.onMeasure(HorizontalScrollView.java:315)
at android.view.View.measure(View.java:19169)
at com.mobidevelop.spl.widget.SplitPaneLayout.onMeasure(SplitPaneLayout.java:160)
at android.view.View.measure(View.java:19169)