Monday, September 28, 2015

A Simple Swift iOS App from Start to Finish - Implementing the Main View's code Part 2

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 finish implementing the code for the main view. There are two parts left to implement. Firstly I need to implement the methods that will set up the display and secondly I need to implement the methods that will react to swipe gestures.

Sunday, September 13, 2015

A Simple Swift iOS App from Start to Finish - Implementing the Edit View's Code

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 be implementing the code for the Edit View. The Edit View will be used for two purposes within my app. Firstly, when a new thing is added to the List View the Edit View will be opened automatically to enable the user to edit the characteristics of the new thing. Secondly, the Edit View will be opened when the user selects an existing thing within the List View.

Friday, September 11, 2015

A Simple Swift iOS App from Start to Finish - Implementing the List View's code

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 be implementing the basic list view methods to do the following:1. Adding  new  things.
2. Listing all the things that have been defined.
3. Deleting things from the list.

Monday, September 7, 2015

Create a Compound Widget for Android Lollipop: Part 4

Integrate a custom widget

This is the fourth in a four part article detailing the implementation of a compound widget for Android Lollipop. In this part I will implement my widget's programming and design interfaces.

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.