tejpratap46/PDFCreatorAndroid

how to make all borders of tableview ?

Closed this issue · 1 comments

is there any option to make all borders of a tableview ?

No, there is not straight forward styling API for PDFTableView, But you can add border to every PDFTextView

You can use getView() of PDFTextVIew and the add border as below:

GradientDrawable gd = new GradientDrawable();
gd.setColor(0xFF00FF00); // Changes this drawbale to use a single color instead of a gradient
gd.setCornerRadius(5);
gd.setStroke(1, 0xFF000000);

pdfTextView.getView().setBackground(gd);