EditText无边框
style="?android:attr/textViewStyle"
android:background="@null"
android:textColor="@null"
这个也行:style="@android:style/Widget.TextView"
[img]http://dl.iteye.com/upload/attachment/337253/2df4f308-d43b-33f6-9907-9b41ec1fd854.jpg[/img]
EditText : android:background="@android:drawable/editbox_background"
[img]http://dl.iteye.com/upload/attachment/338650/ab5577a2-3caf-3000-928e-e763ea6ecfc5.jpg[/img]
TextView : android:background="@android:drawable/edit_text"
[img]http://dl.iteye.com/upload/attachment/338652/59f3fcc5-9407-389e-8fba-74fcc63324ac.jpg[/img]
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
style="@android:style/ButtonBar"
>
<Button android:id="@+id/btn_done"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="完成"
/>
<Button android:id="@+id/btn_discard"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="取消"
/>
</LinearLayout>
[img]http://dl.iteye.com/upload/attachment/356853/b0e0fc9b-0d94-3f9e-b05c-dec5c04df073.jpg[/img]