當前位置: 首頁>>代碼示例>>Java>>正文


Java Paint.setPathEffect方法代碼示例

本文整理匯總了Java中android.graphics.Paint.setPathEffect方法的典型用法代碼示例。如果您正苦於以下問題:Java Paint.setPathEffect方法的具體用法?Java Paint.setPathEffect怎麽用?Java Paint.setPathEffect使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.graphics.Paint的用法示例。


在下文中一共展示了Paint.setPathEffect方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: DvbParser

import android.graphics.Paint; //導入方法依賴的package包/類
/**
 * Construct an instance for the given subtitle and ancillary page ids.
 *
 * @param subtitlePageId The id of the subtitle page carrying the subtitle to be parsed.
 * @param ancillaryPageId The id of the ancillary page containing additional data.
 */
public DvbParser(int subtitlePageId, int ancillaryPageId) {
  defaultPaint = new Paint();
  defaultPaint.setStyle(Paint.Style.FILL_AND_STROKE);
  defaultPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC));
  defaultPaint.setPathEffect(null);
  fillRegionPaint = new Paint();
  fillRegionPaint.setStyle(Paint.Style.FILL);
  fillRegionPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OVER));
  fillRegionPaint.setPathEffect(null);
  canvas = new Canvas();
  defaultDisplayDefinition = new DisplayDefinition(719, 575, 0, 719, 0, 575);
  defaultClutDefinition = new ClutDefinition(0, generateDefault2BitClutEntries(),
      generateDefault4BitClutEntries(), generateDefault8BitClutEntries());
  subtitleService = new SubtitleService(subtitlePageId, ancillaryPageId);
}
 
開發者ID:sanjaysingh1990,項目名稱:Exoplayer2Radio,代碼行數:22,代碼來源:DvbParser.java

示例2: onDraw

import android.graphics.Paint; //導入方法依賴的package包/類
@Override
@SuppressLint("DrawAllocation")
protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);
    if (isInEditMode()) {//這段代碼在運行時不會執行,隻會在Studio編輯預覽時運行,不用在意性能問題
        int d = DensityUtil.dp2px(5);

        Paint paint = new Paint();
        paint.setStyle(Paint.Style.STROKE);
        paint.setColor(0x44ffffff);
        paint.setStrokeWidth(DensityUtil.dp2px(1));
        paint.setPathEffect(new DashPathEffect(new float[]{d, d, d, d}, 1));
        canvas.drawRect(d, d, getWidth() - d, getBottom() - d, paint);

        TextView textView = new TextView(getContext());
        textView.setText(getClass().getSimpleName()+" 虛假區域\n運行時代表下拉Header的高度【" + DensityUtil.px2dp(getHeight()) + "dp】\n而不會顯示任何東西");
        textView.setTextColor(0x44ffffff);
        textView.setGravity(Gravity.CENTER);
        textView.measure(makeMeasureSpec(getWidth(), EXACTLY), makeMeasureSpec(getHeight(), EXACTLY));
        textView.layout(0, 0, getWidth(), getHeight());
        textView.draw(canvas);
    }
}
 
開發者ID:penghuanliang,項目名稱:Rxjava2.0Demo,代碼行數:24,代碼來源:FalsifyHeader.java

示例3: onCreate

import android.graphics.Paint; //導入方法依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_sample);

    RecyclerView recyclerView = (RecyclerView) findViewById(R.id.main_recyclerview);
    // Workaround for dash path effect
    // https://code.google.com/p/android/issues/detail?id=29944
    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {
        recyclerView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
    }

    SimpleAdapter adapter = new SimpleAdapter(this);
    LinearLayoutManager manager = new LinearLayoutManager(this);
    manager.setOrientation(OrientationHelper.VERTICAL);
    recyclerView.setLayoutManager(manager);
    recyclerView.setAdapter(adapter);

    Paint paint = new Paint();
    paint.setStrokeWidth(5);
    paint.setColor(Color.BLUE);
    paint.setAntiAlias(true);
    paint.setPathEffect(new DashPathEffect(new float[]{25.0f, 25.0f}, 0));
    recyclerView.addItemDecoration(new HorizontalDividerItemDecoration.Builder(this)
            .paint(paint)
            .showLastDivider()
            .build());
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:29,代碼來源:PaintActivity.java

