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 change colour of home up button in android

I have used this code to show homeupbutton in action bar. getActionBar().setDisplayHomeAsUpEnabled(true); Now I want this back button to be blue or any other colour that I want. How can I do this programmatically.?
Yawar
  • 1,924
  • 3
  • 29
  • 39
0
votes
2 answers

Android: Pass iteration value to onItemSelectedListener

Hi I am creating a list of spinners dynamically based on a user choice. Here I am also implementing OnItemSelectedListener for each of the spinners, since there are multiple spinners I want to know which spinner's method is currently being accessed.…
0
votes
2 answers

Creating LinearLayout by the click on Button

So, I want to add(create) LinearLayout in working application by the click on button. And I almost do this, something add(free space), but I don't see anything. To check, if layout were added, I put TextView in it. my_layout.xml
0
votes
1 answer

ViewController created programmatically does not look like on Storyboard

I have a one lone TableViewController configured in StoryBoard. I decided, its better to connect it programmatically, rather than with segues, so, I use this code to present my ViewController: UIStoryboard *aStoryboard = [UIStoryboard…
0
votes
2 answers

Programmatically change Size of Table

The Storyboard: http://s7.directupload.net/images/140717/z5hwmezv.png Hey guys, Ive got an app that recursively triggers a the same tableview controller (lets say there are files and folders in it) until you trigger a file instead of a folder. When…
r3n
  • 27
  • 6
0
votes
1 answer

Programmatically adding different buttons to RelativeLayout using if()

So I am programmatically adding buttons to an already existing RelativeLayout. I get a fatal error where running this code without any error message. My android app doesn't even open. Though when I take out the if/else below it works fine. Am I not…
0
votes
2 answers

xcode - Capitalise Label Output

I'm pretty new to xcode - so please bear with me! I'm outputting information from a database to UILabels with information like Name, Region, etc (all good, so far). However - there is a column of text in the database which is all in lowercase (ie…
Dave
  • 498
  • 2
  • 7
  • 22
0
votes
1 answer

Weird top margin when using AddView programmatically

I've a big problem I'm trying to add an Imageview programmatically but I face a strange problem: I've put in the XML just an empty Relative Layout matching the parent. Code wise I'm adding an imageview to the relative layout. Everything works, the…
user13400
  • 21
  • 4
0
votes
2 answers

Create TreeView with events programmatically

I am creating a tree programmatically inside a row in a table. Works fine, but can not get the assigned event is called: TreeView arbolCapas = new TreeView(); arbolCapas.ID = "capas"; foreach (String capa in servicio.Capas) …
clnjr
  • 63
  • 1
  • 8
0
votes
2 answers

Is it programmatically possible to update a windows store apps from within the app?

Is there an API that allows to me to programmatically pull the latest update from the store and refresh the current version that the user is using? If not, is it possible for the current app to programmatically know that there is a new version…
0
votes
1 answer

Android scrollable AlertDialog programmatically

How can i programmatically make my AlertDialog Scrollable ? My AlertDialog is defined like this : private void DisplayAlertChoice(String title, String msg, final int pos) { alert = new AlertDialog.Builder(this); …
0
votes
0 answers

Scrollview inside a Scrollview

In my one of application,I have to implement scrollview inside a scrollview.I know it is bad practise to use nested scrollview but my application need it. I have found solution at various place to intercept event like…
chikka.anddev
  • 9,569
  • 7
  • 38
  • 46
0
votes
1 answer

programmat button and storyboard button

I have one button and one search field in navigation bar and i added a new button by code from one class for all view. The problem is: with the button view the other button and the search field added with storyboard are not more touchable and not…
0
votes
4 answers

Targeting programmatically created UIButton

Question: How do I target one of many dynamically created UIButtons so I can change its properties? Background: I have a storyboard with a UIViewConroller. When this UIVC loads a UIScrollView is added, to which a UIImageView is placed that has an…
0
votes
1 answer

How to add an action programmatically using Storyboard

I have apps on iTunes that use a ViewController as an expandable/zoomable ScrollView with a programmatically added button and action to that button. I am currently updating the app and have switched from building the app using XIBs to using the…