Example usage for android.graphics Color WHITE

List of usage examples for android.graphics Color WHITE

Introduction

In this page you can find the example usage for android.graphics Color WHITE.

Prototype

int WHITE

To view the source code for android.graphics Color WHITE.

Click Source Link

Usage

From source file:android.webkit.cts.WebViewTest.java

public void testCapturePicture() throws Exception, Throwable {
    if (!NullWebViewUtils.isWebViewAvailable()) {
        return;//from  w  w w.ja va  2  s  .  c  om
    }
    final TestPictureListener listener = new TestPictureListener();

    startWebServer(false);
    final String url = mWebServer.getAssetUrl(TestHtmlConstants.BLANK_PAGE_URL);
    mOnUiThread.setPictureListener(listener);
    // Showing the blank page will fill the picture with the background color.
    mOnUiThread.loadUrlAndWaitForCompletion(url);
    // The default background color is white.
    Picture oldPicture = waitForPictureToHaveColor(Color.WHITE, listener);

    runTestOnUiThread(new Runnable() {
        @Override
        public void run() {
            mWebView.setBackgroundColor(Color.CYAN);
        }
    });
    mOnUiThread.reloadAndWaitForCompletion();
    waitForPictureToHaveColor(Color.CYAN, listener);

    // The content of the previously captured picture will not be updated automatically.
    assertTrue(isPictureFilledWithColor(oldPicture, Color.WHITE));
}

From source file:com.mdlive.sav.MDLiveProviderDetails.java

private void ByPhoneOrByVideoForNowAndLater() {
    tapSeetheDoctorTxtLayout.setVisibility(View.GONE);
    byvideoBtnLayout.setVisibility(View.VISIBLE);
    byvideoBtnLayout.setBackgroundResource(R.drawable.searchpvr_green_rounded_corner);
    byvideoBtn.setTextColor(Color.WHITE);
    ((ImageView) findViewById(R.id.videoicon)).setImageResource(R.drawable.video_icon_white);
    byphoneBtnLayout.setBackgroundResource(R.drawable.searchpvr_green_rounded_corner);
    byphoneBtn.setTextColor(Color.WHITE);
    ((ImageView) findViewById(R.id.phoneicon)).setImageResource(R.drawable.phone_icon_white);
    byvideoBtnLayout.setOnClickListener(new View.OnClickListener() {
        @Override//from www  .  ja  va  2  s  . co  m
        public void onClick(View v) {
            byphoneBtnLayout.setBackgroundResource(R.drawable.searchpvr_green_rounded_corner);
            byvideoBtnLayout.setBackgroundResource(R.drawable.searchpvr_green_rounded_corner);
            ((ImageView) findViewById(R.id.videoicon)).setImageResource(R.drawable.video_icon_white);
            byvideoBtn.setTextColor(Color.WHITE);
            ((ImageView) findViewById(R.id.phoneicon)).setImageResource(R.drawable.phone_icon_white);
            byphoneBtn.setTextColor(Color.WHITE);
            saveConsultationType("Video", MDLiveProviderDetails.this);
            Intent Reasonintent = new Intent(MDLiveProviderDetails.this, MDLiveReasonForVisit.class);
            startActivity(Reasonintent);
            MdliveUtils.startActivityAnimation(MDLiveProviderDetails.this);
            saveTimeSlotToNowMode();
        }
    });

    byphoneBtnLayout.setVisibility(View.VISIBLE);
    byphoneBtnLayout.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            byvideoBtnLayout.setBackgroundResource(R.drawable.searchpvr_green_rounded_corner);
            byphoneBtnLayout.setBackgroundResource(R.drawable.searchpvr_green_rounded_corner);
            ((ImageView) findViewById(R.id.phoneicon)).setImageResource(R.drawable.phone_icon_white);
            ((ImageView) findViewById(R.id.videoicon)).setImageResource(R.drawable.video_icon_white);
            saveConsultationType("Phone", MDLiveProviderDetails.this);
            byphoneBtn.setTextColor(Color.WHITE);
            byvideoBtn.setTextColor(Color.WHITE);
            Intent Reasonintent = new Intent(MDLiveProviderDetails.this, MDLiveReasonForVisit.class);
            startActivity(Reasonintent);
            MdliveUtils.startActivityAnimation(MDLiveProviderDetails.this);
            saveTimeSlotToNowMode();
        }
    });
}

