Questions tagged [dynamic-view]

45 questions
0
votes
2 answers

Adding views dynamically and arranging in grid

I am building a desktop app using WPF, I need to be able to add views dynamically in a way that will look organized. I have created an ObservableCollection, and set itemsControl.ItemsSource to be that collection. I am able to add views, it just…
RanAB
  • 397
  • 1
  • 4
  • 16
0
votes
2 answers

App closes in linearLayout removeAllViews line inside fragment: Android

I am new to android development. I transferred code from my MainActivity to a Fragment class. In my onCreateView method, I am calling a viewFunds() method to display data dynamically from SQLite. However, when I click the tab for that Fragment, the…
Glenn P
  • 37
  • 8
0
votes
2 answers

Setting ontouchlistener on multiple dynamic buttons with flow layout

I am using flow layout from reference https://github.com/ApmeM/android-flowlayout .Now i am creating multiple dynamic buttons on this layout and setting ontouchlistener on them.The problem is that when i am changing the position of one button by…
0
votes
1 answer

Dynamically add/remove the same xml view

I'm trying to toggle between adding and removing the same linearLayout view from my fragment. Everytime I add the line of code: ((ViewGroup)indexLayout.getParent()).removeView(indexLayout) I get a null pointer exception, even when trying to add…
0
votes
0 answers

How can I dynamically add columns in my view

Can you suggest to me how to handle this view if column added dynamically its may be 5 to 10 in future? Please look at my screen shot for response and view. Leave Type Fixed but other columns may be increased or short 1 web Response 2 Second…
0
votes
0 answers

Dynamic View in Android

I have a file of code in c#, c# is more like java. Is there any way I can add an edittext or a button or a spinner from a server to app? and not from XML or java(c# .cs file). I want it in such a way that when my web administrator stays remotely to…
Joshua Jumbo
  • 69
  • 1
  • 10
0
votes
1 answer

How to add dynamic textview in recycler view adapter?

I want to add dynamic textview in recyclerview adapeter when the item is selected. But the dynamic view is add in another view and when i scroll the recyclerview dynamically created view is changed every time in that view. This is my adapter…
Ajin kumar
  • 311
  • 1
  • 3
  • 14
0
votes
1 answer

Want to create an column in Dynamic View Panel that displays "Favorites" icon

I am using a Dynamic View Panel and would like to create a "Favorites" column in the view. The underlying view has a "Favorites" multivalue names field that contains all users that have flagged the document as a favorite. What I would like to do is…
Po Pofla
  • 13
  • 4
0
votes
2 answers

how to retrieve string value from dynamic edit text..?

In my layout I added two edit text by click on the add button and its added(works) and when I click on delete button it also delete the dynamic edit text.My question is how to get string value from it suppose I dynamically add two views and also…
vyas dipak
  • 109
  • 2
  • 15
0
votes
1 answer

How can I create this custom view in Android?

I have to add an ordered list of items as following images. How can I achieve that in Android?
Figen Güngör
  • 12,169
  • 14
  • 66
  • 108
0
votes
1 answer

How to refresh dynamically created views?

I have created dynamic views to show the events. I am storing the events in database. These events I am retrieving from database and loading in a fragment. The events are getting created successfully. Now I want to delete the events. When I delete…
user5881997
  • 219
  • 2
  • 19
0
votes
0 answers

how can I get the properties of an existing view and use it for a dynamic view?

I have a .xml file(picture below). In my .xml, the second row's views create while running. I want my new created views get the same properties from the existing views, like textsize, maxlenght, text-alighn , etc I tried to change the things that I…
N. N
  • 19
  • 6
0
votes
0 answers

Smooth listview with using dynamic n number of view in horizontalscrollview

I have tried this below code but its not working properly as I required. My required is listing movies date wise so the object is like MovieDate{ date counter List mlist; } Now using BaseAdapter I tried display movies date wise…
Pratik
  • 30,639
  • 18
  • 84
  • 159
-1
votes
4 answers

Dynamically adding Text views through java code in android

I want to dynamically add text views in my app depending on the information I receive from the database. I am taking a reference to the linear layout and then instantiating text views in a loop, setting LayoutParams to them and then adding them to…
sameer soin
  • 55
  • 1
  • 8
-2
votes
2 answers

Is it possible to render a dynamic layout on Android which received via API?

I want to add UI component in my application dynamically which is received by API. I also want to fetch value of that component on submit. e.g. If there are 3 check box,2 Edittext and 2 radio button, I need to fetch every component's value while…
Samir Bhatt
  • 3,041
  • 2
  • 25
  • 39
1 2
3