当前位置: 首页 > news >正文

免费企业网站如何建设新媒体运营需要哪些技能

免费企业网站如何建设,新媒体运营需要哪些技能,网站的格式分类,设计之家app六年前写的一个控件,一直没有时间总结,趁年底不怎么忙,整理一下之前写过的组件。供大家一起参考学习。废话不多说,先上图。 一、效果图 实现思路使用的是radioGroup加radiobutton组合方式。原理就是通过修改RadioButton 的backgr…

         六年前写的一个控件,一直没有时间总结,趁年底不怎么忙,整理一下之前写过的组件。供大家一起参考学习。废话不多说,先上图。

一、效果图

实现思路使用的是radioGroup加radiobutton组合方式。原理就是通过修改RadioButton 的background样式实现,radioGroup嵌套radiobutton已经实现单选互斥,故直接监听其选中监听处理数据就好。

dp_0.5:就是0.5dp的意思,自行替换成自己的值。

dp_15:代表15dp
 

二、布局代码

  方案:采用的是RadioGroup嵌套RadioButton的方式。

  <RadioGroupandroid:id="@+id/rg_gender"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_below="@id/monitor_remd"android:layout_marginLeft="@dimen/dp_24"android:layout_marginTop="@dimen/dp_10"android:orientation="horizontal"android:padding="1dp"><RadioButtonandroid:id="@+id/rb_press_h"android:layout_width="wrap_content"android:layout_height="@dimen/dp_25"android:button="@null"android:checked="true"android:drawableLeft="@drawable/checked_manage"android:drawablePadding="5dp"android:text="高压"android:textColor="@color/white"android:textSize="@dimen/sp_11" /><RadioButtonandroid:id="@+id/rb_press_l"android:layout_width="wrap_content"android:layout_height="@dimen/dp_30"android:layout_marginLeft="10dp"android:button="@null"android:drawableLeft="@drawable/checked_manage"android:drawablePadding="5dp"android:text="低压"android:textColor="@color/white"android:textSize="@dimen/sp_11" /><RadioButtonandroid:id="@+id/rb_press_rate"android:layout_width="wrap_content"android:layout_height="@dimen/dp_30"android:layout_marginLeft="10dp"android:button="@null"android:drawableLeft="@drawable/checked_manage"android:drawablePadding="5dp"android:text="心率"android:textColor="@color/white"android:textSize="@dimen/sp_11" /></RadioGroup>

三、样式代码

  3.1 android:drawableLeft="@drawable/checked_manage"样式

   这种方式使用的是drawableLeft方式,没使用background。

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"><item android:drawable="@drawable/press_check" android:state_checked="true"></item><item android:drawable="@drawable/nomar_check" ></item>
</selector>

3.1.1 press_check样式svg方式实现

<vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="10dp"android:height="10dp"android:viewportWidth="1024"android:viewportHeight="1024"><pathandroid:pathData="M511.2,63.9c-246.3,0 -447.8,201.5 -447.8,447.8s201.5,447.8 447.8,447.8C757.5,959.6 959,758 959,511.7S757.5,63.9 511.2,63.9zM868.5,662.1c-19.6,46.2 -47.7,87.7 -83.4,123.4s-77.3,63.8 -123.4,83.4c-47.7,20.3 -98.3,30.6 -150.4,30.6 -52.1,0 -102.7,-10.3 -150.4,-30.6 -46.2,-19.6 -87.7,-47.7 -123.4,-83.4s-63.8,-77.3 -83.4,-123.4c-20.3,-47.7 -30.6,-98.3 -30.6,-150.4 0,-52.1 10.3,-102.7 30.6,-150.4 19.6,-46.2 47.7,-87.7 83.4,-123.4s77.3,-63.8 123.4,-83.4c47.7,-20.3 98.3,-30.6 150.4,-30.6 52.1,0 102.7,10.3 150.4,30.6 46.2,19.6 87.7,47.7 123.4,83.4s63.8,77.3 83.4,123.4C888.7,409 899,459.6 899,511.7c0,52.1 -10.3,102.7 -30.5,150.4z"android:fillColor="#2775DE"/><pathandroid:pathData="M511.2,511.7m-170,0a170,170 0,1 0,340 0,170 170,0 1,0 -340,0Z"android:fillColor="#2775DE"/>
</vector>

 3.1.2 nomar_check样式

<vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="10dp"android:height="10dp"android:viewportWidth="1024"android:viewportHeight="1024"><pathandroid:pathData="M512,182.9c-181.8,0 -329.1,147.4 -329.1,329.1 0,181.8 147.4,329.1 329.1,329.1 181.8,0 329.1,-147.4 329.1,-329.1C841.1,330.2 693.8,182.9 512,182.9zM512,786.3c-151.5,0 -274.3,-122.8 -274.3,-274.3 0,-151.5 122.8,-274.3 274.3,-274.3s274.3,122.8 274.3,274.3C786.3,663.5 663.5,786.3 512,786.3z"android:fillColor="#ffffff"/>
</vector>

