本文整理汇总了Java中com.google.android.apps.iosched.ui.SessionsFragment类的典型用法代码示例。如果您正苦于以下问题:Java SessionsFragment类的具体用法?Java SessionsFragment怎么用?Java SessionsFragment使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SessionsFragment类属于com.google.android.apps.iosched.ui包,在下文中一共展示了SessionsFragment类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onRoomSelected
import com.google.android.apps.iosched.ui.SessionsFragment; //导入依赖的package包/类
@Override
public void onRoomSelected(String roomId) {
// Load room details
mSelectedRoomName = null;
Bundle loadRoomDataArgs = new Bundle();
loadRoomDataArgs.putString("room_id", roomId);
getSupportLoaderManager().restartLoader(0, loadRoomDataArgs, this); // force load
// Show the sessions in the room
clearBackStack(true);
showDetailPane(true);
SessionsFragment fragment = new SessionsFragment();
fragment.setArguments(BaseActivity.intentToFragmentArguments(
new Intent(Intent.ACTION_VIEW,
ScheduleContract.Rooms.buildSessionsDirUri(roomId))));
getSupportFragmentManager().beginTransaction()
.replace(R.id.fragment_container_detail, fragment)
.addToBackStack(null)
.commit();
updateBreadCrumbs();
}
示例2: loadSessionList
import com.google.android.apps.iosched.ui.SessionsFragment; //导入依赖的package包/类
private void loadSessionList(Uri sessionsUri, String selectSessionId) {
SessionsFragment fragment = new SessionsFragment();
fragment.setSelectedSessionId(selectSessionId);
fragment.setArguments(BaseActivity.intentToFragmentArguments(
new Intent(Intent.ACTION_VIEW, sessionsUri)));
getSupportFragmentManager().beginTransaction()
.replace(R.id.fragment_container_master, fragment)
.commit();
}
示例3: onCreatePane
import com.google.android.apps.iosched.ui.SessionsFragment; //导入依赖的package包/类
@Override
protected Fragment onCreatePane() {
return new SessionsFragment();
}