<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Umeh Michael </title>
    <description>The latest articles on DEV Community by Umeh Michael  (@michaelzy27).</description>
    <link>https://dev.to/michaelzy27</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F408977%2F9dc2d6c6-3f06-41b4-a13c-8d72822b6b9f.jpg</url>
      <title>DEV Community: Umeh Michael </title>
      <link>https://dev.to/michaelzy27</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/michaelzy27"/>
    <language>en</language>
    <item>
      <title>Android Theme in Android Studio</title>
      <dc:creator>Umeh Michael </dc:creator>
      <pubDate>Fri, 21 Aug 2020 17:18:17 +0000</pubDate>
      <link>https://dev.to/michaelzy27/android-theme-in-android-studio-40pb</link>
      <guid>https://dev.to/michaelzy27/android-theme-in-android-studio-40pb</guid>
      <description>&lt;p&gt;Personalizing your app's theme is another way to greatly improve your app and improve user experience. &lt;/p&gt;

&lt;p&gt;Applications usually have a unique color combination or font that makes it different and who says yours can't?&lt;/p&gt;

&lt;p&gt;Making an app theme can be done in a few easy steps which starts with you picking a color combination and font to use in your app. You can get creative and pick these or consult someone experienced if you want something professional.&lt;/p&gt;

&lt;p&gt;The theme of your app is controlled from your app's manifest. The theme is chosen on both application and activity level. Each activity uses its specific theme as defined in the manifest. Activities without themes use the app-level theme. I'll be guiding you through the process of customizing your app theme in the easiest way possible. &lt;/p&gt;

&lt;p&gt;Android Studio previously had its own "Theme Editor" which allowed you preview themes and changes made to it (Cool right?...but it was scrapped in v3.3&lt;/p&gt;

&lt;p&gt;In manifest, you'll notice that the default app theme should be something like this: "AppTheme". This theme is contained in &lt;code&gt;res/values/styles&lt;/code&gt;. You can also create a new theme but its preferable to simply edit the default one. &lt;/p&gt;

&lt;p&gt;Looking at &lt;code&gt;AppTheme&lt;/code&gt; you'll notice three distinct items:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;colorPrimary: This is the main color of the app and is used in more visible views like the toolbar, status bar, etc. Basically this should be the &lt;strong&gt;primary&lt;/strong&gt; color your app will be associated. Go ahead to change the color to your preferred color which could be hard coded (RGB value) or point to a color resource. It is advisable to use color resources for good practice. Below is an example of the colorPrimary item:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;(points to a color resource)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;item name="colorPrimary"&amp;gt;@color/colorPrimary&amp;lt;/item&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(hard coded)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;item name="colorPrimary"&amp;gt;#3913B8&amp;lt;/item&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;colorPrimaryDark: This is a dark variant of the Primary color. In most cases it could literally be a slightly darker color variant of the primary while others like to make it something different from the primary but it easily associated and blends in with the primary color.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;(points to a color resource)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;item name="colorPrimaryDark"&amp;gt;@color/colorPrimaryDark&amp;lt;/item&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(hard coded)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;item name="colorPrimaryDark"&amp;gt;#2600A5&amp;lt;/item&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;colorAccent: This is intended to be a bright compliment to the primary and dark colors. Usually something shiny and attractive. This color, by default, appears in buttons and texts like the floating action button.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;(points to a color resource)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;item name="colorAccent"&amp;gt;@color/colorAccent&amp;lt;/item&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(hard coded)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;item name="colorAccent"&amp;gt;#E64513&amp;lt;/item&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A combination of these three colors can be enough to make your app look perfect but feel free to add as many colors as you need.&lt;/p&gt;

&lt;p&gt;You could set styles of basically anything ranging from EditTexts to line spacing of texts under the theme and can customize themes specific to activities. You can assign themes to activities in the manifest by adding the &lt;code&gt;android:theme="@style/yourThemeHere" /&amp;gt;&lt;/code&gt; tag under the activity. Activities without specific themes use the app level theme.&lt;/p&gt;

&lt;p&gt;Below is an example of and EditText item in the app theme that gives all EditTexts in the app a dark text color and a light blue hint color by calling "TextEditStyle" as its style.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;item name="editTextStyle"&amp;gt;@style/TextEditStyle&amp;lt;/item&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Property of the "TextEditStyle"&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;style name="TextEditStyle" parent="Widget.AppCompat.EditText"&amp;gt;
        &amp;lt;item name="android:textColor"&amp;gt;@android:color/holo_green_dark&amp;lt;/item&amp;gt;
        &amp;lt;item name="android:textColorHint"&amp;gt;@android:color/holo_blue_bright&amp;lt;/item&amp;gt;
    &amp;lt;/style&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Feel free to explore all theme items to know what will be useful to make your app more attractive than it already is. I hope this helped! Please leave a like and have a good day!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Beggining my #100DaysOfGADS2020 journey</title>
      <dc:creator>Umeh Michael </dc:creator>
      <pubDate>Sun, 14 Jun 2020 21:03:21 +0000</pubDate>
      <link>https://dev.to/michaelzy27/beggining-my-100daysofgads2020-journey-de0</link>
      <guid>https://dev.to/michaelzy27/beggining-my-100daysofgads2020-journey-de0</guid>
      <description>&lt;p&gt;Day 1 of #100DAYSOFGADS2020 : &lt;br&gt;
I got accepted into the program and I so happy. I mostly used this day to get acquinted to the slack workspace and make new friends. Hope this improves me greatly.&lt;/p&gt;

&lt;p&gt;Day 2 of #100DAYSOFGADS2020 : &lt;br&gt;
Didn't really do much today. Went through the courses given to us and kind of revised basic programming functions. Most of what I watched are things I already know but I guess it doesn't hurt to learn it again.&lt;/p&gt;

&lt;p&gt;Day 3, 4 &amp;amp; 5 of #100DAYSOFGADS2020 : &lt;br&gt;
I managed to go through some courses which contain things I already know but turns out I really do not know much. I Learnt more about Android Studio. THings like Refactor, debug (using break point) etc are tools that I have never really used well in Android Studio but I am learning to now. I now prefer debug instead of run (which i use every single time). Also I learnt the different methods of the Logcat and how it can be used (and that you can right-click to clear the Logcat). Also learnt more about the Gradle files and how I can &lt;br&gt;
manipulate it to get what I want. Guess it's not bad to "start afresh"&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
