我需要知道是否存在一些像#lineBelowThicknes =“1”#这样的样式,它允许我在我写的文本下面有一行,但是有点,例如:
<blockTable style="default">
<tr>
<td lineBelowThickness="1">
<para>
Some text here above the line of the cell
</para>
</td>
</tr>
</blockTable>
但是:
lineBelowThickness =“1”给了我______________________
我想要这种线:........................................ ..
答案 0 :(得分:0)
它可以完成,但不能作为单元格的属性,它需要绘制的线条。这里有一些关于RML https://www.reportlab.com/docs/rml2pdf-userguide.pdf的有用信息,更确切地说(作为示例):
for(int i = 0; i < 5; i++){
LayoutInflater loiViewInflater = (LayoutInflater)
getSystemService (Context.LAYOUT_INFLATER_SERVICE);
View mView = loiViewInflater.inflate(R.layout.activity_main,
null);
FrameLayout.LayoutParams params = new
FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT);
params.setMargins(0,i * 400,0,0);
addContentView(mView, params);
}