0% found this document useful (0 votes)
24 views2 pages

Resources Color Color Color Color Color Color Color Color Color Color Color Color Color Color Color Color Color Color Resources

The document defines color values for various UI elements. It includes primary, accent, text and other colors defined by their hex codes. It also includes an XML layout for a nav header with a profile image, username and email text views inside a relative layout with a background drawable.

Uploaded by

Rizal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Resources Color Color Color Color Color Color Color Color Color Color Color Color Color Color Color Color Color Color Resources

The document defines color values for various UI elements. It includes primary, accent, text and other colors defined by their hex codes. It also includes an XML layout for a nav header with a profile image, username and email text views inside a relative layout with a background drawable.

Uploaded by

Rizal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

COLOR UPDATE

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


<resources>
<color name="colorPrimary">#F44336</color>
<color name="colorPrimaryDark">#D32F2F</color>
<color name="colorPrimaryLight">#FFCDD2</color>
<color name="colorAccent">#7C4DFF</color>
<color name="colorPrimaryText">#212121</color>
<color name="colorSecondaryText">#727272</color>
<color name="colorIcons">#FFFFFF</color>
<color name="colorWhite">#FFFFFF</color>
<color name="colorDivider">#B6B6B6</color>
</resources>

NAV_HEADER_MAIN UPDATE

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


<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="190dp"
android:background="@drawable/isisesuainama"
android:orientation="vertical"
>

<de.hdodenhof.circleimageview.CircleImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/profile_image"
android:layout_width="70dp"
android:layout_height="70dp"
android:src="@drawable/isisendiri"
app:border_color="#FF0000"
android:layout_marginLeft="24dp"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginStart="24dp" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Comp. Sci. Tutorials"
android:textSize="14sp"
android:textColor="#FFF"
android:textStyle="bold"
android:gravity="left"
android:paddingBottom="4dp"
android:id="@+id/username"
android:layout_above="@+id/email"
android:layout_alignLeft="@+id/profile_image"
android:layout_alignStart="@+id/profile_image" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="[email protected]"
android:id="@+id/email"
android:gravity="left"
android:layout_marginBottom="8dp"
android:textSize="14sp"
android:textColor="#fff"
android:layout_alignParentBottom="true"
android:layout_alignLeft="@+id/username"
android:layout_alignStart="@+id/username" />

</RelativeLayout>

You might also like