<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Android_Studio%3A_Cara_Membuat_Android_Apps_9</id>
	<title>Android Studio: Cara Membuat Android Apps 9 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Android_Studio%3A_Cara_Membuat_Android_Apps_9"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_9&amp;action=history"/>
	<updated>2026-04-20T04:34:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_9&amp;diff=42703&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: In this part of my Android tutorial I will focus on Android Styles and Themes. A style specifies a collection of properties that specify how a widget looks. A theme is a series of styles t...</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_9&amp;diff=42703&amp;oldid=prev"/>
		<updated>2015-03-18T08:23:31Z</updated>

		<summary type="html">&lt;p&gt;New page: In this part of my Android tutorial I will focus on Android Styles and Themes. A style specifies a collection of properties that specify how a widget looks. A theme is a series of styles t...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In this part of my Android tutorial I will focus on Android Styles and Themes. A style specifies a collection of properties that specify how a widget looks. A theme is a series of styles that are applied to an Activity.&lt;br /&gt;
&lt;br /&gt;
We’ll make different styles for different versions of Android. We’ll create styles to apply to single and multiple widgets. We’ll cover inheriting styles, default themes, applying themes and much more.&lt;br /&gt;
&lt;br /&gt;
If you like videos like this it helps if you share it on Google Plus with a click here&lt;br /&gt;
&lt;br /&gt;
Here is the URL I mentioned in the video Android R.stylable&lt;br /&gt;
&lt;br /&gt;
Cheat Sheets From the Video&lt;br /&gt;
&lt;br /&gt;
AndroidManifest.xml&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;manifest xmlns:android=&amp;quot;http://schemas.android.com/apk/res/android&amp;quot;&lt;br /&gt;
    package=&amp;quot;com.newthinktank.derekbanas.androidthemes&amp;quot; &amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- android:theme=&amp;quot;@style/AppTheme&amp;quot; specifies the theme for the app --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;application&lt;br /&gt;
        android:allowBackup=&amp;quot;true&amp;quot;&lt;br /&gt;
        android:icon=&amp;quot;@drawable/ic_launcher&amp;quot;&lt;br /&gt;
        android:label=&amp;quot;@string/app_name&amp;quot;&lt;br /&gt;
        android:theme=&amp;quot;@style/AppTheme&amp;quot; &amp;gt;&lt;br /&gt;
        &amp;lt;activity&lt;br /&gt;
            android:name=&amp;quot;.MyActivity&amp;quot;&lt;br /&gt;
            android:label=&amp;quot;@string/app_name&amp;quot; &amp;gt;&lt;br /&gt;
            &amp;lt;intent-filter&amp;gt;&lt;br /&gt;
                &amp;lt;action android:name=&amp;quot;android.intent.action.MAIN&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                &amp;lt;category android:name=&amp;quot;android.intent.category.LAUNCHER&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/intent-filter&amp;gt;&lt;br /&gt;
        &amp;lt;/activity&amp;gt;&lt;br /&gt;
    &amp;lt;/application&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/manifest&amp;gt;&lt;br /&gt;
&lt;br /&gt;
values/styles.xml&lt;br /&gt;
&lt;br /&gt;
&amp;lt;resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Themes and styles allow you to separate your design from the content. This makes your app design consistent and easier to maintain.&lt;br /&gt;
&lt;br /&gt;
    A style is a collection of properties that specify how a widget looks.&lt;br /&gt;
&lt;br /&gt;
    A theme is a series of styles that are applied to an Activity or app&lt;br /&gt;
&lt;br /&gt;
    Built in Android Themes&lt;br /&gt;
    1. Theme.Light : Prior to Android 3.0&lt;br /&gt;
    2. Theme.Holo.Light : Introduced in Android API 11&lt;br /&gt;
    3. Theme.Holo.Light.DarkActionBar : Introduced in Android API 14&lt;br /&gt;
&lt;br /&gt;
    Android 4.0 included the action bar that can display buttons as well&lt;br /&gt;
&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Base application theme inherits the theme based on the Android API. --&amp;gt;&lt;br /&gt;
    &amp;lt;style name=&amp;quot;AppBaseTheme&amp;quot; parent=&amp;quot;android:Theme.Light&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- Customize your theme here. --&amp;gt;&lt;br /&gt;
    &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;style name=&amp;quot;AppTheme&amp;quot; parent=&amp;quot;AppBaseTheme&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;!-- Customizations that won&amp;#039;t be specific to any API go here --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
values-v11/styles.xml&lt;br /&gt;
&lt;br /&gt;
&amp;lt;resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Base application theme in values-v11. --&amp;gt;&lt;br /&gt;
    &amp;lt;style name=&amp;quot;AppBaseTheme&amp;quot; parent=&amp;quot;android:Theme.Holo.Light&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- Theme customization for Android API 11 - 13 --&amp;gt;&lt;br /&gt;
    &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
