我正在使用libgdx遊戲框架繪製表格。一切都完美呈現,我試圖實現。我現在需要的是顯示錶格的單元格邊界,但目前爲止我沒有發現任何關於此的信息。我也傾向於使用調試邊框線來滿足目的,但也不能改變它們的顏色。在libgdx中繪製表格邊框0.9.7
這是我的代碼。
Table table = new Table();
table.setFillParent(true);
table.left().top();
table.add(new Label("Results", new LabelStyle(font, Color.BLACK))).colspan(2).expandX();
table.row();
table.add(new Label(text_you_score, new LabelStyle(font, Color.BLACK)));
table.add(new Label(text_actual_score, new LabelStyle(font, Color.BLACK)));
return table;
有許多屬性可用於表格和單元格,但不是邊界屬性。 我們也可以手動繪製網格線,但是對於我認爲的每個設備分辨率都無法完美運行。任何幫助或想法是高度讚賞。由於