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

C# / WPF : how can I programatically create as many texblocks as needed to show data from a table

I'm trying to fill a combobox with textblock containing values from a table. I would like to create as many textblocks as there is rows in the set of datarows returned by the select. Then add those textblock to the combobox. Can someone tell how…
Nico D
  • 7
  • 4
0
votes
0 answers

Set Visual Studio project Debug properties programmatically

[Using Visual Studio Pro 2019] I would like to be able to programmatically set the options on the Debug page of a C# project (using .NET Framework), without having to access the GUI. I.e. these parameters: Is there an API for this?
0
votes
1 answer

How to close programmatically a layout made programmatically

I created a ScrollView programmatically private fun showSpinner() { /* SCROllL VIEW */ var linearLayout: LinearLayout? = null linearLayout = findViewById(R.id.linear1) val layoutInflater = LayoutInflater.from(this) // Create…
0
votes
1 answer

How to programmatically ad a character to a string in R

I apologize in advance if this has been posted elsewhere. I am new to R, and I am having trouble manipulating a dataframe. I have a column in my dataframe that contains times in the format of hh mm ss. However, some values only have a single "0" in…
0
votes
2 answers

MaterialCardView not showing when added programmatically

I am not able to see MaterialViewCard at my Activity when adding programmatically. If I add directly on XML, it shows. But When adding via Kotling, it doesn't. XML sample:
0
votes
0 answers

Unwinding a segue to a programmatically specified unwindSegue (without Storyboard)

I still don't have an answer after viewing many answers to a similar question eg. https://stackoverflow.com/questions/12509422/how-to-perform-unwind-segue-programmatically I would like to try to restate what "programmatically" means to the question…
0
votes
1 answer

Why does InAppSettingsKit override my TabBarItemTitle?

i am using InAppSettingsKit pod in my iOS app, developed without storyboard. I have a MainTabBarController where I initialize my ViewControllers. Everything works fine, BUT when I start the App in Simulator (where phone language is English) or on my…
0
votes
0 answers

Swift TextField built programmatically not sized to fit screen width?

I have programmatically defined a textField to stretch across the width of the screen (less 50 points as a "margin" on each side via constraints. The left (leading) side works fine but the textField is only as wide as the text rather than spanning…
0
votes
1 answer

How to set a distance between placeHolder / user text and left border in UITextField

I have a design project, where the distance between placeholder and the left border is 16. That is like it should be: but I can't find a property to set it on 16 points, as a result I have this: But now it is like this: I do my UI…
0
votes
1 answer

Swift: Search bar not showing up on viewController when coded programmatically

I am trying to add a search bar (with an IBAction method) to my viewController, but it is not showing up. Am I missing anything? import UIKit class SongrequestViewController: UIViewController, UITableViewDelegate, UITableViewDataSource,…
Angela C
  • 15
  • 6
0
votes
1 answer

How to hide the navigation bar as scroll down, when constraints are programmatically?

I'm doing all my UI programatically, to avoid a massive view controller I have a class of type UIView where I'm declaring all my UI elements. I'm declaring my scrollView like this: class RegisterUIView: UIView { lazy var scrollView:…
0
votes
1 answer

Why is there a UIToolbar left behind after resigning keyboard from search bar?

This is programmatically made by the way. I added a UISearchBar to a Navigation Title View. It becomes first responder when the controller first loads. The cancel button from the search bar when clicked removes the keyboard and goes back to root…
0
votes
0 answers

Download .apk from Url and install apk

I am fetching the problem where when the user open the application and when new version is available for the application. I want to redirect to that url. The url which i am redirect is not on the Play Store. Its independent url. It goes to that url…
0
votes
1 answer

Swift - didSelectRowAt indexPath next VC not showing up /no storyboards/

I have a problem with "didSelectRowAt indexPath" because row is not firing next VC. In console I've printed string for particular row so selecting a row is working however next VC is not opening. I've of course tried to find a solution on stack…
Tzebulion
  • 27
  • 5
0
votes
0 answers

How to set onClickListener for the newly added item to navigationview?

I have a navigationview with 2 groups, in one of the groups I add a new item programmatically using this example: How to add an item to a menu group in NavigationView How to create and get the id for the newly added item and set OnClickListener on…