在非Activity下的自定义toast 什么好方法!比如
getLayoutInflater?
findViewById
getApplicationContext()
等等!
android androidtoast

解决方案 »

  1.   

    我擦  LZ都知道了还问啥  
    获得context就能随意自定义了
      

  2.   

    因为是非Activity下,getLayoutInflater?
    、findViewById会出错。
      

  3.   

    因为是非Activity下,getLayoutInflater?
    、findViewById会出错。
    额 Inflater =  LayoutInflater.from(context);
    然后用Inflater 来填充view 
    再使用view.findViewById........
      

  4.   

    因为是非Activity下,getLayoutInflater?
    、findViewById会出错。
    额 Inflater =  LayoutInflater.from(context);
    然后用Inflater 来填充view 
    再使用view.findViewById........假如创建了findViewById方法,应该返回什么值
      

  5.   

    因为是非Activity下,getLayoutInflater?
    、findViewById会出错。
    额 Inflater =  LayoutInflater.from(context);
    然后用Inflater 来填充view 
    再使用view.findViewById........假如创建了findViewById方法,应该返回什么值
    好了,把那个改成null;谢谢