
如果可能的话怎么样?
http://www.techandall.com/wp-content/uploads/2013/10/techandall_mobile-analytics-UI-concept_preview1.jpg
谢谢,
Bskania.
int startcolor=color.parsecolor("#a6c1de");//you can add as many gradIEnt colors as you want here//and include it in the int array while initializing GradIEntDrawable int endcolor=color.parsecolor("#aa82b7");GradIEntDrawable mDrawable=new GradIEntDrawable(OrIEntation.left_RIGHT,new int[] startcolor,endcolor});linearLayout mLayout=(linearLayout)findVIEwByID(R.ID.your_ID);mLayout.setBackgroundDrawable(mDrawable); 总结 以上是内存溢出为你收集整理的如何在android中创建自定义渐变?全部内容,希望文章能够帮你解决如何在android中创建自定义渐变?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)