• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java EditText类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: setEmerContact

import org.holoeverywhere.widget.EditText; //导入依赖的package包/类
private boolean setEmerContact() {
	EditText et = (MultiAutoCompleteTextView) this.findViewById(R.id.to);
	this.to = et.getText().toString();
	settingsData.resetArrayList();
	if (TextUtils.isEmpty(this.to))
		return false;
	for (String r : this.to.split(",")) {
		r = MobilePhoneAdapter.cleanRecipient(r);
		if (TextUtils.isEmpty(r)) {
			continue;
		}
		settingsData.addContactNumber(r);
		// this.send(r, this.text);
	}
	// if (isMyServiceRunning()) {
	// stopService(serviceIntent);
	// startAccelService();
	// }
	setContactsText();
	return true;
}
 
开发者ID:ericcurtin,项目名称:Fall-Monitor,代码行数:22,代码来源:FallMonitorActivity.java


示例2: onStart

import org.holoeverywhere.widget.EditText; //导入依赖的package包/类
@Override
public void onStart() {
	super.onStart(); // super.onStart() is where dialog.show() is actually
						// called on the underlying dialog, so we have to do
						// it after this point
	AlertDialog d = (AlertDialog) getDialog();
	if (d != null) {
		Button positiveButton = (Button) d
				.getButton(Dialog.BUTTON_POSITIVE);
		positiveButton.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				String login = ((EditText) view.findViewById(R.id.username))
						.getText().toString();
				String password = ((EditText) view
						.findViewById(R.id.password)).getText().toString();
				mListener.onLogin(login, password);
			}
		});
	}
}
 
开发者ID:johan12345,项目名称:ls-vertretungsplan,代码行数:22,代码来源:LoginDialogFragment.java


示例3: onLoginClick

import org.holoeverywhere.widget.EditText; //导入依赖的package包/类
/**
 * Called when clicking on the login button in the login screen.
 * @param v The button that was pressed.
 */
public void onLoginClick(View v)
{
	EditText vEdit = (EditText)this.findViewById(R.id.loginEdit);
	EditText vPword = (EditText)this.findViewById(R.id.pwordEdit);
	if (vEdit == null || vPword == null)
		return;
	
	String login = vEdit.getText().toString().trim().toLowerCase();
	String pWord = vPword.getText().toString().trim();
	if (StatMethods.IsStringNullOrEmpty(login)) {
		StatMethods.hotBread(this, "Login field is empty", Toast.LENGTH_SHORT);
		return;
	}
	else if (StatMethods.IsStringNullOrEmpty(pWord)) {
		StatMethods.hotBread(this, "Password field is empty", Toast.LENGTH_SHORT);
		return;
	}
	
	if (!StatMethods.isNetworkAvailable(this, true))
		return;
	
	Button loginButton = (Button)this.findViewById(R.id.button1);
	loginButton.setVisibility(View.INVISIBLE);
	ProgressBar pb1 = (ProgressBar)this.findViewById(R.id.progressBar1);
	pb1.setVisibility(View.VISIBLE);
	//new BGLogin(this.getApplicationContext(), null).execute("login", login, pWord);
       new LoginTask(this.getApplicationContext(), login, pWord).execute();
}
 
开发者ID:saltisgood,项目名称:opensnap,代码行数:33,代码来源:LaunchActivity.java


示例4: onCreateView

import org.holoeverywhere.widget.EditText; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup root, Bundle savedInstanceState) {
	setFocused(true);
	
	final View v = inflater.inflate(R.layout.snap_edit_vid, null);
	
	VideoView vv = (VideoView)v.findViewById(R.id.snap_vid);
	vv.setOnPreparedListener(new OnPreparedListener() {
		@Override
		public void onPrepared(MediaPlayer player) {
			mMediaPlayer = player;
			player.setLooping(true);
			player.start();
		}
	});
	vv.setVideoPath(getFilePath());
	vv.setOnTouchListener(mediaOnTouchListener);
	
	mCaption = (EditText)v.findViewById(R.id.snap_user_text);
	mCaption.addTextChangedListener(captionTextWatcher);
	mCaption.setOnTouchListener(captionOnTouchListener);
	
	View cancel = (View)v.findViewById(R.id.back_button);
	cancel.setOnClickListener(cancelOnClickListener);
	
	View send = (View)v.findViewById(R.id.send_button);
	send.setOnClickListener(sendOnClickListener);
	
	return v;
}
 
开发者ID:saltisgood,项目名称:opensnap,代码行数:31,代码来源:SnapEditorVidFrag.java


示例5: setResendInfo

import org.holoeverywhere.widget.EditText; //导入依赖的package包/类
@Override
protected void setResendInfo(String fileName, int time) {
	SharedPreferences resendPref = this.getActivity().getSharedPreferences(RESEND_INFO_KEY, Context.MODE_PRIVATE);
	SharedPreferences.Editor editor = resendPref.edit();
	EditText txt = (EditText)this.getView().findViewById(R.id.snap_user_text);
	String text = txt.getText().toString();
	if (text == null)
		text = "";
	editor.putString(CAPTION_KEY, text);
	if (fileName != null) editor.putString(FILE_PATH_KEY, fileName);
	editor.putBoolean(MEDIA_TYPE_KEY, false);
	editor.commit();
}
 
开发者ID:saltisgood,项目名称:opensnap,代码行数:14,代码来源:SnapEditorVidFrag.java


示例6: onAddEditTextToDialogView

import org.holoeverywhere.widget.EditText; //导入依赖的package包/类
protected void onAddEditTextToDialogView(View dialogView, EditText editText) {
    ViewGroup container = (ViewGroup) dialogView
            .findViewById(R.id.edittext_container);
    if (container != null) {
        container.addView(editText, ViewGroup.LayoutParams.MATCH_PARENT,
                ViewGroup.LayoutParams.WRAP_CONTENT);
    }
}
 
开发者ID:restorer,项目名称:gloomy-dungeons-2,代码行数:9,代码来源:EditTextPreference.java


示例7: onBindDialogView

import org.holoeverywhere.widget.EditText; //导入依赖的package包/类
@Override
protected void onBindDialogView(View view) {
    super.onBindDialogView(view);

    EditText editText = mEditText;
    editText.setText(getText());

    ViewParent oldParent = editText.getParent();
    if (oldParent != view) {
        if (oldParent != null) {
            ((ViewGroup) oldParent).removeView(editText);
        }
        onAddEditTextToDialogView(view, editText);
    }
}
 
开发者ID:restorer,项目名称:gloomy-dungeons-2,代码行数:16,代码来源:EditTextPreference.java


示例8: EditTextPreference

import org.holoeverywhere.widget.EditText; //导入依赖的package包/类
public EditTextPreference(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
    context = getContext();
    mEditText = new EditText(context, attrs);
    mEditText.setId(R.id.edit);
    mEditText.setEnabled(true);
}
 
开发者ID:antonyt,项目名称:TflTravelAlerts,代码行数:8,代码来源:EditTextPreference.java


示例9: findViews

import org.holoeverywhere.widget.EditText; //导入依赖的package包/类
private void findViews() {
    mAlertTitle = (EditText) getView().findViewById(R.id.alert_title);
    mDaySelectorView = (DaySelectorView) getView().findViewById(R.id.day_selector_view);
    mLineSelectorView = (LineSelectorView) getView().findViewById(R.id.line_selector_view);
    mTimeInputField = (TimeInputField) getView().findViewById(R.id.time_input);
    mCancelButton = (Button) getView().findViewById(R.id.cancel_button);
    mSaveButton = (Button) getView().findViewById(R.id.save_button);
    mOnlyNotifyForDisruptionsView = (CheckBox) getView().findViewById(R.id.only_notify_for_disruptions_view);
}
 
开发者ID:antonyt,项目名称:TflTravelAlerts,代码行数:10,代码来源:EditAlertFragment.java


示例10: EditTextPreference

import org.holoeverywhere.widget.EditText; //导入依赖的package包/类
public EditTextPreference(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
    mEditText = new EditText(getDialogContext(true), attrs);
    mEditText.setId(R.id.edit);
    mEditText.setEnabled(true);
}
 
开发者ID:restorer,项目名称:gloomy-dungeons-2,代码行数:7,代码来源:EditTextPreference.java


示例11: getEditText

import org.holoeverywhere.widget.EditText; //导入依赖的package包/类
public EditText getEditText() {
    return mEditText;
}
 
开发者ID:restorer,项目名称:gloomy-dungeons-2,代码行数:4,代码来源:EditTextPreference.java


示例12: EditTextPreference

import org.holoeverywhere.widget.EditText; //导入依赖的package包/类
public EditTextPreference(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
    mEditText = new EditText(getDialogContext(true));
    mEditText.setId(R.id.edit);
    mEditText.setEnabled(true);
}
 
开发者ID:WassimBenltaief,项目名称:laposte-android,代码行数:7,代码来源:EditTextPreference.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SessionAttributeStore类代码示例发布时间:2022-05-23
下一篇:
Java Databinding类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap