开发者

<-- operator in android graphics

开发者 https://www.devze.com 2023-04-05 02:53 出处:网络
v1.addView(new TransfomedViewWidget(<-- (9) this, new Transformation() {<-- (10) @Override public String describe() { return \"rotate(-30)\"; }
 v1.addView(new TransfomedViewWidget(<-- (9)
            this,
            new Transformation() {<-- (10)
                @Override public String describe() { return "rotate(-30)"; }
                @Override public void transform(Canvas canvas) {
                    canvas.rotate(-30.0F);
                } }));

I am new to Java and android programming , can anyone tell me what this <-- operator means? I am getting error whi开发者_运维知识库le trying to compile this in eclipse.


It isn't part of the syntax, it loks like something else has put it there.


Certainly it was a note or comment ... add // in front of them and try to compile again.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号