本文整理汇总了Java中yalantis.com.sidemenu.interfaces.Resourceble类的典型用法代码示例。如果您正苦于以下问题:Java Resourceble类的具体用法?Java Resourceble怎么用?Java Resourceble使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Resourceble类属于yalantis.com.sidemenu.interfaces包,在下文中一共展示了Resourceble类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onSwitch
import yalantis.com.sidemenu.interfaces.Resourceble; //导入依赖的package包/类
/**
* 参数分别为:选中的按钮,当前的信息界面,触摸点的 Y 坐标
**/
@Override
public ScreenShotable onSwitch(Resourceble slideMenuItem, ScreenShotable screenShotable, int position)
{
switch (slideMenuItem.getName()) {
case CLOSE:
return screenShotable;
case FaceDetect:
return replaceFragment(screenShotable, position, FaceDetect);
case SimilarFace:
return replaceFragment(screenShotable, position, SimilarFace);
case FunnyChartlet:
return replaceFragment(screenShotable, position, FunnyChartlet);
}
return null;
}
开发者ID:VernonVan,项目名称:Face,代码行数:19,代码来源:MainActivity.java
示例2: onSwitch
import yalantis.com.sidemenu.interfaces.Resourceble; //导入依赖的package包/类
/**
* @param slideMenuItem
* @param screenShotable
* @param position
* @return
*/
@Override
public ScreenShotable onSwitch(Resourceble slideMenuItem, ScreenShotable screenShotable, int position) {
switch (slideMenuItem.getName()) {
case CLOSE:
return screenShotable;
default:
if(slideMenuItem.getName().equals(SETTINGS)){
startActivity(new Intent(MainActivity.this, SettingsActivity.class));
return screenShotable;
}else if(slideMenuItem.getName().equals(ACCOUNT)){
if(application.isVisitor()) {
startActivity(new Intent(MainActivity.this, LoginActivity.class));
}else{
startActivity(new Intent(MainActivity.this, UserCenterActivity.class));
}
return screenShotable;
}else {
setTitle(slideMenuItem.getName());
return replaceFragment(slideMenuItem, screenShotable, position);
}
}
}
开发者ID:Null-Ouwenjie,项目名称:Jide-Note,代码行数:29,代码来源:MainActivity.java
示例3: onSwitch
import yalantis.com.sidemenu.interfaces.Resourceble; //导入依赖的package包/类
@Override
public ScreenShotable onSwitch(Resourceble slideMenuItem, ScreenShotable screenShotable, int position) {
switch (slideMenuItem.getName()) {
case MainContentFragment.CLOSE:
return screenShotable;
default:
return replaceFragment(screenShotable, position);
}
}
开发者ID:zongkaili,项目名称:MenuSet,代码行数:10,代码来源:MainActivity.java
示例4: onSwitch
import yalantis.com.sidemenu.interfaces.Resourceble; //导入依赖的package包/类
@Override
public ScreenShotable onSwitch(Resourceble slideMenuItem, ScreenShotable screenShotable, int position) {
switch (slideMenuItem.getName()) {
case CLOSE:
return screenShotable;
default:
return replaceFragment(screenShotable, position, slideMenuItem.getName());
}
}
开发者ID:lucastanziano,项目名称:Blockbuster,代码行数:10,代码来源:MovieGalleryActivity.java
示例5: onSwitch
import yalantis.com.sidemenu.interfaces.Resourceble; //导入依赖的package包/类
@Override
public ScreenShotable onSwitch(Resourceble slideMenuItem, ScreenShotable screenShotable, int position) {
switch (slideMenuItem.getName()) {
case ContentFragment.CLOSE:
return screenShotable;
default:
return replaceFragment(screenShotable, position);
}
}
开发者ID:Yalantis,项目名称:Side-Menu.Android,代码行数:10,代码来源:MainActivity.java
示例6: replaceFragment
import yalantis.com.sidemenu.interfaces.Resourceble; //导入依赖的package包/类
/**
* 切换Fragment
* @param screenShotable
* 一个实现了 ScreenShotable 接口的 Fragment 对象
* @param topPosition
* @return
*/
private ScreenShotable replaceFragment(Resourceble slideMenuItem,ScreenShotable screenShotable, int topPosition) {
View view = findViewById(R.id.content_frame);
int finalRadius = Math.max(view.getWidth(), view.getHeight());
SupportAnimator animator = ViewAnimationUtils.createCircularReveal(view, 0, topPosition, 0, finalRadius);
animator.setInterpolator(new AccelerateInterpolator());
animator.setDuration(ViewAnimator.CIRCULAR_REVEAL_ANIMATION_DURATION);
findViewById(R.id.content_overlay).setBackgroundDrawable(new BitmapDrawable(getResources(), screenShotable.getBitmap()));
animator.start();
switch (slideMenuItem.getName()){
case RECORD:
recordFragment = ContentFragment.newInstance(ContentFragment.RECORD);
getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, recordFragment).commit();
return recordFragment;
// case LIST:
// listFragment = ListFragment.newInstance();
// getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, listFragment).commit();
// return listFragment;
case REMIND:
remindFragment = ContentFragment.newInstance(ContentFragment.REMIND);
getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, remindFragment).commit();
return remindFragment;
case ARCHIVE:
archiveFragment = ContentFragment.newInstance(ContentFragment.ARCHIVE);
getSupportFragmentManager().beginTransaction().replace(R.id.content_frame,archiveFragment).commit();
return archiveFragment;
case RECYCLE:
recycleFragment = ContentFragment.newInstance(ContentFragment.RECYCLE);
getSupportFragmentManager().beginTransaction().replace(R.id.content_frame,recycleFragment).commit();
return recycleFragment;
default:
break;
}
return recordFragment;
}
开发者ID:Null-Ouwenjie,项目名称:Jide-Note,代码行数:47,代码来源:MainActivity.java
示例7: switchItem
import yalantis.com.sidemenu.interfaces.Resourceble; //导入依赖的package包/类
private void switchItem(Resourceble slideMenuItem, int topPosition) {
this.screenShotable = animatorListener.onSwitch(slideMenuItem, screenShotable, topPosition);
hideMenuContent();
}
开发者ID:zongkaili,项目名称:MenuSet,代码行数:5,代码来源:ViewAnimator.java
示例8: switchItem
import yalantis.com.sidemenu.interfaces.Resourceble; //导入依赖的package包/类
/**
* 切换item
* @param slideMenuItem
* @param topPosition
*/
private void switchItem(Resourceble slideMenuItem, int topPosition) {
this.screenShotable = animatorListener.onSwitch(slideMenuItem, screenShotable, topPosition);
hideMenuContent();
}
开发者ID:brucetoo,项目名称:Side-Menu,代码行数:10,代码来源:ViewAnimator.java
示例9: onSwitch
import yalantis.com.sidemenu.interfaces.Resourceble; //导入依赖的package包/类
public ScreenShotable onSwitch(Resourceble slideMenuItem, ScreenShotable screenShotable, int position);
开发者ID:zongkaili,项目名称:MenuSet,代码行数:2,代码来源:ViewAnimator.java
注:本文中的yalantis.com.sidemenu.interfaces.Resourceble类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论