当PDF资产上传将dc:title存储为String数组而不是String?

时间:2016-06-06 19:11:13

标签: cq5 aem

我正在使用AEM,当我上传PDF作为资产时,dc:title中的metadata属性有时会存储为String而其他String[]存储为String }}。 有这个标准吗?何时存储为String[],何时存储为protected void onDraw(Canvas canvas) { super.onDraw(canvas); currentFrame = System.currentTimeMillis(); dt = currentFrame - lastFrame; dt = dt/1000; lastFrame = currentFrame; myFreakinRect.set(0,0, canvas.getWidth(), canvas.getHeight()); freakinRed.setColor(Color.RED); freakinRed.setStyle(Paint.Style.FILL); canvas.drawRect(myFreakinRect, freakinRed); // // o yuea if(goingDown) { //velocityY = Math.sqrt(100 + 2*gravity*(posY)); velocityY = gravity*(currentFrame - runTime); } else { velocityY = downV - gravity*(currentFrame - runTime); } if(posX > w - ballRadius*2) { goingRight = false; } if(posX < 0) { goingRight = true; } if(posY > h - ballRadius*2) { //initY = initY - 0.25F; //if(initY < 0) initY = 0; Log.i("xxx", String.valueOf(initY)); runTime = currentFrame; downV = velocityY; goingDown = false; } if(velocityY <= 0) { goingDown = true; runTime = currentFrame; } if(goingDown) posY += velocityY*dt; else posY -= velocityY*dt; if(goingRight) posX += velocityX*dt; else posX -= velocityX*dt; canvas.drawText(String.valueOf(posX)+" "+String.valueOf(posY), 10, 10, new Paint()); canvas.drawBitmap(rBall, (float)posX, (float)posY, myFreakingFaintPaint); invalidate(); }

0 个答案:

没有答案