values-v14/styles.xml&lt;br /&gt;
&lt;br /&gt;
&amp;lt;resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- This is known as a style sheet which is a collection of styles that&lt;br /&gt;
    you can use in your application --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Base application theme in values-v14 --&amp;gt;&lt;br /&gt;
    &amp;lt;style name=&amp;quot;AppBaseTheme&amp;quot; parent=&amp;quot;android:Theme.Holo.Light.DarkActionBar&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- Theme customization for Android API 14+ --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;!-- http://developer.android.com/reference/android/R.styleable.html#Theme&lt;br /&gt;
        Provides a list of attributes you can override --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;!-- You can change the text color in all widgets across the whole app --&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:editTextColor&amp;quot;&amp;gt;#ffb62a23&amp;lt;/item&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:textColorPrimary&amp;quot;&amp;gt;#ffb62a23&amp;lt;/item&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:textColorSecondary&amp;quot;&amp;gt;#ffb62a23&amp;lt;/item&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:textColorTertiary&amp;quot;&amp;gt;#ffb62a23&amp;lt;/item&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:textColorPrimaryInverse&amp;quot;&amp;gt;#ffb62a23&amp;lt;/item&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:textColorSecondaryInverse&amp;quot;&amp;gt;#ffb62a23&amp;lt;/item&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:textColorTertiaryInverse&amp;quot;&amp;gt;#ffb62a23&amp;lt;/item&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;!-- You can change the background --&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:windowBackground&amp;quot;&amp;gt;#ffedeba6&amp;lt;/item&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;!-- Change the font family with API 16+&lt;br /&gt;
        android:fontFamily=&amp;quot;sans-serif&amp;quot;&lt;br /&gt;
        android:fontFamily=&amp;quot;sans-serif-light&amp;quot;&lt;br /&gt;
        android:fontFamily=&amp;quot;sans-serif-condensed&amp;quot;&lt;br /&gt;
        android:fontFamily=&amp;quot;sans-serif-thin&amp;quot; --&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:fontFamily&amp;quot;&amp;gt;sans-serif&amp;lt;/item&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:textStyle&amp;quot;&amp;gt;bold&amp;lt;/item&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;!-- More font stuff from URL above&lt;br /&gt;
        android:fontFamily	 Font family (named by string) for the text.&lt;br /&gt;
        android:shadowColor	 Place a shadow of the specified color behind the text.&lt;br /&gt;
        android:shadowDx	 Horizontal offset of the shadow.&lt;br /&gt;
        android:shadowDy	 Vertical offset of the shadow.&lt;br /&gt;
        android:shadowRadius	 Radius of the shadow.&lt;br /&gt;
        android:textAllCaps	 Present the text in ALL CAPS.&lt;br /&gt;
        android:textColor	 Text color.&lt;br /&gt;
        android:textColorHighlight	 Color of the text selection highlight.&lt;br /&gt;
        android:textColorHint	 Color of the hint text.&lt;br /&gt;
        android:textColorLink	 Color of the links.&lt;br /&gt;
        android:textSize	 Size of the text.&lt;br /&gt;
        android:textStyle	 Style (bold, italic, bolditalic) for the text.&lt;br /&gt;
        android:typeface	 Typeface (normal, sans, serif, monospace) for the text.&lt;br /&gt;
        --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- You can define styles for single widgets. You can then assign that style to the&lt;br /&gt;
     element in activity_my.xml with style=&amp;quot;@style/TextView&amp;quot; for example --&amp;gt;&lt;br /&gt;
    &amp;lt;style name=&amp;quot;TextView1&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:textSize&amp;quot;&amp;gt;30sp&amp;lt;/item&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:textStyle&amp;quot;&amp;gt;bold&amp;lt;/item&amp;gt;&lt;br /&gt;
    &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- You can inherit a style you defined as well. You can also override parts.&lt;br /&gt;
     You can&amp;#039;t do this with Android styles, but only with yours. --&amp;gt;&lt;br /&gt;
    &amp;lt;style name=&amp;quot;EditText&amp;quot; parent=&amp;quot;@style/TextView1&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:textStyle&amp;quot;&amp;gt;normal&amp;lt;/item&amp;gt;&lt;br /&gt;
    &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- You can both inherit and add to a style as well --&amp;gt;&lt;br /&gt;
    &amp;lt;style name=&amp;quot;TextView1.TextView2&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:padding&amp;quot;&amp;gt;30dp&amp;lt;/item&amp;gt;&lt;br /&gt;
    &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- You just keep adding periods to add to additional styles --&amp;gt;&lt;br /&gt;
    &amp;lt;style name=&amp;quot;TextView1.TextView2.TextView3&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:layout_marginTop&amp;quot;&amp;gt;15dp&amp;lt;/item&amp;gt;&lt;br /&gt;
    &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- You can also define styles that are applied automatically without needing&lt;br /&gt;
    to define style in activity_my by overriding settings&lt;br /&gt;
     --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    &amp;lt;style name=&amp;quot;TextView&amp;quot; parent=&amp;quot;@android:style/Widget.TextView&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:textSize&amp;quot;&amp;gt;55sp&amp;lt;/item&amp;gt;&lt;br /&gt;
        &amp;lt;item name=&amp;quot;android:textStyle&amp;quot;&amp;gt;bold&amp;lt;/item&amp;gt;&lt;br /&gt;
    &amp;lt;/style&amp;gt;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- In the graphical layout you can try different default themes&lt;br /&gt;
    by clicking on the Theme button&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
