Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

MT.D questions

$
0
0

hi!

my application is supposed to be supported by android and ios. at the moment i'm just experimenting with the ios version. please view the attached sample.

i want the main parts of the application to be generated dynamically. the structure is going to be stored in a sql database and delivered by a webservice. goal: dynamic structure with various input fields generates the ui. the user can make inputs and afterwards the structure including the values goes back to the database. so far so good.

i did not choose the json structure which mt.d offers because i want to store additional information the the stucture-object (e.g.) and it shall be used by the android application, too. since there is no mt.d for android i made my own structure, represented by "TreeElement.cs" which can be stored in a sql database.

for each TreeElement with TreeElementType "Root" a new ElementScreen (that represents the child-elements of the TreeElement according to their TreeElementType) gets created. if the user "visits" this ElementScreen and goes back, the corresponding root-button gets a checkmark like for "you've done this section.".

first problem: the StyledStringElement is clear white. the other elements are light gray. Why? and how to change this?

second problem: TreeElement is going to get a List property that can store images, taken within a root elements ElementScreen. i want the images to be displayed at the bottom of each ElementScreen. imagine the root element represents a room, e.g. the kitchen. the structure contains some bool buttons for "Has oven in it", "Has microwave in it" and so on. Additionally the user can take photos of the kitchen that are stored in the TreeElement and displayed in at the bottom of the screen in a scrollview container. I tried to put a UIScrollView underneath the md.t elements, but i didn't know how to add this to a DialogViewController. (how can i do that? how can i add non-mt.d stuff to DVC?). So i've created the "ImageScrollViewElement" that can hold various buttons (later this will be the images with tap-events assigned. for now just buttons) and that can be added the "mt.d way". problem: the ScrollView is to wide. i don't know how to limit it's width. another problem: i don't want the element to have that rounded background. the images (buttons for now) are supposed to be placed directly on the ElementScreen, underneath the other mt.d elements. so... which is the way to go? add UIScrollView directly underneath the mt.d elements? Ok, but how? or just use the custom element and hide the rounded container and limit it's width? Ok, but how? :)

i'm totally new to this.. maybe my approaches aren't best practice. thanks for any help!


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>