本文整理汇总了Java中com.google.samples.apps.iosched.util.BeamUtils类的典型用法代码示例。如果您正苦于以下问题:Java BeamUtils类的具体用法?Java BeamUtils怎么用?Java BeamUtils使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BeamUtils类属于com.google.samples.apps.iosched.util包,在下文中一共展示了BeamUtils类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.google.samples.apps.iosched.util.BeamUtils; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.session_feedback_act);
if (savedInstanceState == null) {
Uri sessionUri = getIntent().getData();
BeamUtils.setBeamSessionUri(this, sessionUri);
}
mSessionUri = getIntent().getData();
if (mSessionUri == null) {
LOGE(TAG, "SessionFeedbackActivity started with null data URI!");
finish();
}
setToolbarAsUp(new View.OnClickListener() {
@Override
public void onClick(View view) {
NavUtils.navigateUpTo(SessionFeedbackActivity.this,
getParentActivityIntent());
}
});
}
开发者ID:google,项目名称:iosched,代码行数:26,代码来源:SessionFeedbackActivity.java
示例2: onCreate
import com.google.samples.apps.iosched.util.BeamUtils; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
UIUtils.tryTranslateHttpIntent(this);
BeamUtils.tryUpdateIntentFromBeam(this);
super.onCreate(savedInstanceState);
mSessionUri = getIntent().getData();
if (mSessionUri == null) {
LOGE(TAG, "SessionDetailActivity started with null session Uri!");
finish();
return;
}
if (savedInstanceState == null) {
BeamUtils.setBeamSessionUri(this, mSessionUri);
}
setContentView(R.layout.session_detail_act);
setToolbarAsUp(new View.OnClickListener() {
@Override
public void onClick(View view) {
ActivityCompat.finishAfterTransition(SessionDetailActivity.this);
}
});
}
开发者ID:google,项目名称:iosched,代码行数:27,代码来源:SessionDetailActivity.java
示例3: onCreate
import com.google.samples.apps.iosched.util.BeamUtils; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.session_feedback_act);
if (savedInstanceState == null) {
Uri sessionUri = getIntent().getData();
BeamUtils.setBeamSessionUri(this, sessionUri);
}
mSessionUri = getIntent().getData();
if (mSessionUri == null){
LOGE(TAG, "SessionFeedbackActivity started with null data URI!");
finish();
}
addPresenterFragment(R.id.session_feedback_frag,
new SessionFeedbackModel(mSessionUri, getApplicationContext(),
new FeedbackHelper(this)),
SessionFeedbackModel.SessionFeedbackQueryEnum.values(),
SessionFeedbackModel.SessionFeedbackUserActionEnum.values());
Toolbar toolbar = getActionBarToolbar();
toolbar.setNavigationIcon(R.drawable.ic_up);
toolbar.setNavigationContentDescription(R.string.close_and_go_back);
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
NavUtils.navigateUpTo(SessionFeedbackActivity.this,
getParentActivityIntent());
}
});
}
开发者ID:dreaminglion,项目名称:iosched-reader,代码行数:36,代码来源:SessionFeedbackActivity.java
示例4: onCreate
import com.google.samples.apps.iosched.util.BeamUtils; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
UIUtils.tryTranslateHttpIntent(this);
BeamUtils.tryUpdateIntentFromBeam(this);
boolean shouldBeFloatingWindow = shouldBeFloatingWindow();
if (shouldBeFloatingWindow) {
setupFloatingWindow(R.dimen.session_details_floating_width,
R.dimen.session_details_floating_height, 1, 0.4f);
}
super.onCreate(savedInstanceState);
setContentView(R.layout.session_detail_act);
final Toolbar toolbar = getActionBarToolbar();
toolbar.setNavigationIcon(shouldBeFloatingWindow
? R.drawable.ic_ab_close : R.drawable.ic_up);
toolbar.setNavigationContentDescription(R.string.close_and_go_back);
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
finish();
}
});
mHandler.post(new Runnable() {
@Override
public void run() {
// Do not display the Activity name in the toolbar
toolbar.setTitle("");
}
});
if (savedInstanceState == null) {
Uri sessionUri = getIntent().getData();
BeamUtils.setBeamSessionUri(this, sessionUri);
}
mSessionUri = getIntent().getData();
if (mSessionUri == null) {
LOGE(TAG, "SessionDetailActivity started with null session Uri!");
finish();
return;
}
addPresenterFragment(R.id.session_detail_frag,
new SessionDetailModel(mSessionUri, getApplicationContext(),
new SessionsHelper(this)), SessionDetailQueryEnum.values(),
SessionDetailUserActionEnum.values());
}
开发者ID:dreaminglion,项目名称:iosched-reader,代码行数:50,代码来源:SessionDetailActivity.java
注:本文中的com.google.samples.apps.iosched.util.BeamUtils类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论