Example #1
0
  public ZtspeechWeiboDC(Context context, Handler h, OAuthV1 oAuth) {
    super(context);
    super.init(handler, Application.ScreenWidth, Application.ScreenHeight);
    handler = h;
    this.oAuth = oAuth;
    layout = inflater.inflate(R.layout.weibo_syn, null);

    back = (Button) layout.findViewById(R.id.bbs_back);
    syn = (Button) layout.findViewById(R.id.bbs_syn);
    title = (TextView) layout.findViewById(R.id.bbs_title);
    web = (WebView) layout.findViewById(R.id.bbs_webView);
    back.setOnClickListener(this);
    syn.setOnClickListener(this);

    setWebView();
    addView(layout);
  }
Example #2
0
 @Override
 public void init(Handler h, int SWidth, int SHeight) {
   super.init(handler, Application.ScreenWidth, Application.ScreenHeight);
 }