Monday, September 7, 2015
Create a Compound Widget for Android Lollipop: Part 3
Create a class for my compound widget
This is the third in a four part article detailing the implementation of a compound widget for Android Lollipop. In this part I will implement a class to hold the code that defines my widget's behavior. I am going to start by implementing the minimum required to be able to use my widget in Android Studio's Design editor.
Create a Compound Widget for Android Lollipop: Part 2
Create a layout for a compound widget
This is the second in a four part article detailing the implementation of a compound widget for Android Lollipop. In this part I will implement the layout file for my widget. It will contain 4 sub widgets - 3 sliders to adjust the quantity of red, green, and blue in the color and a preview area to show the color.
The orange rectangle represents the preview area and the red, green, and blue bars represent their respective color sliders. The gray rectangles represent layout elements. The outer layout will be a horizontal LinearLayout. The inner layout will hold the three color sliders and be a vertical LinearLayout.
Create a Compound Widget for Android Lollipop: Part 1
This is the first in a four part article detailing the implementation of a compound widget for Android Lollipop. A compound widget is a widget that is made up of other preexisting widgets. Typically a compound widget will hide the properties those sub widgets usually expose and expose its own custom properties instead.
The example I am going to use is to recreate the classic color picker control. The first version of this I remember seeing was on the Commodore Amiga 30 years ago.
I am going to create a simplified version of this that will set one color.
The example I am going to use is to recreate the classic color picker control. The first version of this I remember seeing was on the Commodore Amiga 30 years ago.
Friday, August 21, 2015
A Simple Swift iOS App from Start to Finish - Implementing the Main View's code Part 1
Introduction
This is part of a series of articles describing the creation of a simple iOS app. A complete list of the articles is included in the first part A Simple Swift iOS App from Start to Finish - Introduction.
I have set up a web site for the finished app at http://DaysWithoutThings.com and you can download it free directly from the app store:
In this article I will begin implementing the code for the main view. I have set up a web site for the finished app at http://DaysWithoutThings.com and you can download it free directly from the app store:
Monday, August 17, 2015
A Simple Swift iOS App from Start to Finish - Creating the Edit View
Introduction
This is part of a series of articles describing the creation of a simple iOS app. A complete list of the articles is included in the first part A Simple Swift iOS App from Start to Finish - Introduction.
I have set up a web site for the finished app at http://DaysWithoutThings.com and you can download it free directly from the app store:
In this article I am going to create the Edit View for my app. This is the most complex view in the app. I have set up a web site for the finished app at http://DaysWithoutThings.com and you can download it free directly from the app store:
The steps involved in adding my Edit View are:
Add a new View to my storyboard.
Add a navigation Item to the new view.
Add a TextField control to hold the name of the thing being edited.
Add a Segmented control to represent whether the thing will be tracked for days with or days without.
Add labels to hold the current and record days for the thing.
Add a reset button.
Labels:
IB,
Interface Builder,
iOS,
iOS8,
Swift,
UILabel,
UISegmentedControl,
Xcode
Sunday, July 26, 2015
A Simple Swift iOS App from Start to Finish - Creating the List View
Introduction
This is part of a series of articles describing the creation of a simple iOS app. A complete list of the articles is included in the first part A Simple Swift iOS App from Start to Finish - Introduction.
I have set up a web site for the finished app at http://DaysWithoutThings.com and you can download it free directly from the app store:
I have set up a web site for the finished app at http://DaysWithoutThings.com and you can download it free directly from the app store:
In this article I am going to create my list view which will enable the user to add and remove 'things' from my app.
The steps involved are:
Add a new TableView to my storyboard.
Add a NavigationController to my storyboard.
Add a Tap Gesture to my main view.
Add a new TableViewController subclass for the new table view.
Subscribe to:
Posts (Atom)


