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 trialKhurram Shahzad
3,695 PointsListViewItem.xml Textview color not changing at all Image is not showing in the listviewitem.
Hello there! I have been working to convert the color of the textview to White in the list viewItem.xml but i have no clue, why it is not changing the color and i have added an image as well in the list view item and it is also not appearing in the listview item. Kindly help me to solve the issue I have spent almost 6 hours onto that but with no success in the end.
here is my xml code
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:background="@color/colorPrimary" android:layout_width="match_parent" android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/textView_dates"
tools:text="09-01-2017"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:textColor="#ffffffff"
android:textSize="16sp"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/rightarrow"
android:layout_alignBottom="@+id/textView_dates"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:id="@+id/rightarrow"
android:adjustViewBounds="false"
android:cropToPadding="false"
android:paddingRight="15dp"
/>
</RelativeLayout>