示例4: drawVerticalLine

import android.graphics.Paint; //導入方法依賴的package包/類
private void drawVerticalLine(Canvas canvas, int position, int percent) {
  float x = getX(position);
  float y = getY(percent);

  Paint paint = new Paint();
  paint.setColor(colorEnd);
  paint.setStrokeWidth(DimensUtils.dpToPx(getContext(), 0.5f));
  paint.setStyle(Style.STROKE);
  paint.setAntiAlias(true);
  paint.setPathEffect(new DashPathEffect(new float[]{lineDash, lineDash}, 0));
  canvas.drawLine(x, y + radius * 2, x, getY(0), paint);
}
 
開發者ID:AtlantPlatform,項目名稱:atlant-android,代碼行數:13,代碼來源:ChartView.java

示例5: init

import android.graphics.Paint; //導入方法依賴的package包/類
private void init(){
        calculateDelta();

        bgpaint=new Paint();
        bgpaint.setAntiAlias(true);//抗鋸齒功能
        bgpaint.setColor(bgclolor);  //設置畫筆顏色
        bgpaint.setStyle(Paint.Style.FILL);//設置填充樣式   Style.FILL/Style.FILL_AND_STROKE/Style.STROKE

        setLayerType( LAYER_TYPE_SOFTWARE , null);
        outpaint = new Paint();
        outpaint.setAntiAlias(true);
        outpaint.setStyle(Paint.Style.STROKE);
        outpaint.setStrokeWidth(internalStrokeWidth);
        if(dash) {
            outpaint.setPathEffect(new DashPathEffect(new float[]{uit, dashSpace},
                    0));
        }else{
            //設置線冒,這個並非不管用,而是他的顏色未達到預期
//            outpaint.setStrokeJoin(Paint.Join.ROUND);
//            outpaint.setStrokeCap(Paint.Cap.ROUND);
            //偽裝的線冒哈哈
            startPaint = new Paint();
            startPaint.setColor(unitstartcolor);
            startPaint.setAntiAlias(true);
            startPaint.setStyle(Paint.Style.FILL);


            endPaint = new Paint();
            endPaint.setAntiAlias(true);
            endPaint.setStyle(Paint.Style.FILL);


        }


    }
 
開發者ID:jiongjiongxia,項目名稱:DashProgress,代碼行數:37,代碼來源:DashProgressCircle.java

示例6: initView

import android.graphics.Paint; //導入方法依賴的package包/類
/**
 * Inits paint objects and default values.
 */
private void initView() {
    starPath = new Path();
    cornerPathEffect = new CornerPathEffect(starCornerRadius);

    paintStarOutline = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.DITHER_FLAG);
    paintStarOutline.setStyle(Paint.Style.FILL_AND_STROKE);
    paintStarOutline.setAntiAlias(true);
    paintStarOutline.setDither(true);
    paintStarOutline.setStrokeJoin(Paint.Join.ROUND);
    paintStarOutline.setStrokeCap(Paint.Cap.ROUND);
    paintStarOutline.setColor(Color.BLACK);
    paintStarOutline.setPathEffect(cornerPathEffect);

    paintStarBorder = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.DITHER_FLAG);
    paintStarBorder.setStyle(Paint.Style.STROKE);
    paintStarBorder.setStrokeJoin(Paint.Join.ROUND);
    paintStarBorder.setStrokeCap(Paint.Cap.ROUND);
    paintStarBorder.setStrokeWidth(starBorderWidth);
    paintStarBorder.setPathEffect(cornerPathEffect);

    paintStarBackground = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.DITHER_FLAG);
    paintStarBackground.setStyle(Paint.Style.FILL_AND_STROKE);
    paintStarBackground.setAntiAlias(true);
    paintStarBackground.setDither(true);
    paintStarBackground.setStrokeJoin(Paint.Join.ROUND);
    paintStarBackground.setStrokeCap(Paint.Cap.ROUND);

    paintStarFill = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.DITHER_FLAG);
    paintStarFill.setStyle(Paint.Style.FILL_AND_STROKE);
    paintStarFill.setAntiAlias(true);
    paintStarFill.setDither(true);
    paintStarFill.setStrokeJoin(Paint.Join.ROUND);
    paintStarFill.setStrokeCap(Paint.Cap.ROUND);

    defaultStarSize = applyDimension(COMPLEX_UNIT_DIP, 30, getResources().getDisplayMetrics());
}
 
