2013年10月26日 星期六

讓EditText 有像Button一樣的點擊效果

 

讓EditText 有像Button一樣的點擊效果

 

<EditText android:id="@+id/Edit"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:focusable="false"

android:focusableInTouchMode="false"

android:clickable="true"/>

 

引用:

http://stackoverflow.com/questions/8303269/style-a-button-to-look-like-an-edittext-but-still-behave-like-a-button