我一直在使用Saaripar的註解來驗證一些字段的內容片斷: /**
* Simple fragment used to register a new user
*/
public static class FragmentRegister extends Fragment implements Validator.ValidationListener {
@InjectView
我在我的Android應用一個簡單的表格,我使用的Android Saripaar驗證的領域之一是電子郵件地址,並根據the first example in the docs它應該是這個樣子: @NotEmpty
@Email
private EditText emailEditText;
不過,我想它是一個可選字段,因此我省略了@NotEmpty註釋: @Email
private
我試圖使用庫Saripaar驗證表單之前,他們將被髮送。但是我在XML中遇到了一些膨脹問題,我不知道它是否與Butterknife衝突。 夾在控制檯中的錯誤: android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class TextView
C