@@ -13,8 +13,8 @@ android { |
||
13 | 13 |
applicationId "ai.pai.client" |
14 | 14 |
minSdkVersion 14 |
15 | 15 |
targetSdkVersion 22 |
16 |
- versionCode 1021 |
|
17 |
- versionName "1.0.21" |
|
16 |
+ versionCode 1022 |
|
17 |
+ versionName "1.0.22" |
|
18 | 18 |
buildConfigField "boolean","isDevMode","true" |
19 | 19 |
manifestPlaceholders = [CHANNEL_NAME: "guanwang"] |
20 | 20 |
|
@@ -21,6 +21,12 @@ public class AboutUsActivity extends BaseActivity implements View.OnClickListene |
||
21 | 21 |
SystemUtils.setImmerseLayout(this,findViewById(R.id.title_layout)); |
22 | 22 |
TextView title = (TextView)findViewById(R.id.title_bar_middle_txt); |
23 | 23 |
title.setText(R.string.slide_about_us); |
24 |
+ TextView curVersionText = (TextView)findViewById(R.id.tv_cur_version); |
|
25 |
+ try { |
|
26 |
+ curVersionText.setText( "v"+getPackageManager().getPackageInfo(getPackageName(), 0).versionName); |
|
27 |
+ }catch (Exception e){ |
|
28 |
+ e.printStackTrace(); |
|
29 |
+ } |
|
24 | 30 |
findViewById(R.id.title_bar_back_layout).setOnClickListener(this); |
25 | 31 |
findViewById(R.id.title_bar_option_layout).setVisibility(View.INVISIBLE); |
26 | 32 |
findViewById(R.id.layout_about_declare).setOnClickListener(this); |
@@ -49,6 +49,16 @@ |
||
49 | 49 |
android:textColor="@color/dark_grey" |
50 | 50 |
android:layout_marginLeft="10dp"/> |
51 | 51 |
|
52 |
+ <TextView |
|
53 |
+ android:id="@+id/tv_cur_version" |
|
54 |
+ android:layout_width="0dp" |
|
55 |
+ android:layout_weight="1" |
|
56 |
+ android:layout_height="wrap_content" |
|
57 |
+ android:textSize="14sp" |
|
58 |
+ android:gravity="right" |
|
59 |
+ android:textColor="@color/grey" |
|
60 |
+ android:layout_marginRight="10dp"/> |
|
61 |
+ |
|
52 | 62 |
<ImageView |
53 | 63 |
android:layout_width="wrap_content" |
54 | 64 |
android:layout_height="wrap_content" |