WindView

WindView

项目地址: AhmadNemati/WindView
简介:WindView is an Android Library to show Weather's Wind & pressure Status
更多: 作者    提 Bug   
标签:

License Apache 2.0 minSdkVersion 14 compileSdkVersion 25 Release Android Arsenal

WindView is an Android Library to show Weather's Wind & pressure Status

Screenshot

alt tag

Demo

Setup

Step 1: Add it as a Dependency in Your Root'sbuild.gradle File

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}
  • add this to your app build.gradle:
dependencies {
    compile 'com.github.AhmadNemati:WindView:1.1.1'
}

Step 2: Add it to your Layout

  <com.github.ahmadnemati.wind.WindView
            android:id="@+id/windview"
            android:layout_width="match_parent"
            android:layout_height="106dp"
            app:barometerTickSpacing="9dp"
            app:bigPoleX="38dp"
            app:labelFontSize="12sp"
            app:numericFontSize="25sp"
            app:poleBottomY="98dp"
            app:pressureLineY="73dp"
            app:pressureTextX="12dp"
            app:pressureTextY="4dp"
            app:smallPoleX="75dp"
            app:windTextX="10dp"
            app:windTextY="29dp" />

Step 3: Initialize WindView and Start it

            WindView windView= (WindView) findViewById(R.id.windview);
            windView.setPressure(20);
            windView.setPressureUnit("in Hg");
            windView.setWindSpeed(1);
            windView.setWindSpeedUnit(" km/h");
            windView.setTrendType(TrendType.UP);
            windView.start();

Note

Graphical implementations are based on Yahoo Weather Service

Developed By

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值