Available Methods
- setText ( )
- addTextChangedListener ( )
- setHint ( )
- setSelection ( )
- setInputType ( )
- requestFocus ( )
- setError ( )
- setOnEditorActionListener ( )
- getText ( )
- setOnFocusChangeListener ( )
- getSelectionStart ( )
- setTextColor ( )
- setFocusable ( )
- setEnabled ( )
- setTextSize ( )
- setLayoutParams ( )
- setFilters ( )
- setFocusableInTouchMode ( )
- setSingleLine ( )
- getSelectionEnd ( )
- setHintTextColor ( )
- setPadding ( )
- setVisibility ( )
- setGravity ( )
- append ( )
- setBackgroundDrawable ( )
- setOnKeyListener ( )
- selectAll ( )
- setOnClickListener ( )
- setImeOptions ( )
- getInputType ( )
- setTransformationMethod ( )
- post ( )
- setOnTouchListener ( )
- startAnimation ( )
- clearFocus ( )
- length ( )
- setLines ( )
- dispatchKeyEvent ( )
- getParent ( )
- getEditableText ( )
- setBackgroundColor ( )
- setKeyListener ( )
- setTypeface ( )
- getId ( )
- setImeActionLabel ( )
- setTag ( )
- setMaxLines ( )
- setEllipsize ( )
- setClickable ( )
- setRawInputType ( )
- getTag ( )
- setSelectAllOnFocus ( )
- setId ( )
- setBackground ( )
- setLongClickable ( )
- getLayout ( )
- getHint ( )
- focusSearch ( )
- hasFocus ( )
- setHighlightColor ( )
- setAutofillHints ( )
- setCompoundDrawablesWithIntrinsicBounds ( )
- setCursorVisible ( )
- setMinWidth ( )
- requestFocusFromTouch ( )
- setBreakStrategy ( )
- setLineSpacing ( )
- postDelayed ( )
- setHorizontallyScrolling ( )
Related Classes
- java.io.File
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- android.app.Activity
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.widget.ImageView
- android.graphics.Color
- android.net.Uri
- android.widget.Button
- android.text.TextUtils
- android.view.MotionEvent
- android.widget.LinearLayout
- android.support.annotation.Nullable
- android.content.SharedPreferences
- android.support.annotation.NonNull
- android.annotation.SuppressLint
- android.content.DialogInterface
- android.view.WindowManager
Java Code Examples for android.widget.EditText#setMinWidth()
The following examples show how to use
android.widget.EditText#setMinWidth() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FeedSourcesActivity.java From AnotherRSS with The Unlicense | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.pref_sources); ActionBar ab = getSupportActionBar(); if (ab != null) { ab.setDisplayHomeAsUpEnabled(true); ab.setTitle(getString(R.string.rss_url)); } _pref = PreferenceManager.getDefaultSharedPreferences(AnotherRSS.getContextOfApplication()); loadUrls(); Intent intent = getIntent(); Uri data = intent.getData(); if (data != null) { int id = _urlEdit.size(); _active = Arrays.copyOf(_active, _active.length +1); _active[id] = true; CheckBox checkBox = new CheckBox(this); EditText editText = new EditText(this); checkBox.setChecked(true); editText.setText(data.toString()); _urlCheck.add(id, checkBox); _urlEdit.add(id, editText); LinearLayout dummy = new LinearLayout(AnotherRSS.getContextOfApplication()); dummy.setOrientation(LinearLayout.HORIZONTAL); dummy.addView(checkBox, 0); dummy.addView(editText, 1); editText.setMinWidth(AnotherRSS.Config.DEFAULT_MAX_IMG_WIDTH); _linearLayout.addView(dummy, id); storeUrls(); editText.requestFocus(); } }
Example 2
Source File: TagFlowLayout.java From support with Apache License 2.0 | 5 votes |
public TagFlowLayout(Context context, AttributeSet attrs) { super(context, attrs); mInputView = new EditText(context); mInputView.setBackgroundColor(Color.TRANSPARENT); mInputView.addTextChangedListener(this); mInputView.setOnKeyListener(this); mInputView.setPadding(0, 0, 0, 0); mInputView.setMinWidth(20); mInputView.setSingleLine(); mInputView.setGravity(Gravity.CENTER_VERTICAL); setDecorator(new SimpleDecorator(context)); addView(mInputView); setOnClickListener(this); previewInEditMode(); }