activity_my.xml&lt;br /&gt;
&lt;br /&gt;
&amp;lt;RelativeLayout xmlns:android=&amp;quot;http://schemas.android.com/apk/res/android&amp;quot;&lt;br /&gt;
    xmlns:tools=&amp;quot;http://schemas.android.com/tools&amp;quot;&lt;br /&gt;
    android:layout_width=&amp;quot;match_parent&amp;quot;&lt;br /&gt;
    android:layout_height=&amp;quot;match_parent&amp;quot;&lt;br /&gt;
    android:paddingLeft=&amp;quot;@dimen/activity_horizontal_margin&amp;quot;&lt;br /&gt;
    android:paddingRight=&amp;quot;@dimen/activity_horizontal_margin&amp;quot;&lt;br /&gt;
    android:paddingTop=&amp;quot;@dimen/activity_vertical_margin&amp;quot;&lt;br /&gt;
    android:paddingBottom=&amp;quot;@dimen/activity_vertical_margin&amp;quot;&lt;br /&gt;
    tools:context=&amp;quot;.MyActivity&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;TextView&lt;br /&gt;
        android:text=&amp;quot;@string/hello_world&amp;quot;&lt;br /&gt;
        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
        style=&amp;quot;@style/TextView1&amp;quot;&lt;br /&gt;
        android:id=&amp;quot;@+id/textView1&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;EditText&lt;br /&gt;
        android:layout_width=&amp;quot;match_parent&amp;quot;&lt;br /&gt;
        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
        android:id=&amp;quot;@+id/editText&amp;quot;&lt;br /&gt;
        android:text=&amp;quot;Enter Here&amp;quot;&lt;br /&gt;
        style=&amp;quot;@style/EditText&amp;quot;&lt;br /&gt;
        android:layout_below=&amp;quot;@+id/textView3&amp;quot;&lt;br /&gt;
        android:layout_alignParentLeft=&amp;quot;true&amp;quot;&lt;br /&gt;
        android:layout_alignParentStart=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;TextView&lt;br /&gt;
        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
        android:text=&amp;quot;New Text&amp;quot;&lt;br /&gt;
        android:id=&amp;quot;@+id/textView2&amp;quot;&lt;br /&gt;
        android:layout_below=&amp;quot;@+id/editText&amp;quot;&lt;br /&gt;
        android:layout_alignParentLeft=&amp;quot;true&amp;quot;&lt;br /&gt;
        android:layout_alignParentStart=&amp;quot;true&amp;quot;&lt;br /&gt;
        style=&amp;quot;@style/TextView1.TextView2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;TextView&lt;br /&gt;
        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
        android:text=&amp;quot;New Text&amp;quot;&lt;br /&gt;
        android:id=&amp;quot;@+id/textView3&amp;quot;&lt;br /&gt;
        android:layout_below=&amp;quot;@+id/textView4&amp;quot;&lt;br /&gt;
        android:layout_alignParentLeft=&amp;quot;true&amp;quot;&lt;br /&gt;
        android:layout_alignParentStart=&amp;quot;true&amp;quot;&lt;br /&gt;
        style=&amp;quot;@style/TextView1.TextView2.TextView3&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;Button&lt;br /&gt;
        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
        android:text=&amp;quot;New Button&amp;quot;&lt;br /&gt;
        android:id=&amp;quot;@+id/button&amp;quot;&lt;br /&gt;
        android:layout_below=&amp;quot;@+id/textView5&amp;quot;&lt;br /&gt;
        android:layout_alignParentLeft=&amp;quot;true&amp;quot;&lt;br /&gt;
        android:layout_alignParentStart=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/RelativeLayout&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- See more at: http://www.newthinktank.com/2014/07/make-android-apps-9/#sthash.rIHfyDXM.dpuf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://www.newthinktank.com/2014/07/make-android-apps-9/&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>