本文整理汇总了Java中org.eyeseetea.malariacare.DashboardActivity.getSupportActionBar方法的典型用法代码示例。如果您正苦于以下问题:Java DashboardActivity.getSupportActionBar方法的具体用法?Java DashboardActivity.getSupportActionBar怎么用?Java DashboardActivity.getSupportActionBar使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eyeseetea.malariacare.DashboardActivity
的用法示例。
在下文中一共展示了DashboardActivity.getSupportActionBar方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setActionbarVerticalSurvey
import org.eyeseetea.malariacare.DashboardActivity; //导入方法依赖的package包/类
public static void setActionbarVerticalSurvey(DashboardActivity dashboardActivity,String title, String subtitle) {
android.support.v7.app.ActionBar actionBar = dashboardActivity.getSupportActionBar();
actionBar.setDisplayShowCustomEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setCustomView(R.layout.abc_action_bar_title_item);
actionBar.setSubtitle(subtitle);
actionBar.setTitle(title);
}
示例2: setActionbarTitle
import org.eyeseetea.malariacare.DashboardActivity; //导入方法依赖的package包/类
public static void setActionbarTitle(DashboardActivity dashboardActivity,Spanned title, String subtitle) {
android.support.v7.app.ActionBar actionBar = dashboardActivity.getSupportActionBar();
actionBar.setDisplayShowCustomEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setCustomView(R.layout.custom_action_bar);
((TextView) dashboardActivity.findViewById(R.id.action_bar_multititle_title)).setText(title);
((TextView) dashboardActivity.findViewById(R.id.action_bar_multititle_subtitle)).setText(subtitle);
}
示例3: setActionbarAppName
import org.eyeseetea.malariacare.DashboardActivity; //导入方法依赖的package包/类
public static void setActionbarAppName(DashboardActivity dashboardActivity) {
android.support.v7.app.ActionBar actionBar = dashboardActivity.getSupportActionBar();
actionBar.setDisplayShowCustomEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setCustomView(R.layout.abc_action_bar_title_item);
actionBar.setSubtitle(null);
actionBar.setTitle(dashboardActivity.getResources().getString(R.string.app_name));
}
示例4: setActionbarVerticalSurvey
import org.eyeseetea.malariacare.DashboardActivity; //导入方法依赖的package包/类
public static void setActionbarVerticalSurvey(DashboardActivity dashboardActivity, String title,
String subtitle) {
android.support.v7.app.ActionBar actionBar = dashboardActivity.getSupportActionBar();
actionBar.setDisplayShowCustomEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setCustomView(R.layout.abc_action_bar_title_item);
actionBar.setSubtitle(subtitle);
actionBar.setTitle(title);
}
示例5: setActionBarBackButton
import org.eyeseetea.malariacare.DashboardActivity; //导入方法依赖的package包/类
public static void setActionBarBackButton(DashboardActivity dashboardActivity){
android.support.v7.app.ActionBar actionBar = dashboardActivity.getSupportActionBar();
actionBar.setDisplayHomeAsUpEnabled(true);
}