change the backgoroun images dynamically in blackberry eclipse - eclipse

Please help me how to change the selected background image dynamically please give me sample example...
I Need to change My application background image when i select the particular image from drop-down list, If click on apply button that image will be display in the background.
Thanking you

I suggest you try hooking up your button to a listener, then using Background to create your background before using setBackground() to change the background.
If this doesn't update the way you want, overwrite the layout() method in your screen and call the setBackground() in there, then call UIApplication.getUIApplication().relayout() to get it to layout the screen again (be sure to do it in a synchronize block!)
Good luck!

Related

three button using one image picker, the image is not update

I start learning Swift and try to fulfill using one image picker change button image when users trigger one of three buttons.
I watch online resource and understand how to use one image picker for changing one button image
But now I have three buttons, and each of them should have the ability to use image picker and change their own button image.
My solution for this is every time when the button is clicked and image picker is called, I set the UIImage outside the function equal to the info image
At meanwhile, knowing that image picker has triggered because the button was pushed down, I put a line for set-button-image with that UIImage in the button (IBAction function).
Below is my source code. Somehow the way I wrote will not update the button's image correctly.
Let me know if any information is missing or confused. Any advice or knowledge will be helpful, thanks.
sourceCode1
sourceCode2
main page
after clicking the add button the library shows
after select image, the button image shows all white
after clicking the white part, the image somehow shows
If I click another button, the button change like the first button???

How to find a image button using SWTBot

I have a SWT Button, it does not contains text, just an image. I searched for methods, but I can't find a way to press it.
If you know the index -0-based order of the button in all the available buttons in this context- of the button, you can try bot.button(index). But as UI can change that, I strongly recommend the solution proposed by #alt3.
Instantiate the button with an id:
yourButton.setData("org.eclipse.swtbot.widget.key", "yourButtonId");
Then, call the following method through the bot:
bot.buttonWithId("yourButtonId").click();

Styling button with dynamic text in iOS app

I am not a iOS developer. I am working on designing GUI for an iOS application to be developed using Appcelerator Titanium.
As far as all the other buttons are concerned, they can be provided with a .png image to style them. But this one type of button which has dynamic text, and thus can have width of various sizes as shown in the image below.
The screenshot is from Instagram iOS app. It shows the button in navigation bar named Camera which is the name of the folder from which image being cropped resides. In the app I'm designing for has a button with same functionality.
I just want to know whether it is possible to add custom styling for this particular type of button.
Thanks.
yes you can create a button and set the backgroundImage for the button to be whatever you want
http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.Button
third paragraph
You can specify background images for each state, as well as button text and a button icon. On iOS, there are button styles which define appearance for each state, even if no button images are set.
backgroundLeftCap Property
Simple answer: yes you can add custom styling to this button. As for the varying width, the background image will stretch to fill it.

how to customize the "Delete" button on swipe

How can I customize the "Delete" Button on swipe. I want to use the small button instead of using this Red Delete Button. I know how to change the title but I want to change the size and image of button.Is it possible?
As I am new, I am not allowed to upload images.
Please help!
This is probably not recommended. Apple likes consistency between all of its apps, so you should consider keeping it that way.

How to display the button transperent in iphone

I am new to iphone development.I have text on the button.I want only test to be displayed and not the button border or color .It should be transparent such that only there is text in view and not the button.It is possible to do that in interface builder?Please help me out. Thanks.
Select "Custom" as the button's type in the inspector. However, I would recommend against such design unless it's really necessary because if a button doesn't look like a button it may be confusing to your users.