Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
nulldev
Posts: 18
Registered: ‎03-08-2010
My Device: Bold 9700

Re: Noob UI Development Tips

@rxan 

Thanks for the advice rxan,  I agree, hard coding co-ordinates should definitely be avoided, especially when developing for several screen resolutions.  I'll definitely have to try the BackgroundFactory scaling technique sometime.

 

As for box model, I'll have to give it some more research.  I'm up for learning anything that makes life easier.  Good to know that we can now hotswap code!  It's been quite tedious testing my app, especially in the case of UI changes.

 

Please use plain text.
Contributor
nulldev
Posts: 18
Registered: ‎03-08-2010
My Device: Bold 9700

Re: Noob UI Development Tips

@peter_strange

The solution sounds a little tricky, but I'm willing to give it a shot.  The only thing I'm not too sure of from your solution is how to create a cod dedicated to images.  Do I just make a new blackberry project with some sort of dummy UiApplication class and put the images in it?

 

Everything else I'll have to play around with in Eclipse.

Please use plain text.
Developer
rcmaniac25
Posts: 1,804
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.634 Dev OS, Z30 (STA100-5)-10.3.1.634 Dev OS, Passport (SQW100-1)-10.3.0.1154, PlayBook (16GB)-2.1.0.1917

Re: Noob UI Development Tips

It doesn't need to extend anything. I usually do something like:

public class Resources
{
    public static InputStream getResource(String name)
    {
        return Resources.class.getResourceAsStream(name);
    }
}

 

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.