Skip to content

Commit fc6424b

Browse files
committed
美化桌面课表组件
1 parent 75784b9 commit fc6424b

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ android {
2424
// versionCode 999
2525
// versionName "999.999.999"
2626
// 测试时用999版本号 避开被友盟报错统计混淆了真实用户的报错
27-
versionCode 5
28-
versionName "1.3.1"
27+
versionCode 6
28+
versionName "1.4.0"
2929
}
3030
buildTypes {
3131
// proguard测试时可以开注释,可以看到报错

app/src/main/java/com/guang/app/fragment/MeFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public void onClick(DialogInterface dialog, int which) {
261261
scene = SendMessageToWX.Req.WXSceneFavorite;
262262
}
263263
ShareUtils.install(getActivity());
264-
ShareUtils.shareWeb(getActivity(),getResources().getString(R.string.app_name),"广财专用APP,学生开发,课表饭卡校园网,一样不少",AppConfig.WXSHARE_URL, scene);
264+
ShareUtils.shareWeb(getActivity(),getResources().getString(R.string.app_name)+",你的掌上校园伴侣","广财专用APP,学生开发,课表饭卡校园网,一样不少",AppConfig.WXSHARE_URL, scene);
265265
}
266266
});
267267
builder.create().show();

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
android:layout_width="match_parent"
1414
android:layout_height="wrap_content"
1515
android:layout_gravity="bottom"
16-
android:background="#20000000"
16+
android:background="#76161616"
1717
android:orientation="horizontal"
1818
android:paddingTop="6dp">
1919

2020
<TextView
21+
android:layout_marginLeft="5dp"
2122
android:id="@+id/widget_tv_department"
2223
style="@style/desktop_widget_tab_text_style"
2324
android:layout_width="wrap_content"
@@ -60,23 +61,25 @@
6061
/>
6162

6263
</RelativeLayout>
64+
6365
<FrameLayout
64-
android:layout_weight="1"
6566
android:layout_width="match_parent"
66-
android:layout_height="0dp">
67+
android:layout_height="0dp"
68+
android:layout_weight="1"
69+
android:background="#89fdfdfd">
6770

68-
<!--<FrameLayout-->
71+
<!--<FrameLayout-->
6972
<!--android:layout_width="match_parent"-->
7073
<!--android:layout_height="190dp">-->
7174

7275

7376
<!--android:layout_height="match_parent">-->
7477
<ListView
75-
android:scrollbars="vertical"
76-
android:scrollbarSize="10dp"
7778
android:id="@+id/desktop_widget_list"
7879
android:layout_width="match_parent"
7980
android:layout_height="200dp"
81+
android:scrollbarSize="10dp"
82+
android:scrollbars="vertical"
8083
tools:listitem="@layout/desktop_widget_item"/>
8184

8285
<TextView

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
android:layout_width="75dp"
2121
android:layout_height="wrap_content"
2222
android:layout_centerVertical="true"
23-
android:textColor="#c9c8c8"
23+
android:textColor="#636363"
2424
android:textSize="@dimen/widget_item_text_size"
2525
android:layout_marginLeft="5dp"
2626
android:text="9-10"/>
@@ -32,6 +32,7 @@
3232
android:layout_toEndOf="@id/widget_item_time"
3333
android:id="@+id/widget_item_name"
3434
android:textSize="@dimen/widget_item_text_size"
35+
android:textColor="#101010"
3536
android:layout_width="wrap_content"
3637
android:layout_height="wrap_content"
3738
android:text="课程名,太长会变省略号" />
@@ -41,7 +42,7 @@
4142
android:layout_toRightOf="@id/widget_item_time"
4243
android:layout_below="@id/widget_item_name"
4344
android:id="@+id/widget_item_location"
44-
android:textColor="#5d95fd"
45+
android:textColor="#0f62fc"
4546
android:textSize="@dimen/widget_item_text_size"
4647
android:layout_width="wrap_content"
4748
android:layout_height="wrap_content"

0 commit comments

Comments
 (0)