開發者ID:sega4revenge,項目名稱:Sega,代碼行數:40,代碼來源:SimpleRatingBar.java

示例7: init

import android.graphics.Paint; //導入方法依賴的package包/類
private void init(Context context, AttributeSet attrs) {
    DashPathEffect mPathEffect = new DashPathEffect(new float[]{dp2px(2), dp2px(2)}, 1);
    mGradeAxisPaint = new Paint();
    mGradeAxisPaint.reset();
    mGradeAxisPaint.setStyle(Paint.Style.STROKE);
    mGradeAxisPaint.setStrokeWidth(1);
    mGradeAxisPaint.setColor(isDebug ? Color.parseColor("#000000") : Color.parseColor("#16ffffff"));
    mGradeAxisPaint.setAntiAlias(true);
    mGradeAxisPaint.setPathEffect(mPathEffect);

    mTextPaint = new TextPaint();
    mTextPaint.setColor(Color.parseColor("#ffffff"));
    mTextPaint.setTextSize(dp2px(11));
    mTextPaint.setAntiAlias(true);
}
 
開發者ID:maoruibin,項目名稱:TrendChartView,代碼行數:16,代碼來源:TrendYAxisView.java

示例8: initData

import android.graphics.Paint; //導入方法依賴的package包/類
private void initData() {
    float defaultLineStrokeWidth = getResources().getDimension(R.dimen.stpi_default_line_stroke_width);
    linePaint = new Paint();
    linePaint.setStrokeWidth(defaultLineStrokeWidth);
    linePaint.setStrokeCap(Paint.Cap.ROUND);
    linePaint.setStyle(Paint.Style.STROKE);
    linePaint.setColor(Color.parseColor("#b3bdc2"));
    linePaint.setAntiAlias(true);

    lineDoneAnimatedPaint = new Paint(linePaint);
    lineDoneAnimatedPaint.setColor(Color.parseColor("#00b47c"));

    lineDoneAnimatedPaint.setPathEffect(null);
}
 
開發者ID:wuhighway,項目名稱:DailyStudy,代碼行數:15,代碼來源:StepperIndicator.java

示例9: AlertDrawable

import android.graphics.Paint; //導入方法依賴的package包/類
public AlertDrawable(int outerCircleRadiusDP, int textSizeSP, int cornerArc, String drawText, Context context) {
    mContext = context;

    circleRadius = ScreenUtils.unitToPixels(context, TypedValue.COMPLEX_UNIT_DIP, outerCircleRadiusDP);
    textSize = ScreenUtils.unitToPixels(context, TypedValue.COMPLEX_UNIT_SP, textSizeSP);
    mDrawText = TextUtils.isEmpty(drawText) ? " " : drawText;
    initBitmap(mDrawText);
    mBackGroundPaint = new Paint();
    mBackGroundPaint.setAntiAlias(true);
    mBackGroundPaint.setDither(true);
    mBackGroundPaint.setColor(Color.WHITE);
    mBackGroundPaint.setStyle(Paint.Style.FILL);


    mCircleFillPaint = new Paint();
    mCircleFillPaint.setAntiAlias(true);
    mCircleFillPaint.setDither(true);
    mCircleFillPaint.setColor(ContextCompat.getColor(context, R.color.colorMultiArc));
    mCircleFillPaint.setStyle(Paint.Style.FILL);

    mOuterCircleFillPaint = new Paint();
    mOuterCircleFillPaint.setAntiAlias(true);
    mOuterCircleFillPaint.setDither(true);
    mOuterCircleFillPaint.setColor(Color.WHITE);
    mOuterCircleFillPaint.setStyle(Paint.Style.FILL);
    mOuterCircleFillPaint.setTextSize(textSize);


    borderPath = new Path();
    borderRect = new Rect();

    CornerPathEffect cornerPathEffect = new CornerPathEffect(cornerArc);
    mBackGroundPaint.setPathEffect(cornerPathEffect);

    outerCircleOffset = context.getResources().getInteger(R.integer.outerCircleOffset);
}
 
