Skip to content

Commit 7917365

Browse files
committed
Deletes empty layout manager
1 parent f5529bd commit 7917365

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

com.vogella.android.userinterface.undo_draft/res/layout/activity_main.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,11 @@
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"

com.vogella.android.userinterface.undo_draft/src/com/vogella/android/userinterface/undo/MainActivity.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)