How can I find the default colors for a given Android theme?

advertisements

I am using the AppCompat.NoActionBar theme. I'd like to know how to find the default colors for EditText lines and the Titles in DialogFragments. These defaults look like a teal color and I am also wondering if they are the same color or different. Is there an Android resource that lists out default colors by platform version?

Here is the themes.xml:

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

<style name="AppTheme" parent="AppTheme.Base"/>

<style name="AppTheme.Base" parent="Theme.AppCompat.NoActionBar" >

    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimary</item>
    <item name="android:windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
    <item name="android:windowDisablePreview">true</item>

</style>

    <style name="FloatingLabel" parent="@android:style/TextAppearance" >
    <item name="android:textColor">@color/colorFlLabelActivated</item>
</style>

...

Manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example..." >

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:theme="@style/AppTheme" >

    <activity
        android:name="com.example..."
         >

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <activity
        android:name="com.example..."
        android:windowSoftInputMode="stateVisible|adjustResize"
         />
    </activity>

</application>

colors.xml:

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

<color name="colorPrimary">#357EC7</color>
<color name="colorHint">#C0C0C0</color>
<color name="colorFlLabelActivated">#357EC7</color>

</resources>


goto to your android sdk and follow the path \sdk\platforms\android-22\data\res\values\colors.xml this contains the color code for all the items of the default theme

platform android-22 folder name can be different depending upon which platform tools you have installed for your sdk