Skip to content

Commit b79601c

Browse files
committed
sample UI fix
1 parent 944104f commit b79601c

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

sample/src/main/java/com/gyso/gysotreeviewapplication/MainActivity.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,6 @@ void doYourOwnJobs(TreeViewEditor editor, AnimalTreeViewAdapter adapter){
117117
editor.removeNode(toRemoveNode);
118118
});
119119

120-
//remove node
121-
binding.removeChildrenBt.setOnClickListener(v->{
122-
editor.removeNodeChildren(parentToRemoveChildren);
123-
});
124-
125120
adapter.setOnItemListener((item, node)-> {
126121
Animal animal = node.getValue();
127122
Toast.makeText(this,"you click the head of "+animal,Toast.LENGTH_SHORT).show();

sample/src/main/res/layout/activity_main.xml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,6 @@
6767
android:foreground="?attr/selectableItemBackground"
6868
app:layout_constraintLeft_toRightOf="@+id/add_nodes_bt"
6969
app:layout_constraintTop_toTopOf="parent" />
70-
<TextView
71-
android:id="@+id/remove_children_bt"
72-
android:layout_width="wrap_content"
73-
android:layout_height="wrap_content"
74-
android:layout_margin="5dp"
75-
android:padding="6dp"
76-
android:checked="false"
77-
android:text="REMOVE C"
78-
android:textStyle="bold"
79-
android:textColor="@android:color/white"
80-
android:background="@drawable/drag_mode_bg"
81-
android:foreground="?attr/selectableItemBackground"
82-
app:layout_constraintLeft_toRightOf="@+id/add_nodes_bt"
83-
app:layout_constraintTop_toTopOf="parent" />
8470
</LinearLayout>
8571
<com.google.android.material.switchmaterial.SwitchMaterial
8672
android:id="@+id/drag_edit_mode_rd"

0 commit comments

Comments
 (0)