From source file:com.android.contacts.common.ContactPhotoManager.java

/**
 * If necessary, decodes bytes stored in the holder to Bitmap.  As long as the
 * bitmap is held either by {@link #mBitmapCache} or by a soft reference in
 * the holder, it will not be necessary to decode the bitmap.
 */// www  . ja  v a2  s. c o  m
private static void inflateBitmap(BitmapHolder holder, int requestedExtent) {
    final int sampleSize = BitmapUtil.findOptimalSampleSize(holder.originalSmallerExtent, requestedExtent);
    byte[] bytes = holder.bytes;
    if (bytes == null || bytes.length == 0) {
        return;
    }

    if (sampleSize == holder.decodedSampleSize) {
        // Check the soft reference.  If will be retained if the bitmap is also
        // in the LRU cache, so we don't need to check the LRU cache explicitly.
        if (holder.bitmapRef != null) {
            holder.bitmap = holder.bitmapRef.get();
            if (holder.bitmap != null) {
                return;
            }
        }
    }

    try {
        Bitmap bitmap = BitmapUtil.decodeBitmapFromBytes(bytes, sampleSize);

        // TODO: As a temporary workaround while framework support is being added to
        // clip non-square bitmaps into a perfect circle, manually crop the bitmap into
        // into a square if it will be displayed as a thumbnail so that it can be cropped
        // into a circle.
        final int height = bitmap.getHeight();
        final int width = bitmap.getWidth();

        // The smaller dimension of a scaled bitmap can range from anywhere from 0 to just
        // below twice the length of a thumbnail image due to the way we calculate the optimal
        // sample size.
        if (height != width && Math.min(height, width) <= mThumbnailSize * 2) {
            final int dimension = Math.min(height, width);
            bitmap = ThumbnailUtils.extractThumbnail(bitmap, dimension, dimension);
        }
        // make bitmap mutable and draw size onto it
        if (DEBUG_SIZES) {
            Bitmap original = bitmap;
            bitmap = bitmap.copy(bitmap.getConfig(), true);
            original.recycle();
            Canvas canvas = new Canvas(bitmap);
            Paint paint = new Paint();
            paint.setTextSize(16);
            paint.setColor(Color.BLUE);
            paint.setStyle(Style.FILL);
            canvas.drawRect(0.0f, 0.0f, 50.0f, 20.0f, paint);
            paint.setColor(Color.WHITE);
            paint.setAntiAlias(true);
            canvas.drawText(bitmap.getWidth() + "/" + sampleSize, 0, 15, paint);
        }

        holder.decodedSampleSize = sampleSize;
        holder.bitmap = bitmap;
        holder.bitmapRef = new SoftReference<Bitmap>(bitmap);
        if (DEBUG) {
            Log.d(TAG, "inflateBitmap " + btk(bytes.length) + " -> " + bitmap.getWidth() + "x"
                    + bitmap.getHeight() + ", " + btk(bitmap.getByteCount()));
        }
    } catch (OutOfMemoryError e) {
        // Do nothing - the photo will appear to be missing
    }
}

From source file:com.amaze.filemanager.fragments.MainFragment.java

