File tree Expand file tree Collapse file tree 5 files changed +19
-16
lines changed
java/com/hujiang/designsupportlibrarydemo Expand file tree Collapse file tree 5 files changed +19
-16
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <manifest xmlns : android = " http://schemas.android.com/apk/res/android "
3
- package = " com.hujiang.designsupportlibrarydemo " >
2
+ <manifest package = " com.hujiang.designsupportlibrarydemo "
3
+ xmlns : android = " http://schemas.android.com/apk/res/android " >
4
4
5
5
<application
6
6
android : allowBackup =" true"
7
7
android : icon =" @mipmap/ic_launcher"
8
8
android : label =" @string/app_name"
9
- android : theme =" @style/Theme.DesignDemo" >
9
+ android : theme =" @style/Theme.DesignDemo" >
10
10
<activity
11
11
android : name =" .MainActivity"
12
- android : label =" @string/app_name" >
12
+ android : label =" @string/app_name" >
13
13
<intent-filter >
14
- <action android : name =" android.intent.action.MAIN" />
14
+ <action android : name =" android.intent.action.MAIN" />
15
15
16
- <category android : name =" android.intent.category.LAUNCHER" />
16
+ <category android : name =" android.intent.category.LAUNCHER" />
17
17
</intent-filter >
18
18
</activity >
19
19
Original file line number Diff line number Diff line change 3
3
import android .os .Bundle ;
4
4
import android .support .design .widget .CollapsingToolbarLayout ;
5
5
import android .support .v7 .app .AppCompatActivity ;
6
+ import android .widget .ImageView ;
6
7
7
8
public class DetailActivity extends AppCompatActivity {
8
9
@@ -15,5 +16,7 @@ protected void onCreate(Bundle savedInstanceState) {
15
16
(CollapsingToolbarLayout ) findViewById (R .id .collapsing_toolbar );
16
17
collapsingToolbar .setTitle ("ABSBCS" );
17
18
19
+ ImageView imageView = (ImageView ) findViewById (R .id .backdrop );
20
+ imageView .setImageResource (R .mipmap .ic_launcher );
18
21
}
19
22
}
Original file line number Diff line number Diff line change 1
1
<android .support.v4.widget.DrawerLayout
2
+ android : id =" @+id/dl_main_drawer"
2
3
xmlns : android =" http://schemas.android.com/apk/res/android"
3
4
xmlns : app =" http://schemas.android.com/apk/res-auto"
4
- android : id =" @+id/dl_main_drawer"
5
5
android : layout_width =" match_parent"
6
6
android : layout_height =" match_parent"
7
7
android : fitsSystemWindows =" true" >
8
8
9
9
<include layout =" @layout/navigation_content" />
10
10
11
11
<android .support.design.widget.NavigationView
12
+ android : id =" @+id/nv_main_navigation"
12
13
android : layout_width =" wrap_content"
13
14
android : layout_height =" match_parent"
14
15
android : layout_gravity =" start"
15
- android : id =" @+id/nv_main_navigation"
16
16
app : headerLayout =" @layout/navigation_header"
17
17
app : menu =" @menu/drawer_view" />
18
18
Original file line number Diff line number Diff line change 6
6
<item
7
7
android : id =" @+id/nav_home"
8
8
android : icon =" @drawable/ic_dashboard"
9
- android : title =" CC Talk" />
9
+ android : title =" CC Talk" />
10
10
<item
11
11
android : id =" @+id/nav_messages"
12
12
android : icon =" @drawable/ic_event"
13
- android : title =" HJ Class" />
13
+ android : title =" HJ Class" />
14
14
<item
15
15
android : id =" @+id/nav_friends"
16
16
android : icon =" @drawable/ic_headset"
17
- android : title =" Words" />
17
+ android : title =" Words" />
18
18
<item
19
19
android : id =" @+id/nav_discussion"
20
20
android : icon =" @drawable/ic_forum"
21
- android : title =" Big HJ" />
21
+ android : title =" Big HJ" />
22
22
</group >
23
23
24
24
<item android : title =" Sub items" >
25
25
<menu >
26
26
<item
27
27
android : icon =" @drawable/ic_dashboard"
28
- android : title =" Android" />
28
+ android : title =" Android" />
29
29
<item
30
30
android : icon =" @drawable/ic_forum"
31
- android : title =" iOS" />
31
+ android : title =" iOS" />
32
32
</menu >
33
33
</item >
34
34
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<menu xmlns : android =" http://schemas.android.com/apk/res/android"
3
- xmlns : app =" http://schemas.android.com/apk/res-auto" >
3
+ xmlns : app =" http://schemas.android.com/apk/res-auto" >
4
4
<item
5
5
android : id =" @+id/action_settings"
6
6
android : title =" @string/menu_settings"
7
- app : showAsAction =" never" />
7
+ app : showAsAction =" never" />
8
8
</menu >
You can’t perform that action at this time.
0 commit comments