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

Is it possible to programmatically change the color of the split actionbar?

How do I change the color of the split actionbar in code, and not in xml? My user can pick the color of the actionbar, and I would like it so they could also change the color of the split action bar (the actionbar that appears at the bottom of the…
0
votes
1 answer

How create buttonAction functions dynamically in Swift

In a MCQ app I create multiple UIButton programatically like this func createNewButton(buttonName: String, xPosition: CGFloat, yPosition: CGFloat) -> UIButton { let myButton = UIButton(frame: CGRectMake(0, 0, 50, 50)) myButton.center =…
magohamote
  • 1,484
  • 1
  • 17
  • 29
0
votes
0 answers

Force Main-Layout to Inflate

I'll try another shot. Hopefully now i get the answere i totally Need. Just imagine: I have a widget which calls(after onClick) a blank activity with no hardcoded code, just a Relative Layout with some views.(Layout provided by XML-layout-file). My…
0
votes
1 answer

Optimize Performance for creating views at runtime

I'm confronted with the Problem of slow Performance... Just take a case: RelativeLayout myLayout = (RelativeLayout) findViewById(R.id.myrlLayout); //Adding now 100 Buttons with 100 TextViews below each Button(just a example) for(i=0;i<100;i++) { …
Mike
  • 857
  • 1
  • 7
  • 11
0
votes
0 answers

Creating UIViews programmatically that respond to touch events

I am creating a grid of UIViews, either 4x4, 5x5, etc. They are created using nested for loops. UITapGestureRecognizer * touchUpInView = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewTouchHandler)]; for (int i = 0; i <…
Ricca
  • 311
  • 4
  • 21
0
votes
0 answers

IOS 8.0 Send SMS Silently, without displaying the SMS window

I spent more then a week to figure out a way to send SMS internally without popping out the conformation message; however, I did not find a way out. Some answers on the stackoverflow seems to work for earlier IOS. It seems that there is not a single…
Keshab
  • 142
  • 11
0
votes
0 answers

Linear Layout creating views but only showing first view

I am creating a linear layout programmatically but for some reason I am only able to see the first view. I can see that the space for the other views is being created and that this space is being created correctly. For example it has vertical…
0
votes
1 answer

Get a facebook auth token WITHOUT using the facebook SDK

Is there a way to get a fb access token WITHOUT using the fb SDK and without user interaction. Just using a hardcoded user:password string, something like john:123456, i know…
D.Snap
  • 1,704
  • 1
  • 22
  • 15
0
votes
1 answer

Add UiParameter to UIAjaxFunction programmatically

This is a short example of using richfaces jsFunction with parameter. then you can use from javascript addTag('1') and the…
Tvori
  • 298
  • 8
  • 19
0
votes
1 answer

Custom Control lacking standard properties

Following is a custom control called JobTimer created by inheriting/extending the standard control Timer. Purpose: In order to get a custom property named JobID added to the control. public class JobTimer : System.Windows.Forms.Timer { private…
prgSRR
  • 169
  • 4
  • 11
0
votes
1 answer

Clean programmatically implementation of UI

I am trying to make a clean implementation of programmatically created UI. I start off with my AppDelegate.m - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow…
0
votes
1 answer

I have an error in Xcode while switching view controllers

I wanted to be able to enter a view controller only if an entered password is correct. i used the following code - if(([input isEqual:@"12"])) { NSLog(@"change view controller"); NSString * storyboardName = @"Main"; UIStoryboard…
0
votes
1 answer

Android. Programmatically added rows are not stretching well (TableLayout)

I have a TableLayout declared in a XML File, it will show scores, and these scores are added via rows programmatically. The problem is that the layout without any score added looks like this (As it should be): Correct But when a score's row is…
0
votes
2 answers

Click on the screen co-ordinate in ios

I want to create a fake touch in iOS ViewController programmatically by giving the co-ordinates as input it should work like a manual touch please guide me in achieving that .
user3115014
  • 667
  • 1
  • 8
  • 23
0
votes
1 answer

Drupal url to teaser overview page

It's probably the most simple question, but what is the url to the teaser overview page? I'd make a content type 'X' and did make a template for the teaser and for the fullpage like this: