当前位置: 首页>>代码示例>>Java>>正文


Java Slider类代码示例

本文整理汇总了Java中com.rey.material.widget.Slider的典型用法代码示例。如果您正苦于以下问题:Java Slider类的具体用法?Java Slider怎么用?Java Slider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Slider类属于com.rey.material.widget包,在下文中一共展示了Slider类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onClickChatLandScapeWidth

import com.rey.material.widget.Slider; //导入依赖的package包/类
public void onClickChatLandScapeWidth(View v) {
	final int landscapeWidth = settings.getChatLandscapeWidth();

	DialogService.getSliderDialog(
			this,
			new MaterialDialog.SingleButtonCallback() {
				@Override
				public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
					settings.setChatLandscapeWidth(landscapeWidth);
					updateSummaries();
				}
			},
			new Slider.OnPositionChangeListener() {
				@Override
				public void onPositionChanged(Slider view, boolean fromUser, float oldPos, float newPos, int oldValue, int newValue) {
					settings.setChatLandscapeWidth(newValue);
					updateSummaries();
				}
			},
			landscapeWidth,
			25,
			60,
			getString(R.string.chat_landscape_width_dialog)
	).show();
}
 
开发者ID:SebastianRask,项目名称:Pocket-Plays-for-Twitch,代码行数:26,代码来源:SettingsTwitchChatActivity.java

示例2: onCreate

import com.rey.material.widget.Slider; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_shared_preference);
    context = this;
    btnColor = (Button) findViewById(R.id.btnColor);
    txtHexadecimalColor = (EditText) findViewById(R.id.txtHexadecimalColor);
    txtLineThickness = (EditText) findViewById(R.id.txtLineThickness);
    txtTitleSelectPictureName = (EditText) findViewById(R.id.txtTitleSelectPictureName);
    txtDirectoryName = (EditText) findViewById(R.id.txtDirectoryName);
    txtPhotoName = (EditText) findViewById(R.id.txtPhotoName);
    switchAutoIncrement = (Switch) findViewById(R.id.switchAutoIncrement);
    sliderQuality = (Slider) findViewById(R.id.sliderQuality);
    radioTypeExtension = (RadioGroup) findViewById(R.id.radioTypeExtension);
    radioExtensionWEBP = (RadioButton) findViewById(R.id.radioExtensionWEBP);
    radioExtensionPNG = (RadioButton) findViewById(R.id.radioExtensionPNG);
    radioExtensionJPEG = (RadioButton) findViewById(R.id.radioExtensionJPEG);
    noteFragment = (TextView) findViewById(R.id.noteFragment);
    noteFragment.setVisibility(View.VISIBLE);
    valuesSharedPreference();
    listeners();
}
 
开发者ID:fabian7593,项目名称:MagicalCamera,代码行数:23,代码来源:SharedPreferenceActivity.java

示例3: onActivityCreated

import com.rey.material.widget.Slider; //导入依赖的package包/类
@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    mProgressBar = (ProgressBar) getView()
            .findViewById(R.id.subject_grade_progress_bar_wrapper)
            .findViewById(R.id.progress_bar);
    mSubjectGradeWrapper = (LinearLayout) getView().findViewById(R.id.subject_grade_wrapper);
    mSubjectStatus = (TextView) getView().findViewById(R.id.subject_status);
    mSubjectRating = (TextView) getView().findViewById(R.id.subject_rating);
    mSubjectComment = (TextView) getView().findViewById(R.id.subject_comment);
    mSubjectStatusField = (RadioGroup) getView().findViewById(R.id.subject_status_field);
    mSubjectRatingField = (Slider) getView().findViewById(R.id.subject_rating_field);
    mSubjectCommentField = (MaterialEditText) getView().findViewById(R.id.subject_comment_field);

    mSubjectStatusField.setOnCheckedChangeListener(this);
}
 
开发者ID:scarletsky,项目名称:Bangumi-Android,代码行数:18,代码来源:SubjectGradeFragment.java

示例4: customCanScroll

import com.rey.material.widget.Slider; //导入依赖的package包/类
protected boolean customCanScroll(View v) {
    if (v instanceof Slider || v instanceof Switch)
        return true;
    return false;
}
 
开发者ID:iamzhangdejian,项目名称:material-master,代码行数:6,代码来源:CustomViewPager.java


注:本文中的com.rey.material.widget.Slider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。