INNER CODE UNIT · Java

createCellRecyclerView

evrencoskun/TableView · tableview/src/main/java/com/evrencoskun/tableview/TableView.java:365

    protected CellRecyclerView createCellRecyclerView() {
        CellRecyclerView recyclerView = new CellRecyclerView(getContext());

        // Disable multitouch
        recyclerView.setMotionEventSplittingEnabled(false);

        // Set layout manager
        recyclerView.setLayoutManager(getCellLayoutManager());

        // Set layout params
        LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams
                .WRAP_CONTENT, getGravity());
        // If the corner is on the right the margin needs to be on the right
        if (mCornerViewLocation == CornerViewLocation.TOP_RIGHT || mCornerViewLocation == CornerViewLocation.BOTTOM_RIGHT) {
            layoutParams.rightMargin = mRowHeaderWidth;
        } else {
            layoutParams.leftMargin = mRowHeaderWidth;
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…