SortableTableView icon indicating copy to clipboard operation
SortableTableView copied to clipboard

soratableTableView width

Open elnazem opened this issue 6 years ago • 0 comments

I need to dynamically set soratableTableView width in java code, how is it possible? here is my layout

 <android.widget.HorizontalScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        xmlns:android="http://schemas.android.com/apk/res/android">
    <de.codecrafters.tableview.SortableTableView

        xmlns:table="http://schemas.android.com/apk/res-auto"
        android:id="@+id/tableView"
        android:layout_width="1000dp"
        android:nestedScrollingEnabled="true"
        android:layout_height="match_parent"
        table:tableView_headerColor="?attr/colorAccent"/>
    </android.widget.HorizontalScrollView>

I try code below, but it didn't affect the table size:

 FrameLayout.LayoutParams tlp = new FrameLayout.LayoutParams(1000, FrameLayout.LayoutParams.WRAP_CONTENT);
        tableView.setLayoutParams(tlp);

elnazem avatar Jun 03 '18 12:06 elnazem