Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Glen Hayes
5,798 PointsAdding more colors to build a simple app - android
Hi there, I am at the 05:11 mark for the add more colors video and as Ben does I have used my Genymotion emulator to test run the app but have run into a few problems...... I can click my show another fact button to show the red background but then my fun fact disappears and continuing to click does not provide any more colors?
I'm assuming it is due to a relativeLayout id tag issue i.e. when i try to enter the findViewById(R.id.relativeLayout) the lowercase l in relative automatically updates to an upper case L. no matter what I do.
It does this even after I press alt+enter and select the prefill relativeLayout option.
I have even tried changing the id tag to several different options but always get an auto uppercase letter in the first word.
Hope this makes sense as I really want to keep going with learning asap and not get stuck for too long.
Thanks in advance for your help!
Hayzy
1 Answer
Glen Hayes
5,798 PointsIts all good I have figured it out myself. Sorry for wasting your time. I just had to sort a couple methods out in my mainActivity.xml
I love this s&%$t!! lol
Glen Hayes
5,798 PointsGlen Hayes
5,798 Pointsthis is my code if it helps......
public class FunFactsActivity extends ActionBarActivity { private factBook mFactBook = new factBook(); private ColorWheel mcolorWheel = new ColorWheel(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_fun_facts);
}