This was actually really hard and frustrating to try and get this to work like it shows above. In eclipse there isn't a simple add boarder button like there is in flash builder. What I had to do was whenever I wanted to make a boarder I had to make a new layout within the existing relative layout. In that new layout I made the background grey. And within that I made a text view which I set a background colour to green and the text colour grey. At the time when I did this the text views width and height were 'wrap_content' which means that it will always take the shape of what ever is in that text view, so if I add more lines of text it will always get bigger but will also perfectly fit in the box. Now to get the boarder I made a 2dp margin around the text view. This then showed some of the layout which the text view is in, thus giving the impression that there is a boarder. This was actually really annoying to get working as it took me awhile to figure out that way of doing it.
Another thing which we want for our app is to be able to tag recycling bins. And something which Kah told us in our beta presentation that it could be cool to say weather the bin is for glass, plastic etc. We have managed to get that implemented and gives you the opinion of which one you want to tag. At the moment when you tag it just shows a little flag but what we want to do is have different flags for the different types of recycling bin. This will help other users know what type of bin there is around them so they know which is the one that they need to go to. Apparently this isn't that hard to put in and id assume it would be the same way as our indented images.
No comments:
Post a Comment