zoukankan      html  css  js  c++  java
  • 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

      

  • 相关阅读:
    Scoket简介
    AOP
    Windows服务
    Nginx 教程 (1):基本概念
    异步编程
    并发编程
    常用排序
    序列化
    MSBuild/Projectjson
    不汇报是职场发展的绊脚石
  • 原文地址:https://www.cnblogs.com/ejllen/p/3728086.html
Copyright © 2011-2022 走看看