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

How to batch convert web pages to pdf programmatically?

I have quite large number of URLs in form of some/web/address/[0-9]+ and want to convert all of them to PDF, How can I do that? I've Googled and searched over stackoverflow for it but if it is a duplicate give me a link to a good question and I…
Masked Man
  • 2,176
  • 2
  • 22
  • 41
1
vote
1 answer

how to access an object which made with a function in c#

I'm making a c# windows app and trying to create objects in form (for example TextBox and Label) programmatically. And I can do this easily but I can't define them as public objects. I have a function called 'makeTextBox(...)' in a class called…
1
vote
1 answer

Create checkbox programmatically in Fragment

I am trying to create a checkbox in my Fragment. I dont get it to work right. Here is my code for the Fragment: public class DriverFragment extends Fragment { public DriverFragment(){ } @Override public void onCreate(@Nullable…
1
vote
1 answer

Swift: Programmatically transitioning from 1 view to another via a TabBar and Navigation Controller

The user logs in and lands on viewNumOne, they fill out their name and address and get to see viewNumTwo and viewNumThree. They now logout. When they log back in I want them to go straight to viewColorBlue (this is where I am having the…
1
vote
1 answer

Setting DataSource in Runtime Java EE 7

How I can set a Data Source dynamically? Like below in Spring: @Bean(name = "dataSource") public DriverManagerDataSource dataSource() { DriverManagerDataSource driverManagerDataSource = new DriverManagerDataSource(); …
1
vote
1 answer

Adjusting width & height for view after rotating it by 90 degree in Android

I want to add view & rotate it by 90 degree programmatically, however I can't figure how to set its dimensions properly. This is my placeholder:
Tamir
  • 625
  • 1
  • 12
  • 27
1
vote
1 answer

Programmatically Setting Constraints Causes Conflict in Swift

As i posted in this GitHub issue, I am having trouble with some hidden constraints that throw an error whenever I try to add my own constraints 2016-04-18 19:22:04.270 Metric Time[1519:447809] Unable to simultaneously satisfy constraints. Probably…
1
vote
1 answer

Android-add same relativelayout below the other programmatically on button click

I have a fragment which has a button which when clicked must add a relative layout below other. As many times the button is clicked the same layout must added below the previous one. In hotel_search.xml when the button with id(@+id/addroom) is…
jobin
  • 1,489
  • 5
  • 27
  • 52
1
vote
3 answers

Android: How to change the gravity of an ImageButton placed into a dynamically created layouts

I have a main dynamically generated LinearLayout containing 4 items : - A TextView (dynamic width) - An ImageView (static width) - A TextView (dynamic width) - An ImageButton (static width) The 3 first items should be stuck together and the last one…
Vincent Roye
  • 2,751
  • 7
  • 33
  • 53
1
vote
1 answer

Align views programmatically

I am trying to create a contentView programmatically and i cannot understand why the following code dows not work as i want. Here is the code: public class UserProfile extends AppCompatActivity { ScrollView scrollView; LinearLayout…
Iraklis Bekiaris
  • 1,163
  • 15
  • 43
1
vote
1 answer

save view created programmatically for a fragment and restore in onresume

In my app I have an activity with tabs used to manage 6 fragments . I have some fragments in which I must create some views programmatically based on some data I download from a webservice . How can I save the views I created programmatically and…
Marcel
  • 23
  • 4
1
vote
0 answers

How to use FaceletContext.includeFacelet() properly?

I am using Mojarra 2.2.8 and Primefaces 5.2. I need to include different facelets on ajax request, so i use this code in managed bean: FaceletContext faceletContext = (FaceletContext)…
1
vote
0 answers

how can show symmetrical a view in android?

I want to show a view symmetrical!(programmatically) I try this class : ObjectAnimator.ofFloat(target, "rotationY", 0, 180), but I don't want use Animation;
Shahab Saalami
  • 862
  • 10
  • 18
1
vote
1 answer

Swift - Creating UIButton when in landscape

I am making a calculator app in iOS 9, Swift and with Xcode 7 and I would like to know how to create UIButtons when the user switches to landscape mode only. Adding more operators to the left of the number and AC Button and changing the constraints,…
Zach
  • 119
  • 3
  • 17
1
vote
2 answers

UIBarButtonSystemItem.FixedSpace for nav bar padding not working

i'm attempting to add a done button to my nav bar (built directly UINavigationBar not with a controller). The done button appears fine, the action works, but it has no padding from the edge of the nav bar. i tried adding a second bar button item…