void initNoFileLayout() {
    nofilesview = rootView.findViewById(R.id.nofilelayout);
    nofilesview.setColorSchemeColors(accentColor);
    nofilesview.setOnRefreshListener(() -> {
        loadlist((CURRENT_PATH), false, openMode);
        nofilesview.setRefreshing(false);
    });//from   ww w  .  j  av  a 2 s . co  m
    if (utilsProvider.getAppTheme().equals(AppTheme.LIGHT)) {
        ((ImageView) nofilesview.findViewById(R.id.image)).setColorFilter(Color.parseColor("#666666"));
    } else if (utilsProvider.getAppTheme().equals(AppTheme.BLACK)) {
        nofilesview.setBackgroundColor(Utils.getColor(getContext(), android.R.color.black));
        ((TextView) nofilesview.findViewById(R.id.nofiletext)).setTextColor(Color.WHITE);
    } else {
        nofilesview.setBackgroundColor(Utils.getColor(getContext(), R.color.holo_dark_background));
        ((TextView) nofilesview.findViewById(R.id.nofiletext)).setTextColor(Color.WHITE);
    }
}

From source file:com.cypress.cysmart.BLEServiceFragments.SensorHubService.java

private void setupTempGraph(View parent) {
    {//from   w  w w.  j av a2  s  . c om
        /**
         * Setting graph titles
         */
        String graphTitle = getResources().getString(R.string.sen_hub_temperature);
        String graphXAxis = getResources().getString(R.string.health_temperature_time);
        String graphYAxis = getResources().getString(R.string.sen_hub_temperature);

        // Creating an  XYSeries for temperature
        mTemperatureDataSeries = new XYSeries(graphTitle);

        // Creating a dataset to hold each series
        XYMultipleSeriesDataset mDataset = new XYMultipleSeriesDataset();

        // Adding temperature Series to the dataset
        mDataset.addSeries(mTemperatureDataSeries);

        // Creating XYSeriesRenderer to customize
        XYSeriesRenderer mRenderer = new XYSeriesRenderer();
        mRenderer.setColor(getResources().getColor(R.color.main_bg_color));
        mRenderer.setPointStyle(PointStyle.CIRCLE);
        mRenderer.setFillPoints(true);
        mRenderer.setLineWidth(5);

        // Creating a XYMultipleSeriesRenderer to customize the whole chart
        XYMultipleSeriesRenderer mMultiRenderer = new XYMultipleSeriesRenderer();
        switch (getResources().getDisplayMetrics().densityDpi) {
        case DisplayMetrics.DENSITY_XHIGH:
            mMultiRenderer.setMargins(new int[] { 40, 90, 25, 10 });
            mMultiRenderer.setAxisTitleTextSize(Constants.TEXT_SIZE_XHDPI);
            mMultiRenderer.setChartTitleTextSize(Constants.TEXT_SIZE_XHDPI);
            mMultiRenderer.setLabelsTextSize(Constants.TEXT_SIZE_XHDPI);
            mMultiRenderer.setLegendTextSize(Constants.TEXT_SIZE_XHDPI);
            break;
        case DisplayMetrics.DENSITY_HIGH:
            mMultiRenderer.setMargins(new int[] { 30, 50, 25, 10 });
            mMultiRenderer.setAxisTitleTextSize(Constants.TEXT_SIZE_HDPI);
            mMultiRenderer.setChartTitleTextSize(Constants.TEXT_SIZE_HDPI);
            mMultiRenderer.setLabelsTextSize(Constants.TEXT_SIZE_HDPI);
            mMultiRenderer.setLegendTextSize(Constants.TEXT_SIZE_HDPI);
            break;
        case DisplayMetrics.DENSITY_XXHIGH:
            mMultiRenderer.setMargins(new int[] { 50, 100, 35, 20 });
            mMultiRenderer.setAxisTitleTextSize(Constants.TEXT_SIZE_XXHDPI);
            mMultiRenderer.setChartTitleTextSize(Constants.TEXT_SIZE_XXHDPI);
            mMultiRenderer.setLabelsTextSize(Constants.TEXT_SIZE_XXHDPI);
            mMultiRenderer.setLegendTextSize(Constants.TEXT_SIZE_XXHDPI);
            break;

        default:
            mMultiRenderer.setMargins(new int[] { 30, 50, 25, 10 });
            mMultiRenderer.setAxisTitleTextSize(Constants.TEXT_SIZE_LDPI);
            mMultiRenderer.setChartTitleTextSize(Constants.TEXT_SIZE_LDPI);
            mMultiRenderer.setLabelsTextSize(Constants.TEXT_SIZE_LDPI);
            mMultiRenderer.setLegendTextSize(Constants.TEXT_SIZE_LDPI);
            break;
        }
        mMultiRenderer.setXTitle(graphXAxis);
        mMultiRenderer.setLabelsColor(Color.BLACK);
        mMultiRenderer.setYTitle(graphYAxis);
        mMultiRenderer.setMarginsColor(Color.argb(0x00, 0xff, 0x00, 0x00));
        mMultiRenderer.setPanEnabled(true, true);
        mMultiRenderer.setYLabelsColor(0, Color.BLACK);
        mMultiRenderer.setXLabelsColor(Color.BLACK);
        mMultiRenderer.setApplyBackgroundColor(true);
        mMultiRenderer.setBackgroundColor(Color.WHITE);
        mMultiRenderer.setGridColor(Color.BLACK);
        mMultiRenderer.setShowGrid(true);
        mMultiRenderer.setShowLegend(false);

        // Adding mRenderer to multipleRenderer
        mMultiRenderer.addSeriesRenderer(mRenderer);

        // Getting a reference to LinearLayout of the MainActivity Layout
        mTemperatureGraphLayoutParent = (LinearLayout) parent.findViewById(R.id.temp_chart_container);

        mTemperaturerChart = ChartFactory.getLineChartView(getActivity(), mDataset, mMultiRenderer);

        // Adding the Line Chart to the LinearLayout
        mTemperatureGraphLayoutParent.addView(mTemperaturerChart);

    }
}

