This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CameraPreview extends SurfaceView implements SurfaceHolder.Callback { | |
private SurfaceHolder mHolder; | |
private Camera mCamera; | |
private List<Camera.Size> mSupportedPreviewSizes; | |
private Camera.Size mPreviewSize; | |
private int mCameraId; | |
public CameraPreview(Context context) { | |
super(context); | |
mHolder = getHolder(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class EffectiveActivity extends AppCompatActivity { | |
private ViewGroup mainFrame; | |
private ScreenContainer screenContainer; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
screenContainer = createScreenContainer(); | |
mainFrame = screenContainer.bind(this); | |
getLayoutInflater().inflate(getLayout(), mainFrame); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gradle/ | |
.gradle | |
gradle/ | |
.idea/ | |
build/ | |
*.iml | |
*.orig | |
*.txt |