開發者ID:nidhinvv,項目名稱:BubbleAlert,代碼行數:37,代碼來源:AlertDrawable.java

示例10: rainGraph

import android.graphics.Paint; //導入方法依賴的package包/類
private void rainGraph() {
    LineChartView lineChartView = (LineChartView) findViewById(R.id.graph_rain);

    // Data
    LineSet dataset = new LineSet();
    for (int i = 0; i < weatherList.size(); i++) {
        float rain = Float.parseFloat(weatherList.get(i).getRain());

        if (rain < minRain) {
            minRain = rain;
        }

        if (rain > maxRain) {
            maxRain = rain;
        }

        dataset.addPoint(getDateLabel(weatherList.get(i), i), rain);
    }
    dataset.setSmooth(false);
    dataset.setColor(Color.parseColor("#2196F3"));
    dataset.setThickness(4);

    lineChartView.addData(dataset);

    // Grid
    Paint paint = new Paint();
    paint.setStyle(Paint.Style.STROKE);
    paint.setAntiAlias(true);
    paint.setColor(Color.parseColor("#333333"));
    paint.setPathEffect(new DashPathEffect(new float[]{10, 10}, 0));
    paint.setStrokeWidth(1);
    lineChartView.setGrid(ChartView.GridType.HORIZONTAL, paint);
    lineChartView.setBorderSpacing(Tools.fromDpToPx(10));
    lineChartView.setAxisBorderValues((int) minRain - 1, (int) maxRain + 2);
    lineChartView.setStep(1);
    lineChartView.setXAxis(false);
    lineChartView.setYAxis(false);

    lineChartView.show();
}
 
開發者ID:hichemcesar24,項目名稱:Weather-Android,代碼行數:41,代碼來源:GraphActivity.java

示例11: init

import android.graphics.Paint; //導入方法依賴的package包/類
private void init() {
    paintMarker = new Paint();
    paintMarker.setColor(Color.RED);
    paintMarker.setStrokeWidth(10);
    paintMarker.setStyle(Paint.Style.STROKE);
    // to create a discontinuous marker
    paintMarker.setPathEffect(new DashPathEffect(new float[] {10,20}, 0));

    Drawable drawable = new BitmapDrawable(getResources(), decodeResource(getResources(),
            R.drawable.goku_supersayan));
    drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
    drawableStore.put(KEY_BITMAP_HEAD, drawable);
    rect = new Rect();
    transformation = new Matrix();
}
 
開發者ID:raulh82vlc,項目名稱:Image-Detection-Samples,代碼行數:16,代碼來源:FaceDrawer.java

示例12: Chart

import android.graphics.Paint; //導入方法依賴的package包/類
public Chart(Context context, AttributeSet attrs) {
    super(context, attrs);

    linePaint = new Paint();
    linePaint.setAntiAlias(true);
    linePaint.setColor(0xffffffff);
    linePaint.setStrokeWidth(8.f);
    linePaint.setStyle(Paint.Style.STROKE);

    circlePaint = new Paint();
    circlePaint.setAntiAlias(true);
    circlePaint.setColor(0xffff2020);
    circlePaint.setStyle(Paint.Style.FILL);

    backgroundPaint = new Paint();
    backgroundPaint.setColor(0xffFFFF80);
    backgroundPaint.setStyle(Paint.Style.STROKE);
    backgroundPaint.setPathEffect(new DashPathEffect(new float[] {5, 5}, 0));
    backgroundPaint.setTextSize(20.f);

    graphPath = new Path();
    circlePath = new Path();
    backgroundPath = new Path();
    lastWidth = -1;
    lastHeight = -1;

    textBoundaries = new Rect();
    decimalFormat = new DecimalFormat("#.##");
    verticalLabels = new String[11];

    invertVerticalAxis = false;
    drawLegend = true;
}
 
