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

Android Google Play Services Interacting with Google+ APIs UI Polish for your App

Hello, Where is the source code for this app course pls. thank you

Hello, Where is the source code for this app course pls. thank you

4 Answers

Harry James
Harry James
14,780 Points

Hey T KnightApp!

Drawable files

The source code for all of the drawable files can be found in the Teacher's Notes. For a direct download link, click here.


Style files

If you would also like the style files colors.xml and styles.xml, you can download a Bundle of drawable and style files I've put together or if you would prefer not to download the files, you can use the code below:

colors.xml

colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
   <color name="primary">#FFFFFF</color>
   <color name="primary_dark">#FFA5A5A5</color>
   <color name="highlight">#11FF5A00</color>
   <color name="accent">#FF5A00</color>
</resources>

styles.xml

styles.xml
<resources>

   <!-- Base application theme. -->
   <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
       <item name="colorPrimary">@color/primary</item>
       <item name="colorPrimaryDark">@color/primary_dark</item>
       <item name="colorAccent">@color/accent</item>
       <item name="colorControlHighlight">@color/primary</item>

       <item name="actionBarStyle">@style/ActionBarStyle</item>
   </style>

   <style name="ActionBarStyle" parent="Widget.AppCompat.ActionBar.Solid">
       <item name="titleTextStyle">@style/TitleTextStyle</item>
   </style>

   <style name="TitleTextStyle">
       <item name="android:textColor">?colorAccent</item>
       <item name="android:textSize">20sp</item>
   </style>

</resources>

Hope it helps and if there's anything else, give me a shout :)

Marcelino Yax
Marcelino Yax
10,966 Points

Just remember when you add "Theme.AppCompat.Light.DarkActionBar", "Widget.AppCompat.ActionBar.Solid", and color "?colorControlHighlight", you have to add appcompat as a dependency in your build.gradle: compile "com.android.support:appcompat-v7:22.2.1" if you are using compileSdkVersion 22.

Harry James : Some of us are experiencing problems with the Etsy API. From the very start of instructions our screen is blank and no listing is being pulled up. Can you please have a look in it ?

Harry James
Harry James
14,780 Points

Hey Diwesh!

It looks like the API is working fine on my side. Can you please open up a new post on the Community and provide the code for your project so that somebody can look into it?

Unfortunately, I won't be able to look into this personally until March 1st due to time constraints with exams so hopefully somebody else will be able to work out the problem before me.


Again, apologies for the inconvenience here - but if you still have any issues next month then I'll be happy to help out.

If you want, you can take a look at my code files for different stages in this project to compare your code and my code. You can also Browse files on each commit and Download the project as a .zip if you want to test to see whether my project runs fine for you (Note: Some areas of my code refer to a ProtectedClass, this just means I have hidden my API key in a class not published on GitHub, and you can just replace these with your API keys instead).

Best of luck!

Harry James : Thanks it helped .

Sadly my problem was in Android manifest.xml . I had permissions set wrong :(

My permissions were "ANDROID.PERMISSION" instead of "android.permission" for some reason :(

Harry James
Harry James
14,780 Points

Hey again Diwesh!

Great to hear things are working fine for you now :)

Again, sorry I wasn't able to be a better help!