本文整理匯總了Java中com.sevenheaven.iosswitch.ShSwitchView類的典型用法代碼示例。如果您正苦於以下問題:Java ShSwitchView類的具體用法?Java ShSwitchView怎麽用?Java ShSwitchView使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ShSwitchView類屬於com.sevenheaven.iosswitch包,在下文中一共展示了ShSwitchView類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onCreate
import com.sevenheaven.iosswitch.ShSwitchView; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
switchView = (ShSwitchView) findViewById(R.id.switch_view);
switchView.setOn(true);
}
示例2: initView
import com.sevenheaven.iosswitch.ShSwitchView; //導入依賴的package包/類
private void initView() {
mWifiSwichLayout = (RelativeLayout) findViewById(R.id.rl_wifi_cache);
mOtherSwichLayout = (RelativeLayout) findViewById(R.id.rl_other_cache);
mLableWifi = (TextView) findViewById(R.id.tv_label_min_wifi);
mLableOther = (TextView) findViewById(R.id.tv_label_min_other);
mEtWifi = (EditText) findViewById(R.id.et_label_min_wifi);
mEtOther = (EditText) findViewById(R.id.et_label_min_other);
mRsvWifi = (RangeSliderViewEx) findViewById(R.id.rsv_wifi);
mRsvOther = (RangeSliderViewEx) findViewById(R.id.rsv_other);
mCacheSwich = (ShSwitchView) findViewById(R.id.switch_view);
}