I am a beginner ,and wanted to develop an app please help
How to set app icon and apply customized theme using AIDE
Setting your app’s icon is a bit easy. Add an icon to either drawable or mipmap folder and then in manifest:
<application
android:name=".MyApp"
android:allowBackup=“true”
android:icon="@mipmap/my_icon"
Customizing your theme: in styles.xml
<style name="ThemeBaseLight" parent="Theme.AppCompat.Light">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="android:windowBackground">@color/window_background</item>
<item name="accentColor">@color/colorAccent</item>
</style>
Then add the colors to the colors.xml
<color name="window_background">#F1F1F1</color>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#F50057</color>
Then in manifest, apply this style
<application
android:name=".MyApp"
android:allowBackup=“true”
android:icon="@mipmap/my_icon"
android:theme="@style/ThemeBaseLight"
Thank you v. Much for your help.
I am facing error in styles.xml file
Will you please help me in this
Add the appcompat library to your app module’s build.gradle
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.+'
}
Your screenshot also says there is an error in the colors xml file. Identify the error and remove it. In your case, it might be an extra > somewhere.
Thanks again for your help.
sir thx for the help btw can you say us that where to make colors.xml file
Escríbeme al WhatsApp +53 51810305. Y te ayudaré aprovechar AIDE al máximo