File tree Expand file tree Collapse file tree
com.vogella.android.userinterface.undo_draft
src/com/vogella/android/userinterface/undo Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 android : layout_width =" match_parent"
44 android : layout_height =" match_parent" >
55
6- <RelativeLayout
7- android : layout_width =" match_parent"
8- android : layout_height =" match_parent"
9- tools : context =" .MainActivity" >
10-
116 <ListView
127 android : id =" @+id/listview"
138 android : layout_width =" match_parent"
149 android : layout_height =" match_parent" >
1510 </ListView >
16- </RelativeLayout >
1711
1812 <LinearLayout
1913 android : id =" @+id/undobar"
Original file line number Diff line number Diff line change @@ -46,8 +46,10 @@ public void onClick(View view) {
4646 viewContainer .setVisibility (View .GONE );
4747 }
4848
49- public static void showUndo (final View viewContainer ) {
50- // TODO show value with end action
49+ public void showUndo (final View viewContainer ) {
50+ View view = findViewById (R .id .undobar );
51+ view .setVisibility (View .VISIBLE );
52+
5153
5254 }
5355
You can’t perform that action at this time.
0 commit comments