From source file:com.dwdesign.tweetings.util.Utils.java

public static Bitmap getColorPreviewBitmap(final Context context, final int color) {
    if (context == null)
        return null;
    final float density = context.getResources().getDisplayMetrics().density;
    final int width = (int) (32 * density), height = (int) (32 * density);

    final Bitmap bm = Bitmap.createBitmap(width, height, Config.ARGB_8888);
    final Canvas canvas = new Canvas(bm);

    final int rectrangle_size = (int) (density * 5);
    final int numRectanglesHorizontal = (int) Math.ceil(width / rectrangle_size);
    final int numRectanglesVertical = (int) Math.ceil(height / rectrangle_size);
    final Rect r = new Rect();
    boolean verticalStartWhite = true;
    for (int i = 0; i <= numRectanglesVertical; i++) {

        boolean isWhite = verticalStartWhite;
        for (int j = 0; j <= numRectanglesHorizontal; j++) {

            r.top = i * rectrangle_size;
            r.left = j * rectrangle_size;
            r.bottom = r.top + rectrangle_size;
            r.right = r.left + rectrangle_size;
            final Paint paint = new Paint();
            paint.setColor(isWhite ? Color.WHITE : Color.GRAY);

            canvas.drawRect(r, paint);//from   w w  w  .j a v a2  s  .  com

            isWhite = !isWhite;
        }

        verticalStartWhite = !verticalStartWhite;

    }
    canvas.drawColor(color);
    final Paint paint = new Paint();
    paint.setColor(Color.WHITE);
    paint.setStrokeWidth(2.0f);
    final float[] points = new float[] { 0, 0, width, 0, 0, 0, 0, height, width, 0, width, height, 0, height,
            width, height };
    canvas.drawLines(points, paint);

    return bm;
}

From source file:com.amaze.carbonfilemanager.fragments.MainFragment.java