開發者ID:PacktPublishing,項目名稱:Building-Android-UIs-with-Custom-Views,代碼行數:34,代碼來源:Chart.java

示例13: drawBorder

import android.graphics.Paint; //導入方法依賴的package包/類
@Override
public void drawBorder(XulDC dc, Rect rect, int xBase, int yBase) {
	if (_isInvisible()) {
		return;
	}
	Paint defStrokePaint = _ctx.getDefStrokePaint();
	Rect targetRc = getDrawingRect();
	if (_borderSize > 0.1f && (_borderColor & 0xFF000000) != 0) {
		float borderSize = _borderSize * _scalarX;
		defStrokePaint.setStrokeWidth(borderSize);
		defStrokePaint.setColor(_borderColor);
		if (_borderEffect != null) {
			defStrokePaint.setPathEffect(_borderEffect);
		}
		if (_clipShape != null) {
			RectF focusRect = this.getFocusRect();
			Canvas canvas = dc.getCanvas();
			_clipShape.resize(XulUtils.calRectWidth(focusRect), XulUtils.calRectHeight(focusRect));
			_clipShape.draw(canvas, defStrokePaint);
		} else if (_borderRoundX > 0.5 && _borderRoundY > 0.5) {
			float borderDelta = (borderSize / 2) - borderSize * _borderPos;
			float x = targetRc.left + borderDelta + _screenX + xBase;
			float y = targetRc.top + borderDelta + _screenY + yBase;
			float cx = XulUtils.calRectWidth(targetRc) - 2 * borderDelta;
			float cy = XulUtils.calRectHeight(targetRc) - 2 * borderDelta;
			dc.drawRoundRect(x, y, cx, cy, _borderRoundX * _scalarX, _borderRoundY * _scalarY, defStrokePaint);
		} else {
			int xStart = _screenX + xBase;
			int yStart = _screenY + yBase;
			dc.drawRect(targetRc.left + xStart, targetRc.top + yStart, targetRc.right + xStart, targetRc.bottom + yStart, defStrokePaint);
		}
		if (_borderEffect != null) {
			defStrokePaint.setPathEffect(null);
		}
	}
}
 
開發者ID:starcor-company,項目名稱:starcor.xul,代碼行數:37,代碼來源:XulLayerRender.java

示例14: onCreate

import android.graphics.Paint; //導入方法依賴的package包/類
@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_loadmore);

        toolbar = (Toolbar) findViewById(R.id.tool_bar);
        setSupportActionBar(toolbar);
        getSupportActionBar().setDisplayShowTitleEnabled(false);


        ultimateRecyclerView = (UltimateRecyclerView) findViewById(R.id.ultimate_recycler_view);
        ultimateRecyclerView.setHasFixedSize(false);
        List<String> stringList = new ArrayList<>();

        stringList.add("111");
        stringList.add("aaa");
        stringList.add("222");
        stringList.add("33");
        stringList.add("44");
        stringList.add("55");


        simpleRecyclerViewAdapter = new MultiViewTypesRecyclerViewAdapter(stringList);
        simpleRecyclerViewAdapter.setCustomLoadMoreView(
                LayoutInflater.from(this).inflate(R.layout.custom_bottom_progressbar, null));

