当前位置: 网站首页>小程序开发>小程序制作

苏州吴江区平望镇网站制作要多少钱【苏州吴江区盛泽镇域名企业邮箱服务器注册申请办理】苏州吴江区震泽镇网络优化公司哪家好、苏州吴江区七都镇软件开发外包价格、苏州吴江区桃源镇高端企业网站页面制作设计专业公司、苏州工业园区娄葑街道微信公众号小程序购物支付搭建制作公司

发表日期: 2021-06-23 09:08:42 浏览次数:118

苏州吴江区平望镇网站制作要多少钱【苏州吴江区盛泽镇域名企业邮箱服务器注册申请办理】苏州吴江区震泽镇网络优化公司哪家好、苏州吴江区七都镇软件开发外包价格、苏州吴江区桃源镇高端企业网站页面制作设计专业公司、苏州工业园区娄葑街道微信公众号小程序购物支付搭建制作公司

网站建设.jpg

吴江区,隶属江苏省苏州市,位于江苏省东南部,东临上海,西濒太湖,南接浙江,北依苏州主城区 [1]  。全区总面积1176.68平方千米,其中水面积2.67万公顷,占全市总面积的22.70%(均不包括所辖太湖水面) [2]  。截至2019年6月,吴江区下辖4个街道、7个镇 [3-4]  ,户籍人口83.27万人,流动人口97.92万人。 [5] 

公元909年,吴江建县;1992年,吴江撤县建市;2012年9月1日,吴江撤市设区,为苏州市吴江区。 [6]  吴江地处江南水乡,河湖水系发达,河道纵横交错,湖泊星罗棋布,被誉为“鱼米之乡”、“丝绸之府” [1]  。吴江属北亚热带季风海洋性气候,全年四季分明,气候温和,雨量充沛。 [7] 

吴江历史文化源远流长,孕育形成了蚕桑丝绸文化、水乡古镇文化、千年运河文化、莼鲈诗词文化、国学文化和江村富民文化等一批特色鲜明的文化资源。拥有140多位著名历史人物,较杰出的有春秋时期的范蠡,唐代文学家陆龟蒙,清代天文学家王锡阐,辛亥革命风云人物陈去病,爱国诗人柳亚子,社会学家费孝通等。 [1] 

2017年,吴江区地区生产总值1788.98亿元,同比增长7.1%;居民人均可支配收入48517元,同比增长8.9%。


本节引言:

本节给大家带来的是Android给我们提供的显示时间的几个控件,他们分别是: TextClock,AnalogClock,Chronometer,另外其实还有个过时的DigitalClock就不讲解了! 好的,开始本节内容!


1.TextClock(文本时钟)

TextClock是在Android 4.2(API 17)后推出的用来替代DigitalClock的一个控件!
TextClock可以以字符串格式显示当前的日期和时间,因此推荐在Android 4.2以后使用TextClock。
这个控件推荐在24进制的android系统中使用,TextClock提供了两种不同的格式, 一种是在24进制中显示时间和日期,另一种是在12进制中显示时间和日期。大部分人喜欢默认的设置。

可以通过调用:TextClock提供的is24HourModeEnabled()方法来查看,系统是否在使用24进制时间显示! 在24进制模式中:

  • 如果没获取时间,首先通过getFormat24Hour()返回值;

  • 获取失败则通过getFormat12Hour()获取返回值;

  • 以上都获取失败则使用默认;

另外他给我们提供了下面这些方法,对应的还有get方法:

Attribute NameRelated MethodDescription
android:format12HoursetFormat12Hour(CharSequence)设置12时制的格式
android:format24HoursetFormat24Hour(CharSequence)设置24时制的格式
android:timeZonesetTimeZone(String)设置时区

其实更多的时间我们是花在时间形式定义上,就是里面这个CharSequence! 这里提供下常用的写法以及结果:

<TextClock
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:format12Hour="MM/dd/yy h:mmaa"/>
    <TextClock
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:format12Hour="MMM dd, yyyy h:mmaa"/>
    <TextClock
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:format12Hour="MMMM dd, yyyy h:mmaa"/>
    <TextClock
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:format12Hour="E, MMMM dd, yyyy h:mmaa"/>
    <TextClock
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:format12Hour="EEEE, MMMM dd, yyyy h:mmaa"/>
    <TextClock
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:format12Hour="Noteworthy day: 'M/d/yy"/>

运行结果:

PS:另外minsdk 要大于或者等于17哦!


2.AnalogClock(模拟时钟)

就是下图这种:

官网中我们可以看到这样三个属性:

依次是:表背景,表时针,分时针的图片,我们可以自行定制:

示例代码如下:

<AnalogClock
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:dial="@mipmap/ic_c_bg"
        android:hand_hour="@mipmap/zhen_shi"
        android:hand_minute="@mipmap/zhen_fen" />

运行结果:


3.Chronometer(计时器)

如题,就是一个简单的计时器,我们直接上使用示例吧:

使用示例:

实现代码:

布局代码:


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".MainActivity">


    <Chronometer
        android:id="@+id/chronometer"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:textColor="#ff0000"
        android:textSize="60dip" />

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_margin="10dip"
        android:orientation="horizontal">

        <Button
            android:id="@+id/btnStart"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="开始记时" />

        <Button
            android:id="@+id/btnStop"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="停止记时" />

        <Button
            android:id="@+id/btnReset"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="重置" />

        <Button
            android:id="@+id/btn_format"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="格式化" />
    </LinearLayout></LinearLayout>

苏州吴江区平望镇网站制作要多少钱苏州吴江区盛泽镇域名企业邮箱服务器注册申请办理苏州吴江区震泽镇网络优化公司哪家好、苏州吴江区七都镇软件开发外包价格、苏州吴江区桃源镇高端企业网站页面制作设计专业公司、苏州工业园区娄葑街道微信公众号小程序购物支付搭建制作公司

400-111-6878
服务热线
顶部

备案号: 苏ICP备11067224号

CopyRight © 2011 书生商友信息科技 All Right Reserved

24小时服务热线:400-111-6878   E-MAIL:1120768800@qq.com   QQ:1120768800

  网址: http://www.768800.com  网站建设上往建站

关键词: 网站建设| 域名邮箱| 服务器空间| 网站推广| 上往建站| 网站制作| 网站设计| 域名注册| 网络营销| 网站维护|

企业邮箱| 虚拟主机| 网络建站| 网站服务| 网页设计| 网店美工设计| 网站定制| 企业建站| 网站设计制作| 网页制作公司|

400电话办理| 书生商友软件| 葬花网| 调温纤维| 海洋馆运营维护| 北京保安公司| 殡仪馆服务| 殡葬服务| 苏州殡葬一条龙| 朝阳殡葬| 苏州殡葬服务|

预约专家

欢迎您免费咨询,请填写以下信息,我们收到后会尽快与您联系

  

服务热线:400-111-6878