作家
登录

用Kotlin优雅地开发Android应用

作者: 来源: 2017-05-22 14:22:10 阅读 我要评论

  •  
  •                     } 
  •  
  •                     et_account = editText { 
  •  
  •                         hint = "登录账户" 
  •  
  •                         hintTextColor = Color.parseColor("#666666"
  •  
  •                         textSize = 16f 
  •  
  •                         background = null 
  •  
  •                     } 
  •  
  •                 }.lparams(width = dip(300), height = dip(40)) { 
  •  
  •                     topMargin = dip(45) 
  •  
  •                 } 
  •  
  •   
  •  
  •                 linearLayout { 
  •  
  •                     orientation = HORIZONTAL 
  •  
  •                     backgroundResource = R.drawable.bg_frame_corner 
  •  
  •                     gravity = Gravity.CENTER_VERTICAL 
  •  
  •                     imageView { 
  •  
  •                         image = resources.getDrawable(R.mipmap.ic_password) 
  •  
  •                     }.lparams { 
  •  
  •                         leftMargin = dip(12) 
  •  
  •                         rightMargin = dip(15) 
  •  
  •                     } 
  •  
  •                     et_password = editText { 
  •  
  •                         hint = 

      推荐阅读

      不忘初心 东芝依然重视中国市场并发力企业级存储市场

    【51CTO.com原创稿件】这几天勒索病毒实在火了一把。东芝存储企业级硬盘营销清晨长藤森将文师长教师提到,将来>>>详细阅读


    本文标题:用Kotlin优雅地开发Android应用

    地址:http://www.17bianji.com/lsqh/35346.html

  • 关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)