{"id":82118,"date":"2021-07-15T09:00:22","date_gmt":"2021-07-15T03:30:22","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=82118"},"modified":"2021-07-15T09:00:22","modified_gmt":"2021-07-15T03:30:22","slug":"android-styles-themes","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/","title":{"rendered":"Android Styles And Themes"},"content":{"rendered":"<p>In this article, we are going to cover Android Styles and Themes. Android, as we know, provides features to customize your application look. To do so, we need to understand what styles and themes are in Android.<\/p>\n<h3>Styles and Themes in Android<\/h3>\n<p>Styles are several parameters: font, color, background, margin, text size, text style, etc. Using a combination of these properties, you can create your style and apply that style to a UI component or the whole layout.<\/p>\n<p>Themes are nothing but a standardized type of style that is followed throughout the application. Your view or layout or even the non-view elements will follow the same theme throughout.<\/p>\n<p>So understanding both the concepts and their implementation is our goal through this article. Let&#8217;s start!!!<\/p>\n<h3>What is Android Style?<\/h3>\n<p>Android-style is a set of all attributes that are applied to view elements. The following are some of the common characteristics that are used to style an element.<\/p>\n<ul>\n<li>Font<\/li>\n<li>Background<\/li>\n<li>Margin<\/li>\n<li>Padding<\/li>\n<li>Text Size<\/li>\n<li>Text Style<\/li>\n<\/ul>\n<p>To create a style for some specific UI element, you can follow the below steps:<\/p>\n<p><strong>1:<\/strong> First, go to your Project Structure\u2014select res and then select values. Now here, you need to open the themes.xml. (res&#8212;-&gt;values&#8212;&#8211;&gt;themes.xml)<\/p>\n<p><strong>2:<\/strong> The root tag of the XML file is &lt;resources&gt;. In this, you need to create a &lt;style&gt; tag.<\/p>\n<p><strong>3:<\/strong> Now, you need to keep a name attribute to the style tag. It helps you in identifying the style uniquely.<\/p>\n<p><strong>4:<\/strong> Now, you just need to use the &lt;item&gt; tag to define each attribute. You should keep a value that is acceptable by that specific attribute.<\/p>\n<p><strong>For example<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;resources&gt;\n    &lt;style name=\u201dMyTextViewStyle\"&gt;\n      &lt;item name=\"android:layout_width\"&gt;wrap_content&lt;\/item&gt;\n      &lt;item name=\"android:layout_height\"&gt;wrap_content&lt;\/item&gt;\n      &lt;item name=\"android:textColor\"&gt;#960959&lt;\/item&gt;\n      &lt;item name=\"android:textSize\"&gt;40sp&lt;\/item&gt;\n      &lt;item name=\"android:textStyle\"&gt;italic&lt;\/item&gt;\n      &lt;item name=\"android:textAllCaps\"&gt;true&lt;\/item&gt;\n    &lt;\/style&gt;\n&lt;\/resources&gt;<\/pre>\n<h3>How to use Android Style?<\/h3>\n<p>The style you defined in your styles.xml file can be used by the elements present in your layout XML file. For this, you need to open your layout XML file and then use the style attribute to call your defined style. After doing so, your element will follow that style.<\/p>\n<p>Below is an implementation of the same.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n   android:layout_width=\"match_parent\"\n   android:layout_height=\"match_parent\"\n   android:orientation=\"vertical\" &gt;\n&lt;TextView\n    android:id=\"@+id\/techVidvanTitle\u201d\n    style=\"@style\/MyTextViewStyle\"\n    android:text=\"Tech Vidvan\"\/&gt;\n&lt;\/LinearLayout&gt;<\/pre>\n<h3>Android Style Inheritance<\/h3>\n<p>In Android, you get a feature to inherit properties from an existing theme and then override some attributes. The process is similar to how we inherit a CSS file in our HTML file and override some of the features.<br \/>\nYou can easily do the same by using the parent tag in your style tag.<\/p>\n<p>Below is an example that will help you to do the same.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;resources&gt;\n   &lt;style name=\"MyTextViewStyle\" parent=\"android:style\/Theme\"&gt;\n   &lt;item name=\"android:textSize\"&gt;40sp&lt;\/item&gt;\n   &lt;item name=\"android:textColor\"&gt;#960959&lt;\/item&gt;\n&lt;!-- you can add other required attributes here--&gt; \n   &lt;\/style&gt;\n&lt;\/resources&gt;\n<\/pre>\n<p>So, here we are, inheriting properties from an exciting style called a Theme. Then, we are altering a few of the attributes based on our needs.<\/p>\n<p>Now, you can similarly implement the above style how we did before.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n   android:layout_width=\"match_parent\"\n   android:layout_height=\"match_parent\"\n   android:orientation=\"vertical\" &gt;\n&lt;TextView\n    android:id=\"@+id\/techVidvanTitle\u201d\n    style=\"@style\/MyTextViewStyle\"\n    android:text=\"Tech Vidvan\"\/&gt;\n&lt;\/LinearLayout&gt;<\/pre>\n<h3>What is Android Theme?<\/h3>\n<p>Android Theme is a standardized type of style that is applied throughout the application. Themes are restricted to the view elements and can also be used for non-view elements like app bar, status bar, etc.<\/p>\n<p>Every UI element present inside the application should follow the parent theme that is applied to the application.<\/p>\n<p>You can easily create your theme by following the below steps:<br \/>\n<strong>Step 1:<\/strong> First, go to your Project Structure. Select res and then select values. Now here, you need to open the themes.xml. (res&#8212;-&gt;values&#8212;&#8211;&gt;themes.xml)<\/p>\n<p><strong>Step 2:<\/strong> Now, you need to create a new style, give it a name and define the attributes you need.<\/p>\n<p><strong>For example<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;resources xmlns:tools=\"http:\/\/schemas.android.com\/tools\"&gt;\n    &lt;!-- Your own customized application theme. --&gt;\n    &lt;style name=\"Theme.TechVidvanThemes\" parent=\"Theme.MaterialComponents.DayNight.DarkActionBar\"&gt;\n        &lt;!-- Customize your theme here. --&gt;\n        &lt;!-- Your application's Primary brand color. --&gt;\n        &lt;item name=\"colorPrimary\"&gt;@color\/my_green&lt;\/item&gt;\n        &lt;item name=\"colorPrimaryVariant\"&gt;@color\/my_green&lt;\/item&gt;\n        &lt;item name=\"colorOnPrimary\"&gt;@color\/black&lt;\/item&gt;\n        &lt;!-- Your application's Secondary brand color. --&gt;\n        &lt;item name=\"colorSecondary\"&gt;@color\/my_orange&lt;\/item&gt;\n        &lt;item name=\"colorSecondaryVariant\"&gt;@color\/my_yellow&lt;\/item&gt;\n        &lt;item name=\"colorOnSecondary\"&gt;@color\/black&lt;\/item&gt;\n        &lt;!-- Your Status bar color. --&gt;\n        &lt;item name=\"android:statusBarColor\" tools:targetApi=\"l\"&gt;?attr\/colorPrimaryVariant&lt;\/item&gt;\n        &lt;!-- Customize your window action bar color--&gt;\n        &lt;item name=\"windowActionBar\"&gt;@color\/my_red&lt;\/item&gt;\n    &lt;\/style&gt;\n&lt;\/resources&gt;\n<\/pre>\n<h3><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/07\/App_Output1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82775\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/07\/App_Output1.jpg\" alt=\"Android Style\" width=\"1080\" height=\"2280\" \/><\/a><\/h3>\n<h3><\/h3>\n<h3>Implementation of Android Styles and Themes<\/h3>\n<p>I hope you understood what is meant by style and theme. Now is the time to take those concepts into practice. Below you can find several steps that will help to create your custom theme for the application.<\/p>\n<p>Also, you will understand how to apply your designed theme and styles in your application.<\/p>\n<p><strong>Step 1:<\/strong> Open your Android Studio and click on Create a New Project.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/07\/Implementation_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82777\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/07\/Implementation_1.png\" alt=\"Android Project\" width=\"1163\" height=\"677\" \/><\/a><\/p>\n<p><strong>Step 2:<\/strong> Select Empty Activity and proceed.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/07\/Implementation_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82778\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/07\/Implementation_2.png\" alt=\"Android Activity\" width=\"1245\" height=\"952\" \/><\/a><\/p>\n<p><strong>Step 3:<\/strong> Enter your application name. In my case, it\u2019s \u201cTechVidvanThemes.\u201d Next, select Kotlin from the dropdown. For the API level, select API 22 for now.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/07\/Implementation_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82779\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/07\/Implementation_3.png\" alt=\"Android Projects\" width=\"1256\" height=\"932\" \/><\/a><\/p>\n<p><strong>Step 4:<\/strong> Now go to res &#8212;&gt; values &#8212;-&gt; and open colors.xml. Now here, you can add your custom colors which you may require in the project. You can paste the below code in your colors.xml file.<\/p>\n<p><strong>Code: colors.xml<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n&lt;resources&gt;\n    &lt;color name=\"purple_200\"&gt;#FFBB86FC&lt;\/color&gt;\n    &lt;color name=\"purple_500\"&gt;#FF6200EE&lt;\/color&gt;\n    &lt;color name=\"purple_700\"&gt;#FF3700B3&lt;\/color&gt;\n    &lt;color name=\"teal_200\"&gt;#FF03DAC5&lt;\/color&gt;\n    &lt;color name=\"teal_700\"&gt;#FF018786&lt;\/color&gt;\n    &lt;color name=\"black\"&gt;#FF000000&lt;\/color&gt;\n    &lt;color name=\"white\"&gt;#FFFFFFFF&lt;\/color&gt;\n\n    &lt;!-- Adding my own colors below--&gt;\n    &lt;color name=\"my_red\"&gt;#F44336&lt;\/color&gt;\n    &lt;color name=\"my_orange\"&gt;#FF5722&lt;\/color&gt;\n    &lt;color name=\"my_green\"&gt;#4CAF50&lt;\/color&gt;\n    &lt;color name=\"my_yellow\"&gt;#FFEB3B&lt;\/color&gt;\n&lt;\/resources&gt;\n<\/pre>\n<p><strong>Step 5:<\/strong> Now go to res &#8212;&gt; values &#8212;-&gt; and open themes.xml. Now here, you need to create your custom style and theme. You can paste the below code in your themes.xml file.<\/p>\n<p><strong>Code: themes.xml<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;resources xmlns:tools=\"http:\/\/schemas.android.com\/tools\"&gt;\n    &lt;!-- Your own customized application theme. --&gt;\n    &lt;style name=\"Theme.TechVidvanThemes\" parent=\"Theme.MaterialComponents.DayNight.DarkActionBar\"&gt;\n        &lt;!-- Customize your theme here. --&gt;\n        &lt;!-- Your application's Primary brand color. --&gt;\n        &lt;item name=\"colorPrimary\"&gt;@color\/my_green&lt;\/item&gt;\n        &lt;item name=\"colorPrimaryVariant\"&gt;@color\/my_green&lt;\/item&gt;\n        &lt;item name=\"colorOnPrimary\"&gt;@color\/black&lt;\/item&gt;\n        &lt;!-- Your application's Secondary brand color. --&gt;\n        &lt;item name=\"colorSecondary\"&gt;@color\/my_orange&lt;\/item&gt;\n        &lt;item name=\"colorSecondaryVariant\"&gt;@color\/my_yellow&lt;\/item&gt;\n        &lt;item name=\"colorOnSecondary\"&gt;@color\/black&lt;\/item&gt;\n        &lt;!-- Your Status bar color. --&gt;\n        &lt;item name=\"android:statusBarColor\" tools:targetApi=\"l\"&gt;?attr\/colorPrimaryVariant&lt;\/item&gt;\n        &lt;!-- Customize your window action bar color--&gt;\n        &lt;item name=\"windowActionBar\"&gt;@color\/my_red&lt;\/item&gt;\n    &lt;\/style&gt;\n\n\n    &lt;!-- Creating a custom style for my text view--&gt;\n\n    &lt;style name=\"MyTextViewStyle\"&gt;\n        &lt;item name=\"android:layout_width\"&gt;wrap_content&lt;\/item&gt;\n        &lt;item name=\"android:layout_height\"&gt;wrap_content&lt;\/item&gt;\n        &lt;item name=\"android:textColor\"&gt;#960959&lt;\/item&gt;\n        &lt;item name=\"android:textSize\"&gt;30sp&lt;\/item&gt;\n        &lt;item name=\"android:textStyle\"&gt;italic&lt;\/item&gt;\n        &lt;item name=\"android:textAllCaps\"&gt;true&lt;\/item&gt;\n        &lt;item name=\"android:gravity\"&gt;center&lt;\/item&gt;\n    &lt;\/style&gt;\n\n&lt;\/resources&gt;<\/pre>\n<p><strong>Step 6:<\/strong> Now go to res &#8212;&gt; layout &#8212;-&gt; and open activity_main.xml. Now, you need to add a text view here. You can paste the below code in your activity_main.xml file.<\/p>\n<p><strong>Code: activity_main.xml<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n    xmlns:app=\"http:\/\/schemas.android.com\/apk\/res-auto\"\n    xmlns:tools=\"http:\/\/schemas.android.com\/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:theme=\"@style\/Theme.TechVidvanThemes\"\n    android:background=\"@color\/my_yellow\"\n    tools:context=\".MainActivity\"&gt;\n\n    &lt;TextView\n        style=\"@style\/MyTextViewStyle\"\n        android:text=\"Tech Vidvan Styles and Themes\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintLeft_toLeftOf=\"parent\"\n        app:layout_constraintRight_toRightOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\" \/&gt;\n\n&lt;\/androidx.constraintlayout.widget.ConstraintLayout&gt;\n<\/pre>\n<p>So, this completes your application. You need not make any changes to your MainActivity file. Just go ahead and run your application.<\/p>\n<p>Your application would like as follows:<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/07\/App_Output.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82776\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/07\/App_Output.jpg\" alt=\"Android Themes\" width=\"1080\" height=\"2280\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>Through this article, you understood what is meant by android style and theme. You understood the difference between the two and also understood its impact on the android dev element.<\/p>\n<p>Moving forth, you understood how you could create your custom style and apply it to specific UI elements. Finally, you saw a demo application to implement both Android Styles and themes in your project.<\/p>\n<p>I hope you would create your themes and would showcase them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we are going to cover Android Styles and Themes. Android, as we know, provides features to customize your application look. To do so, we need to understand what styles and themes&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":82773,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2791],"tags":[3788,3789],"class_list":["post-82118","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","tag-android-styles","tag-android-themes"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Android Styles And Themes - TechVidvan<\/title>\n<meta name=\"description\" content=\"Learn what is android style and theme. Learn thedifference between them and also understand its impact on the android dev element.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android Styles And Themes - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Learn what is android style and theme. Learn thedifference between them and also understand its impact on the android dev element.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-15T03:30:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Android-Styles-and-Themes.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android Styles And Themes - TechVidvan","description":"Learn what is android style and theme. Learn thedifference between them and also understand its impact on the android dev element.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/","og_locale":"en_US","og_type":"article","og_title":"Android Styles And Themes - TechVidvan","og_description":"Learn what is android style and theme. Learn thedifference between them and also understand its impact on the android dev element.","og_url":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-07-15T03:30:22+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Android-Styles-and-Themes.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Android Styles And Themes","datePublished":"2021-07-15T03:30:22+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/"},"wordCount":897,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Android-Styles-and-Themes.jpg","keywords":["Android Styles","Android Themes"],"articleSection":["Android Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/","url":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/","name":"Android Styles And Themes - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Android-Styles-and-Themes.jpg","datePublished":"2021-07-15T03:30:22+00:00","description":"Learn what is android style and theme. Learn thedifference between them and also understand its impact on the android dev element.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Android-Styles-and-Themes.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Android-Styles-and-Themes.jpg","width":1200,"height":628,"caption":"Android Styles and Themes"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/android-styles-themes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Android Styles And Themes"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/82118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=82118"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/82118\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/82773"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=82118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=82118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=82118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}