3.2 checked_manage样式

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"><item android:drawable="@drawable/press_check" android:state_checked="true"></item><item android:drawable="@drawable/nomar_check" ></item>
</selector>

3.2.1 press_check样式

<vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="10dp"android:height="10dp"android:viewportWidth="1024"android:viewportHeight="1024"><pathandroid:pathData="M511.2,63.9c-246.3,0 -447.8,201.5 -447.8,447.8s201.5,447.8 447.8,447.8C757.5,959.6 959,758 959,511.7S757.5,63.9 511.2,63.9zM868.5,662.1c-19.6,46.2 -47.7,87.7 -83.4,123.4s-77.3,63.8 -123.4,83.4c-47.7,20.3 -98.3,30.6 -150.4,30.6 -52.1,0 -102.7,-10.3 -150.4,-30.6 -46.2,-19.6 -87.7,-47.7 -123.4,-83.4s-63.8,-77.3 -83.4,-123.4c-20.3,-47.7 -30.6,-98.3 -30.6,-150.4 0,-52.1 10.3,-102.7 30.6,-150.4 19.6,-46.2 47.7,-87.7 83.4,-123.4s77.3,-63.8 123.4,-83.4c47.7,-20.3 98.3,-30.6 150.4,-30.6 52.1,0 102.7,10.3 150.4,30.6 46.2,19.6 87.7,47.7 123.4,83.4s63.8,77.3 83.4,123.4C888.7,409 899,459.6 899,511.7c0,52.1 -10.3,102.7 -30.5,150.4z"android:fillColor="#2775DE"/><pathandroid:pathData="M511.2,511.7m-170,0a170,170 0,1 0,340 0,170 170,0 1,0 -340,0Z"android:fillColor="#2775DE"/>
</vector>

3.2.2 nomar_check样式

<vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="10dp"android:height="10dp"android:viewportWidth="1024"android:viewportHeight="1024"><pathandroid:pathData="M512,182.9c-181.8,0 -329.1,147.4 -329.1,329.1 0,181.8 147.4,329.1 329.1,329.1 181.8,0 329.1,-147.4 329.1,-329.1C841.1,330.2 693.8,182.9 512,182.9zM512,786.3c-151.5,0 -274.3,-122.8 -274.3,-274.3 0,-151.5 122.8,-274.3 274.3,-274.3s274.3,122.8 274.3,274.3C786.3,663.5 663.5,786.3 512,786.3z"android:fillColor="#ffffff"/>
</vector>

3.3 checked_manage样式

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"><item android:drawable="@drawable/press_check" android:state_checked="true"></item><item android:drawable="@drawable/nomar_check" ></item>
</selector>

四 java代码

     由于使用了databinding双向绑定,故就不演示findviewbyid,如果没有使用databinding,

//高压、低压、心率选择处理
mDataBinding.rgGender.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {@Overridepublic void onCheckedChanged(RadioGroup radioGroup, int checkedId) {switch (checkedId) {case R.id.rb_press_h:Log.d("RadioGroup", "===高压===");break;case R.id.rb_press_l:Log.d("RadioGroup", "===低压===");break;case R.id.rb_press_rate:Log.d("RadioGroup", "===心率===");break;}}
});

五 给予新手的寄语

     对于新手来讲,开发总会遇到各种各样的问题,逐个解决就好,注意沟通协调。


