Activity getTitle - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Activity getTitle method.

This code example shows how to use the following methods:getTitle, setTitle
        mCanvas.setBackgroundColor(color); // 视图仍然是透明色
    } 
 
    protected void showTime(long ms) {
        Activity activity = (Activity) this.getContext();
        String title = activity.getTitle().toString();
        int pos = title.indexOf(' ');
        if (pos >= 0) {
            title = title.substring(0, pos);
        } 
        activity.setTitle(title + " - " + Long.toString(ms) + " ms");
    } 
 
    @Override 
    protected void onDraw(Canvas canvas) {
        long ms = SystemClock.currentThreadTimeMillis();
        if (mCanvas.beginPaint(canvas)) {
            canvas.drawColor(Color.TRANSPARENT);
            if ((mCreateFlags & 0xF0000) != 0) {  // in scroll view
                TestCanvas.test(mCanvas, mCreateFlags, 400);
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getTitle, setTitle
        mCanvas.setBackgroundColor(color); // 视图仍然是透明色
    } 
 
    protected void showTime(long ms) {
        Activity activity = (Activity) this.getContext();
        String title = activity.getTitle().toString();
        int pos = title.indexOf(' ');
        if (pos >= 0) {
            title = title.substring(0, pos);
        } 
        activity.setTitle(title + " - " + Long.toString(ms) + " ms");
    } 
 
    protected void doDraw(SurfaceHolder holder) {
        long ms = SystemClock.currentThreadTimeMillis();
        Canvas canvas = holder.lockCanvas();
 
        if (canvas != null) {
            if (mCanvas.beginPaint(canvas)) {
                canvas.drawColor(Color.TRANSPARENT, Mode.CLEAR);
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getTitle
		private Activity mParentActivity;
		private CharSequence mTitle;
		 
		public AuthWebChromeClient(Activity parentActivity) {
			mParentActivity = parentActivity;
			mTitle = parentActivity.getTitle();
		} 
		 
		@Override 
        public void onProgressChanged(WebView view, int progress)
        {        	 
			mParentActivity.setTitle(String.format("Loading (%d%%)...", progress));
			mParentActivity.setProgress(progress * 100);
 
            if(progress == 100)	mParentActivity.setTitle(mTitle);
        } 
		 
	} 
	 
} 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java

Related Activity getTitle Questions & Answers:

Other Activity getTitle Examples

43:			setContentView(R.layout.activity_main);
44:	
45:			mTitle = mDrawerTitle = getTitle();
46:	
47:			// load slide menu items

Read More

21:			setContentView(R.layout.activity_main);
22:	
23:			mTitle = mDrawerTitle = getTitle();
24:	
25:			// load slide menu items

Read More

getTitle Method Overview
See Code Examples for other Android Activity Methods: