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


Java AActivity类代码示例

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


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

示例1: onAttach

import com.blunderer.materialdesignlibrary.activities.AActivity; //导入依赖的package包/类
@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);

    if (getActivity() instanceof AActivity) {
        View shadowView = ((AActivity) getActivity()).getActionBarShadowView();
        if (shadowView != null) {
            if (this instanceof ViewPagerWithTabsFragment) {
                FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) shadowView
                        .getLayoutParams();
                params.topMargin += ((int) getResources()
                        .getDimension(R.dimen.mdl_viewpager_with_tabs_height));
                shadowView.setLayoutParams(params);
            }
        }
    }
}
 
开发者ID:andreister,项目名称:hasty,代码行数:18,代码来源:AFragment.java

示例2: onDetach

import com.blunderer.materialdesignlibrary.activities.AActivity; //导入依赖的package包/类
@Override
public void onDetach() {
    super.onDetach();

    if (getActivity() instanceof AActivity) {
        View shadowView = ((AActivity) getActivity()).getActionBarShadowView();
        if (shadowView != null) {
            if (this instanceof ViewPagerWithTabsFragment) {
                FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) shadowView
                        .getLayoutParams();
                params.topMargin -= ((int) getResources()
                        .getDimension(R.dimen.mdl_viewpager_with_tabs_height));
                shadowView.setLayoutParams(params);
            }
        }
    }
}
 
开发者ID:andreister,项目名称:hasty,代码行数:18,代码来源:AFragment.java

示例3: setActivity

import com.blunderer.materialdesignlibrary.activities.AActivity; //导入依赖的package包/类
public void setActivity(AActivity activity) {
    mActivity = activity;
}
 
开发者ID:alessandrogurgel,项目名称:pedefacil,代码行数:4,代码来源:ToolbarSearch.java

示例4: showActionBarSearch

import com.blunderer.materialdesignlibrary.activities.AActivity; //导入依赖的package包/类
public void showActionBarSearch() {
    if (getActivity() instanceof AActivity) ((AActivity) getActivity()).showActionBarSearch();
}
 
开发者ID:andreister,项目名称:hasty,代码行数:4,代码来源:AFragment.java

示例5: hideActionBarSearch

import com.blunderer.materialdesignlibrary.activities.AActivity; //导入依赖的package包/类
public void hideActionBarSearch() {
    if (getActivity() instanceof AActivity) ((AActivity) getActivity()).hideActionBarSearch();
}
 
开发者ID:andreister,项目名称:hasty,代码行数:4,代码来源:AFragment.java

示例6: showActionBarShadow

import com.blunderer.materialdesignlibrary.activities.AActivity; //导入依赖的package包/类
public void showActionBarShadow() {
    if (getActivity() instanceof AActivity) ((AActivity) getActivity()).showActionBarShadow();
}
 
开发者ID:andreister,项目名称:hasty,代码行数:4,代码来源:AFragment.java

示例7: hideActionBarShadow

import com.blunderer.materialdesignlibrary.activities.AActivity; //导入依赖的package包/类
public void hideActionBarShadow() {
    if (getActivity() instanceof AActivity) ((AActivity) getActivity()).hideActionBarShadow();
}
 
开发者ID:andreister,项目名称:hasty,代码行数:4,代码来源:AFragment.java


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