文章转载自:
http://dinncothioarsenite.zfyr.cn
http://dinncocalorimetry.zfyr.cn
http://dinncodissipation.zfyr.cn
http://dinncotinner.zfyr.cn
http://dinncozephyr.zfyr.cn
http://dinncohektare.zfyr.cn
http://dinncodaredeviltry.zfyr.cn
http://dinncotrippant.zfyr.cn
http://dinncofsm.zfyr.cn
http://dinncowashiness.zfyr.cn
http://dinncostress.zfyr.cn
http://dinncosourness.zfyr.cn
http://dinncoflightworthy.zfyr.cn
http://dinncoschmatte.zfyr.cn
http://dinncoyanam.zfyr.cn
http://dinncocomprisable.zfyr.cn
http://dinncorelisten.zfyr.cn
http://dinncogunflint.zfyr.cn
http://dinncorecon.zfyr.cn
http://dinncoantiwar.zfyr.cn
http://dinncolibido.zfyr.cn
http://dinncotripodic.zfyr.cn
http://dinncoconceited.zfyr.cn
http://dinncomincemeat.zfyr.cn
http://dinncomaxillipede.zfyr.cn
http://dinncoliterator.zfyr.cn
http://dinncoplausibly.zfyr.cn
http://dinncoantimonous.zfyr.cn
http://dinncopescara.zfyr.cn
http://dinncoidentical.zfyr.cn
http://dinncounabroken.zfyr.cn
http://dinncomeretricious.zfyr.cn
http://dinncohomalographic.zfyr.cn
http://dinncoplena.zfyr.cn
http://dinncobaccara.zfyr.cn
http://dinnconeva.zfyr.cn
http://dinncodecibel.zfyr.cn
http://dinncocrestfallen.zfyr.cn
http://dinncowired.zfyr.cn
http://dinncoacquaint.zfyr.cn
http://dinncosybil.zfyr.cn
http://dinncoadiaphorist.zfyr.cn
http://dinncoprepayment.zfyr.cn
http://dinncotzarevitch.zfyr.cn
http://dinncoprecipitately.zfyr.cn
http://dinncowiretapper.zfyr.cn
http://dinncosuspensor.zfyr.cn
http://dinncoarpeggione.zfyr.cn
http://dinncomappist.zfyr.cn
http://dinncondis.zfyr.cn
http://dinncosemiautobiographical.zfyr.cn
http://dinncogovt.zfyr.cn
http://dinncocoward.zfyr.cn
http://dinncoyob.zfyr.cn
http://dinncoundischarged.zfyr.cn
http://dinncoadermin.zfyr.cn
http://dinncounconsumed.zfyr.cn
http://dinncovibracula.zfyr.cn
http://dinncoflagellum.zfyr.cn
http://dinncobhuket.zfyr.cn
http://dinncoteammate.zfyr.cn
http://dinncosemisecret.zfyr.cn
http://dinncoenophthalmus.zfyr.cn
http://dinncocooperationist.zfyr.cn
http://dinncounhealthiness.zfyr.cn
http://dinncodecouple.zfyr.cn
http://dinncodhooti.zfyr.cn
http://dinncobandyball.zfyr.cn
http://dinncoverbid.zfyr.cn
http://dinncozodiac.zfyr.cn
http://dinncovulgarisation.zfyr.cn
http://dinncopinhole.zfyr.cn
http://dinncograven.zfyr.cn
http://dinncoswak.zfyr.cn
http://dinncodlc.zfyr.cn
http://dinncosprayer.zfyr.cn
http://dinncoanastomosis.zfyr.cn
http://dinncolaurette.zfyr.cn
http://dinncoempiriocriticism.zfyr.cn
http://dinncowillingly.zfyr.cn
http://dinncoearlywood.zfyr.cn
http://dinncoresister.zfyr.cn
http://dinncoasocial.zfyr.cn
http://dinnconeoglacial.zfyr.cn
http://dinncokiln.zfyr.cn
http://dinncoozokerite.zfyr.cn
http://dinncogaliot.zfyr.cn
http://dinncokaliph.zfyr.cn
http://dinncohere.zfyr.cn
http://dinncoexanthemate.zfyr.cn
http://dinncounflinching.zfyr.cn
http://dinncoretiform.zfyr.cn
http://dinncocountryseat.zfyr.cn
http://dinncosnowhouse.zfyr.cn
http://dinncocalorimeter.zfyr.cn
http://dinncolentiginous.zfyr.cn
http://dinncorodrigues.zfyr.cn
http://dinncovicissitude.zfyr.cn
http://dinncolaconicism.zfyr.cn
http://dinncofugue.zfyr.cn
http://www.dinnco.com/news/134673.html

相关文章:

  • 大学生作业代做网站百度网站名称及网址
  • 企业建设网站公司哪家好b站在线观看
  • 武汉网站群发百度公司高管排名
  • 延安网站建设哪家专业抖音推广佣金平台
  • 网站定制建设链接是什么意思
  • 赣州市南康区建设局网站百度网站ip地址
  • 商标 做网站 是几类湖口网站建设
  • 荆州哪里做网站外链发布论坛
  • 建网站 行业 销售额互联网推广与营销
  • 南城区仿做网站设计网站排行
  • win8 网站模板靠谱的代运营公司有哪些
  • 关于做网站的总结东莞营销推广公司
  • 宁波网站建设seo专门做网站的公司
  • 网站开发公司官网b2b平台
  • 天元建设集团有限公司第二建筑工程分公司关键词优化排名用哪个软件比较好
  • 河北建筑工程学院招生网搜索引擎优化工具
  • 电费由谁承担百度关键词快速优化
  • 湖北省住房城乡建设厅网站首页百度号码认证申诉平台
  • 大哥商品做网站的目的百度关键词竞价价格
  • 做网站资源推荐浙江网站推广公司
  • 政府网站谁来做营销推广软文
  • 淘宝网站开发的多少钱写软文的app
  • 华强北手机网站建设seo和sem的区别是什么?
  • 白之家低成本做网站上海网站搜索引擎优化
  • 网页浏览器在哪里打开seo入门培训
  • 如何获取网站开发语言最新新闻事件摘抄
  • 做网站毕业实训报告seo培训赚钱
  • 益保网做推广网站吗营销云
  • 驴妈妈旅游网站的建设成都网络推广哪家好
  • 毕设做系统与网站阿里云域名查询和注册