0
내 안드로이드 응용 프로그램 내에서 itext pdf generater를 사용하고 있습니다. 순서 목록과 unOrdered List를 모두 사용하고있는 곳. 총알 크기와 주문 텍스트를 늘릴 수 없습니다. 나는 아래의 코드를 사용하여 List Item 크기를 증가시켰다.증가시키는 방법 itext android에서 글 머리 기호 목록을 나열 하시겠습니까?
List list = new List(List.ORDERED);
list.setPostSymbol(") ");
//Ingredients Entry
for (String ingredient : ingredients.split("#")) {
font = new Font(Font.FontFamily.HELVETICA, txtSize_content, Font.NORMAL, BaseColor.BLACK);
chunk = new Chunk(ingredient, font);
//To set alignment to chunk
phrase = new Phrase();
phrase.add(chunk);
para = new Paragraph();
para.add(phrase);
para.setSpacingBefore(txtSize_content);
para.setAlignment(Element.ALIGN_LEFT);
//end To set alignment to chunk
//Add List Item to List
ListItem item = new ListItem(para);
item.setAlignment(Element.ALIGN_JUSTIFIED);
list.add(item);
}
document.add(list);
완벽한 솔루션입니다. – nidhi