This file contains 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
/** | |
* 绑定Checkable控件的Layout. | |
*/ | |
public static class ForceableChoiceLayout extends DefaultChoiceView { | |
/** | |
* 是否强制设为选中状态 | |
*/ | |
private boolean mForceChecked; |
This file contains 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
package com.parkingwang.widget; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.util.AttributeSet; | |
import android.widget.LinearLayout; | |
import com.parkingwang.app.R; |
This file contains 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
private void openCamera() { | |
if (mCamera == null) { | |
try { | |
mCamera = Camera.open(); | |
} catch (RuntimeException e) { | |
mCamera = null; | |
} | |
} | |
if (mCamera == null) { | |
MessageProxy.showError(this, R.string.msg_camera_invalid); |
This file contains 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
private void openCamera() { | |
if (mCamera == null) { | |
try { | |
mCamera = Camera.open(); | |
} catch (RuntimeException e) { | |
mCamera = null; | |
} | |
} | |
if (mCamera == null) { | |
MessageProxy.showError(this, R.string.msg_camera_invalid); |
NewerOlder