Android Open Source - TButler Twitter Check Box






From Project

Back to project page TButler.

License

The source code is released under:

Tbutler includes software from Twitter4J to parse Twitter response from the Twitter API. You can see the license term at http://twitter4j.org/en/index.html#license Copyright (c) 2009-2010, David Parr...

If you think the Android project TButler 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 com.davidparry.twitter.widgets;
// w  w w  . ja v a  2  s. c o m
import java.util.List;

import android.content.Context;
import android.content.Intent;
import android.preference.CheckBoxPreference;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

import com.davidparry.twitter.ButlerTabActivity;
import com.davidparry.twitter.R;

public class TwitterCheckBox extends CheckBoxPreference {
  private static final String TAG = "TwitterCheckBox";

  public TwitterCheckBox(Context context) {
    super(context);
    
  }

  public TwitterCheckBox(Context context, AttributeSet attrs) {
    super(context, attrs);
  }

  public TwitterCheckBox(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
  }

  @Override
  protected void onClick() {
    super.onClick();
    Log.d(TAG, "OnClick");
  }

  @Override
  protected void onBindView(View view) {
    super.onBindView(view);
    Log.d(TAG, "onBindView");
    
  }

  @Override
  public View getView(View convertView, ViewGroup parent) {
    View v = convertView;
    if (v == null) {
      LayoutInflater vi = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      v = vi.inflate(R.layout.prefsearch, null);
      // only add one listener
      List<View> c =v.getTouchables();
      ImageButton b = (ImageButton) c.get(0);
      b.setOnClickListener(
      new OnClickListener(){
        public void onClick(View v) {
          Intent intent = new Intent();
          intent.setClass(v.getContext(), ButlerTabActivity.class);
          v.getContext().startActivity(intent);
        }
      });
        
    }
    return v;
  }
  
  

}




Java Source Code List

com.davidparry.twitter.AlarmReceiver.java
com.davidparry.twitter.ButlerActivity.java
com.davidparry.twitter.ButlerException.java
com.davidparry.twitter.ButlerTabActivity.java
com.davidparry.twitter.FileListActivity.java
com.davidparry.twitter.InfoActivity.java
com.davidparry.twitter.ItemViewActivity.java
com.davidparry.twitter.OAUTH.java
com.davidparry.twitter.ProfileActivity.java
com.davidparry.twitter.ServiceActivity.java
com.davidparry.twitter.TweetList.java
com.davidparry.twitter.TweetPreferenceActivity.java
com.davidparry.twitter.TwitterPersistence.java
com.davidparry.twitter.YoutubeActivity.java
com.davidparry.twitter.analytics.ButlerAnalytics.java
com.davidparry.twitter.common.ActivityHelper.java
com.davidparry.twitter.common.Item.java
com.davidparry.twitter.common.Location.java
com.davidparry.twitter.common.ServicePreferences.java
com.davidparry.twitter.common.Tweet.java
com.davidparry.twitter.common.TwitterResult.java
com.davidparry.twitter.common.TwitterUser.java
com.davidparry.twitter.common.Util.java
com.davidparry.twitter.exception.QueryValidationException.java
com.davidparry.twitter.http.TwitterQueryRequest.java
com.davidparry.twitter.http.TwitterRequest.java
com.davidparry.twitter.listeners.ProfileImageLongClickListener.java
com.davidparry.twitter.listeners.buttons.ActionButtonDialogOnClickListener.java
com.davidparry.twitter.listeners.buttons.AdvancedSearchOnClickListener.java
com.davidparry.twitter.listeners.buttons.AuthorizeException.java
com.davidparry.twitter.listeners.buttons.BasicSearchOnClickListener.java
com.davidparry.twitter.listeners.buttons.ButtonPreference.java
com.davidparry.twitter.listeners.buttons.ListTweetsOnClickListener.java
com.davidparry.twitter.listeners.buttons.NextPageOnClickListener.java
com.davidparry.twitter.listeners.buttons.TweetActionButtonListener.java
com.davidparry.twitter.oath.TButlerOATH.java
com.davidparry.twitter.threads.ImageIconLoaderThread.java
com.davidparry.twitter.threads.ProfileUserThread.java
com.davidparry.twitter.threads.SDCardIOReadThread.java
com.davidparry.twitter.threads.SDCardIOWriteThread.java
com.davidparry.twitter.threads.StatusLongClickListener.java
com.davidparry.twitter.twitter4j.ButlerTwitterAdapter.java
com.davidparry.twitter.twitter4j.TwitterQuery.java
com.davidparry.twitter.widgets.ButlerDialog.java
com.davidparry.twitter.widgets.OptionMenu.java
com.davidparry.twitter.widgets.TwitterCheckBox.java