this one How can I get a working vertical SeekBar in Android? doesn t work for me. By turnig the bar to the bottom or top the max and min values are higher than setmax() and lower than 0 - it was neagtiv.
I found the solution here http://hackskrieg.wordpress.com/2012/04/20/working-vertical-seekbar-for-android/.
simply replace the class complete with this new class. Thanks to techn1x.
Related
I am looking for a solution to create a custom slider in Nativescript using Angular + Typescript.
The slider should be bi-directional meaning slider should have both -ve and +ve values, 0 starting at the middle of the slider as shown in below image.
.
Thanks in advance.
Setting range in Slider with dual thumbs is supported if that works for you. Looking at the images, I don't think such behaviour is supported neither in iOS or Android. You will have to come up with your own Slider like component using drag events.
I tried doing auto layout but I keep on getting three dots. How do I fix this?
Screen shot of how it looks below.
Just pinned both edges to 0 to get max width for label regarding screen sizes...and still content is too long then it displays 3 dots as per option truncate tail...For that you have to make a font size bit smaller or make multiline label...
I have one image on top of another.In code I am trying to set it's position using int's.I have two random int's representing the top and left.How can I set it's position over the other image do I use the Margin? If so how?
Complete use style:
image1.Margin = new Thickness(10,50,300,20); //(left, top, right, bottom)
The way to do it was image.Margin = new Thickness();
I am using AdvancedDataGrid with its number of rows changing dynamically.I want to adjust the grid height according to the number of rows displayed.Can anyone help me out in this.
I'm not sure what you're asking... please provide an example. You want the grid to keep getting taller as the row number increases? Is this to avoid a scroll bar? How tall would you like it to get before you stop? Are you looking for it to be 1:1 (height = numberOfRows * heightOfOneRow)?
It sounds like what you're asking for should be pretty straight forward, if you just elaborate a little bit.
This is a dupe of flex datagrid - making grid height dynamic and component that contains it, and I answer the question more fully over there. Short version: the rowCount property controls the height of the DataGrid control.
For firefox is there anyway to determine the TopLeft location of the "viewport" (ie the client area)? I know the height/width is available via window.innerHeight and window.innerWidth. But I also need to know "innerTop" and "innerLeft" (which don't exist).
Thanks,
Rob
If you can get a mouse event, you can look at its event.screenX/screenY properties and subtract the event.clientX/clientY properties. This is even cross-browser compatible (DOM Level 2 Events).
window.innerHeight - The height of the document area.
window.outerHeight - The height of the entire window.
You could subtract one from another, and get the distance of the document area from the top of the window, plus the height of the status bar.
Try this:
document.documentElement.getBoundingClientRect()
The result of this function will have a left and a top property which will give you what you need.
Note: This function is implemented in Fx3 so you'll need the DOM-traversing offsetParent iteration for older versions.
This seems to give the offset from the top of the document to the viewport too:
window.pageYOffset