本文整理汇总了Java中com.basecamp.turbolinks.TurbolinksView.setBackgroundColor方法的典型用法代码示例。如果您正苦于以下问题:Java TurbolinksView.setBackgroundColor方法的具体用法?Java TurbolinksView.setBackgroundColor怎么用?Java TurbolinksView.setBackgroundColor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.basecamp.turbolinks.TurbolinksView
的用法示例。
在下文中一共展示了TurbolinksView.setBackgroundColor方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dashes);
// Setup Native Toolbar
mToolbar = (Toolbar) findViewById(R.id.dashes_toolbar);
mToolbar.setTitle(R.string.title_activity_dashes);
setSupportActionBar(mToolbar);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_dashes_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
// Make app active (used for push notifications)
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
sharedPreferences.edit().putBoolean(IS_APP_ACTIVE, true).apply();
}
示例2: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_active_dash_cancel);
Toolbar toolbar = (Toolbar) findViewById(R.id.active_dash_cancel_toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_active_dash_cancel_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
}
示例3: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_active_dash_details);
Toolbar toolbar = (Toolbar) findViewById(R.id.active_dash_details_toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_active_dash_details_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
}
示例4: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
Log.d("Active BID ACTIVITY", this.toString());
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_active_dash_change_bid);
Toolbar toolbar = (Toolbar) findViewById(R.id.active_dash_change_bid_toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_active_dash_change_bid_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
}
示例5: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_finish_dash);
mToolbar = (Toolbar) findViewById(R.id.finish_dash_toolbar);
mToolbar.setTitle(R.string.title_activity_finish_dash);
setSupportActionBar(mToolbar);
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_finish_dash_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
// Make app active (used for push notifications)
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
sharedPreferences.edit().putBoolean(IS_APP_ACTIVE, true).apply();
}
示例6: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_profile);
Toolbar toolbar = (Toolbar) findViewById(R.id.profile_toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_profile_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
}
示例7: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_active_dash_help);
Toolbar toolbar = (Toolbar) findViewById(R.id.active_dash_help_toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_active_dash_help_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
}
示例8: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_locked);
mToolbar = (Toolbar) findViewById(R.id.locked_toolbar);
mToolbar.setTitle(R.string.title_activity_locked_dash);
setSupportActionBar(mToolbar);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_locked_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
}
示例9: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_help);
Toolbar toolbar = (Toolbar) findViewById(R.id.help_toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_help_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
}
示例10: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_active_dash_finish);
Toolbar toolbar = (Toolbar) findViewById(R.id.active_dash_finish_toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_active_dash_finish_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
}
示例11: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_report_dash);
Toolbar toolbar = (Toolbar) findViewById(R.id.report_dash_toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_report_dash_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
}
示例12: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_active_dash);
mToolbar = (Toolbar) findViewById(R.id.active_dash_toolbar);
mToolbar.setTitle(R.string.title_activity_active_dash);
setSupportActionBar(mToolbar);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_active_dash_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
// Make app active (used for push notifications)
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
sharedPreferences.edit().putBoolean(IS_APP_ACTIVE, true).apply();
}
示例13: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
mToolbar = (Toolbar) findViewById(R.id.login_toolbar);
setSupportActionBar(mToolbar);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_login_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
// Make app active (used for push notifications)
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
sharedPreferences.edit().putBoolean(IS_APP_ACTIVE, true).apply();
}
示例14: onCreate
import com.basecamp.turbolinks.TurbolinksView; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_active_dash_report);
Toolbar toolbar = (Toolbar) findViewById(R.id.active_dash_report_toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_active_dash_report_view);
turbolinksView.setBackgroundColor(Color.rgb(238, 238, 238));
TurbolinksSession.getDefault(this).addJavascriptInterface(new DashWebService(this), "Android");
// Use passed in intentURL else, just stick with the base url...
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : (getResources().getString(R.string.base_url) + "/dashers/dashes");
dashID = getIntent().getStringExtra(DASH_ID);
resourceID = getIntent().getStringExtra(RESOURCE_ID);
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
}