Android 问题

1.Cannot refer to a non-final variable 解决方法

   内部类如果要引用外部类的变量,则该变量必须为final,这是规定

2.error: No resource identifier found for attribute 'style' in package 'android'

   错误原因:没有android:style这个属性

   正确为:style="@style/my_edittext_style"

3.android:password is deprecated: Use inputType instead

  当使用<EditText anroid:password="true" 时出现的警告

   换成:android:inputType="textPassword"

4.一组单选按钮,给一个设默认选中,在界面中再选另一个时为什么两个都选中了?

    原因是没有设置RadioButton的id

  

原文地址:https://www.cnblogs.com/ejllen/p/3728086.html