本文整理汇总了Java中com.rengwuxian.materialedittext.MaterialEditText.setFocusable方法的典型用法代码示例。如果您正苦于以下问题:Java MaterialEditText.setFocusable方法的具体用法?Java MaterialEditText.setFocusable怎么用?Java MaterialEditText.setFocusable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.rengwuxian.materialedittext.MaterialEditText
的用法示例。
在下文中一共展示了MaterialEditText.setFocusable方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setupEditionView
import com.rengwuxian.materialedittext.MaterialEditText; //导入方法依赖的package包/类
@Override
public View setupEditionView(Object value)
{
if (value != null)
{
editionValue = value;
}
View vr = inflater.inflate(R.layout.form_user_picker, null);
editText = (MaterialEditText) vr.findViewById(R.id.user_picker);
editText.setText(getHumanReadableEditionValue());
// Asterix if required
editText.setFloatingLabelText(getLabelText(data.getName()));
if (TextUtils.isEmpty(data.getPlaceholder()))
{
editText.setHint(getLabelText(data.getName()));
}
else
{
editText.setFloatingLabelAlwaysShown(true);
editText.setHint(data.getPlaceholder());
}
editText.setFocusable(false);
editText.setIconRight(R.drawable.ic_account_circle_grey);
editionView = vr;
return vr;
}
示例2: setupEditionView
import com.rengwuxian.materialedittext.MaterialEditText; //导入方法依赖的package包/类
@Override
public View setupEditionView(Object value)
{
if (value != null)
{
editionValue = value;
}
View vr = inflater.inflate(R.layout.form_usergroup_picker, null);
editText = (MaterialEditText) vr.findViewById(R.id.group_picker);
editText.setText(getHumanReadableEditionValue());
// Asterix if required
editText.setFloatingLabelText(getLabelText(data.getName()));
if (TextUtils.isEmpty(data.getPlaceholder()))
{
editText.setHint(getLabelText(data.getName()));
}
else
{
editText.setFloatingLabelAlwaysShown(true);
editText.setHint(data.getPlaceholder());
}
editText.setFocusable(false);
editText.setIconRight(R.drawable.ic_group_grey);
editionView = vr;
return vr;
}
示例3: setupEditionView
import com.rengwuxian.materialedittext.MaterialEditText; //导入方法依赖的package包/类
@Override
public View setupEditionView(Object value)
{
editionValue = value;
if (value instanceof String)
{
editionValue = ISO8601Utils.parse((String) value);
}
View vr = inflater.inflate(R.layout.form_date, null);
editText = (MaterialEditText) vr.findViewById(R.id.date_picker);
editText.setText(getHumanReadableEditionValue());
// Asterix if required
editText.setFloatingLabelText(getLabelText(data.getName()));
if (TextUtils.isEmpty(data.getPlaceholder()))
{
editText.setHint(getLabelText(data.getName()));
}
else
{
editText.setFloatingLabelAlwaysShown(true);
editText.setHint(data.getPlaceholder());
}
editText.setFocusable(false);
editText.setIconRight(R.drawable.ic_event_grey);
editionView = vr;
return vr;
}
示例4: setupEditionView
import com.rengwuxian.materialedittext.MaterialEditText; //导入方法依赖的package包/类
@Override
public View setupEditionView(Object value)
{
if (value != null)
{
editionValue = value;
}
getHumanReadableEditionValue();
ViewGroup vr = (ViewGroup) inflater.inflate(R.layout.form_user_upload, null);
editionView = vr;
tv = (MaterialEditText) vr.findViewById(R.id.content_header);
tv.setFocusable(false);
tv.setHint(getLabelText(data.getName()));
displayAddIcon();
displayUnsupported(vr);
// Create Item Rows
if (!hasDisplayedEmpty(vr, editionValue, false))
{
for (Object item : (List) editionValue)
{
createRow((ViewGroup) vr.findViewById(R.id.contents_container), (RelatedContentRepresentation) item,
false);
}
}
return vr;
}
示例5: setupEditionView
import com.rengwuxian.materialedittext.MaterialEditText; //导入方法依赖的package包/类
@Override
public View setupEditionView(Object value)
{
if (value != null)
{
editionValue = value;
}
ViewGroup vr = (ViewGroup) inflater.inflate(R.layout.form_radiobuttons, null);
tv = (MaterialEditText) vr.findViewById(R.id.radio_header);
tv.setFocusable(false);
tv.setHint(getLabelText(data.getName()));
radioGroup = (RadioGroup) vr.findViewById(R.id.form_radio_group);
radioGroup.setId(data.getName().length());
radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener()
{
@Override
public void onCheckedChanged(RadioGroup group, int checkedId)
{
tv.setError(null);
getFormManager().evaluateViews();
}
});
// Retrieve info
if (data instanceof RestFieldRepresentation && ((RestFieldRepresentation) data).getEndpoint() != null)
{
List<OptionRepresentation> options = new ArrayList<>(1);
OptionRepresentation rep = new OptionRepresentation("-1", "Loading...");
options.add(rep);
refreshRadioButtons(options);
}
else
{
refreshRadioButtons(data.getOptions());
}
editionView = vr;
return vr;
}