![]() Here's the one which uses your Layout only with little bit of orientation changes. Comments are added inside the code to understand the code in more detail. Below is the code for the MainActivity.kt file. check below with screenshot made in android studio Androider. Go to the MainActivity.kt file and refer to the following code. I want to create the table which likes the photo below. You were on track by adding layout_weight="1" in Views. Step 2: Working with the MainActivity.kt file. ![]() Following is the XML code for a horizontal line: are so many ways to achieve the Layout which you been looking for. Output: Drawing a Horizontal line: A horizontal line can be drawn in a very similar way as a vertical line. We will generate PDF files in java using iText. ![]() The below code works fine for one row, however,r if I have multiple rows then it doesn't draw TextView and EditText on each row but instead tries to jam everything together. PdfPCell) and then add all those cells to table and 3 rows will be created in java in pdf in itext in java. I'm trying to get a form such a way that on each row the TextView is on the left and the EditText is on the right. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |