Example usage for android.graphics Color YELLOW

List of usage examples for android.graphics Color YELLOW

Introduction

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

Prototype

int YELLOW

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

Click Source Link

Usage

From source file:com.android.systemui.statusbar.phone.NotificationPanelView.java

@Override
protected void dispatchDraw(Canvas canvas) {
    super.dispatchDraw(canvas);
    if (DEBUG) {/*w  ww .j  av a2  s.c  om*/
        Paint p = new Paint();
        p.setColor(Color.RED);
        p.setStrokeWidth(2);
        p.setStyle(Paint.Style.STROKE);
        canvas.drawLine(0, getMaxPanelHeight(), getWidth(), getMaxPanelHeight(), p);
        p.setColor(Color.BLUE);
        canvas.drawLine(0, getExpandedHeight(), getWidth(), getExpandedHeight(), p);
        p.setColor(Color.GREEN);
        canvas.drawLine(0, calculatePanelHeightQsExpanded(), getWidth(), calculatePanelHeightQsExpanded(), p);
        p.setColor(Color.YELLOW);
        canvas.drawLine(0, calculatePanelHeightShade(), getWidth(), calculatePanelHeightShade(), p);
        p.setColor(Color.MAGENTA);
        canvas.drawLine(0, calculateQsTopPadding(), getWidth(), calculateQsTopPadding(), p);
        p.setColor(Color.CYAN);
        canvas.drawLine(0, mNotificationStackScroller.getTopPadding(), getWidth(),
                mNotificationStackScroller.getTopPadding(), p);
    }
}

From source file:com.sentaroh.android.SMBExplorer.SMBExplorerMain.java

private void showDialogMsg(String cat, String st, String mt) {
    setUiEnabled(false);/*from w w  w.ja  v a2  s  . co  m*/
    createDialogCloseBtnListener();
    String msg = "";
    if (mt.equals(""))
        msg = st;
    else
        msg = st + "\n" + mt;
    if (currentTabName.equals(SMBEXPLORER_TAB_LOCAL)) {
        showLocalDialogView();
        mGp.dialogMsgView = mLocalDialogMsg;
        mGp.dialogCloseBtn = mLocalDialogCloseBtn;
    } else if (currentTabName.equals(SMBEXPLORER_TAB_REMOTE)) {
        showRemoteDialogView();
        mGp.dialogMsgView = mRemoteDialogMsg;
        mGp.dialogCloseBtn = mRemoteDialogCloseBtn;
    }
    if (cat.equals("E"))
        mGp.dialogMsgView.setTextColor(Color.RED);
    else if (cat.equals("W"))
        mGp.dialogMsgView.setTextColor(Color.YELLOW);
    else
        mGp.dialogMsgView.setTextColor(Color.WHITE);
    mGp.dialogMsgView.setText(msg);
    mGp.dialogCloseBtn.setOnClickListener(mDialogOnClickListener);
    mDialogMsgCat = cat;
}

From source file:com.sentaroh.android.SMBSync.SMBSyncMain.java

private void showConfirmDialog(String fp, String method) {

    util.addDebugLogMsg(1, "I", "showConfirmDialog entered");
    final NotifyEvent ntfy = new NotifyEvent(mContext);
    ntfy.setListener(new NotifyEventListener() {
        @Override/*from w  w w . ja  v a  2  s.  c  o m*/
        public void positiveResponse(Context c, Object[] o) {
            try {
                mSvcClient.aidlConfirmResponse((Integer) o[0]);
            } catch (RemoteException e) {
                e.printStackTrace();
            }
        }

        @Override
        public void negativeResponse(Context c, Object[] o) {
            try {
                mSvcClient.aidlConfirmResponse((Integer) o[0]);
            } catch (RemoteException e) {
                e.printStackTrace();
            }
        }
    });

    final LinearLayout ll_confirm = (LinearLayout) findViewById(R.id.profile_confirm);
    ll_confirm.setVisibility(LinearLayout.VISIBLE);
    ll_confirm.setBackgroundColor(Color.BLACK);
    ll_confirm.bringToFront();
    TextView dlg_title = (TextView) findViewById(R.id.copy_delete_confirm_title);
    TextView dlg_msg = (TextView) findViewById(R.id.copy_delete_confirm_msg);
    dlg_title.setText(mContext.getString(R.string.msgs_common_dialog_warning));
    dlg_title.setTextColor(Color.YELLOW);
    String msg_text = "";
    if (method.equals(SMBSYNC_CONFIRM_FOR_COPY)) {
        msg_text = String.format(getString(R.string.msgs_mirror_confirm_copy_confirm), fp);
    } else {
        msg_text = String.format(getString(R.string.msgs_mirror_confirm_delete_confirm), fp);
    }
    dlg_msg.setText(msg_text);

    showNotificationMsg(msg_text);

    if (method.equals(SMBSYNC_CONFIRM_FOR_COPY))
        dlg_msg.setText(String.format(getString(R.string.msgs_mirror_confirm_copy_confirm), fp));
    else
        dlg_msg.setText(String.format(getString(R.string.msgs_mirror_confirm_delete_confirm), fp));

    Button btnYes = (Button) findViewById(R.id.copy_delete_confirm_yes);
    Button btnYesAll = (Button) findViewById(R.id.copy_delete_confirm_yesall);
    final Button btnNo = (Button) findViewById(R.id.copy_delete_confirm_no);
    Button btnNoAll = (Button) findViewById(R.id.copy_delete_confirm_noall);
    Button btnTaskCancel = (Button) findViewById(R.id.copy_delete_confirm_task_cancel);

    // Yes?
    btnYes.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            ll_confirm.setVisibility(LinearLayout.GONE);
            ntfy.notifyToListener(true, new Object[] { SMBSYNC_CONFIRM_RESP_YES });
        }
    });
    // YesAll?
    btnYesAll.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            ll_confirm.setVisibility(LinearLayout.GONE);
            ntfy.notifyToListener(true, new Object[] { SMBSYNC_CONFIRM_RESP_YESALL });
        }
    });
    // No?
    btnNo.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            ll_confirm.setVisibility(LinearLayout.GONE);
            ntfy.notifyToListener(false, new Object[] { SMBSYNC_CONFIRM_RESP_NO });
        }
    });
    // NoAll?
    btnNoAll.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            ll_confirm.setVisibility(LinearLayout.GONE);
            ntfy.notifyToListener(false, new Object[] { SMBSYNC_CONFIRM_RESP_NOALL });
        }
    });
    // Task cancel?
    btnTaskCancel.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            ll_confirm.setVisibility(LinearLayout.GONE);
            try {
                mSvcClient.aidlCancelThread();
            } catch (RemoteException e) {
                e.printStackTrace();
            }
            ntfy.notifyToListener(false, new Object[] { SMBSYNC_CONFIRM_RESP_NOALL });
        }
    });
}

From source file:com.skytree.epubtest.BookViewActivity.java

public SkyBox(Context context) {
    super(context);
    this.setWillNotDraw(false);
    arrowHeight = 50;/*  w  ww . j a v  a  2 s.  c om*/
    boxColor = Color.YELLOW;
    strokeColor = Color.DKGRAY;
    contentView = new RelativeLayout(context);
    this.addView(contentView);
}