由网友(我叫抄级学霸)分享简介:在Android上的开关按钮是看起来像下面 - In android the Toggle buttons are looks like below -我们可以修改这个为 iPhone 的风格像下面 - Can we modify this as Iphone style like below - 和,我们可以...
在Android上的开关按钮
是看起来像下面 -
In android the Toggle buttons
are looks like below -
我们可以修改这个为 iPhone
的风格像下面 -
Can we modify this as Iphone
style like below -
和,我们可以包括切换按钮的iPhone功能,例如拖动切换功能也。
And, Can we include the iphone functionality of toggle button like drag to toggle feature also.
如何完成这个动作?在此先感谢。
How to complete this action? Thanks in Advance.
推荐答案
这个链接更多信息:http://www.mokasocial.com/2011/07/sexily-styled-toggle-buttons-for-android/
<ToggleButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/toggle_me"/>
和提拉会是这样的:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true"
android:drawable="@drawable/toggle_me_on" /> <!-- checked -->
<item android:drawable="@drawable/toggle_me_off" /> <!-- default/unchecked -->
</selector>
相关推荐
最新文章