Code example for Path

Methods: arcTo

0
    private Path updatePath(Path path, float radius, float start, float sweep) {
        if (path == null) {
            path = new Path();
        } else { 
            path.reset();
        } 
 
        final RectF bB = new RectF(-radius, -radius, radius, radius);
        path.arcTo(bB, start, sweep, true);
        return path;
    } 
 
    private void updateData() { 
        mDateText = DateFormat.getMediumDateFormat(mContext).format(new Date()).toUpperCase();
        mNetworkState = mController.getOperatorState();
        if (mNetworkState != null) {
            mNetworkState = mNetworkState.toUpperCase();
        } 
        mWifiSsid = getWifiSsid().toUpperCase();
        mBatteryLevelReadable = mController.getBatteryLevel().toUpperCase();
    }