Android Open Source - FragmentWeixinDemo Main






From Project

Back to project page FragmentWeixinDemo.

License

The source code is released under:

MIT License

If you think the Android project FragmentWeixinDemo 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.example.tabhostweixintest;
/*from  w  w w  .j  a va2 s  .  c  o  m*/
import com.mostmood.util.DrawImageView;
import com.mostmood.util.RotateUpdatedViewEx;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Main extends Activity {

  private DrawImageView mDrawImageView=null;
  private RotateUpdatedViewEx mEx=null;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.pop);
    mDrawImageView=(DrawImageView) findViewById(R.id.drawImageView1);
    mEx=(RotateUpdatedViewEx) findViewById(R.id.rotateUpdatedViewEx1);
    ((Button) findViewById(R.id.button1))
        .setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
            mDrawImageView.Start();
            mEx.Start();
          }
        });
    ((Button) findViewById(R.id.button2))
    .setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        mDrawImageView.Stop();
        mEx.Stop();
      }
    });
    ((Button)findViewById(R.id.button3)).setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        mEx.setImageDrawable(getResources().getDrawable(R.drawable.xiaohei));
      }
    });
  }
}




Java Source Code List

com.example.tabhostweixintest.MainActivity.java
com.example.tabhostweixintest.Main.java
com.mostmood.fragment.CopyOfMe_Fragment.java
com.mostmood.fragment.Home_Fragment.java
com.mostmood.fragment.Me_Fragment.java
com.mostmood.fragment.Message_Fragment.java
com.mostmood.fragment.Wall_Fragment.java
com.mostmood.util.DrawImageView.java
com.mostmood.util.DummyTabContent.java
com.mostmood.util.RotateUpdatedViewEx.java