//        stringList.add("66");
//        stringList.add("11771");
        linearLayoutManager = new LinearLayoutManager(this);
        ultimateRecyclerView.setLayoutManager(linearLayoutManager);
        // ultimateRecyclerView.setAdapter(simpleRecyclerViewAdapter);
        ultimateRecyclerView.setAdapter(simpleRecyclerViewAdapter);
        ultimateRecyclerView.setDefaultOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
            @Override
            public void onRefresh() {
                new Handler().postDelayed(new Runnable() {
                    @Override
                    public void run() {
                        simpleRecyclerViewAdapter.insert("Refresh things", 0);
                        ultimateRecyclerView.setRefreshing(false);
                        //   ultimateRecyclerView.scrollBy(0, -50);
                        linearLayoutManager.scrollToPosition(0);
                    }
                }, 1000);
            }
        });

        Paint paint = new Paint();
        paint.setStrokeWidth(5);
        paint.setColor(Color.BLUE);
        paint.setAntiAlias(true);
        paint.setPathEffect(new DashPathEffect(new float[]{25.0f, 25.0f}, 0));
        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {
            ultimateRecyclerView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
        }
        ultimateRecyclerView.addItemDecoration(new HorizontalDividerItemDecoration.Builder(this).paint(paint).build());

      //  simpleRecyclerViewAdapter.ad

    }
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:61,代碼來源:MultiViewTypesActivity.java

示例15: WaveformView

import android.graphics.Paint; //導入方法依賴的package包/類
public WaveformView(Context context, AttributeSet attrs) {
       super(context, attrs);

       // We don't want keys, the markers get these
       setFocusable(false);

       mGridPaint = new Paint();
       mGridPaint.setAntiAlias(false);
       mGridPaint.setColor(
           getResources().getColor(R.drawable.grid_line));
       mSelectedLinePaint = new Paint();
       mSelectedLinePaint.setAntiAlias(false);
       mSelectedLinePaint.setColor(
           getResources().getColor(R.drawable.waveform_selected));
       mUnselectedLinePaint = new Paint();
       mUnselectedLinePaint.setAntiAlias(false);
       mUnselectedLinePaint.setColor(
           getResources().getColor(R.drawable.waveform_unselected));
       mUnselectedBkgndLinePaint = new Paint();
       mUnselectedBkgndLinePaint.setAntiAlias(false);
       mUnselectedBkgndLinePaint.setColor(
           getResources().getColor(
               R.drawable.waveform_unselected_bkgnd_overlay));
       mBorderLinePaint = new Paint();
       mBorderLinePaint.setAntiAlias(true);
       mBorderLinePaint.setStrokeWidth(1.5f);
       mBorderLinePaint.setPathEffect(
           new DashPathEffect(new float[] { 3.0f, 2.0f }, 0.0f));
       mBorderLinePaint.setColor(
           getResources().getColor(R.drawable.selection_border));
       mPlaybackLinePaint = new Paint();
       mPlaybackLinePaint.setAntiAlias(false);
       mPlaybackLinePaint.setColor(
           getResources().getColor(R.drawable.playback_indicator));
       mTimecodePaint = new Paint();
       mTimecodePaint.setTextSize(12);
       mTimecodePaint.setAntiAlias(true);
       mTimecodePaint.setColor(
           getResources().getColor(R.drawable.timecode));
       mTimecodePaint.setShadowLayer(
           2, 1, 1,
           getResources().getColor(R.drawable.timecode_shadow));

mGestureDetector = new GestureDetector(
        context,
	new GestureDetector.SimpleOnGestureListener() {
	    public boolean onFling(
		        MotionEvent e1, MotionEvent e2, float vx, float vy) {
		mListener.waveformFling(vx);
		return true;
	    }
	});

       mSoundFile = null;
       mLenByZoomLevel = null;
       mValuesByZoomLevel = null;
       mHeightsAtThisZoomLevel = null;
       mOffset = 0;
       mPlaybackPos = -1;
       mSelectionStart = 0;
       mSelectionEnd = 0;
       mDensity = 1.0f;
       mInitialized = false;
   }
 
開發者ID:smartbeng,項目名稱:PaoMovie,代碼行數:65,代碼來源:WaveformView.java


注:本文中的android.graphics.Paint.setPathEffect方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。