void initNoFileLayout() {
    nofilesview = rootView.findViewById(R.id.nofilelayout);
    if (utilsProvider.getAppTheme().equals(AppTheme.LIGHT))
        ((ImageView) nofilesview.findViewById(R.id.image)).setColorFilter(Color.parseColor("#666666"));
    else {/* ww w  .  j  a v a2  s .  c om*/
        nofilesview.setBackgroundColor(Utils.getColor(getContext(), R.color.holo_dark_background));
        ((TextView) nofilesview.findViewById(R.id.nofiletext)).setTextColor(Color.WHITE);
    }
}

From source file:com.zen.androidhtmleditor.AHEActivity.java

public void loadFileFolder(View v) {

    //RelativeLayout rl = (RelativeLayout)v.getParent();
    //RelativeLayout rl = (RelativeLayout)v;
    View rl = v;/*from ww  w.j a  v a2s .  c  o m*/
    TextView typeId = (TextView) rl.findViewById(R.id.typeId);
    TextView fileFolderName = (TextView) rl.findViewById(R.id.fileFolderName);

    if (typeId.getText().toString().equals("folder")) {
        arrayAdapter.clear();
        folderPath = folderPath + fileFolderName.getText().toString() + "/";

        SharedPreferences settings = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);
        String currentServers = settings.getString("Accounts", "");
        if (currentServers.equals("")) {
        } else {
            Gson gson = new Gson();
            SearchResponse response = gson.fromJson(currentServers, SearchResponse.class);
            List<Result> results = response.data;
            Result l = results.get(connectedTo);
            if (l.serverName != "" && l.userName != "" && l.port.trim() != "") {
                if (l.sftp.equals("0") || l.sftp.equals("1") || l.sftp.equals("2")) {
                    new MyFetchTask(l.serverName, l.userName, l.passWord, "folder", folderPath, l.sftp, l.port)
                            .execute();
                } else if (l.sftp.equals("3")) {
                    new FetchSSLTask(l.serverName, l.userName, l.passWord, "folder", folderPath, l.sftp, l.port)
                            .execute();
                }
            }
        }
        //new MyFetchTask("zenstudio.com.au", "zenstudi", ".-x$%Wmd5b#C","folder",folderPath).execute();
    } else {

        //tabCount++;

        int tabNum = tabHost.getTabWidget().getChildCount();

        for (int i = 0; i < tabNum; i++) {

            Button b = (Button) tabHost.getTabWidget().getChildAt(i);
            //b.setBackgroundResource(R.drawable.tab_buttons_off);
        }

        SharedPreferences settings = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);
        SharedPreferences.Editor editor = settings.edit();
        //editor.putString("fileName", folderPath+fileFolderName.getText().toString()); 
        editor.putInt("connectedTo", connectedTo);
        editor.commit();
        LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
                LayoutParams.WRAP_CONTENT);
        Button tview = new Button(this);
        tview.setLayoutParams(lp);
        tview.setText(fileFolderName.getText().toString());
        tview.setTextColor(Color.WHITE);
        //tview.setBackgroundResource(R.drawable.tab_buttons_on);

        Intent editFileIntent = new Intent(AHEActivity.this, EditFile.class);
        editFileIntent.putExtra("fileName", folderPath + fileFolderName.getText().toString());

        TabHost.TabSpec spec = tabHost.newTabSpec(folderPath + fileFolderName.getText().toString())
                .setIndicator(tview).setContent(editFileIntent);

        tabHost.addTab(spec);
        tabHost.setCurrentTab(tabNum);
        tabHost.refreshDrawableState();

        //Log.i("TabCount",String.valueOf(tabCount));
        //Intent editFileIntent = new Intent(AHEActivity.this,EditFile.class);
        //startActivity(editFileIntent);
        //Intent editFileIntent = new Intent(AHEActivity.this,TabLoader.class);
        //startActivity(editFileIntent);

    }
    Log.i("clicked", typeId.toString());
}

From source file:cm.aptoide.pt.ApkInfo.java

