Questions tagged [programmatically-created]

Any object in an application created using a computer program rather than created manually using something in the userspace.

General Definition

Any object in an application created using a computer program rather than created manually using something in the userspace.

GUI Elements

In general, elements are declared in inside their accompanying tags in / files or in any other derivatives ( , , , , , and many others).

Programmatically created are those elements that are coded in contexts that need to be compiled to take effect at . They could be created at by a click of a as an example, where they would be coded inside a click listener for that .

438 questions
0
votes
0 answers

Drawing on web form programmatically

Is there any ways to programmatically draw on web form? I have a task to draw a shape on web form based on value input by user. The shape is variety which include rectangle, octagen, and some curve shape. And I need to put a label line to mention…
william
  • 1
  • 1
0
votes
1 answer

NavigationController is nil on pushing VC (simple project created programmatically)

I created simple project with two ViewControllers (ViewController and SecondVC) programmatically. In ViewController I've added a button, which push to SecondVC. In AppDelegate didFinishLaunchingWithOptions I've set ViewController as…
0
votes
1 answer

Views are not reflecting any changes whatsoever, when done programmatically

The basic view hierarchy is this: secondActivity linearLayout(LinearLayout) constLayout(ConstraintLayout) textbox(TextView) image(ImageView) image2 image3 ... The textbox…
0
votes
2 answers

Swift programmatically-added constraints dont work

I have a view inside a scrollview: Now I want to add the child views to that view programmatically. Thats my code to do that: Child view (works) //Adds header to the view again because it was removed in the clear() method //Header is just a…
Patrick
  • 552
  • 5
  • 17
0
votes
1 answer

How to properly enable and disable constraint in one view controller on button click

I have a UIView on Storyboard as a subview of ViewController and I have some fields in that view, that has to change its position on button click. So I changed the so I made an outlet of each FiledsView and gave them constraints programmatically but…
Ben Smith
  • 159
  • 1
  • 1
  • 9
0
votes
1 answer

Programmatic auto-layout not calculating height of UIScrollView

I have a a UIViewController which has a header area. At the bottom of that header element is a row of UIButtons. Below these buttons, I've placed a UIScrollView, within which is embedded a UIView called contentContainer. Within that container is a…
0
votes
1 answer

The device BACK key not working and all other key events not responding either

The UI of my app is totally built with code. It's an EMPTY ACTIVITY with the activity_main.xml deleted, and utilizes the following style: