Sorry to bother but i'm new to this all as well. I've been looking through the androidmanifest.xml file like i was told and i thought i figured it out but got slightly confused.
This was my method below as well as the xmls i looked at you can just skip to the ** at the end if you don't like reading.
**I'm working with the calculator.apk**
androidmanifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest android:versionCode="8" android:versionName="2.2" package="com.android.calculator2"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8" />
<original-package android:name="com.android.calculator2" />
<application android:label="@string/app_name" android:icon="@drawable/icon">
<activity android:theme="@android:style/
Theme.Black.NoTitleBar" android:name="Calculator">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
So looking through the manifest i see the theme is Theme.Black.NoTitleBar (in bold) and it says style right before so i figure the theme is controlled by the styles.xml in the values folder inside the res folder correct?
I then go to the styles.xml
which looks like this
styles.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<style name="button_style">
<item name="android:textSize">40.0dip</item>
<item name="android:background">@drawable/button</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:layout_marginLeft">1.0dip</item>
<item name="android:layout_weight">1.0</item>
</style>
<style name="digit_button_style" parent="@style/button_style">
<item name="android:background">@drawable/blue_button</item>
</style>
<style name="button_small_style" parent="@style/button_style">
<item name="android:textSize">30.0dip</item>
</style>
<style name="display_style">
<item name="android:textSize">40.0dip</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:gravity">right|center</item>
<item name="android
adding">8.0dip</item>
<item name="android:scrollbars">none</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:maxLines">1</item>
<item name="android:scrollHorizontally">true</item>
</style>
</resources>
Looking at this i see the buttons are controlled by the button.xml and button_blue.xml (also in bold) which makes sense cause the buttons are blue and black and it says they're located in the drawable folder correct?
So i go to the drawable folder and find the two xml's it was talking about
Blue_button.xml
<?xml version="1.0" encoding="UTF-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#ff071622" android:endColor="#ff253541" android:angle="90.0" />
<corners android:radius="0.0dip" />
</shape>
Button.xml
<?xml version="1.0" encoding="UTF-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#ff000000" android:endColor="#ff333333" android:angle="90.0" />
<corners android:radius="0.0dip" />
</shape>Now looking at this is see the blue_button.xml has a start color and end color as well as the button.xml also makes sense cause they buttons seem to be darker at the bottom and lighter at the top on the stock calculator.apk
**So i figure this is finally what controls the button colors i take the start color for example in blue_button.xml which says it's #ff071622 and i figure it's hex form and the last two numbers represent transparency? so my color is ff0716 which then makes no sense because that's a bright red which the calculator obviously is not.
So i start thinking and i then say forget the first ff and use the 071622 which is a dark blue and looks like my calculator so i say bingo i found it so i change it to something ridiculous like 991622 which should be a red and i do the same for all the other start and end colors.
I then compile it sign it etc no errors and it goes through fine i put it on my phone and nothings changed!?!? so now i have no idea what's wrong and i go and play with everything for a few hours and i just can't get it. Can someone please help explain what i did wrong?**