Questions tagged [layoutmargins]

28 questions
0
votes
0 answers

PDFBOX - need to have text located the total width of the page

I was using the build in program from the jar to convert a text file to pdf. The text in the file is formatted to use the total page width. There are no margins in the test file. The pdf is created with margins. How can I create the pdf and…
Mike Wolf
  • 1
  • 1
0
votes
1 answer

persp add factor group in R

Following the margins vignette https://cran.r-project.org/web/packages/margins/vignettes/Introduction.html#Motivation I would like to know how to plot using persp after a logit containing a triple interaction. Using only persp and effect only part…
CelloRibeiro
  • 160
  • 11
0
votes
1 answer

Left Aligning a subview to UINavigationBar Large Title

I have a UIViewController as the root of a UINavigationController and I have set the preference for large titles as follows navigationController?.navigationBar.prefersLargeTitles = true My goal is to align the left of my view to the left of the…
Shawn Frank
  • 4,381
  • 2
  • 19
  • 29
0
votes
1 answer

Modifying topMargin of a Relativelayout programmatically

I need to modify the top margin of a RelativeLayout programmatically myScrollView.marginTop = 250 Unfortunately I receive the error val cannot be reassigned
LastCard1440
  • 1
  • 1
  • 2
0
votes
1 answer

iText7 - create PDF with exact dimensions when printed - how?

I'm creating a simple PDF using iText7 (C#) but I need it to be printed at exactly the right size. Here's my code: PdfWriter writer = new PdfWriter("output.pdf"); PdfDocument pdf = new PdfDocument(writer); …
Betty Crokker
  • 3,001
  • 6
  • 34
  • 68
0
votes
1 answer

layout_marginTop in Android Studio

I am trying to create a login page for an app in Android Studio. The XML code for the page is -
jenny jenkins
  • 95
  • 1
  • 9
0
votes
2 answers

Android - Constraint Layout - margins vs layout_constraintWidth_percent

This is a question specifically for ConstraintLayout - We can use margins as an attribute or layout_constraintWidth_percent as an attribute while working with width for an UI element. Example - I have a button in centre of my UI which have some…
0
votes
2 answers

how to set left and top margin to a frame layout programmatically?

I have a framelayout inside a relative layout and i want to move frame layout a bit to the left and top as a whole. I have been using setLeft() and setTop() method. It is stretching the view but still it is okay for my purpose. My problem is I want…
Coder7711
  • 61
  • 1
  • 7
0
votes
1 answer

How to apply multiplier to a var bottom constraint

My code below produces the image below. What I want is the height of the UIView to be exactly half of the view controller user something like: constraint(equalTo: view.layoutMarginsGuide.bottomAnchor, multiplier: 1/2) I dont know where to put it…
user12418101
0
votes
1 answer

How to add margins to spinner programmatically?

I want to programmatically create a spinner with margin=Xdp then add it to a LinearLayout. I think this can be achieved using LayoutParams but I got no luck. val spinnerLanguage = Spinner(context).apply { val value =…
Master Zzzing
  • 524
  • 6
  • 18
0
votes
1 answer

Python Code to Write to file with Left and Right Margins and Fixed Line Length

I am writing a Python program that reads a file and then writes its contents to another one, with added margins. The margins are user-input and the line length must be at most 80 characters. I wrote a recursive function to handle this. For the most…
EAP
  • 31
  • 1
  • 8
0
votes
1 answer

Update layout_margin inside kotlin class for specific elements

So, this should be pretty basic, but I am new to Kotlin. So I basically have the following ImageView inside a RelativeLayout view.
Mihail Minkov
  • 2,463
  • 2
  • 24
  • 41
0
votes
1 answer

layoutMargins are not consistent across iPhone and iPad

iPad 11 inch (lldb) po UIApplication.shared.windows[0].layoutMargins ▿ UIEdgeInsets - top : 32.0 - left : 8.0 - bottom : 28.0 - right : 8.0 iPad 10.5 inch (lldb) po UIApplication.shared.windows[0].layoutMargins ▿ UIEdgeInsets - top :…
zs2020
  • 53,766
  • 29
  • 154
  • 219
1
2