So Joss has once again decided on a new layout. I did tell him that if we were to get it done at least a couple days before hand in that I would put it in. So well yeah thats what I did.
This layout is almost of linear and even though it was quite annoying to implement I do have to admit that it looks good. Everything works exactly the same as it did before. Something which we also decided on is that on the top of our page instead of just having a white line separate the logo from the rest of the page we are now going to have a filled bar. The colour of this bar is a slight grey which is also what we are now using for all the image and text colours to keep it consistant.
Something which we found out from when we were doing some user testing is that some people didn't really like was that if they scanned a product which wasn't in our database that it would just say that the products not found. So what I came up with is that we should have a choice for the user to input their own data on products that weren't found.
So what happens is that if a scan is successful it will go to this page.
At the moment all that is on this page it the barcode of the product and some information about it. Also if you press the database button then it will go to the database page (which I will talk about more later in this post) and the page which it goes to will be depended on what type of product is scanned. The way which we did this is the same way in which the indented image is being chosen when a button is pressed. And of course if the user was going to recycle that product then they would press the recycle button at the bottom of the screen. When that happens a little bit of text pops up saying thank you for recycling.
But if there isnt a product on the server then it will go to this page.
Originally we had a grey boarder around all the text throughout the app but when we got all of the pages together I decided to take it out and keep it on a green background. Well on this page what happens is that if you press the button where it says aluminum it will pop this up.
Here you chose what category that this item that you just scanned goes under. Once you have done this once again you press the recycling button and some text will pop up saying 'successfully added onto our server' It also changed pages to the page where a product was successfully added.
At the moment the drop down menu doesn't even look like a menu so that is something which I want to sort out before final hand in which is coming really close.
Now what happens when you press the database button is that you go onto a page which gives you some interesting facts about the products which you are about to recycle. Here are two of the facts which we have in our list.
Having a drop down menu took me quite awhile to implement but when I got it I realized that it was actually something really simple. First what I had to do was make and array named 'type of products' and then make an array list named which had the names of what I wanted in the drop down menu.
Something which got he held up for quite some of it was that in eclipse a drop down menu is called a 'Spinner' this was really confusing but once I figured that out it was actually quite easy. In the spinner there is an id called entires and prompt which. Entries is where the 4 choices are and prompt is where that first array name goes. So all I had to do was reference those arrays in those 2 places and it worked.
I was quite embarrassed about how easy it actually was to do after I got it working.
We have at least 6 different facts like that for each of our 4 types of recyclable products. To show these facts what I have put in is a horizontal slider. So all the user needs to do is swipe there finger across the screen to show all the other facts which are there on the page. A couple of the other guys in the groups said that I should get rid of the grey boarder around the facts. But me and Martin decided it would be good to keep it in as it shows the user that it is different than the rest of the app. While your swiping it also shows a small grey tab which shows you how far along the facts you are.

Doing the Scroller was actually a lot harder than I thought that it would. Something which made it extremely hard was that all the images weren't all the same size so I had to go back and export them all again with the right sizes that I wanted. Once they were all the same size it was a lot easier. In eclipse there is something called a horizontal scroller and all I did was add a horizontal linear layout within that scroller and had all the images in that linear layout.
Something which is also happening on that page is that under where it says 'Aluminium Recycling Facts' it will tell you how many Aluminium products have been scanned in the past