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
1 answer

How to add and keep a textview programmatically?

I'm trying to learn how to add a TextView programmatically and I found many answers on this subject. I have the following code working: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle…
RGeral
  • 13
  • 6
0
votes
1 answer

android - get estimated height of a programmatically created view

How to get programmatically created RelativeLayout's height after adding all the views in it (i.e., when it really can be measured)? I programmatically created Buttons that should be children for that RL, set their margins and alignment, added them…
0
votes
0 answers

Can an AspNet MVC Partial View be Programmatically Created

I inherited a half-finished undocumented project recently and am struggling to comprehend all of the seemingly normal code, such as this use of @Html.Partial. @Html.Partial("_myPartial", new myModel { Text = "myParam" }) There is no…
Greg Hayden
  • 135
  • 1
  • 3
  • 12
0
votes
1 answer

viewDidLoad is not called after the setting of no storyboard

What I would like to do is to create UIImageView without storyboard, but failed to let it show. At first I deleted storyboard, LaunchScreen.xib and Main StoryBoard file base name from info.plist. and then what I created is as…
N I
  • 1
  • 1
0
votes
1 answer

How to add to an XML programatically by adding another View?

I am making an app similar in design to a Reddit/YouTube/Yahoo News app, it uses the API's to gather information on recent posts. When you start the app, it displays all the recent posts exactly like…
kaio37k
  • 150
  • 1
  • 8
0
votes
2 answers

I created UIDatePicker programmatically and let the UILabel of the selected date show, but failed to let it show properly

I tried to create UIDatePicker without storyboard and let the UILabel of the selected date show, but the label is shown like its being piled up when another date is picked on simulator. - (void)viewDidLoad { [super viewDidLoad]; UILabel…
0
votes
0 answers

Adding constraints to a UILabel to put within a CAShapeLayer

I have a problem where I am trying to center a UILabel within a programmatically generated circle (CAShapeLayer). The problem is that CAShapeLayer is not extended from UIView or NSLayoutGuide, so I am getting a runtime error with the following…
ML.
  • 589
  • 1
  • 9
  • 33
0
votes
1 answer

Generate LinearLayout programmatically

I would like to generate some buttons items programmatically (I receive data from an API) following this mockup : What is the best way to generate and populate them ? How can I use xml drawable files to be the most efficient ? Currently, this…
StevenTB
  • 405
  • 5
  • 19
0
votes
1 answer

Programmatically adding constraints for a UILabel for a circular load animation

I am trying to add a label programmatically inside a circular loading image that I created using Open Source software. The problem I am facing is that I do not know how to constrain the label such that it is contained within the circle. I am trying…
ML.
  • 589
  • 1
  • 9
  • 33
0
votes
0 answers

Display programmatically a ListView selected item in a label with App Inventor 2

I have managed to parse a JSON result from a URL to a ListView. I need now to have the ListView searched for a specific element programmatically - without user picking form the list - by a user input search. Then if this element, according to user…
0
votes
1 answer

Sending contents of a text field as an email

I want a view controller to only contain a text field and a send button. Is there a way to get the button to send the contents of the text field to a preset email address? Or is the only email capability MFMailComposeViewController?
fossdeep
  • 113
  • 1
  • 11
0
votes
0 answers

Separators in custom UITableView are not shown

I've created UITableView programmatically, but it doesn't show any separators. When I run the project I can see on Debug View Hierarchy that it exists, but i cannot understand why i cannot see it on simulator? Any of you knows what I'm missing or…
birdy
  • 943
  • 13
  • 25
0
votes
2 answers

Linearlayout with buttons inside a gridview

I currently have an app with a gridlayout of 6 ingredients. Each ingredient is a linearlayout with an image, name, and two buttons. Now the tough part has been that everything needs to be dynamically and programmatically generated, as these…
HaMiD Sani
  • 360
  • 4
  • 19
0
votes
1 answer

Add product in magento Programmatically

I want to add product in magneto grammatically.My code to save product is below:- $product = Mage::getModel('catalog/product'); $product ->setAttributeSetId(4) ->setTypeId('simple') …
0
votes
1 answer

Efficient OOP way to generate DOM elements dynamically with JavaScript?

I'm tinkering with writing a more efficient methodology in the creation of dynamically generated DOM elements via JavaScript. This is something I intend to add into my own JS framework later on. Looking for other OOP devs that could help better…