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
2
votes
3 answers

How to set listview to its original position?

I have spent enough time to make it work for my listview to setProperty "above" of layout which align_parentBottom=true. Seems like very easy right? No its not. Please see this image so you can visualize the problem and have some idea about…
Sagar Shah
  • 4,272
  • 2
  • 25
  • 36
2
votes
1 answer

Swift auto layout programmatically and dynamic

I have a View where I load buttons dynamically. So I have a for loop to loop through all buttons. Since this is dynamically I want to create the auto layout programmatically. Right now I have the following code: for var i = 0; i < data.count; i++ { …
user599807
2
votes
2 answers

Swift - programmatically set UIScrollView width to 100%

In the designer I added a Scrollview, I made it have a scrollbar with this code: svDetails.contentSize = CGSizeMake(360, 400); However I want it to be 100% of the phone width. (leave the width unchanged). Because right now it fits perfectly on…
Kaaseter
  • 359
  • 1
  • 5
  • 6
2
votes
0 answers

Dynamic trailing constraints with autolayout programmatically not working

I have set my constraints programmatically using visual format like this [[self contentView] addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:[label1]-(==space1@1000)-[label2]-(>=space2@750)-|" options:0 metrics:metricsDictionary…
Black Sheep
  • 1,665
  • 1
  • 22
  • 32
2
votes
1 answer

In iOS, how do I programmatically display dynamically changing values in a text field?

I have Objective C code that continually updates a set of numerical values. I need to display these values on the screen. That's it! I can convert numerical values into a text string, no problem. But how do I display this string in a UI element? Do…
user4586083
2
votes
1 answer

always display 3 buttons in a HorizontalScrollView

Hello everyone I am trying to display 3 to X buttons on android. The idea is to always start with 3 buttons that takes each 33% of the size of the screen (width) And to be able to scroll Horizontaly through items. Also theses items will be added…
2
votes
1 answer

Java forced thread dump programmatically - like "jstack -F -l "

I am trying to do a forced java thread dump programmatically, just like the command jstack -F -l would do it. My best attempt: I created a subclass from sun.jvm.hotspot.tools.JStack overwriting run() with the following code analogous to…
dforce
  • 2,136
  • 3
  • 20
  • 36
2
votes
2 answers

Setting button style programmatically

I'm trying to create layout with buttons and spinners programmatically. I can't do this in xml, because number of spinners depends on certain parameters. My question here is: how can i set button style from @style resources? It just need to be set…
user2961826
  • 45
  • 1
  • 7
2
votes
1 answer

How do I programmatically populate switch case values?

I am pulling in a list of allowed system codes for my case statement via JSON. They are brought in as a string that looks like the following: let validCodesFromJson:String = "001, 002, 003, 004, 005, 007, 008, 090, 091, 092, 096" I then convert…
2
votes
2 answers

Why is guihandles not working in this case?

I am working on a big GUI, the essential structure of which is quite elementary and can be simply reduced to two interconnected controls (each one updates the value of the other): a slider and an edit box. The value they share is used to make a…
2
votes
1 answer

Text alignment from bottom to top iOS SDK

As seen on the screenshot above, each top cell has few labels. The frame of the label this question concerning is highlighted with green rectangle. It shows the title of some picture/sculpture or other exhibit, so there could be quite long…
Richard Topchii
  • 7,075
  • 8
  • 48
  • 115
2
votes
1 answer

how to setup a programmatically resizable UI in MATLAB

I'm trying to implement a resizable MATLAB UI. But I'm encountering a lot of problems. In fact, the use of the normalized command is compulsory in order to have a window that automatically resize its content. However the 'normalization' of the…
Nicholas
  • 1,915
  • 31
  • 55
2
votes
3 answers

Android Designing Layout programmatically

How can I make this layout in android programmatically. I want just an idea not whole coding thing.
2
votes
1 answer

How do I create a 'sliding view' like the compass in Swift?

In the current compass app, you can slide between the compass and a level. How would I create that same effect in Swift? Well, I am trying to create an app mainly to learn. I want to create a notepad app where if you swipe to to the right, a font…
elito25
  • 624
  • 1
  • 6
  • 14
2
votes
1 answer

set Thumb Drawable programmatically for Android API level 14 & 15

So far I have managed to customize a switch from xml following instructions based on this stackoverflow question. However, I need to set thumb/track drawables programmatically. Documentation on Android Switch class, makes it clear that the…
kouretinho
  • 2,190
  • 1
  • 23
  • 37