use of com.herewhite.sdk.WhiteboardView in project whiteboard-android by netless-io.
the class CameraMoveActivity method onCreate.
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_camera_move);
getSupportActionBar().hide();
whiteboardView = findViewById(R.id.white);
WhiteboardView.setWebContentsDebuggingEnabled(true);
joinRoom();
findViewById(R.id.insertImage).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (room == null) {
return;
}
ImageInformationWithUrl imageInformationWithUrl = new ImageInformationWithUrl();
imageInformationWithUrl.setUrl("https://placekitten.com/1920/1080");
imageInformationWithUrl.setHeight(imgH);
imageInformationWithUrl.setWidth(imgW);
imageInformationWithUrl.setCenterX(0);
imageInformationWithUrl.setCenterY(0);
room.insertImage(imageInformationWithUrl);
}
});
findViewById(R.id.scaleSmall).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
moveToSmall();
}
});
findViewById(R.id.scaleCamera).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
moveCamera();
}
});
findViewById(R.id.scaleCameraFill).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
moveCameraFillContent();
}
});
findViewById(R.id.orientation).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
orientation();
}
});
}
Aggregations