为了账号安全,请及时绑定邮箱和手机立即绑定

Cannot resolve symbol 'inputView_is_password'

private  void init(Context context,AttributeSet attrs){
    if(attrs==null) return ;
     TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.inputView);
  inputIcon=   typedArray.getResourceId(R.styleable. inputView_input_icon,R.mipmap.logo);
  inputHint=typedArray.getString(R.styleable. inputView_input_hint);
  isPassword=typedArray.getBoolean(R.styleable. inputView_is_password,false);
    typedArray.recycle();
}


正在回答

1 回答

检查变量名是否一致

<resources>
    <declare-styleable name="inputView">
        <attr name="input_icon" format="reference"></attr>
        <attr name="input_hint" format="string"/>
      
    </declare-styleable>
</resources>


0 回复 有任何疑惑可以回复我~
#1

qq_东暖夏凉_0

<resources> <declare-styleable name="inputView"> <attr name="input_icon" format="reference"></attr> <attr name="input_hint" format="string"/> <attr name="is_password" format="boolean"/> </declare-styleable> </resources>
2019-09-19 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
我的云音乐(一)
  • 参与学习       15840    人
  • 解答问题       103    个

高仿网易云音乐,从零开始开发一款专属自己的音乐APP。

进入课程

Cannot resolve symbol 'inputView_is_password'

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信