File tree Expand file tree Collapse file tree 4 files changed +19
-4
lines changed
java/com/yalantis/starwarsdemo/view Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 3535
3636import butterknife .Bind ;
3737import butterknife .ButterKnife ;
38+ import butterknife .OnClick ;
3839
3940/**
4041 * Created by Artem Kholodnyi on 11/19/15.
@@ -277,4 +278,8 @@ public void onAnimationFinished() {
277278
278279 public abstract String getTagString ();
279280
281+ @ OnClick (R .id .btn_save )
282+ void onClick () {
283+ doBreak ();
284+ }
280285}
Original file line number Diff line number Diff line change 5555
5656 </android .support.design.widget.AppBarLayout>
5757
58-
5958 <android .support.v7.widget.RecyclerView
60- xmlns : android =" http://schemas.android.com/apk/res/android"
6159 android : layout_width =" match_parent"
6260 android : layout_height =" match_parent"
6361 android : id =" @+id/recycler"
6462 style =" ?attr/viewStyle"
6563 android : paddingLeft =" 16dp"
6664 android : paddingRight =" 16dp"
6765 android : paddingTop =" 16dp"
68- android : paddingBottom =" 16dp "
66+ android : paddingBottom =" @dimen/save_btn_height "
6967 app : layout_behavior =" @string/appbar_scrolling_view_behavior"
7068 />
7169
70+ <Button
71+ android : id =" @+id/btn_save"
72+ android : layout_width =" match_parent"
73+ android : layout_height =" @dimen/save_btn_height"
74+ android : text =" @string/save"
75+ android : layout_gravity =" bottom"
76+ android : background =" ?attr/colorControlNormal"
77+ android : textColor =" @android:color/white"
78+ android : textAllCaps =" false"
79+ />
7280
7381 </android .support.design.widget.CoordinatorLayout>
7482
Original file line number Diff line number Diff line change 33 <dimen name =" activity_horizontal_margin" >16dp</dimen >
44 <dimen name =" activity_vertical_margin" >16dp</dimen >
55 <dimen name =" fab_margin" >16dp</dimen >
6- <dimen name =" appbar_height" >256dp </dimen >
6+ <dimen name =" appbar_height" >200dp </dimen >
77 <dimen name =" photo_toolbar_height" >256dp</dimen >
88 <dimen name =" text_view_padding" >8dp</dimen >
9+ <dimen name =" save_btn_height" >48dp</dimen >
910</resources >
Original file line number Diff line number Diff line change 1515 <string name =" label_homeworld" type =" id" >Homeworld</string >
1616 <string name =" label_birthday" type =" id" >Birthday</string >
1717 <string name =" label_gender" type =" id" >Gender</string >
18+ <string name =" save" >Save</string >
1819</resources >
You can’t perform that action at this time.
0 commit comments