2013年7月11日

添加space_key, enter_key, clear_key, delete_key的处理。

摘要: final EditText view = (EditText) mInflater.inflate(R.layout.sms_receipient_input, null); view.setOnKeyListener(new View.OnKeyListener() { @Override public boolean onKey(View v, int... 阅读全文

posted @ 2013-07-11 19:12 勤修 阅读(767) 评论(0) 推荐(0) 编辑

实现ScrollviewSupportMaxHeight

摘要: public class ScrollviewSupportMaxHeight extends ScrollView { public final int MAX_HEIGHT = 150; public ScrollviewSupportMaxHeight(Context context, AttributeSet attrs) { super(... 阅读全文

posted @ 2013-07-11 17:37 勤修 阅读(456) 评论(0) 推荐(0) 编辑

extends android.view.ViewGroup两种实现

摘要: /* private int measureHeight(int heightMeasureSpec) { int count = getChildCount(); int rowCount = 1; int left = 0; int top = 0; int right = lef... 阅读全文

posted @ 2013-07-11 16:56 勤修 阅读(1593) 评论(0) 推荐(0) 编辑

View.setTag(key,object)异常:The key must be an application-specific resource id.

摘要: 07-11 13:43:26.184: E/AndroidRuntime(10229): FATAL EXCEPTION: main07-11 13:43:26.184: E/AndroidRuntime(10229): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.txrj.sms/com.txrj.... 阅读全文

posted @ 2013-07-11 13:53 勤修 阅读(10374) 评论(1) 推荐(1) 编辑

导航