1717 xmlns : tools =" http://schemas.android.com/tools"
1818 android : layout_width =" match_parent"
1919 android : layout_height =" match_parent"
20- android : baselineAligned =" false"
21- android : divider =" ?android:attr/dividerHorizontal"
22- android : orientation =" horizontal"
23- tools : context =" com.example.android.sunshine.app.MainActivity" >
24-
25- <!--
26- This layout is a two-pane layout for the Items master/detail flow.
27- -->
28-
29- <fragment
30- android : id =" @+id/fragment_forecast"
31- android : name =" com.example.android.sunshine.app.ForecastFragment"
32- android : layout_width =" 0dp"
33- android : layout_height =" match_parent"
34- android : layout_weight =" 2"
35- tools : layout =" @android:layout/list_content" />
20+ android : orientation =" vertical" >
21+
22+ <android .support.v7.widget.Toolbar
23+ android : id =" @+id/toolbar"
24+ android : layout_width =" match_parent"
25+ android : layout_height =" ?attr/actionBarSize"
26+ android : theme =" @style/ThemeOverlay.AppCompat.Dark.ActionBar"
27+ >
28+ <ImageView
29+ android : layout_width =" wrap_content"
30+ android : layout_height =" match_parent"
31+ android : src =" @drawable/ic_logo"
32+ android : scaleType =" center" />
33+ </android .support.v7.widget.Toolbar>
3634
37- <FrameLayout
38- android : id =" @+id/weather_detail_container"
39- android : layout_width =" 0dp"
35+ <LinearLayout
36+ android : layout_width =" match_parent"
4037 android : layout_height =" match_parent"
41- android : layout_weight =" 4" />
38+ android : baselineAligned =" false"
39+ android : divider =" ?android:attr/dividerHorizontal"
40+ android : orientation =" horizontal"
41+ tools : context =" com.example.android.sunshine.app.MainActivity" >
42+
43+ <!--
44+ This layout is a two-pane layout for the Items master/detail flow.
45+ -->
46+
47+ <fragment
48+ android : id =" @+id/fragment_forecast"
49+ android : name =" com.example.android.sunshine.app.ForecastFragment"
50+ android : layout_width =" 0dp"
51+ android : layout_height =" match_parent"
52+ android : layout_weight =" 2"
53+ tools : layout =" @android:layout/list_content" />
54+
55+ <FrameLayout
56+ android : id =" @+id/weather_detail_container"
57+ android : layout_width =" 0dp"
58+ android : layout_height =" match_parent"
59+ android : layout_weight =" 4" />
4260
43- </LinearLayout >
61+ </LinearLayout >
62+ </LinearLayout >
0 commit comments