![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
xi_san_er
老三儿啊!鬼娃子野哪玩ki了!
展开
-
返回时软键盘隐藏时候出现黑影
给返回到的activity界面添加 android:windowSoftInputMode="adjustPan"原创 2014-09-25 16:16:46 · 1177 阅读 · 1 评论 -
RadioButton
android:orientation="horizontal" android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/comments_radiogroup" >原创 2015-01-08 14:00:24 · 495 阅读 · 0 评论 -
notification deprecated
deprecated method about Notification Builder mBuilder = new Notification.Builder(this); mBuilder.setContentTitle("Notification"); mBuilder.setContentText("who do you think you are"); mBuilder.se原创 2014-12-08 17:19:26 · 741 阅读 · 0 评论 -
view and viewgroup event dispatch
viewgroup(zhy_dashen):1、如果ViewGroup找到了能够处理该事件的View,则直接交给子View处理,自己的onTouchEvent不会被触发;2、可以通过复写onInterceptTouchEvent(ev)方法,拦截子View的事件(即return true),把事件交给自己处理,则会执行自己对应的onTouchEvent方法3、子View翻译 2014-12-03 14:57:19 · 588 阅读 · 0 评论 -
android-pulltorefresh listview
get widget pulltorefreshlistview and call setOnRefreshListener(),overide method onRefresh or onPullDwonToRefresh,onPullUpToRefresh:mPullRefreshListView.setOnRefreshListener(new OnRefreshListener2原创 2014-12-03 11:05:32 · 651 阅读 · 0 评论 -
cmd avd 简单操作
android create avd -n Name -t Target -s HVGAandroid list target emulator -avd Nameadb devicesadb -s emulator-name install xx.apk / adb install xx.apkadb kill-serveradb start-server原创 2014-11-27 14:54:11 · 845 阅读 · 0 评论 -
set theme for fragment (ViewpagerIndicator Tab)
in fragment method onCreateView() using the following code:Context contextTheme = new ContextThemeWrapper(getActivity(),R.style.Theme_PageIndicatorDefaults);LayoutInflater themeInflater = in原创 2014-12-02 16:29:07 · 813 阅读 · 0 评论 -
corner rect bg layout
drawale/corner.xml layout/main.xml android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:o原创 2014-12-01 18:47:28 · 542 阅读 · 0 评论 -
scrollview can host only one direct child
即 ScrollView 只能有一个亲儿子,亲儿子keyi原创 2014-10-24 17:22:33 · 991 阅读 · 0 评论 -
Fragment设置theme
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { Context contextTheme = new ContextThemeWrapper(getActivity(),R.style.Theme_PageIndicatorDefault原创 2014-10-24 17:05:53 · 1636 阅读 · 0 评论 -
获取第二天零时的毫秒数
// 获取第二天零时的毫秒数Calendar calendar = Calendar.getInstance();int day = calendar.get(Calendar.DAY_OF_YEAR);calendar.set(Calendar.DAY_OF_YEAR, day);calendar.set(Calendar.HOUR_OF_DAY, 0);calendar.s原创 2014-10-22 17:45:37 · 934 阅读 · 0 评论 -
Can't bind to local 8700 for debugger 端口占用
开始--运行--cmd 进入命令提示符 输入netstat -ano 即可看到所有连接的PID 之后在任务管理器中找到这个PID所对应的程序如果任务管理器中没有PID这一项,可以在任务管理器中选"查看"-"选择列" 假如我们需要确定谁占用了我们的9050端口 1、Windows平台 在windows命令行窗口下执行: 1.查看所有的端口占用情况C:\>ne原创 2014-10-22 09:57:57 · 12094 阅读 · 1 评论 -
分享
http://cancait.blog.163.com/blog/static/21335744201310335623653/翻译 2014-10-30 16:00:29 · 410 阅读 · 0 评论