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 Android Lists and Adapters (2015) Custom ListViews Creating a Custom Layout - Part 1

Luke Liem
Luke Liem
6,367 Points

Tools:background="#ffXXXXXX" - Cannot Resolve Symbol

My code has been running OK, but I noticed that in the daily_list_item.xml, Android Studio highlighted the color "#ff507ef7" assigned to tools.background to red. The code compiles despite this error:

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingBottom="20dp" android:paddingLeft="64dp" android:paddingRight="32dp" android:paddingTop="20dp" tools:background="#ff507ef7">

J A
seal-mask
.a{fill-rule:evenodd;}techdegree
J A
Full Stack JavaScript Techdegree Student 4,646 Points

Hi Luke. Please be sure to format your code in code blocks so that it is easier to read and that way easier to debug.