Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 days ago.
Improve this question
I am creating Level Screen for my android app. This screen shows a infinite scrollable curvy thread. there are buttons kept on this thread. Each button shows a particular level of game. Each button is clickable which will start the particular level of game. The bottom level is 1 and top most level is 1000. At a time there are 6 levels(buttons) shown on screen. Other buttons should be dynamically created while scrolling the screen so that unnecessary resources are not occupying memory. I am not sure of how to implement this dynamic scrolling. I didn't find any useful libgdx reference regarding this.
Help with any Suggestion to implement this level screen.
I am able to create static screen, but unable to create level buttons while scrolling.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I would like to create a picture/button that is displayed over the content of an activity and I can move it anywhere on the screen. Example of functionality: If I move it close to the left side of the screen I would like the image to move to the edge when the user drops the object.
You can either use a draggable view library like DraggableView or you can implement your own onTouch handling to handle touch events for dragging image view. Here's an article for reference.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Wanted to achieve dot indicator as attached image. I want if items are more than
5 then small dot should appear and during sliding, it's resized. Check Instagram for live view(Look for any post which has uploaded more than 5 pictures)
I tried to play with the sizes of dots only and redraw them (by invalidate()) on every page change, however I couldn't achieve to maintain the dots in the middle. Playing with left and right dots wont make any big problem. but when the active dot is in the middle a scroll effect takes place. How can I achieve that?
I am holding a List of dots and play with the dots sizes and positions when page changes, than I invalidate and draw circles based on the dot properties in the list. However cannot find any idea on how to maintain middle dots so I can make that scrolling effect. Any other idea is appreciated
Dot indicator
you can checkout this library,
https://github.com/ongakuer/CircleIndicator
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Does anyone have any suggestions as to how I can go about creating an Effect for a JavaFX node that can simulate glass shattering and then (potentially) breaking? if the breaking is more difficult, I can skip that part. Basically I want to layer this pane over an image and then make it look like its a picture frame that then shatters. If it can then break into pieces (after some configurable delay).. that would be great as well!
I've looked everywhere but can't seem to find info on simulating the glass shatter effect in JavaFX.
Thanks!
For a simple solution I'd go with a Path that randomly extends and change the style of the path during time.
More sophisticated code could use a Canvas and paint the shattering on it. Daniel Shiffman with his Nature of Code book may be a base for you with the creation of the shatter effect.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have some splashscreens in my SWT written application.
Some of them provide feedback, some provide usercontrolls.
I need to display those splashscreens in a different order.
E.g.:
Logo splashscreen
Connecting... screen
Login-usercontrols screen
Logging in... screen
etc.
Question:
What is the usual way to manage the screens.
Is there a design pattern, which allows to effectively show a new screen / hide all previous screens?
If you want just one Window visible at a time, SWTs StackLayout might be the right choice for you. Basically, all the screens are within one window, and the StackLayout shows just one of them.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I put three buttons on my form, the focus is on the first one.
There's no response to the navigation buttons and i can't get to the other two buttons.
There's also no response to the main button (the first button isn't clicked).
I added action listeners and used setNextFocusRight() and nothing works.
What else do I need to do to enable navigation between components?
I believe your problem is that you haven't loaded any theme and all your buttons look the same (white or something). Navigation is working fine, but you can't see the result of pushing DOWN button.
addMnemonic is what you need i guess. Read this I think it will help you ))