当前位置: 首页>>代码示例>>Java>>正文


Java TurbolinksView类代码示例

本文整理汇总了Java中com.basecamp.turbolinks.TurbolinksView的典型用法代码示例。如果您正苦于以下问题:Java TurbolinksView类的具体用法?Java TurbolinksView怎么用?Java TurbolinksView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TurbolinksView类属于com.basecamp.turbolinks包,在下文中一共展示了TurbolinksView类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreate

import com.basecamp.turbolinks.TurbolinksView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_topic);

    Toolbar myToolbar = (Toolbar) findViewById(R.id.topic_toolbar);
    setSupportActionBar(myToolbar);
    ActionBar actionbar = getSupportActionBar();
    actionbar.setDisplayHomeAsUpEnabled(true);

    turbolinksView = (TurbolinksView) findViewById(R.id.topic_turbolinks_view);
    location = getIntent().getStringExtra(INTENT_URL);

    TurbolinksSession.getDefault(this)
            .activity(this)
            .adapter(this)
            .view(turbolinksView)
            .visit(location);
}
 
开发者ID:ruby-china,项目名称:ruby-china-android,代码行数:20,代码来源:TopicActivity.java

示例2: onCreate

import com.basecamp.turbolinks.TurbolinksView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_reply_edit);

    Toolbar myToolbar = (Toolbar) findViewById(R.id.reply_edit_toolbar);
    setSupportActionBar(myToolbar);
    ActionBar actionbar = getSupportActionBar();
    actionbar.setDisplayHomeAsUpEnabled(true);

    turbolinksView = (TurbolinksView) findViewById(R.id.reply_edit_turbolinks_view);

    TurbolinksSession.getDefault(this)
            .activity(this)
            .adapter(this)
            .view(turbolinksView)
            .visit(location);
}
 
开发者ID:ruby-china,项目名称:ruby-china-android,代码行数:19,代码来源:ReplyEditActivity.java

示例3: onCreate

import com.basecamp.turbolinks.TurbolinksView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_topic_new);

    Toolbar myToolbar = (Toolbar) findViewById(R.id.topic_new_toolbar);
    setSupportActionBar(myToolbar);
    ActionBar actionbar = getSupportActionBar();
    actionbar.setDisplayHomeAsUpEnabled(true);

    turbolinksView = (TurbolinksView) findViewById(R.id.topic_new_turbolinks_view);

    TurbolinksSession.getDefault(this)
            .activity(this)
            .adapter(this)
            .view(turbolinksView)
            .visit(location);
}
 
开发者ID:ruby-china,项目名称:ruby-china-android,代码行数:19,代码来源:TopicNewActivity.java

示例4: onCreate

import com.basecamp.turbolinks.TurbolinksView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_topic_edit);

    Toolbar myToolbar = (Toolbar) findViewById(R.id.topic_edit_toolbar);
    setSupportActionBar(myToolbar);
    ActionBar actionbar = getSupportActionBar();
    actionbar.setDisplayHomeAsUpEnabled(true);

    turbolinksView = (TurbolinksView) findViewById(R.id.topic_edit_turbolinks_view);

    TurbolinksSession.getDefault(this)
            .activity(this)
            .adapter(this)
            .view(turbolinksView)
            .visit(location);
}
 
开发者ID:ruby-china,项目名称:ruby-china-android,代码行数:19,代码来源:TopicEditActivity.java

示例5: onCreate

import com.basecamp.turbolinks.TurbolinksView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_empty);

    Toolbar myToolbar = (Toolbar) findViewById(R.id.empty_toolbar);
    setSupportActionBar(myToolbar);
    ActionBar actionbar = getSupportActionBar();
    actionbar.setDisplayHomeAsUpEnabled(true);

    turbolinksView = (TurbolinksView) findViewById(R.id.empty_turbolinks_view);

    TurbolinksSession.getDefault(this)
            .activity(this)
            .adapter(this)
            .view(turbolinksView)
            .visit(location);
}
 
开发者ID:ruby-china,项目名称:ruby-china-android,代码行数:19,代码来源:EmptyActivity.java

示例6: onCreate

import com.basecamp.turbolinks.TurbolinksView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_settings);

    Toolbar myToolbar = (Toolbar) findViewById(R.id.settings_toolbar);
    setSupportActionBar(myToolbar);
    ActionBar actionbar = getSupportActionBar();
    actionbar.setDisplayHomeAsUpEnabled(true);

    turbolinksView = (TurbolinksView) findViewById(R.id.settings_turbolinks_view);

    TurbolinksSession.getDefault(this)
            .activity(this)
            .adapter(this)
            .view(turbolinksView)
            .visit(location);
}
 
开发者ID:ruby-china,项目名称:ruby-china-android,代码行数:19,代码来源:SettingsActivity.java

示例7: onCreate

import com.basecamp.turbolinks.TurbolinksView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    // Find the custom TurbolinksView object in your layout
    turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_view);

    // For this demo app, we force debug logging on. You will only want to do
    // this for debug builds of your app (it is off by default)
    TurbolinksSession.getDefault(this).setDebugLoggingEnabled(true);

    // For this example we set a default location, unless one is passed in through an intent
    location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : BASE_URL;

    // Execute the visit
    TurbolinksSession.getDefault(this)
        .activity(this)
        .adapter(this)
        .view(turbolinksView)
        .visit(location);
}
 
开发者ID:turbolinks,项目名称:turbolinks-android,代码行数:23,代码来源:MainActivity.java

示例8: 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();
}
 
开发者ID:tamcgoey,项目名称:dasher-app-android,代码行数:35,代码来源:DashesActivity.java

示例9: 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);


}
 
开发者ID:tamcgoey,项目名称:dasher-app-android,代码行数:30,代码来源:ActiveDashCancelActivity.java

示例10: 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);

}
 
开发者ID:tamcgoey,项目名称:dasher-app-android,代码行数:29,代码来源:ActiveDashDetailsActivity.java

示例11: 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);

}
 
开发者ID:tamcgoey,项目名称:dasher-app-android,代码行数:33,代码来源:ActiveDashChangeBidActivity.java

示例12: 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();
}
 
开发者ID:tamcgoey,项目名称:dasher-app-android,代码行数:35,代码来源:FinishDashActivity.java

示例13: 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);

}
 
开发者ID:tamcgoey,项目名称:dasher-app-android,代码行数:28,代码来源:ProfileActivity.java

示例14: 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);
}
 
开发者ID:tamcgoey,项目名称:dasher-app-android,代码行数:29,代码来源:ActiveDashHelpActivity.java

示例15: 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);

}
 
开发者ID:tamcgoey,项目名称:dasher-app-android,代码行数:29,代码来源:LockedActivity.java


注:本文中的com.basecamp.turbolinks.TurbolinksView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。