Skip to content

Commit

Permalink
Added more Android support.
Browse files Browse the repository at this point in the history
  • Loading branch information
wnielson committed Mar 27, 2012
1 parent d06c851 commit 74d7ab2
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 10 deletions.
1 change: 1 addition & 0 deletions .senchasdk
@@ -0,0 +1 @@
./sdk
13 changes: 12 additions & 1 deletion README
Expand Up @@ -35,4 +35,15 @@ To build the example you need to put Sencha Touch into a folder named sdk. Then

./sdk/commands/sencha app build -e testing

This will produce the example app in the `build/testing` directory.
This will produce the example app in the `build/testing` directory.


Notes
-----

So far this has been tested on:

* iOS 5
* Android 4.0.3
* Android 2.3.3

2 changes: 1 addition & 1 deletion app.js
Expand Up @@ -9,7 +9,7 @@ Ext.application({
name: 'SlideNavigationExample',

requires: [
'Ext.MessageBox',
'Ext.Msg'
],

views: [
Expand Down
8 changes: 8 additions & 0 deletions app/view/Main.js
@@ -1,6 +1,14 @@
Ext.define("SlideNavigationExample.view.Main", {
extend: 'Ext.ux.slidenavigation.View',

requires: [
'Ext.Container',
'Ext.MessageBox',
'Ext.Panel',
'Ext.Toolbar',
'Ext.event.publisher.Dom'
],

config: {
fullscreen: true,

Expand Down
1 change: 0 additions & 1 deletion archive/app.js/7cb277b7aa359d7497f62b3687cc415aec8a4da0

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -5,7 +5,7 @@
<title>SlideNavigationExample</title>

<!-- Android debug -->
<!--<script src="http://10.0.2.2:8080/target/target-script-min.js#anonymous"></script>-->
<script src="http://10.0.2.2:8080/target/target-script-min.js#anonymous"></script>

<style type="text/css">
/**
Expand Down
10 changes: 6 additions & 4 deletions ux/slidenavigation/View.js
Expand Up @@ -67,14 +67,16 @@ Ext.define('Ext.ux.slidenavigation.View', {

/**
* @cfg {Integer} slideDuration Number of miliseconds to animate the sliding
* of the container when "flicked".
* of the container when "flicked". By default the animation is disable on
* Android.
*/
slideDuration: Ext.os.is.Android ? 0 : 100,

/**
* @cfg {Integer} selectSlideDuration Number of miliseconds to animate the sliding
* of the container when list item is selected (if closeOnSelect = true). The default
* value here of 300 gives a much nicer feel.
* value here of 300 gives a much nicer feel. By default the animation is disable on
* Android.
*/
selectSlideDuration: Ext.os.is.Android ? 0 : 300,

Expand Down Expand Up @@ -381,7 +383,7 @@ Ext.define('Ext.ux.slidenavigation.View', {
docked: 'left',
cls: 'x-slidenavigation-list',
style: 'position: absolute; top: 0; left: 0; height: 100%;' +
'width: 100% !important; z-index: 50',
'width: 100% !important; z-index: 2',
listeners: {
select: this.onSelect,
scope: this
Expand All @@ -398,7 +400,7 @@ Ext.define('Ext.ux.slidenavigation.View', {
return Ext.create('Ext.Container', Ext.merge({}, this.config.container, {
docked: 'left',
cls: 'x-slidenavigation-container',
style: 'width: 100%; height: 100%; opacity: 1; z-index: 100',
style: 'width: 100%; height: 100%; position: absolute; opacity: 1; z-index: 5',
docked: 'left',
layout: 'card',
draggable: {
Expand Down

0 comments on commit 74d7ab2

Please sign in to comment.