This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android:theme="@android:style/Theme.NoTitleBar" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android:theme="@android:style/Theme.Holo.NoActionBar" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure | |
make | |
make check | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn package -P lite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scaleElementWidth = $('body').width(); | |
var scaleElementHeight = $('body').height(); | |
var windowWidth = $(window).width(); | |
var windowHeight = $(window).height(); | |
var wRatio = windowWidth/scaleElementWidth; | |
var hRatio = windowHeight/scaleElementHeight; | |
var ratio = Math.min(wRatio, hRatio); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This controller will take care of determining where the focus moves when | |
* a key press or mouse movement has occurred | |
* | |
* @constructor | |
*/ | |
function FocusController() { | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* On a key press this method will handle moving the focus | |
* @function | |
* @param {int} event Browser key code | |
*/ | |
FocusController.prototype.onKeyDown = function (event) { | |
switch(event.keyCode) { | |
case 9: | |
// Tab | |
break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This will take a direction vector and move the focus to the most | |
* appropriate item or make no change if there are no items to move to | |
* @param {array} direction A direction vector [x, y] | |
*/ | |
this.moveFocus = function (direction) { | |
// We need an item to move down from | |
// TODO: Should initialise focus if not initialised | |
if(!currentlyFocusedItem) { | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This method performs a change of focus to the item index | |
* @param {int} itemIndex | |
*/ | |
this.handleFocusChangeToItem = function (itemIndex) { | |
if(currentlyFocusedItem) { | |
currentlyFocusedItem.setFocusState(false); | |
} | |
var focusableItem = this.getFocusableItem(itemIndex); |
OlderNewer