1.定义全局的布尔值
boolean b=false;//实现通过判断切换 2.实现三个视图<LinearLayout android:id="@+id/li" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:id="@+id/add" android:layout_width="wrap_content"