This file contains 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
private Bitmap combineBitmaps(ArrayList<Bitmap> bitmaps, Boolean isHorizontal) { | |
int w = 0, h = 0; | |
for (int i = 0; i < bitmaps.size(); i++) { | |
if(i == 0 || isHorizontal){ | |
w += bitmaps.get(i).getWidth(); | |
} else if(!isHorizontal && bitmaps.get(i).getWidth() > w) { | |
w = bitmaps.get(i).getWidth(); | |
} | |
if(i == 0 || !isHorizontal){ | |
h += bitmaps.get(i).getHeight(); |
This file contains 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
(function () { | |
angular.module('app') | |
.directive('input', function () { | |
return { | |
restrict: "E", | |
link: function (scope, element, attrs) { | |
element.on("keypress", function (e) { | |
var code = (e.keyCode ? e.keyCode : e.which); | |
if (code == 13 || code == 10) { | |
element.blur(); |