/**
 *
 *///  w w w . j av a2 s  . c  o m
private void checkDownloadStatus() {
    try {
        download = serviceDownloadManager.callGetAppDownloading(viewApk.hashCode());

    } catch (RemoteException e1) {
        e1.printStackTrace();
    }

    Log.d("Aptoide-ApkInfo", "getAppDownloading: " + download);

    if (download.getDownloadStatus().equals(EnumDownloadStatus.DOWNLOADING)) {
        ImageView manage = (ImageView) findViewById(R.id.icon_manage);
        //            manage.setVisibility(View.GONE);
        manage.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View view) {
                setupQuickActions(view);
            }
        });
        try {
            serviceDownloadManager.callRegisterDownloadObserver(viewApk.hashCode(),
                    serviceDownloadManagerCallback);
        } catch (RemoteException e) {
            e.printStackTrace();
        }
        findViewById(R.id.download_progress).setVisibility(View.VISIBLE);
        //            findViewById(R.id.icon_manage).setVisibility(View.VISIBLE);
        findViewById(R.id.downloading_name).setVisibility(View.INVISIBLE);
        ((ProgressBar) findViewById(R.id.downloading_progress)).setProgress(download.getProgress());
        ((TextView) findViewById(R.id.speed)).setText(download.getSpeedInKBpsString(this));
        ((TextView) findViewById(R.id.speed)).setTextColor(Color.WHITE);
        ((TextView) findViewById(R.id.progress)).setText(download.getProgressString());
        ((TextView) findViewById(R.id.progress)).setTextColor(Color.WHITE);

    }
}

From source file:com.cypress.cysmart.BLEServiceFragments.SensorHubService.java

/**
 * Setting accelerometer graph//from  w w  w.j  a v a2s  .  c o  m
 * @param parent
 */
