Questions tagged [dynamic-view]

45 questions
3
votes
4 answers

Dynamically created views id is always null - findviewbyid not working

I am building an app, in which I have a edit text field and getting data from user and storing it in database it is working fine , now I used a button to dynamically create another edit text field (this field is created only if the users want by…
Bharathi V
  • 127
  • 10
3
votes
4 answers

how to get data dynamically in view basing on fiscal year

How can i create a view Dynamically to get the data based on fiscal year(Financial year). Lets have look at sample data where im having sample data. Declare @t table(StartDate date ) insert into @t values('04/01/2012'), ('01/01/2012'), …
mohan111
  • 8,633
  • 4
  • 28
  • 55
2
votes
0 answers

How can I add Data Binding to dynamically added views in Android using JAVA?

Here is the example of a view added programmatically: final EditText edtText = new EditText(getAct()); edtText.setLayoutParams(EncounterUtil.getParams()); cellView.addView(edtText); while cellView is a linear layout defined in XML…
2
votes
0 answers

findViewById not working with ids created using View.generateViewId

I'm trying to access a view with a dynamically created id, using findViewById but it always returns null. This is how I'm creating the id, using View.generateViewId() and ViewCompat.generateViewId() for lower API versions. import…
Phani Rithvij
  • 4,030
  • 3
  • 25
  • 60
2
votes
0 answers

Change Image when Touch a dynamic view with onTouchListner

Image is not changing when i touch on the layout. It is dynamic and i have added this to a layout. here is my full code by which i have created a dynamic layout ID = 1; Display display = getWindowManager().getDefaultDisplay(); …
Sudhansu
  • 780
  • 1
  • 9
  • 28
2
votes
1 answer

C# Socket and ClearCase Dynamic View issue

I have a project under source control and I'm using a dynamic view. This project uses sockets. When I run the program I get an exception using this line of code: var addresses = Dns.GetHostAddresses(Dns.GetHostName()); I get a socket exception with…
Seapoe
  • 459
  • 4
  • 15
2
votes
1 answer

How to create big dynamic view in android?

i have a big problem with creating and removing views in many times For example i searched in sqlite database and fetching 200 records, and i want create 200view in my activity but it happen in 3 or 4 seconds and it is bad for user experiences and…
2
votes
3 answers

Get Result View or Dynamic View of an object

I take a json object and deserialize it to a variable. When I debug, I see that each element listed like an array in Results View, but no matter what I tried, I couldn't get these values. My json string: string json_string = { "baslik" : "bbbbb",…
Koray Durudogan
  • 624
  • 4
  • 12
  • 31
2
votes
2 answers

Add Multiple Dynamic Spinner Views in Android Activity,Not Loading Selected Spinner Data In second Spinner

In My application i am Having Dynamic Spinners. Totally 2 Spinners are there in a Method,Both are dependent(SPinner1 ,Spinner2). I can call that method multiple Times. Spinner Data Loading from Local database. Problem: i called that method twice…
Kumar
  • 969
  • 2
  • 22
  • 56
1
vote
2 answers

How to add dynamic views to android layout in recyclerview adapter

enter image description here I have a list of parents that each has zero or many children I use recyclerview to show the parents. I want to show parents as header of each recyclerview item and below show all the children what is the best way to show…
Sharif
  • 31
  • 5
1
vote
1 answer

Using dynamic object in ASP.NET Core MVC view

Let me start by saying that I know there are other ways to do this and I have already successfully done it other ways. But I got to wondering how to use @model IEnumerable in a view. I have tried this in the controller: var result = from p…
1
vote
2 answers

Get data from multiple spinners generated dynamically in linearLayout

I am trying to add a dynamic view inside my LinearLayout and trying to implement something like to catch every spinner value corresponding to time. Can anyone over here can guide me that how it can be done. I am trying it but it's not working as…
user2028
  • 163
  • 4
  • 15
  • 40
1
vote
1 answer

Xamarin Forms - Dynamically create views based on condition

I have a Xamarin.Forms application which calls the backend. The backend gives a list of items. These items all have a type and a description. Based on the type, I need to decide what view element I need to create (entry, label, picker, checkbox…
M Yil
  • 877
  • 1
  • 14
  • 35
1
vote
1 answer

Can I create a function in order to catch recently executed query and rows affected by it?

Actually,I need to catch each query (update/delete) and rows affected by it of a stored procedure in order to keep track. You can assume that that stored procedure contains only delete and update commands. I have created following function CREATE…
1
vote
0 answers

Get the database credentials of the database selected in Server Explorer

I wanted to create an extension to Visual Studio that displays the name of the database selected in Server Explorer. I've tried the following C# code. var dte = Package.GetGlobalService(typeof(DTE)) as DTE2; EnvDTE.UIHierarchy serverExplorer…
Akshara
  • 211
  • 1
  • 9
1
2 3