Android Open Source - allblue-all-in-one Single Tab Activity






From Project

Back to project page allblue-all-in-one.

License

The source code is released under:

MIT License

If you think the Android project allblue-all-in-one listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.allblue.activity;
//  w  w  w. j  a v a2  s  .c  o m
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import org.allblue.R;
import org.allblue.metadata.Account;

public class SingleTabActivity extends Activity{
  
  // "tweet" in my app is an generic word for all apps, not Twitter only
  
  private Account account;
  
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.single_tab_screen);
    
    trickBarTextView();
    
    account = getIntent().getParcelableExtra("account");
    account.refresh(this);
  }
  
  /**
   * It is use to display account name, set in HomeActivity
   * Needed to set height as 0 to avoid gap
   */
  private void trickBarTextView() {
    TextView labelView = (TextView) findViewById(R.id.tab_label_id);
    labelView.setHeight(0);
  }
}




Java Source Code List

org.allblue.DashBoard.java
org.allblue.activity.GlobalActivity.java
org.allblue.activity.HomeActivity.java
org.allblue.activity.OAuthActivity.java
org.allblue.activity.SettingActivity.java
org.allblue.activity.SingleTabActivity.java
org.allblue.adapter.SettingAdapter.java
org.allblue.adapter.SingleTabCursorAdapter.java
org.allblue.database.DatabaseConfig.java
org.allblue.database.DatabaseHelper.java
org.allblue.metadata.AccountTypes.java
org.allblue.metadata.Account.java
org.allblue.metadata.SinaAccount.java
org.allblue.metadata.TweetItem.java
org.allblue.metadata.TwitterAccount.java
org.allblue.util.OAuthUtil.java
org.allblue.util.SharedOAuthToken.java
org.allblue.util.XMLUtil.java