private void setupAccChart(View parent) {
    /**
     * Setting graph titles
     */
    String graphXTitle = getResources().getString(R.string.sen_hub_accelerometer_x);
    String graphYTitle = getResources().getString(R.string.sen_hub_accelerometer_Y);
    String graphZTitle = getResources().getString(R.string.sen_hub_accelerometer_Z);
    String graphXAxis = getResources().getString(R.string.health_temperature_time);
    String graphYAxis = getResources().getString(R.string.sen_hub_accelerometer);

    // Creating an  XYSeries for Accelerometer
    mAccXDataSeries = new XYSeries(graphXTitle);
    mAccYDataSeries = new XYSeries(graphYTitle);
    mAccZDataSeries = new XYSeries(graphZTitle);

    // Creating a dataset to hold each series
    XYMultipleSeriesDataset mDataset = new XYMultipleSeriesDataset();

    // Adding temperature Series to the dataset
    mDataset.addSeries(mAccXDataSeries);
    mDataset.addSeries(mAccYDataSeries);
    mDataset.addSeries(mAccZDataSeries);

    // Creating XYSeriesRenderer to customize
    XYSeriesRenderer mXRenderer = new XYSeriesRenderer();
    mXRenderer.setColor(Color.RED);
    mXRenderer.setPointStyle(PointStyle.CIRCLE);
    mXRenderer.setFillPoints(true);
    mXRenderer.setLineWidth(5);

    XYSeriesRenderer mYRenderer = new XYSeriesRenderer();
    mYRenderer.setColor(Color.BLUE);
    mYRenderer.setPointStyle(PointStyle.CIRCLE);
    mYRenderer.setFillPoints(true);
    mYRenderer.setLineWidth(5);

    XYSeriesRenderer mZRenderer = new XYSeriesRenderer();
    mZRenderer.setColor(Color.GREEN);
    mZRenderer.setPointStyle(PointStyle.CIRCLE);
    mZRenderer.setFillPoints(true);
    mZRenderer.setLineWidth(5);

    // Creating a XYMultipleSeriesRenderer to customize the whole chart
    XYMultipleSeriesRenderer mMultiRenderer = new XYMultipleSeriesRenderer();
    switch (getResources().getDisplayMetrics().densityDpi) {
    case DisplayMetrics.DENSITY_XHIGH:
        mMultiRenderer.setMargins(new int[] { 40, 90, 25, 10 });
        mMultiRenderer.setAxisTitleTextSize(Constants.TEXT_SIZE_XHDPI);
        mMultiRenderer.setChartTitleTextSize(Constants.TEXT_SIZE_XHDPI);
        mMultiRenderer.setLabelsTextSize(Constants.TEXT_SIZE_XHDPI);
        mMultiRenderer.setLegendTextSize(Constants.TEXT_SIZE_XHDPI);
        break;
    case DisplayMetrics.DENSITY_HIGH:
        mMultiRenderer.setMargins(new int[] { 30, 50, 25, 10 });
        mMultiRenderer.setAxisTitleTextSize(Constants.TEXT_SIZE_HDPI);
        mMultiRenderer.setChartTitleTextSize(Constants.TEXT_SIZE_HDPI);
        mMultiRenderer.setLabelsTextSize(Constants.TEXT_SIZE_HDPI);
        mMultiRenderer.setLegendTextSize(Constants.TEXT_SIZE_HDPI);
        break;
    case DisplayMetrics.DENSITY_XXHIGH:
        mMultiRenderer.setMargins(new int[] { 50, 100, 35, 20 });
        mMultiRenderer.setAxisTitleTextSize(Constants.TEXT_SIZE_XXHDPI);
        mMultiRenderer.setChartTitleTextSize(Constants.TEXT_SIZE_XXHDPI);
        mMultiRenderer.setLabelsTextSize(Constants.TEXT_SIZE_XXHDPI);
        mMultiRenderer.setLegendTextSize(Constants.TEXT_SIZE_XXHDPI);
        break;

    default:
        mMultiRenderer.setMargins(new int[] { 30, 50, 25, 10 });
        mMultiRenderer.setAxisTitleTextSize(Constants.TEXT_SIZE_LDPI);
        mMultiRenderer.setChartTitleTextSize(Constants.TEXT_SIZE_LDPI);
        mMultiRenderer.setLabelsTextSize(Constants.TEXT_SIZE_LDPI);
        mMultiRenderer.setLegendTextSize(Constants.TEXT_SIZE_LDPI);
        break;
    }
    mMultiRenderer.setXTitle(graphXAxis);
    mMultiRenderer.setLabelsColor(Color.BLACK);
    mMultiRenderer.setYTitle(graphYAxis);
    mMultiRenderer.setMarginsColor(Color.argb(0x00, 0xff, 0x00, 0x00));
    mMultiRenderer.setPanEnabled(true, true);
    mMultiRenderer.setYLabelsColor(0, Color.BLACK);
    mMultiRenderer.setXLabelsColor(Color.BLACK);
    mMultiRenderer.setApplyBackgroundColor(true);
    mMultiRenderer.setBackgroundColor(Color.WHITE);
    mMultiRenderer.setGridColor(Color.BLACK);
    mMultiRenderer.setShowGrid(true);
    mMultiRenderer.setShowLegend(false);

    // Adding mRenderer to multipleRenderer
    mMultiRenderer.addSeriesRenderer(mXRenderer);
    mMultiRenderer.addSeriesRenderer(mYRenderer);
    mMultiRenderer.addSeriesRenderer(mZRenderer);

    // Getting a reference to LinearLayout of the MainActivity Layout
    mACCGraphLayoutParent = (LinearLayout) parent.findViewById(R.id.accelerometer_chart_container);

    mAccelerometerChart = ChartFactory.getLineChartView(getActivity(), mDataset, mMultiRenderer);

    // Adding the Line Chart to the LinearLayout
    mACCGraphLayoutParent.addView(mAccelerometerChart);

}