我用我的代码生成了一个简单的波形,如下图所示.
但是我希望在每条线之间留出更多的差距,我希望它像下面的picutre声音云.
这是我的代码:
public class VisualizerView extends View {
private static final int LINE_WIDTH = 15; // width of visualizer lines
private static final int LINE_SCALE = 55; // scales visualizer lines
private List<Float> amplitudes; // amplitudes for line lengths
private int width; // width of this View
private int height; // height of this View
private Paint linePaint; // specifies line drawing characteristics
// constructor
public VisualizerView(Context context, AttributeSet attrs) {
super(context, attrs); // call superclass constructor
linePaint = …Run Code Online (Sandbox Code Playgroud) 我希望包含将图像文档扫描到我的应用程序中的功能.是否可以使用新的Google Drive API扫描图像文档?