- 博客(79)
- 资源 (3)
- 收藏
- 关注
原创 app开发计划
漫饭Android知识宝典爱美衣工作计划:完成appnew.cn首页设计开通个人博客h.appnew.cn---爱美衣 Android客户端开发进展测试版下载---漫饭 Android客户端开发进展---Android知识宝典
2012-05-24 00:19:01
990
原创 Android中视图View的深入理解及实例演示——以腾讯笔试题为例
本文摘要:(1)笔试题引入(View的绘制过程,Draw/OnDraw/DrawChild的区别;RequestLayout, Invalidate, PostInvalidate三者的区别;视图View的设计需要注意什么?)(2)Framework框架中的View分析——参考《Android内核剖析》(3)实例演示(单Activity,RelativeLayout嵌套ViewGr
2012-05-23 16:18:06
1152
原创 Android常见设计模式总结
ltemplatemethod模式 lfactorymethod模式 lobserver模式 labstractfactory模式 ladapter模式 lcomposite模式 lstrategy模式 lstate模式 lproxy模式 lbridge模式 literator模式 lme
2012-05-23 15:26:01
955
原创 [腾讯面试]字符串转换为整数
例如:"2012" 换算为2012 (两千零一十二)C++版:#include #include using namespace std;int ctoi(char* c){ int num=0; int key=0; bool isNagative = false; //考虑负数的情况 if(*c == '-') { isNagative = true;
2012-05-18 22:20:39
681
原创 [腾讯面试]快速排序算法
一、快速排序-递归算法C++版:#include #include using namespace std;int partition2(int a[], int l, int h){ int i = l; int j = h; int key = a[l]; while(i<j) { while(key<=a[j] && (i<j)) j--; a[i]
2012-05-18 22:10:16
1408
原创 [腾讯面试]洗牌算法
腾讯面试问题:如何对10首音乐随机播放?知识点:洗牌算法。C++版:#include #include using namespace std;int rand(int range_start, int range_end){ srand((unsigned int)time(NULL)); return rand()%(range_end - range_start)
2012-05-18 22:02:57
3144
原创 ACM初级算法
ACM的算法(觉得很好,有层次感)OJ上的一些水题(可用来练手和增加自信)(poj3299,poj2159,poj2739,poj1083,poj2262,poj1503,poj3006,poj2255,poj3094)[size=5][b]初期:[/b][/size]一.基本算法: (1)枚举. (poj1753,poj2965)
2012-05-15 22:41:48
644
原创 腾讯三面总结
复习常用算法Android客户端框架学习总结目标职位:GY0-手机终端开发(深圳) http://hr.tencent.com/position_detail.php?id=7775&keywords=GY&tid=87&lid=22183G-Android开发工程师(深圳)http://hr.tencent.com/position_detail.ph
2012-05-14 18:04:53
800
原创 Android面试题2
http://www.eoeandroid.com/thread-73665-1-1.html【Android面试】Android面试题集锦 (陆续更新)(最新2011-11-21)http://www.android123.com.cn/androidkaifa/845.htmlAndroid面试题,看看你基础如何?
2012-05-12 22:01:18
579
原创 Android面试题
android面试题目及其答案1、 Android dvm的进程和Linux的进程, 应用程序的进程是否为同一个概念 DVM指dalivk的虚拟机。每一个Android应用程序都在它自己的进程中运行,都拥有一个独立的Dalvik虚拟机实例。而每一个DVM都是在Linux 中的一个进程,所以说可以认为是同一个概念。 2、sim卡的EF
2012-05-12 21:57:45
713
原创 图片缓存思路
图片API请求之间加上一层判断,如果能找到本地图片就不从网络上下载。www.baidu.com/a.jpg hash之后变成 a3232313fjkjffafadfjajfkajf存储到本地 a3232313fjkjffafadfjajfkajf.jpg 以后再根据这个url地址取看看能否命中获取到一个json里边 timestap:20120504然后 还有个ur
2012-05-05 00:21:48
3700
1
原创 测试bug记录
(1)摇一摇设置bug重现步骤:更多->设置->请选择效果,选择仅开启“震动“,再次进入时,请选择效果页面仍为“震动+声音“(2)Gallery左右箭头点击无滚动(3)搜索结果无商品时应该提醒“暂无该类商品",并且提供返回按钮。(4)imagelist的列表三种排序结果一样,排序不正常。
2012-05-03 21:00:28
720
原创 goods_detail_back_btn_selector.xml
http://schemas.android.com/apk/res/android"> android:drawable="@drawable/goods_detail_back_btn_selected" /> android:drawable="@drawable/good
2012-05-02 17:35:19
547
原创 goods_detail_info.xml2
android:layout_width="fill_parent" android:layout_height="wrap_content" android:max="100" android:progress="10" style="@android:style/Widget.ProgressBar.Horizontal" android:layout
2012-05-02 17:33:24
505
原创 goods_detail_info.xml
http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > android:layout_width="fill
2012-05-02 17:32:33
757
原创 GoodsDetailActivity
public class GoodsDetailActivity extends Activity { private static final int PROGRESS = 0x1; private ProgressBar mProgress; private WebView mWebView; private int mProgressStatus
2012-05-02 17:31:40
832
原创 ShoppingMall客户端改进计划
红色部分完成后发布第一版前端:(1)调整架构,去掉TabHost (2)修复Banner的滑动bug,增加统一的广告内容页,不采用多种跳转方式(3)ImageList 增加PullToRefresh、BackToTop、下拉刷新、分批加载功能;(4)摇一摇显示图片改为gallery方式,显示三张;(5)增加图片点击放大的功能;(6)修复语音搜索功能bug(7)N
2012-04-28 15:32:18
538
原创 HomeActivity2
private void showBestGallery(View paramChildView, String paramFunctionId, boolean paramBoolean){ final View childview = paramChildView; final HashMap goodsname = new HashMap(); goodsn
2012-04-27 17:36:04
569
原创 HomeActivity 1
//折叠模块的哈希表,用FunctionId索引 private HashMap expansionMap = new HashMap(); private ExpansionView m_news_expansionview; private ExpansionView m_bestgoods_expansionview; private Gallery gallery_
2012-04-27 17:35:25
541
原创 app_gallery_best.xml3
android:clickable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="76.0dip" android:layout_below="@id/home_gallery_select_arrow">
2012-04-27 17:33:45
462
原创 app_gallery_best.xml 2
android:layout_width="13.0dip" android:layout_height="13.0dip" android:layout_marginTop="40.0dip" android:layout_marginRight="2.0dip" android:src="@drawable/android_list_idex" andr
2012-04-27 17:33:11
426
原创 app_gallery_best.xml1
android:id="@+id/root_gallery_best" android:layout_width="fill_parent" android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android"> android:p
2012-04-27 17:32:26
404
原创 BestGalleryAdapter3
public View getView(int position, View convertView, ViewGroup parent) { Log.d(TAG, "convertView = " + convertView + " position = " + position); ImageView imageview = new ImageView(mContext);
2012-04-27 17:30:07
382
原创 BestGalleryAdapter2
//声明ImageAdapter public BestGalleryAdapter(Context c){ mContext = c; } public int getCount() { // TODO Auto-generated method stub return Integer.MAX_VALUE; } public Object getI
2012-04-27 17:29:06
395
原创 BestGalleryAdapter
package com.huawei.ptn.adapter;import com.huawei.ptn.R;import android.content.Context;import android.util.Log;import android.view.Gravity;import android.view.View;import android.view.ViewG
2012-04-27 17:27:57
359
原创 news_detail.xml3
android:textColor="#ff000000" android:autoLink="all" android:id="@+id/news_detail_content" android:layout_width="fill_parent" an
2012-04-25 20:10:18
466
原创 news_detail.xml 2
android:textStyle="bold" android:textColor="#ff000000" android:id="@+id/news_detail_title" android:layout_width="fill_parent" an
2012-04-25 20:10:05
386
原创 news_detail.xml
android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:background="@color/light_gray"> andro
2012-04-25 20:09:22
403
原创 news_list_activity
android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" > android:layout_width="match_parent" android
2012-04-25 20:08:24
382
原创 shownewslist3
localTextView.setOnClickListener(new OnClickListener(){ public void onClick(View arg0) { Log.d(TAG, "news more Clicked"); startNewsListctivity(); } }); } private void
2012-04-25 20:07:35
390
原创 shownewslist2
new Thread(){ public void run(){ int[] news_id = {1, 21, 12, 6}; String[] news_title = {"新闻1", "新闻2", "新闻3","新闻4"}; for(int i=0; i Map item = new HashMap(); item.p
2012-04-25 20:07:14
466
原创 showNewsList1
public void showNewsList(View paramChildView, String paramFunctionId, boolean paramBoolean){ final View childview = paramChildView; //新闻标题 TextView localTextView = (TextView)paramChildView.fi
2012-04-25 20:06:18
363
原创 doNews define
//折叠模块的哈希表,用FunctionId索引 private HashMap expansionMap = new HashMap(); private ExpansionView m_news_expansionview; private ExpansionView m_bestgoods_expansionview; private ListView news
2012-04-25 20:05:36
339
原创 NewsDetailActivity2
protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.news_detail); InitVie
2012-04-25 20:04:49
520
原创 NewsDetailActivity
import android.os.Bundle;import android.os.Handler;import android.util.Log;import android.view.View;import android.view.Window;import android.widget.TextView;public class NewsDetailActiv
2012-04-25 20:04:22
531
原创 NewsListActivity
package com.huawei.ptn.activity.home;import com.huawei.ptn.R;import com.huawei.ptn.activity.HomeActivityGroup;import android.app.Activity;import android.content.Intent;import android.os.Bund
2012-04-25 20:03:47
374
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人