本文整理汇总了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);
}
}
}
}
示例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);
}
}
}
}
示例3: setActivity
import com.blunderer.materialdesignlibrary.activities.AActivity; //导入依赖的package包/类
public void setActivity(AActivity activity) {
mActivity = activity;
}
示例4: showActionBarSearch
import com.blunderer.materialdesignlibrary.activities.AActivity; //导入依赖的package包/类
public void showActionBarSearch() {
if (getActivity() instanceof AActivity) ((AActivity) getActivity()).showActionBarSearch();
}
示例5: hideActionBarSearch
import com.blunderer.materialdesignlibrary.activities.AActivity; //导入依赖的package包/类
public void hideActionBarSearch() {
if (getActivity() instanceof AActivity) ((AActivity) getActivity()).hideActionBarSearch();
}
示例6: showActionBarShadow
import com.blunderer.materialdesignlibrary.activities.AActivity; //导入依赖的package包/类
public void showActionBarShadow() {
if (getActivity() instanceof AActivity) ((AActivity) getActivity()).showActionBarShadow();
}
示例7: hideActionBarShadow
import com.blunderer.materialdesignlibrary.activities.AActivity; //导入依赖的package包/类
public void hideActionBarShadow() {
if (getActivity() instanceof AActivity) ((AActivity) getActivity()).hideActionBarShadow();
}