10 2014 档案

摘要:1,public Bitmap stringtoBitmap(String string) { // 将字符串转换成Bitmap类型 Bitmap bitmap = null; try { byte[] bitmapArray; bitmapArray = Base64.decode(st... 阅读全文
posted @ 2014-10-27 15:03 manmanlu 阅读(1682) 评论(0) 推荐(0)
摘要:在一个 Android 应用中,我使用 FragmentPagerAdapter 来处理多 Fragment 页面的横向滑动。不过我碰到了一个问题,即当 Fragment 对应的数据集发生改变时,我希望能够通过调用 mAdapter.notifyDataSetChanged() 来触发 Fragme... 阅读全文
posted @ 2014-10-23 11:43 manmanlu 阅读(209) 评论(0) 推荐(0)
摘要:一,View localView = mRadioGroup_content.getChildAt(i);指定自定义菜单栏的点击格,如child3其中:mRadioGroup_content = (LinearLayout) findViewById(R.id.mRadioGroup_content... 阅读全文
posted @ 2014-10-23 11:41 manmanlu 阅读(190) 评论(0) 推荐(0)
摘要:1,就像Button控件有监听器一样,动画效果也有监听器,只需要实现AnimationListener就可以实现对动画效果的监听,只需要实现AnimationListener就可以实现对动画效果的监听,其中需要重载三个函数,就是下面的这几个函数: \private class MyListenr i... 阅读全文
posted @ 2014-10-23 09:41 manmanlu 阅读(313) 评论(0) 推荐(0)
摘要:package com.example.sywang2;import com.zds.os.R;import android.os.Bundle; import android.os.Handler; import android.app.Activity; import android.view.... 阅读全文
posted @ 2014-10-20 15:29 manmanlu 阅读(1105) 评论(0) 推荐(0)