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


Java Window类代码示例

本文整理汇总了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();
            }
        }
    });
}
 
开发者ID:Mobideck,项目名称:appdeck-android,代码行数:22,代码来源:Progress.java

示例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());
}
 
开发者ID:Mobideck,项目名称:appdeck-android,代码行数:21,代码来源:Overlay.java

示例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);
}
 
开发者ID:osiris86,项目名称:TracDroid,代码行数:24,代码来源:MainActivity.java

示例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);
}
 
开发者ID:osiris86,项目名称:TracDroid,代码行数:17,代码来源:SingleTicketView.java

示例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();
}
 
开发者ID:tarksgit,项目名称:Favorite-Android-Client-Example,代码行数:19,代码来源:ProfileEdit.java

示例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();

}
 
开发者ID:tarksgit,项目名称:Favorite-Android-Client-Example,代码行数:17,代码来源:ProfileActivity.java

示例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();
}
 
开发者ID:tarksgit,项目名称:Favorite-Android-Client-Example,代码行数:23,代码来源:document_write.java

示例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();

}
 
开发者ID:tarksgit,项目名称:Favorite-Android-Client-Example,代码行数:26,代码来源:document_read.java

示例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);
}
 
开发者ID:Consoar,项目名称:zhangshangwuda,代码行数:19,代码来源:NewsContentActivity.java

示例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();
}
 
开发者ID:tarksgit,项目名称:Favorite-Android-Client,代码行数:20,代码来源:ProfileEdit.java

示例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();

}
 
开发者ID:tarksgit,项目名称:Favorite-Android-Client,代码行数:19,代码来源:ProfileActivity.java

示例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();
}
 
开发者ID:tarksgit,项目名称:Favorite-Android-Client,代码行数:26,代码来源:document_write.java

示例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);
	}
}
 
开发者ID:almajeas,项目名称:RHITMobile-Android,代码行数:27,代码来源:SchedulePersonActivity.java

示例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);
	}
}
 
开发者ID:almajeas,项目名称:RHITMobile-Android,代码行数:27,代码来源:ScheduleRoomActivity.java

示例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();
  }
}
 
开发者ID:raouldc,项目名称:GTA-V-Companion,代码行数:20,代码来源:AbstractTabStackNavigationActivity.java


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