Back to project page android-mvc-framework.
The source code is released under:
Apache License
If you think the Android project android-mvc-framework listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.android_mvc.framework.ui.view; // w w w. j av a 2 s . c om import java.util.HashMap; import android.content.Context; import android.widget.EditText; /** * EditText??????????? * @author id:language_and_engineering * */ public class MEditText extends EditText implements IFWView { public MEditText(Context context) { super(context); } // ????????? HashMap<String, Object> view_params = new HashMap<String, Object>(); @Override public Object getViewParam(String key) { return view_params.get(key); } @Override public void setViewParam(String key, Object val) { view_params.put(key, val); } // ?????????? public MEditText widthPx(int px) { setWidth(px); // http://www.javadrive.jp/android/textview/index8.html return this; } public MEditText text(String s) { setText(s); return this; } }