摘要:
Touch事件在 onInterceptTouchEvent()和onTouchEvent以及各个childView间的传递机制完全取决于onInterceptTouchEvent()和onTouchEvent()的返回值。返回值为true表示事件被正确接收和处理了,返回值为false表示事件没有被处理,将继续传递下去(只是传递方向不一样,onInterceptTouchEvent()向子View... 阅读全文
摘要:
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/> Intent shortcutIntent = new Intent("com.android.launcher.action.INSTALL_SHORTCUT"); shortcutIntent.putExtra(Intent.... 阅读全文
摘要:
TextView nullTxtView=new TextView(this); nullTxtView.setText("这里为空哈哈"); nullTxtView.setGravity(Gravity.CENTER); listView.setEmptyView(nullTxtView); LayoutParams params = new LayoutParams(LayoutParams.... 阅读全文