Skip to content

Commit 78b8622

Browse files
author
ch
committed
发布2.3.8版本
1 parent 5b3f53c commit 78b8622

File tree

15 files changed

+48
-6
lines changed

15 files changed

+48
-6
lines changed

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ dependencies {
6464
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
6565
testCompile 'junit:junit:4.12'
6666
compile 'cn.bingoogolapple:bga-qrcode-zxing:1.3.6'
67-
//compile project(':qnscalesdk')
68-
compile("com.github.YolandaQingniu:qnscalesdk:2.3.7") {
67+
compile project(':qnscalesdk')
68+
/* compile("com.github.YolandaQingniu:qnscalesdk:2.3.7") {
6969
exclude module: "support-v4"//防止和module引用的v4资源版本不同
70-
}
70+
}*/
7171
}

app/src/main/java/com/qingniu/qnble/demo/view/SettingActivity.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ public class SettingActivity extends AppCompatActivity implements RadioGroup.OnC
108108
Spinner scaleShowHeartRate;
109109
@BindView(R.id.scale_show_weather)
110110
Spinner scaleShowWeather;
111+
@BindView(R.id.scale_show_weightExtend)
112+
Spinner scaleShowweightExtend;
111113

112114
private Config mBleConfig; //蓝牙配置对象
113115
private String mGender = "male";//用户性别
@@ -319,6 +321,23 @@ public void onNothingSelected(AdapterView<?> parent) {
319321
}
320322
});
321323

324+
scaleShowweightExtend.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
325+
326+
@Override
327+
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
328+
if (position == 0) {
329+
qnIndicateConfig.setWeightExtend(true);
330+
} else {
331+
qnIndicateConfig.setWeightExtend(false);
332+
}
333+
}
334+
335+
@Override
336+
public void onNothingSelected(AdapterView<?> parent) {
337+
qnIndicateConfig.setWeightExtend(true);
338+
}
339+
});
340+
322341
}
323342

324343
@Override

app/src/main/res/layout/activity_setting.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,21 @@
456456
android:layout_height="wrap_content"
457457
android:entries="@array/choiceArray"/>
458458
</LinearLayout>
459+
<LinearLayout
460+
android:layout_width="match_parent"
461+
android:layout_height="wrap_content"
462+
android:gravity="center_vertical"
463+
android:orientation="horizontal">
464+
<TextView
465+
style="@style/user_small_text"
466+
android:text="@string/wsp_show_weight_extend" />
467+
468+
<Spinner
469+
android:id="@+id/scale_show_weightExtend"
470+
android:layout_width="wrap_content"
471+
android:layout_height="wrap_content"
472+
android:entries="@array/choiceArray"/>
473+
</LinearLayout>
459474
</LinearLayout>
460475

461476
<TextView

app/src/main/res/values-zh/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@
195195
<string name="wsp_show_water">显示体水分</string>
196196
<string name="wsp_show_heartrate">显示心率</string>
197197
<string name="wsp_show_weather">显示天气</string>
198+
<string name="wsp_show_weight_extend">显示体重变化趋势</string>
198199
<string name="wsp_location_info">位置信息</string>
199200
<string name="longitude">经度</string>
200201
<string name="latitude">纬度</string>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@
195195
<string name="wsp_show_water">Show body water</string>
196196
<string name="wsp_show_heartrate">Show heart rate</string>
197197
<string name="wsp_show_weather">Show weather</string>
198+
<string name="wsp_show_weight_extend">Show weight change trend</string>
198199
<string name="wsp_location_info">location information</string>
199200
<string name="longitude">longitude</string>
200201
<string name="latitude">latitude</string>

build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
buildscript {
44
repositories {
5-
maven { url 'https://maven.google.com' }
5+
maven { url 'https://maven.aliyun.com/repository/jcenter' }
6+
maven { url 'https://maven.aliyun.com/repository/google' }
7+
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
68
maven { url 'https://jitpack.io' }
9+
maven { url 'https://maven.google.com' }
710
jcenter()
811
}
912
dependencies {
@@ -16,6 +19,9 @@ buildscript {
1619

1720
allprojects {
1821
repositories {
22+
maven { url 'https://maven.aliyun.com/repository/jcenter' }
23+
maven { url 'https://maven.aliyun.com/repository/google' }
24+
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
1925
maven { url 'https://maven.google.com' }
2026
maven { url 'https://jitpack.io' }
2127
jcenter()

qnscalesdk/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ android {
77
minSdkVersion 15//MIN_SDK_VERSION as int
88
targetSdkVersion TARGET_SDK_VERSION as int
99
versionCode 1
10-
versionName "qnsdk-2.3.7"
10+
versionName "qnsdk-2.3.8"
1111

1212
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1313
}
@@ -30,6 +30,6 @@ dependencies {
3030
})
3131
testCompile 'junit:junit:4.12'
3232
compile "com.android.support:support-v4:$ANDROID_SUPPORT_VERSION"
33-
compile files('libs/qnsdk-2.3.7.jar')
33+
compile files('libs/qnsdk-2.3.8.jar')
3434

3535
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)