I am trying to implement like word cloud in my app.
The image shown is like word cloud with left alignment.
What I did was, for placing the buttons I am checking whether the width of the text is greater than total width of the screen, if it is greater place the button in next row i.e increment the y position, if it is not just place the buttons. Everything is working fine. But what I want now is , i want to move the buttons alignment, like, I want to start the first button from center of the screen. Please help me to do this...
Related
I want to create a horizontal scrollable "timeline" that has sticky section names (dates):
The horizontal lines are dividers for different dates. The date stays on until this divider (circled red in the last picture) "pushes" it away from the screen.
In other words, the date stays on the screen until another date pushes it away.
Is there a way to achieve something like this?
In my tvOS-app I use a tableView with custom cells. If the cell is higher than the TV-screen it will show the "center-part" of the cell (top and bottom are not visible) and scrolling up or down will center the cell above or below. Is it possible and if, how, to change the "jumping" from cell to cell to a smooth scrolling like in iOS?
You should limit your cells to use a fixed height for a few lines of text and show focus. When a user selects one of the cells you can then expand / zoom / transition to show the whole text is a specific scrollable text view. This interface maintains the users understanding of content, lists and block text.
Just found the solution. Knowing what to search could be an advantage ;-)
Adding this simple line gives me the handling like in iOS:
self.tableView.panGestureRecognizer.allowedTouchTypes = #[#(UITouchTypeIndirect)];
I want to add a small indicator (like a green arrow or small circle) to indicate to the user what to do next in my iPad app (apparently some of the users can't figure what to do first, even tho' I have instructions in a drop-down help file). The indicator would be visible on the left side of the row and only on the row which would be the next action to take (user should tap that row to get the next sub-view to appear).
Any ideas how to accomplish this? (I looked on SO and Google and didn't find anything that was pertinent).
Add an image view to your prototype table cell. When you want to indicate that a given row is the next thing to do, set the image of the image view for that row to your indicator image.
I'm using vb.net to make a screen saver.
I want my label where the text shows to always be centered no matter what screen size it is.
is there a way to get the screen resolution of the current monitor?
if i can get that then i can calculate the middle and set my label there.
Stretch the label to the whole width of the form and dock/anchor to left and right side within the label parameters. This will center your label whatever the size of the form.
Look at the titles of the buttons. Also the placing of the 1 at the bottom.
Any idea what can cause that? (All I did was to drag and drop and wrote some simple calc code)
In your picture, there are blue lines to the bottom and left of your 1 button. This means that your button is aligned to the bottom left of the screen.
The rest of your buttons are probably aligned with the top of the screen. This means that if height of the screen changes, your buttons will not line up. If you align the button to the top of the screen you shouldn't have this issue.
You can change the alignment by moving the button to the top of the screen so that the blue line is at the top and then dragging it back down to where you want it, or you can change it in the Size Inspector.
As for the issue of missing titles, it looks like somehow the buttons with missing titles have strange constraints that cause the titles to disappear when the screen is getting laid out. I was able to get rid of the issue by deleting all but the first row of buttons, selecting that first row and duplicating it 4 times for the other rows. This ensures that all the buttons are lined up perfectly. A couple of your buttons had a width of 71 instead of 64 which might have been causing them to be laid out poorly.