Android Open Source - vgandroid-demo Example Activity S F






From Project

Back to project page vgandroid-demo.

License

The source code is released under:

GNU Lesser General Public License

If you think the Android project vgandroid-demo 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

// Copyright (c) 2014, https://github.com/rhcad/touchvg
/*  w  w w  .j  a  v  a2s  .c  om*/
package touchvg.demo1;

import rhcad.touchvg.IGraphView;
import android.graphics.Color;
import android.os.Bundle;
import android.view.ViewGroup;

// Testing Activity using SFGraphView
public class ExampleActivitySF extends ExampleActivity1 {

    @Override
    protected void createGraphView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_example1);
        final ViewGroup layout = (ViewGroup) this.findViewById(R.id.frame);
        hlp.createSurfaceView(this, layout, savedInstanceState);
        hlp.getView().setBackgroundColor(Color.GRAY);
    }

    @Override
    public void onFirstRegen(IGraphView view) {
        super.onFirstRegen(view);
        hlp.startRecord(PATH + "record");
    }
}




Java Source Code List

touchvg.demo1.DragObserverActivity.java
touchvg.demo1.ExampleActivity1.java
touchvg.demo1.ExampleActivityImagePager.java
touchvg.demo1.ExampleActivityPager.java
touchvg.demo1.ExampleActivitySF.java
touchvg.demo1.MainActivity.java