本文整理汇总了Java中com.actionbarsherlock.view.Window类的典型用法代码示例。如果您正苦于以下问题:Java Window类的具体用法?Java Window怎么用?Java Window使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Window类属于com.actionbarsherlock.view包,在下文中一共展示了Window类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
setTheme(SampleList.THEME); //Used for theme switching in samples
super.onCreate(savedInstanceState);
//This has to be called before setContentView and you must use the
//class in com.actionbarsherlock.view and NOT android.view
requestWindowFeature(Window.FEATURE_PROGRESS);
setContentView(R.layout.progress);
findViewById(R.id.go).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
if (mProgress == 100) {
mProgress = 0;
mProgressRunner.run();
}
}
});
}
示例2: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
setTheme(SampleList.THEME); //Used for theme switching in samples
requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
super.onCreate(savedInstanceState);
setContentView(R.layout.overlay);
//Load partially transparent black background
getSupportActionBar().setBackgroundDrawable(getResources().getDrawable(R.drawable.ab_bg_black));
StringBuilder builder = new StringBuilder();
for (int i = 0; i < 3; i++) {
for (String dialog : DIALOGUE) {
builder.append(dialog).append("\n\n");
}
}
TextView bunchOfText = (TextView)findViewById(R.id.bunch_of_text);
bunchOfText.setText(builder.toString());
}
示例3: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
initialize();
ActionBar actionBar = getSupportActionBar();
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
ActionBar.Tab tabTickets = actionBar.newTab()
.setText(R.string.title_tickets)
.setTabListener(new TabListener<TicketView>(MainActivity.this, "tickets", TicketView.class
));
actionBar.addTab(tabTickets);
ActionBar.Tab tabWiki = actionBar.newTab()
.setText(R.string.title_wiki)
.setTabListener(new TabListener<WikiView>(MainActivity.this, "wiki", WikiView.class
));
actionBar.addTab(tabWiki);
}
示例4: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
Ticket ticket = null;
if (getIntent().getExtras() != null)
{
ticket = (Ticket) getIntent().getExtras().getSerializable("Ticket");
}
loadActions(ticket);
}
示例5: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Can use progress
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.listview);
// 액션바백버튼가져오기
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
local_path = getCacheDir().toString() + "/member/";
// Get Intent
Intent intent = getIntent();// 인텐트 받아오고
member_srl = intent.getStringExtra("member_srl");
setListAdapter();
getUseInfo();
}
示例6: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Can use progress
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Get Intent
Intent intent = getIntent();// 인텐트 받아오고
member_srl = intent.getStringExtra("member_srl");
Log.i("member_srl", member_srl);
load();
}
示例7: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Can use progress
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.document_write);
// 액션바백버튼가져오기
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
setSupportProgressBarIndeterminateVisibility(false);
// Get Intent
Intent intent = getIntent();// 인텐트 받아오고
page_srl = intent.getStringExtra("page_srl");
page_name = intent.getStringExtra("page_name");
doc_contents = intent.getStringExtra("doc_contents");
content_edittext = (EditText) findViewById(R.id.editText1);
mImageUri = intent.getParcelableExtra("image_uri");
externel_path= getExternalCacheDir().getAbsolutePath() + "/";
if(page_name != null) getSupportActionBar().setSubtitle(page_name);
if(doc_contents != null) content_edittext.setText(doc_contents);
if(mImageUri != null) confirmImage();
}
示例8: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Can use progress
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.doclistview);
// 액션바백버튼가져오기
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
ct = this;
// Get Intent
Intent intent = getIntent();// 인텐트 받아오고
doc_srl = intent.getStringExtra("doc_srl");
externel_path= getExternalCacheDir().getAbsolutePath() + "/";
Log.i("Doc srl", doc_srl + "");
try {
local_path = getCacheDir().toString() + "/member/";
} catch (Exception e) {
}
loadView();
}
示例9: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
super.onCreate(savedInstanceState);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
MobclickAgent.updateOnlineConfig(this);
setContentView(R.layout.news_content);
Intent intent = getIntent();
href = intent.getStringExtra("href");
// title = NoticeHtmlTool.getZqNoticesContentTitle(href);
// isSaveInLocal =
// LocalDataSharedPreferencesTool.news_isSaveInLocal(this);
// isAutoSaveInLocal = LocalDataSharedPreferencesTool
// .news_isAutoSaveInLocal(this);
findViews();
refreshData();
getWindow().setBackgroundDrawable(null);
}
示例10: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Can use progress
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.listview);
// 액션바백버튼가져오기
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(false);
local_path = getCacheDir().toString() + "/member/";
// Get Intent
Intent intent = getIntent();// 인텐트 받아오고
member_srl = intent.getStringExtra("member_srl");
setListAdapter();
getUseInfo();
}
示例11: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Can use progress
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(false);
// Get Intent
Intent intent = getIntent();// 인텐트 받아오고
member_srl = intent.getStringExtra("member_srl");
user_srl = Integer.parseInt(Global.getSetting("user_srl", "0"));
Log.i("member_srl", member_srl);
load();
}
示例12: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Can use progress
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.document_write);
// 액션바백버튼가져오기
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
setSupportProgressBarIndeterminateVisibility(false);
getSupportActionBar().setDisplayShowHomeEnabled(false);
// Get Intent
Intent intent = getIntent();// 인텐트 받아오고
page_srl = intent.getStringExtra("page_srl");
page_name = intent.getStringExtra("page_name");
doc_contents = intent.getStringExtra("doc_contents");
content_edittext = (EditText) findViewById(R.id.editText1);
mImageUri = intent.getParcelableExtra("image_uri");
try{
externel_path= getExternalCacheDir().getAbsolutePath() + "/";
}catch(Exception e){Global.toast(getString(R.string.no_storage_error));}
if(page_name != null) getSupportActionBar().setSubtitle(page_name);
if(doc_contents != null) content_edittext.setText(doc_contents);
if(mImageUri != null) confirmImage();
}
示例13: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.schedule_person);
ActionBar actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
FragmentManager fragments = getSupportFragmentManager();
fragAuth = (AuthenticatedFragment)fragments.findFragmentByTag("auth");
if (fragAuth == null) {
fragAuth = new AuthenticatedFragment();
getSupportFragmentManager().beginTransaction().add(fragAuth, "auth").commit();
}
this.savedInstanceState = savedInstanceState;
handleIntent(getIntent());
LoaderManager loaders = getSupportLoaderManager();
if (LoadUserSchedule.getInstance(loaders, TASK_LOAD_SCHEDULE) != null) {
loaders.initLoader(TASK_LOAD_SCHEDULE, null, mLoadScheduleCallbacks);
}
}
示例14: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.schedule_room);
ActionBar actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
FragmentManager fragments = getSupportFragmentManager();
fragAuth = (AuthenticatedFragment)fragments.findFragmentByTag("auth");
if (fragAuth == null) {
fragAuth = new AuthenticatedFragment();
getSupportFragmentManager().beginTransaction().add(fragAuth, "auth").commit();
}
this.savedInstanceState = savedInstanceState;
handleIntent(getIntent());
LoaderManager loaders = getSupportLoaderManager();
if (LoadRoomSchedule.getInstance(loaders, TASK_LOAD_SCHEDULE) != null) {
loaders.initLoader(TASK_LOAD_SCHEDULE, null, mLoadScheduleCallbacks);
}
}
示例15: onCreate
import com.actionbarsherlock.view.Window; //导入依赖的package包/类
@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// This has to be called before setContentView and you must use the
// class in com.actionbarsherlock.view and NOT android.view
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
setContentView(R.layout.tab_navigation);
// Prevent display of progress bar at startup in android 2.2...
setSupportProgressBarIndeterminateVisibility(false);
// should prevent recreation of tabs after activity restart (e.g.
// orientation change) - does it work?
if (savedInstanceState == null) {
createTabs();
}
}