1.有时候我们app中经常出现一些需求,点击右上角的按钮“编辑”就会变成“完成”,文本里面的EditText从不可以编辑输入到可编辑输入
2.很简单直接上布局
<RelativeLayout
android:id="@+id/parttime_type"
android:layout_width="match_parent"
android:layout_height="43dp"
android:layout_marginLeft="14dp"
android:layout_marginRight="14dp"
android:layout_marginTop="14dp" >
<TextView
android:id="@+id/tv_parttime_type"
style="@style/publish_jobs_left_title"
android:text="类型" />
<TextView
android:id="@+id/tv_input_parttime_type"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:drawableRight="@drawable/icon_expand_down"
android:gravity="center"
android:text="企业"
android:textColor="@color/new_gray_666666"
android:textSize="16sp" />
<View
android:id="@+id/view1"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_alignParentBottom="true"
android:background="@color/hint_gray" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/parttime_title"
android:layout_width="match_parent"
android:layout_height="43dp"
android:layout_marginLeft="14dp"
android:la