Android Open Source - AndroidBitmapView From Xml Activity






From Project

Back to project page AndroidBitmapView.

License

The source code is released under:

MIT License

If you think the Android project AndroidBitmapView 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.tatuas.android.bitmapview.sample;
//w  ww  .  java 2s.  c o m
import com.tatuas.android.bitmapview.sample.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class FromXmlActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_xml);
        Button btn = (Button) findViewById(R.id.button1);
        btn.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(v.getContext(), FromJavaActivity.class);
                startActivity(intent);
            }
        });
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

}




Java Source Code List

com.tatuas.android.bitmapview.BitmapView.java
com.tatuas.android.bitmapview.sample.FromJavaActivity.java
com.tatuas.android.bitmapview.sample.FromXmlActivity.java