This repository was archived by the owner on Jun 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +35
-16
lines changed
java/com/rae/cnblogs/blog/fragment
java/com/rae/cnblogs/home/search
module-middleware/src/main/java/com/rae/cnblogs
java/com/rae/cnblogs/moment
module-resource/src/main/res/drawable-xhdpi
module-widget/src/main/res/layout Expand file tree Collapse file tree 10 files changed +35
-16
lines changed Original file line number Diff line number Diff line change @@ -221,4 +221,9 @@ private void clearFragments() {
221
221
}
222
222
fragmentTransaction .commit ();
223
223
}
224
+
225
+ @ OnClick (R2 .id .tv_search )
226
+ public void onSearchClick () {
227
+ AppRoute .routeToSearch (getContext ());
228
+ }
224
229
}
Original file line number Diff line number Diff line change 3
3
android : id =" @+id/content"
4
4
android : layout_width =" match_parent"
5
5
android : layout_height =" match_parent"
6
- android : background =" @color/default_background "
6
+ android : background =" @color/background_divider "
7
7
android : orientation =" vertical" >
8
8
9
9
<com .rae.cnblogs.widget.PlaceholderView
Original file line number Diff line number Diff line change 9
9
<activity
10
10
android : name =" .LauncherActivity"
11
11
android : theme =" @style/AppTheme.NoActionBar.FullScreen" >
12
- <intent-filter >
13
- <action android : name =" android.intent.action.MAIN" />
12
+ <intent-filter >
13
+ <action android : name =" android.intent.action.MAIN" />
14
14
15
- <category android : name =" android.intent.category.LAUNCHER" />
16
- </intent-filter >
15
+ <category android : name =" android.intent.category.LAUNCHER" />
16
+ </intent-filter >
17
17
</activity >
18
18
19
19
33
33
android : label =" @string/feedback"
34
34
android : launchMode =" singleTop"
35
35
android : windowSoftInputMode =" stateVisible" />
36
+ <activity android : name =" .search.SearchActivity" />
36
37
</application >
37
38
</manifest >
Original file line number Diff line number Diff line change
1
+ package com .rae .cnblogs .home .search ;
2
+
3
+ import com .alibaba .android .arouter .facade .annotation .Route ;
4
+ import com .rae .cnblogs .AppRoute ;
5
+ import com .rae .cnblogs .activity .SwipeBackBasicActivity ;
6
+
7
+ /**
8
+ * 搜索
9
+ * Created by rae on 2018/7/25.
10
+ * Copyright (c) https://github.com/raedev All rights reserved.
11
+ */
12
+ @ Route (path = AppRoute .PATH_SEARCH )
13
+ public class SearchActivity extends SwipeBackBasicActivity {
14
+ }
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public final class AppRoute {
111
111
/**
112
112
* 搜索
113
113
*/
114
- public static final String PATH_SEARCH = "/blog /search" ;
114
+ public static final String PATH_SEARCH = "/home /search" ;
115
115
/**
116
116
* 博客评论
117
117
*/
Original file line number Diff line number Diff line change 1
1
package com .rae .cnblogs .moment ;
2
2
3
- import android .annotation .SuppressLint ;
4
3
import android .os .Bundle ;
5
4
import android .support .annotation .Nullable ;
6
5
@@ -20,14 +19,13 @@ public class MomentMessageActivity extends SwipeBackBasicActivity {
20
19
21
20
private MomentMessageFragment mFragment ;
22
21
23
- @ SuppressLint ("InvalidR2Usage" )
24
22
@ Override
25
23
protected void onCreate (@ Nullable Bundle savedInstanceState ) {
26
24
super .onCreate (savedInstanceState );
27
25
setContentView (R .layout .activity_moment_message );
28
26
mFragment = new MomentMessageFragment ();
29
27
getSupportFragmentManager ().beginTransaction ()
30
- .add (R2 .id .content , mFragment )
28
+ .add (R .id .content , mFragment )
31
29
.commitNow ();
32
30
}
33
31
Original file line number Diff line number Diff line change 37
37
<android .support.v7.widget.Toolbar
38
38
android : id =" @+id/tool_bar"
39
39
android : layout_width =" match_parent"
40
- android : layout_height =" @dimen/action_bar_height"
40
+ android : layout_height =" wrap_content"
41
+ android : paddingBottom =" 10dp"
42
+ android : paddingStart =" 12dp"
41
43
android : paddingTop =" 10dp"
42
44
app : contentInsetEnd =" 0dp"
43
45
app : contentInsetStart =" 0dp"
Original file line number Diff line number Diff line change 61
61
android : layout_width =" match_parent"
62
62
android : layout_height =" wrap_content"
63
63
android : layout_below =" @+id/tv_blog_summary"
64
- android : layout_marginTop =" 2dp "
64
+ android : layout_marginTop =" 8dp "
65
65
android : layout_toRightOf =" @+id/img_blog_avatar"
66
66
android : background =" @drawable/bg_moment_reference"
67
67
android : gravity =" center_vertical"
68
- android : padding =" 5dp"
69
68
android : text =" @string/cancel"
70
69
android : textColor =" @color/ph2"
71
70
android : textSize =" 12sp" />
Original file line number Diff line number Diff line change 20
20
<com .makeramen.roundedimageview.RoundedImageView
21
21
android : layout_width =" 32dp"
22
22
android : layout_height =" 32dp"
23
- android : src =" @color/default_background "
23
+ android : src =" @color/background_divider "
24
24
app : riv_corner_radius =" 32dp" />
25
25
26
26
27
27
<View
28
28
android : layout_width =" 100dp"
29
29
android : layout_height =" 4dp"
30
30
android : layout_marginLeft =" 9dp"
31
- android : background =" @color/default_background " />
31
+ android : background =" @color/background_divider " />
32
32
33
33
</LinearLayout >
34
34
35
35
<View
36
36
android : layout_width =" 160dp"
37
37
android : layout_height =" 4dp"
38
38
android : layout_marginBottom =" 11dp"
39
- android : background =" @color/default_background " />
39
+ android : background =" @color/background_divider " />
40
40
41
41
42
42
<View
43
43
android : layout_width =" match_parent"
44
44
android : layout_height =" 96dp"
45
45
android : layout_marginBottom =" 6dp"
46
- android : background =" @color/default_background " />
46
+ android : background =" @color/background_divider " />
47
47
48
48
49
49
<RelativeLayout
You can’t perform that action at this time.
0 commit comments