<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Ui on Micha Kops&#39; Tech Notes</title>
    <link>https://www.hascode.com/tags/ui/</link>
    <description>Recent content in Ui on Micha Kops&#39; Tech Notes</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>Copyright © 2010 - 2025 Micha Kops. #e9d956c0c0154a221ad83c925346a8fa0e72f866</copyright>
    <lastBuildDate>Sat, 03 Dec 2011 00:00:00 +0100</lastBuildDate>
    <atom:link href="https://www.hascode.com/tags/ui/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Writing Styles and Themes on Android</title>
      <link>https://www.hascode.com/writing-styles-and-themes-on-android/</link>
      <pubDate>Sat, 03 Dec 2011 00:00:00 +0100</pubDate>
      <guid>https://www.hascode.com/writing-styles-and-themes-on-android/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Using reusable styles and themes to modify an Android application’s look is really easy and helps to not violate thy DRY (don’t repeat yourself) principle by typing styles in every single UI element again and again.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In the following tutorial we’re going to write and apply some simple styles and a finally theme to a simple Android application.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The following environment is needed to follow this tutorial …&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;http://www.oracle.com/technetwork/java/javase/downloads/index.html&#34;&gt;Java Development Kit 6&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;http://developer.android.com/sdk/installing.html&#34;&gt;Android SDK&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;http://developer.android.com/sdk/installing.html#AddingComponents&#34;&gt;An AVM with at least Android 2.2 / API Version 8&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I recommend using &lt;a href=&#34;http://eclipse.org/&#34;&gt;Eclipse&lt;/a&gt; with the &lt;a href=&#34;http://developer.android.com/sdk/eclipse-adt.html&#34;&gt;ADT Plugin&lt;/a&gt; installed&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Android Widget Tutorial: Creating a screen-lock Widget in a few steps</title>
      <link>https://www.hascode.com/android-widget-tutorial-creating-a-screen-lock-widget-in-a-few-steps/</link>
      <pubDate>Thu, 06 Oct 2011 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/android-widget-tutorial-creating-a-screen-lock-widget-in-a-few-steps/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In today’s Android tutorial we’re going to take a look at Android’s Widget API and how to make a widget interact with a service using intents.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;widget-tutorial-logo2.png&#34; alt=&#34;widget tutorial logo2&#34;/&gt;
&lt;/div&gt;
&lt;div class=&#34;title&#34;&gt;Figure 1. hasCode Android Widget Tutorial Logo&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We’re going to create a fully functional application that allows us to enable or disable our smartphone’s screen lock settings using a widget that can be placed on our home screen.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Finally, I am going to show how to use a smartphone to test and debug our application and connect it to the IDE.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
