TableView icon indicating copy to clipboard operation
TableView copied to clipboard

Cannot hide some of the dividers/separators

Open bogdanmunteanu opened this issue 7 years ago • 5 comments

Hi @evrencoskun

screenshot_20180523-223001_kikos I am trying to hide all dividers as in the picture

I have set table.setShowHorizontalSeparators(false); table.setShowVerticalSeparators(false); but they are not completely hidden. Any thoughts on that ? PS: i did make sure that my layouts don't have any graphic elements similar to the dividers

bogdanmunteanu avatar May 23 '18 19:05 bogdanmunteanu

Hi @bogdanmunteanu ,

Setting a background color could help you.

Please try these;

tableView.getColumnHeaderRecyclerView.setBackgorundColor(Color.GRAY);
tableView.getCellRecyclerView().setBackgroundColor(Color.BLACK);
tableView.getRowHeaderRecyclerView().setBackgroundColor(Color.BLACK);

evrencoskun avatar May 27 '18 04:05 evrencoskun

Hi @bogdanmunteanu , you might need to use app:separator_color="@android:color/transparent" in your TableView layout.

sonique6784 avatar May 28 '18 02:05 sonique6784

@sonique6784 , that did not work , unfortunately . Neither the solution proposed by @evrencoskun din not work :(

bogdanmunteanu avatar May 28 '18 18:05 bogdanmunteanu

Hi @bogdanmunteanu , then you can try this: https://github.com/evrencoskun/TableView/issues/115#issuecomment-392403476 overriding createItemDecoration to setup the divider manually.

sonique6784 avatar May 29 '18 03:05 sonique6784

I was able to get rid of those separators by disabling them in the XML. When I tried to do it programmatically only some of the separators were turned off and only in the table view cells.

<com.evrencoskun.tableview.TableView
        android:id="@+id/table_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:show_horizontal_separator="false"
        app:show_vertical_separator="false"/>

luonglegs avatar Feb 10 '21 19:02 luonglegs