janh / NokiaXTheme

Sample application showing how to add a custom theme for Nokia devices to an Android app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom theme on Nokia X

This app project shows how to add a custom theme for the Nokia X platform to an Android application. The theme is chosen at runtime depending on the device the app runs on, so you can use a single codebase to target Nokia X and other Android devices.

The included themes are designed to be implementable in most apps, as they focus mainly on the action bar and reuse the default Android themes otherwise. The app implements dark and light themes, as well as a light theme with dark action bar. You can switch between these by uncommenting the corresponding lines in Helpers.java.

The source files for the used images are availabel in the assets folder. You can also find versions of the three themes for the action bar compatibility library in there.

For instructions, see http://developer.nokia.com/community/wiki/Custom_theme_on_Nokia_X.

License

Copyright 2014 Jan Hoffmann

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Sample application showing how to add a custom theme for Nokia devices to an Android app.

License:Apache License 2.0


Languages

Language:Java 100.0%