Windows Phone 8 - List Picker two level selection - windows-phone-8

I am building a Video Application where each video has many resolutions
The video list is bound to ListPicker, but when the user selects a video I have to make him select the resolution options. (240, 360, 480)
Example:
Consider we have: Celebrity Video, National Video, Sport Video. They are listed like:
Now when the user selects a video I have to make him choose on which resolution he wants to play the video. Like a ListPicker inside the main ListPicker
I don't know how to approach that.
Any help is much appreciated

if you have only one list picker in the screen,you can use another list picker below your first list picker and use the selected event of the first list picker to bind the visibility to the second list picker( which contains the resolutions.)
on page loads it only contains first list picker and once the item is selected in the first list picker, the second list picker kicks in( visibility is made to visible ) where the user is allowed to select the resolutions. hope this helps.

Related

How to make html selection with independent two columns?

I want to make a 'year' and 'month' selection on the mobile web using HTML selection list with independent 2 columns. Selection one doesn't affect the other selection like iPhone alarm setting.
Also, I want to make a drop-down using one click (etc. I don't want to let the people click twice to open each year and month selection.)
I've searched google and I couldn't find the answer. Anyone would help? Thank you very much!!

How to find same logos, UI elements using sikulix

I am new to sikuli.
I am using it for functional test automation of my java spring standalone application. I am having the same set of images(logos) at multiple locations on the screen. and they are generated dynamically as per the application data. In that case how can I find and click on certain buttons/elements in the UI.
Example: like, share, comment text/image will be there several times in facebook page. in that how to we click on particular buttons out of all.(facebook is just an example) i want the similar solution for my application.
I think what you're asking is- given a case where the same image or UI element is present multiple times on the same page, how can I specify one of these elements in one location versus the same element in another?
The quick and easy way to do this would be to capture a larger picture, like as much of the window as you can, and click the image in parentheses after the click action; this opens a window reading file, matching preview, and target offset. Click target offset, use the mouse wheel to zoom in, and click on the exact point of the picture that you'd like to click.
It's possible to click in multiple places on a captured image, provided you use different click() commands, and you can set the target offset for each click() command without needing a new picture.
With just this one image, you can potentially click every square on the board provided you take the time to set the offset for each of the 64 click() commands it'd take to do so. http://files.chesscomfiles.com/images_users/tiny_mce/cigoL/Chessboard.png
The more difficult solution would be setting up regions, and searching those regions for the matching pictures, but for what you're looking for this should- for more about regions and setting it up check links below. Cheers!
http://sikulix-2014.readthedocs.io/en/latest/index.html
Based on your FB example you could use setROI() to focus on the top post on the page (imagine a rectangle that covers a complete post on the news feed) from there I would loop:
if exists(profile pic):
click(like button)
elif exists(profile pic 2): # If you are testing more than one user
click(like button)
else : type(Key.DOWN) #repeat as needed
Getting the next post into the ROI may be tricky but using WHEEL_DOWN may help if you can adjust your lines traveled with each wheel click on your system.

Passing gesture events from pivot to child element

I understand this is almost always a no go, however I have an item on a pivot control that that I'd like to pass gestures to in Windows Phone 8.1.
I have a color-picker residing on one of the pivots and I'd like the user to still be able to touch, and slide the color picker item around to select their color.
I don't want to abandon this just yet, but I've tried disabling the IsHitTestVisible to false, but this obviously does not help as all child items are not reachable.
I've not found much else on this subject, specifically to disable the pivot's own gesture or pass it on to the color picker. I would change pages by the pivot headers.
Any suggestions on this? Is it any at all possible?
I think you have two options to achieve this
Lock the pivot when user interacting with the color picker. You can set PivotControl.IsLocked=true; property for this.
Show the color picker to a popup like screen on the top of the pivot control. You can change the visibility of the color picker grid based on some triggers

Export to swf image to pdf or png

I made a simple certificate maker application using Adobe Flash & action script for calculations, that has 2 frames which takes input from user, eg. on frame1, it takes basic information like name, address, phone number etc. then user click next button to navigate on 2nd frame, then it takes some numerical data, like marks in some subjects for first, second and third terminal examinations and again pressing the next button navigates the user to 3rd frame which shows the final certificate after some calculations on numerical data to calculate grades and cumulative percentages. Since this is an swf movie, I right click on the final result and print it.. There is no mechanism to save it for future re-printing/viewing (read-only). I was thinking to give a button for save that could convert the final output with a background image & some dynamic fields to pdf or png. How can I do it?
Use AlivePDF, you can find it here:
http://alivepdf.bytearray.org/
Example code how to use it can be viewed here
http://snipplr.com/view/45819/

UiApp cache vertical panel

Developing small app to record a set of 6 readings for monitoring purposes in 31 rooms. App will have two main views, one view to show list of buttons for each room where readings will be taken, a second view where the values will be entered for a particular room and then posted to a spreadsheet.
The process in mind here is click on button for a particular room, enter the data, return to button view to choose another room to enter the data for that room and then back to button view screen.
Since the button view will seldom change do I have any options for caching this view so that I do not have to run a function to rebuild it each time. I have this function
function createTGSRoomListButtons(sh, aData){}
That takes the list of rooms and builds a panel of buttons for selecting the different rooms.
The question that I have can the above function be run once to cobble together the UI, cached and the later simply be 'recalled'?
TO that some end the view where the data will be entered can this be partially cached so that with each rendering a reference to a specific room can be made.
New to Google Apps Script so not really sure how to properly determine my answer.
You can have multiple panels in an UI and play with visibility to show one or another... no need to cache any content since they remain unchanged in the process.
If I understood your use case well, the panel with specific room info would be modified according to spreadsheet data so in this case you won't need to cache values since they would be "reconstructed" each time. The trick to show/hide panel has been shown in this post with clientHandlersand multiple panels in a unique vertical panel to ensure that the visible panel is always at the right place.
A very simple way would be build the UI for the first time and then hide/unhide the buttons' panel each time using the setVisible() method of the panel