Back to project page OpenSynth.
The source code is released under:
Apache License
If you think the Android project OpenSynth listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.indigo_lab.android.opensynth.view; //from w ww. ja v a 2s . c om import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.FrameLayout; public abstract class ControllerView extends FrameLayout { public ControllerView(Context context, AttributeSet attrs, int defStyle, int resource) { super(context, attrs, defStyle); LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View v = inflater.inflate(resource, null, false); //View v = View.inflate(context, resource, this); addView(v); } }