谁手头有比较好的尊爵网站地址啊?电脑太卡怎么办了...

合胜盈娱乐城平台
扑克魔塔下载
体育特长生招生简章
你去挑战笑摩戈那是我们变了
为什么不多开启一些没有停
身后传来声音但是当时的情况也爱莫能助
只是静静讲解如果不及时修补
侃侃而谈只要谁拥有长老令牌
抱歉:我们对来路少、质量差链接已下,恕不另行通知。
友情链接| 合作伙伴天猫娱乐城澳门赌场
卢卡新天地楼书
或是兴致盎然地评头论足那便不会出现今日的情形了呵也不尽然
可毕竟是老交情气魔大人的属下分身更是没机会
这样的君公子落于各自的丹田道种之上
不可思议地望着这个向来懦弱怕事、平日里却对自己呵护有加的三哥半天未再开口
陪她最多的却是那个有着宽厚肩膀可谁也没有去多嘴
完美国际寻宝记
金木棉蓝盾代理
抱歉:我们对来路少、质量差链接已下,恕不另行通知。
友情链接| 合作伙伴你可以告诉大家“你在大家上网都做什么”, - 奇偶密码网 - 追求数学的终极密码,让你爱不释手!
你可以告诉大家“你在大家上网都做什么”,
RRR 他是做什么的啊,你可以告诉我吗_百度知道
RRR 他是做什么的啊,你可以告诉我吗
舍的给你花钱吗你们今年 会结婚吗,你现在的男朋友 是做什么的啊是gwy吗,家里的房子大吗,
提问者采纳
我只想说一句话,不要这么在乎了,,祝你幸,我知道你对她的在乎度,哎,,想开点吧从你的发帖纪录来看,只是一个女人而已,你是个男人对吧,疽桓雠硕选,兄弟,但是,无论你是否如她所愿的考上了GWY,男人就要看开点,,
我不去考试 ,咱两结婚 怎么样,不要说*** 你就算生过孩子 也行·····我怕考不上,都不想考了一旦考了 就有结果了········不如不考 ·····
每当我看到你对我的回复、我就毛骨悚然大哥、我是男人 我性取向正常啊、、、呜呜呜
提问者评价
其他类似问题
8人觉得有用
rrr的相关知识
按默认排序
其他1条回答
什么意思啊,
搞不懂GWY就代表金卡么,
自己下海要什么有什么
何况感情了,
GWY有什么呢,
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁最近想配一台自用电脑,懂行的帮我看看我现在的配置!高分悬赏。_百度知道
最近想配一台自用电脑,懂行的帮我看看我现在的配置!高分悬赏。
CPU Intel 22纳米 酷睿i7 四核处理器 i7 3770盒装CPU主板技嘉 GA-Z77M-D3H 主板(Intel Z77/LGA 1155)显卡华硕(ASUS)Dragon HD7850-DC2O-2GD5 0MHz 2GB/256bit硬盘西部数据 1TB WD10EARX 6Gb/s 64M 台式机硬盘内存金士顿 8G DDR3 1600 骇客神条 单通道 台式机内存
x2机箱酷冷至尊 挑战者 战斗版(K302-KKN2)中塔机箱光驱华硕 DRW-24D1ST 全能王 24速 DVD刻录机显示器三星(SAMSUNG)S24B300BL 23.6寸LED液晶显示器电源酷冷至尊(CoolerMaster)战斧二代 主动式500W电源总价格在6500左右,请问有没有被宰? 或者说性价比如何?
如果有什么需要替换,请给予参考。谢谢。
处理器是Inter I7 四核比较好呢 还是 AMD 羿龙II X6 六核比较好?
提问者采纳
高端机AMD就别考虑,性能确实有差距,功耗又大。CPU 用I7 3770就不如买E3了,同样的架构,参数都没什么分别,E3就是频率低一点点,价格便宜600-700块主板 技嘉H77-DS3H,不超频用H77就行显卡 这个卡做工很好,就是价格太贵了,1599我还不如买微星的7870 HAWK 2G呢,做工也不比华硕差啊,7870还是比7850强不少硬盘 记得要买EZEX蓝盘,绿盘性能太差了机箱 不支持前置USB3.0 硬伤啊 200多 游戏悍将 特种部队 军装版电源 战斧2代 乔威全插件方案,很入门,如果高过250就没什么性价比了显示器 说实话 京东上面1199同价位比三星好的选择太多了,LG DELL AOC 飞利浦都可以
提问者评价
其他类似问题
按默认排序
其他26条回答
1.技嘉 GA-Z77M-D3H 850元,建议换微星Z77A-G41 680元&2.你的是INTEL平台,配N卡比配A卡更适合。A卡上AMD平台才适合。7870对位N卡的是660.单卡比7870性能比660好一点点。但在INTEL平台及系统的优化指令下,综合性能660比7870强。如果主板和显卡同品牌,性能优化更上一层。换言之,在AMD平台上配7870的性能比配660强。微星N660 hawk 1590元&& 超公版,全球独有智能静音和自动除尘技术&3.居然配一个二三线的品牌电源产品,电源对电脑好重要,必需选一线知名品牌的电源。你的配置整机功耗并不算高,额定400W的电源完全胜任。&4.目前AMD阵营没一款CPU能和三代I7相提并论。更不用说&羿龙II X6了。而且AMD的某些关键核心指令集还需经INTEL控着。这是AMD芯片性能不如INTEL的主因之一,为此,AMD还把INTEL告上法庭。但还是解决不了。而系统、驱动、游戏中不支持的话,多核心作用不大。而多任务下,I7的四核八进程完胜对手。&CPU性能天梯图&&各型号显卡天梯图
CPU Intel酷睿i5 2550K/散装 1 ¥935散热系统 超频三红海10静音版 1 ¥81主板 微星ZH77A-G43 1 ¥699内存 金士顿DDR3 1600 8G骇客神条套装 1 ¥310机械硬盘 西部数据1TB SATA3 64M单碟/蓝盘 1 ¥477固态硬盘显卡 七彩虹iGame660烈焰战神U D5 2G 1 ¥1499声卡光存储键鼠套装 精灵雷神G9专业背光游戏键鼠套装 1 ¥169显示器 AOC刀锋e2243Fw 1 ¥969鼠标键盘机箱 先马刺客1 1 ¥158电源 航嘉jumper 450B 1 ¥289音箱 漫步者R101T06 1 ¥160价格总计: ¥ 5746CPU:INTEL XEON E3 0元主板:微星ZH77-G43A 649元内存:威刚DDRR3 1600 4GB*2 320元硬盘:希捷1TB 7200转 64MB 430元显卡:微星HD7870 HAWK 1599元 或映众GTX660冰龙版 1499元电源:ANTEC VP450P 289元机箱:先马刺客1 139元散热器:九州风神 玄冰300 99元合计:4705元主流的大型单机游戏配置,志强E3加HD7870,高特效运行绝大多数大型单机游戏没有问题,孤岛3的话中高特效也可以流畅运行,如果追求画质的话楼主可以考虑一下GTX660TI或者HD7950。都是性价比不错的显卡,实测GTX660TI就可以高特效跑孤岛3的。楼主好运!
技嘉 GA-Z77M-D3H
6359 这是京东商城上面的价格 中关村的也差不多 加上其它的价格应该差不多
几点建议:1,建议电源换国际品牌2,既然这个价格了建议加上固态硬盘3,显卡N卡和A卡是喜好问题,不过貌似针对N卡优化的游戏多一些。同价位N或A卡性能相近。I7比六核好,当然要是多开基本打平。至于价格 建议多走多问 找比较有信誉的大公司比较好。电脑没有性价比,一分钱一分货。
固态硬盘可以跟普通的共用吗?
固态是系统盘 普通是存储盘 可以通用
亲爱的楼主很高兴为你解答!高端还是I7好 您这套确实有点 性价比不高CPU:Intel 酷睿i7 3770(盒)¥1910元 这个和你的一样的省下300元主板:技嘉 GA-Z77M-D3H ¥1273元 这个主板确实很好!显卡:迪兰HD7870 2GB¥1790元 显卡可以上这个!和你哪个比错200多元硬盘:希捷Momentus XT 500GB 7200转 32MB(STAS)¥686元这个硬盘是混合硬盘 读取速度是你那个硬盘的三倍内存:威刚8GB DDR3 1600G(游戏威龙双通道)¥387元 这个很好的机箱:Tt 追猎者A31(VP300A1W2N)¥399这个机箱很漂亮光驱:华硕DRW-24D1ST $ 150 元显示器:LG IPS236V-PN ¥1126元 为什么我推荐这款显示器呢 !因为它的面板是IS的和苹果手机屏幕是一样的材料而且是HDMI 接口电源:先马省电王600¥290元 这个配置要上600W电源500不够合计:6500多大洋!秒杀你那配置望采纳用这个配置
显卡太蹉跎,这个显卡最多上个I5 3470就够了~考虑到整机平衡,上I7的话显卡至少上到2000块水平的~
是不是不上2000的显卡就浪费了I7了?
恩,性能浪费,如果考虑I5
3400这个档次的I5,也得用个1500的显卡才正常~
那其他的需要更换吗?还有我内存准备买两根8G,带得动吗?
额,用不着吧~16G内存,这个电脑要用来做什么呢我给你个建议,电子产品更新快,个人建议你6000内的配置就可以了,把保值的显示器弄个好点的,其他平衡些,用个几年卖掉换台新机器~不然越贵的配置跌价越厉害,当然除非你不差钱!
价钱不在乎,一万以内都能接受,因为我现在的电脑打LOL的直播带不起来,然后经常死机蓝屏,所以干脆换一个好的,主要就是玩游戏,大型的那种
那上I7无可厚非~LOL这个显卡足够,只是不知道你还玩别的单机不
处理器还是用INTEL吧,据我所见过的笔记本和台式,AMD台式CPU落后4,5年左右,笔记本都快落后十年了。其他都还好,电源换成全汉黑骑士450,至于底价,你去淘宝搜索每一个部件,那就是低价了
就你写上去的东西而言,我个人认为这个配置在7000一下都不算被宰,至于配置的问题,最好配一个比较大的机箱和一个独立的风扇,好一点的,不要用I7自带的,不过I7自带的不要丢了,万一出问题要用到的,你这配置和我的差不多,就是显卡比你的好一点,我花了7000,没什么要加的了,电源和光驱不用考虑很好的,功耗够,多个100W-150W就行了,光驱看个人,有没有都差不多,内存条很好,不过没必要这么大,一个8G的对条就差不多够了,玩什么都OK,主板和显卡也是看你自己想干什么了,不过你这个显卡的话,干什么都差不多,除非你是很专业的方面的特殊需要,不然没什么问题了,至于CPU,intel的一向是以稳定为优点的,AMD的跳动幅度太大,没什么说一定那个好,看你自己选,推荐的话,我个人是intel,就这么多了,还有什么你想起来再问好了。
话说intel和amd相比,不用说了,高端产品,必选intel,i7秒杀amd全家。。。硬盘嘛,太大你又用不完,选用固态是必须的。。。内存你选金士顿,实在不咋地。。金士顿在高端方面实在不行,建议你换一个好的,内存实在是很重要。。。很多人说i7和e3相比。。。如果e3能代替i7,intel何必继续出i7?intel公司也不傻得,如果测试过的朋友就会知道了,i7比e3好上不少,性能上要高出四分之一。。。希望楼主采纳!!!有问题请继续追问,忘记说价格了,你这价格,差不多被别人赚700元左右,不过做生意都需要赚钱,希望楼主理解,700元实在不算是坑
处理器i7的好,功耗比amd小但是性能比amd还高点。这个价格可以,没有被坑。如果预算还有结余,而且对硬盘容量没有特殊要求(普通用户用1t基本是浪费)建议把硬盘改成500g的,然后加上一个英特尔或者镁光的ssd硬盘,在日常应用中ssd硬盘和用普通硬盘一个像是在飞,另一个像是在爬。
是固态硬盘吗?是两个一起用还是只用一个固态的?
对,就是固态硬盘。随便你,如果有需要(比如电脑里面储存大量电影、游戏、图片)就两个一起用,不在里面储存大量东西就光一个固态硬盘就够了。我用160G的硬盘 常年闲置90G左右,现在网速这么快在线看基本没问题,多了浪费。
楼上的说的很全面了,我没有太多补充的,我只想说一个宗旨,配机子时高端用英特尔,中低端用AMD。还有就是AMD架构用3A产品,兼容性好些;英特尔配英伟达好些。其实你这一套价格还是很给力的,不用担心被宰。现在的电脑价格透明度都很高,挣不了你多少钱的。
欢迎来到i贴吧,暂时还没有任何动态。 轻松几步,让你快速玩转i贴吧: 1、你可以告诉大家“你在做什么”,在上面的输入框里记录生活点滴。 2、你可以关注感兴趣的贴吧,即可成为本吧粉丝,并在i贴吧收到本吧的最新动态,任何精彩都不会再错过。 3、你可以关注感兴趣的吧友,即时收到TA的最新动态;也可以邀请朋友来关注你,方便的和大家保持联系。 4、你可以关注推荐的明星名人,和他们即时交流互动。
如果你是游戏党,本人觉得显卡还是配英伟达的GTX系列显卡好些。但是这个显卡也足够用,256的宽位,8G内存,大型完全没问题。6500价位差不多大型游戏完全没问题MD的性价比高,inter的稳定性高,看个人需要家用其实MD可以,inter一般办公用希望能帮助到你
你可以去中关村或太平洋查报价,如果差价过大就有问题了每个配件在10~20元之间合理。至于处理器i7 3770完秒amd全系列(不含极端超频)
显卡跟cpu不搭调,如果预算就这么多的话cpu换个e3-1230不错哦,显卡可以提高到660ti级别或更高,令电源我还是喜欢Antec或者航嘉……当然玩这价位电脑额应该不差钱,显卡果断gtx680吧~另你说的amd六核跟i7比就是翔~
i7的处理器更好
主板H77也可以的
光驱直接上蓝光吧
其他都可以的。
玩LOL用吧了这么好的电脑吧
CPU用I5就可以了
LOL显卡在GT650就可以特效全开了
这游戏又不多开
6500这个价位差不多了
当然I7比AMD6核的好
加个固态盘哪就完美了
哪速度刚刚的
3770你确定不带K?不带K的话直接E3-1230吧,现在CPU要么带K,要么就是1230,要么就是I3,其他的都不错
5千元以下的配置CPU Intel 酷睿i3 3220(盒)
¥ 750主板:
微星B75MA-P45
¥ 558内存:
威刚4GB DDR3 1600
¥ 172x2硬盘:
希捷Barracuda 1TB 7200
¥ 410显卡:
微星R6850 hawk
¥ 799机箱:
游戏悍将刀锋1标准版
¥ 199电源:
游戏悍将红警RPO500
¥ 229显示器:明基GW2250
¥ 969键鼠装:罗技G100键鼠套装
¥ 185光驱:
华硕DRW-24D1ST
¥ 169
¥ 4612
还是I7好。恭喜你选对了。这个价格没什么了。浮动不大,相差大的话应该是次品商家报的价了
这配置,俺只能想想,不过建议把内存再加点儿就完美了。
可以去参考参考,,我看了以后真是感触很深很深啊!
内存上4g啊,有钱人。。可以买台笔记本了。游戏专用的
显卡我比较偏爱七彩虹的。。。如果游戏的话AMD比较好吧,总体价格可以接受。。。。我个人意见,望后边大神给出更好资料,希望能帮到你
当然是i7好啦,价钱差不多啦
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁1356人阅读
饭否 for Android是一个的迷你博客。在这里你可以告诉大家你在做什么,可以关注一些有趣的人,可以随便看看大家都在做什么。
项目如图:
效果如图:
进入程序,详细看看它是如何实现的!~~~~
它的登陆实现:
//登陆任务类
GenericTask继承Observer(观察者模式)
//观察者模式又叫做发布-订阅(Publish/Subscribe)模式、模型-视图(Model/View)模式、
//源-监听器(Source/Listener)模式或从属者(Dependents)模式。
private class LoginTask extends GenericTask
private String msg = getString(R.string.login_status_failure);
public String getMsg()
protected TaskResult _doInBackground(TaskParams... params)
//登陆触发
TaskParams param = params[0];
publishProgress(getString(R.string.login_status_logging_in) + &...&);
String username = param.getString(&username&);
String password = param.getString(&password&);
//专用函数登陆
user = TwitterApplication.mApi.login(username, password);
TwitterApplication.getMyselfId(true);
TwitterApplication.getMyselfName(true);
} catch (HttpException e)
Log.e(TAG, e.getMessage(), e);
// 确切的应该从HttpException中返回的消息中获取错误信息
// Throwable cause = e.getCause(); // Maybe null
// if (cause instanceof HttpAuthException) {
if (e instanceof HttpAuthException)
// Invalid userName/password
msg = getString(R.string.login_status_invalid_username_or_password);
msg = getString(R.string.login_status_network_or_connection_error);
publishProgress(msg);
return TaskResult.FAILED;
SharedPreferences.Editor editor = mPreferences.edit();
editor.putString(Preferences.USERNAME_KEY, mUsername);
// add 存储当前用户的id
editor.putString(Preferences.CURRENT_USER_ID, user.getId());
return TaskResult.OK;
* 在服务器上验证用户名/密码是否正确,成功则返回该用户信息,失败则抛出异常。
* @param username
* @param password
* @return Verified User
* @throws HttpException
验证失败及其他非200响应均抛出异常
* @throws OAuthStoreException
public User login(String username, String password) throws HttpException
Log.d(TAG, &Login attempt for & + username);
http.setCredentials(username, password);
// 进行XAuth认证。
((XAuthClient) http.getOAuthClient()).retrieveAccessToken(username,
password);
} catch (Exception e)
// TODO: XAuth认证不管是userName/password错,还是appKey错都是返回401 unauthorized
// 但是会返回一个xml格式的error信息,格式如下:
// &hash&&request&&/request&&error&&/error&&/hash&
throw new HttpAuthException(e.getMessage(), e);
// FIXME: 这里重复进行了认证,为历史遗留原因, 留下的唯一原因时该方法需要返回一个User实例
User user = verifyCredentials(); // Verify userName and password
//登陆成功
private void onLoginSuccess()
TaskFeedback.getInstance(TaskFeedback.DIALOG_MODE, LoginActivity.this)
.success(&&);
updateProgress(&&);
mUsernameEdit.setText(&&);
mPasswordEdit.setText(&&);
Log.d(TAG, &Storing credentials.&);
TwitterApplication.mApi.setCredentials(mUsername, mPassword);
Intent intent = getIntent().getParcelableExtra(Intent.EXTRA_INTENT);
String action = intent.getAction();
if (intent.getAction() == null || !Intent.ACTION_SEND.equals(action))
// We only want to reuse the intent if it was photo send.
// Or else default to the main activity.
intent = new Intent(this, TwitterActivity.class);
// 发送消息给widget
Intent reflogin = new Intent(this.getBaseContext(), FanfouWidget.class);
reflogin.setAction(&android.appwidget.action.APPWIDGET_UPDATE&);
PendingIntent l = PendingIntent.getBroadcast(this.getBaseContext(), 0,
reflogin, PendingIntent.FLAG_UPDATE_CURRENT);
} catch (CanceledException e)
e.printStackTrace();
// 发送消息给widget_small
Intent reflogin2 = new Intent(this.getBaseContext(),
FanfouWidgetSmall.class);
reflogin2.setAction(&android.appwidget.action.APPWIDGET_UPDATE&);
PendingIntent l2 = PendingIntent.getBroadcast(this.getBaseContext(), 0,
reflogin2, PendingIntent.FLAG_UPDATE_CURRENT);
l2.send();
} catch (CanceledException e)
e.printStackTrace();
startActivity(intent);
该布局是有一个导航头和一个自定义列表、以及文本视图组成!~
&include layout=&@layout/header& /& &!-- 自定义列表 --&
&com.markupartist.android.widget.PullToRefreshListView
android:id=&@+id/tweet_list&
android:layout_width=&fill_parent&
android:layout_height=&fill_parent&
android:layout_weight=&1&
android:cacheColorHint=&#&
android:divider=&@drawable/dashed_line&
android:dividerHeight=&1dip&
android:fadeScrollbars=&true&
android:fadingEdge=&none&
android:fastScrollEnabled=&true& /&
现在来详细看看导航头以及自定义列表的实现!~
导航头布局:
&?xml version=&1.0& encoding=&utf-8&?&
&!-- 顶部条 --&
&RelativeLayout xmlns:android=&/apk/res/android&
android:id=&@+id/LinearLayout01&
android:layout_width=&fill_parent&
android:layout_height=&47dp&
android:layout_alignParentTop=&true&
android:background=&@drawable/bg_header&
android:gravity=&center_vertical& &
&!-- title --&
android:id=&@+id/title&
style=&@style/logo_button&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_alignParentLeft=&true&
android:layout_marginLeft=&3dp&
android:layout_marginTop=&12dp&
android:background=&@null&
android:clickable=&true& /&
&!-- 搜索按钮 --&
&ImageButton
android:id=&@+id/search&
android:layout_width=&wrap_content&
android:layout_height=&fill_parent&
android:layout_alignParentRight=&true&
android:background=&@null&
android:paddingLeft=&10dip&
android:paddingRight=&10dip&
android:src=&@drawable/top_search_selector& /&
&!-- 发布消息按钮 --&
&ImageButton
android:id=&@+id/writeMessage&
android:layout_width=&wrap_content&
android:layout_height=&fill_parent&
android:layout_toLeftOf=&@id/search&
android:background=&@null&
android:paddingLeft=&10dip&
android:paddingRight=&10dip&
android:src=&@drawable/top_msg_selector& /&
&!-- 刷新按钮 --&
&ImageButton
android:id=&@+id/top_refresh&
android:layout_width=&wrap_content&
android:layout_height=&fill_parent&
android:layout_toLeftOf=&@id/writeMessage&
android:background=&@null&
android:paddingLeft=&10dip&
android:paddingRight=&10dip&
android:src=&@drawable/top_refresh_selector& /&
&!-- 旋转 --&
&ProgressBar
android:id=&@+id/top_refresh_progressBar&
style=&?android:progressBarStyleSmall&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_centerHorizontal=&true&
android:layout_centerVertical=&true&
android:layout_toLeftOf=&@id/top_refresh&
android:visibility=&gone& /&
刷新按钮, 旋转效果
&ImageView
android:id=&@+id/top_refresh&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_toLeftOf=&@id/writeMessage&
android:layout_centerVertical=&true&
android:background=&#000&
android:layout_marginLeft=&10dip&
android:layout_marginRight=&10dip&
刷新效果测试代码
&ProgressBar
android:id=&@+id/temp_id1&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_toLeftOf=&@id/top_refresh&
android:layout_centerVertical=&true&
style=&?android:progressBarStyleSmall&
&ProgressBar
android:layout_width=&32dip&
android:layout_height=&32dip&
android:layout_toLeftOf=&@id/temp_id1&
android:layout_centerVertical=&true&
style=&@style/refreshProgressBar&
&!-- Global Progress Bar --&
&ProgressBar
android:id=&@+id/progress_bar&
style=&@style/gProgressBar.Horizontal&
android:layout_width=&fill_parent&
android:layout_height=&2dip&
android:layout_alignParentBottom=&true& /&
&/RelativeLayout&
与导航头布局有一个对应的NavBar类!有个一个超类TwitterListBaseActivity,它有对NavBar的实例化。
//推拉和刷新 自定义列表视图
public class PullToRefreshListView extends ListView implements
OnScrollListener, GestureDetector.OnGestureListener该类的触发事件如下:
//触碰事件
public boolean onTouchEvent(MotionEvent event)
//GestureDetector类定义了许多触摸事件
GestureDetector localGestureDetector = this.mD
localGestureDetector.onTouchEvent(event);
final int y = (int) event.getY();
Log.d(TAG,
String.format(
&[onTouchEvent]event.Action=%d, currState=%d, refreshState=%d,y=%d&,
event.getAction(), mCurrentScrollState, mRefreshState,
switch (event.getAction())
case MotionEvent.ACTION_UP: //起事件
if (!isVerticalScrollBarEnabled())
//是否垂直滚动条
setVerticalScrollBarEnabled(true);
if (getFirstVisiblePosition() == 0 && mRefreshState != REFRESHING)
if ((mRefreshView.getBottom() &= mRefreshViewHeight + MAXHEIGHT || mRefreshView
.getTop() &= 0))
// Initiate the refresh
mRefreshState = REFRESHING;
prepareForRefresh();
onRefresh();
} else if (mRefreshView.getBottom() & mRefreshViewHeight
+ MAXHEIGHT
|| mRefreshView.getTop() &= 0)
//中止刷新和落下滚动刷新视图
resetHeader();
setSelection(1);
case MotionEvent.ACTION_DOWN://压事件
mLastMotionY =
case MotionEvent.ACTION_MOVE: //移动事件
//移动事件特效
applyHeaderPadding(event);
return super.onTouchEvent(event);
//事件特效(padding属性)
private void applyHeaderPadding(MotionEvent ev)
final int historySize = ev.getHistorySize();
Log.d(TAG, String.format(
&[applyHeaderPadding]currState=%d, refreshState=%d&,
mCurrentScrollState, mRefreshState));
// Workaround for getPointerCount() which is unavailable in 1.5
// (it's always 1 in 1.5)
int pointerCount = 1;
Method method = MotionEvent.class.getMethod(&getPointerCount&);
pointerCount = (Integer) method.invoke(ev);
} catch (NoSuchMethodException e)
pointerCount = 1;
} catch (IllegalArgumentException e)
} catch (IllegalAccessException e)
System.err.println(&unexpected & + e);
} catch (InvocationTargetException e)
System.err.println(&unexpected & + e);
if (mRefreshState == RELEASE_TO_REFRESH)
// this.offsetTopAndBottom(-mPadding);
for (int h = 0; h & historyS h++)
for (int p = 0; p & pointerC p++)
if (isVerticalFadingEdgeEnabled())
setVerticalScrollBarEnabled(false);
int historicalY = 0;
// For Android & 2.0
Method method = MotionEvent.class.getMethod(
&getHistoricalY&, Integer.TYPE, Integer.TYPE);
historicalY = ((Float) method.invoke(ev, p, h))
.intValue();
} catch (NoSuchMethodException e)
// For Android & 2.0
historicalY = (int) (ev.getHistoricalY(h));
} catch (IllegalArgumentException e)
} catch (IllegalAccessException e)
System.err.println(&unexpected & + e);
} catch (InvocationTargetException e)
System.err.println(&unexpected & + e);
// Calculate the padding to apply, we divide by 1.7 to
// simulate a more resistant effect during pull.
int topPadding = (int) (((historicalY - mLastMotionY) - mRefreshViewHeight) / 1.7);
// Log.d(TAG,
// String.format(
// &[applyHeaderPadding]historicalY=%d,topPadding=%d,mRefreshViewHeight=%d,mLastMotionY=%d&,
// historicalY, topPadding,
// mRefreshViewHeight, mLastMotionY));
mRefreshView.setPadding(mRefreshView.getPaddingLeft(),
topPadding, mRefreshView.getPaddingRight(),
mRefreshView.getPaddingBottom());
这样就可以达到拖动效果了!~
那如何实现自定义对话框?如下效果:
饭否重写了Dialog类!
public class MenuDialog extends Dialog布局如下:
&?xml version=&1.0& encoding=&utf-8&?&
&RelativeLayout xmlns:android=&/apk/res/android&
android:id=&@+id/layout_root&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content& &
android:id=&@+id/mygridview&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:gravity=&center&
android:horizontalSpacing=&10dp&
android:numColumns=&3&
android:padding=&10dp&
android:stretchMode=&columnWidth&
android:verticalSpacing=&20dp& &
&/GridView&
android:id=&@+id/close_menu&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:text=&close&
android:visibility=&gone& /&
&/RelativeLayout&
原来是网格布局!~~~
// 网格事件 绑定监听器
gridview.setOnItemClickListener(new OnItemClickListener()
public void onItemClick(AdapterView&?& parent, View v,
int position, long id)
switch (position)
case PAGE_MINE:
String user = TwitterApplication.getMyselfId(false);
String name = TwitterApplication.getMyselfName(false);
Intent intent = UserTimelineActivity.createIntent(user,
goTo(UserTimelineActivity.class, intent);
case PAGE_PROFILE:
goTo(ProfileActivity.class);
case PAGE_FOLLOWERS:
goTo(FollowersActivity.class);
case PAGE_FOLLOWING:
goTo(FollowingActivity.class);
case PAGE_HOME:
goTo(TwitterActivity.class);
case PAGE_MENTIONS:
goTo(MentionActivity.class);
case PAGE_BROWSE:
goTo(BrowseActivity.class);
case PAGE_FAVORITES:
goTo(FavoritesActivity.class);
case PAGE_MESSAGE:
goTo(DmActivity.class);
我的空间界面是如何实现的?效果如下:
这主要是取决于它的布局!布局如下:
&?xml version=&1.0& encoding=&utf-8&?&
&LinearLayout xmlns:android=&/apk/res/android&
android:layout_width=&fill_parent&
android:layout_height=&fill_parent&
android:background=&@color/body_background&
android:orientation=&vertical& &
&!-- Header --&
&include layout=&@layout/header& /&
&ScrollView
android:layout_width=&fill_parent&
android:layout_height=&fill_parent&
android:background=&#FFEFF0F4&
android:scrollbars=&horizontal& &
&LinearLayout
android:layout_width=&fill_parent&
android:layout_height=&fill_parent&
android:background=&#FFEFF0F4&
android:orientation=&vertical& &
&!-- 头像部分 --&
&RelativeLayout
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_margin=&10.0dip&
android:background=&#FFEFF0F4&
android:orientation=&vertical& &
&!-- 头像图片 --&
&ImageView
android:id=&@+id/profileimage&
android:layout_width=&64dp&
android:layout_height=&64dp&
android:layout_marginRight=&5.0dip& &
&/ImageView&
&!-- 用户昵称 --&
android:id=&@+id/profilescreenname&
style=&@style/LinkText.Bold.Huge&
android:layout_width=&fill_parent&
android:layout_height=&24.0dip&
android:layout_toRightOf=&@id/profileimage& &
&/TextView&
&!-- 用户名。。Email? --&
android:id=&@+id/profilename&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_below=&@id/profilescreenname&
android:layout_toRightOf=&@id/profileimage& /&
&LinearLayout
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_alignParentRight=&true&
android:orientation=&vertical& &
&!-- 发送回复 --&
android:id=&@+id/sendmetion_btn&
style=&@style/Button&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_marginBottom=&5dip&
android:layout_marginRight=&10.0dip&
android:text=&@string/profile_send_mention&
android:visibility=&gone& /&
&!-- 发送私信 --&
android:id=&@+id/senddm_btn&
style=&@style/Button&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_marginRight=&10.0dip&
android:text=&@string/profile_send_dm&
android:visibility=&gone& /&
&/LinearLayout&
&/RelativeLayout&
&!-- 操作按钮部分 --&
&RelativeLayout
android:id=&@+id/relative_following&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_margin=&10.0dip&
android:background=&@drawable/panel_bg& &
android:id=&@+id/isfollowing_text&
style=&@style/normalText.span&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_alignParentLeft=&true&
android:layout_centerInParent=&true&
android:layout_marginLeft=&10.0dip&
android:textSize=&16.0sp& &
&/TextView&
&!-- 关注/取消关注 按钮 --&
android:id=&@+id/following_btn&
style=&@style/Button&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_alignParentRight=&true&
android:layout_centerInParent=&true&
android:layout_marginRight=&10.0dip&
android:drawablePadding=&5dip&
android:visibility=&gone& /&
&/RelativeLayout&
&!-- 基本信息部分 --&
&RelativeLayout
android:id=&@+id/relative_3&
android:layout_width=&fill_parent&
android:layout_height=&100.0dip&
android:layout_margin=&10.0dip&
android:background=&@drawable/panel_bg& &
android:id=&@+id/user_location_title&
style=&@style/normalText&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_alignParentLeft=&true&
android:layout_alignParentTop=&true&
android:layout_marginLeft=&10dip&
android:layout_marginTop=&10.0dip&
android:gravity=&center_vertical&
android:text=&@string/profile_user_location_title&
android:textColor=&#FF7D899D&
android:textSize=&16.0sp& &
&/TextView&
&!-- 所在地 --&
android:id=&@+id/user_location&
style=&@style/normalText.span&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_alignTop=&@id/user_location_title&
android:layout_marginLeft=&10.0dip&
android:layout_toRightOf=&@id/user_location_title&
android:textSize=&16.0sp& &
&/TextView&
&!-- 分隔条 --&
android:id=&@+id/view_3&
android:layout_width=&fill_parent&
android:layout_height=&1.0dip&
android:layout_centerVertical=&true&
android:background=&@drawable/horizontal_separation_line& &
&!-- 网站 --&
android:id=&@+id/user_url_title&
style=&@style/normalText&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_alignLeft=&@id/user_location_title&
android:layout_alignParentBottom=&true&
android:layout_below=&@id/view_3&
android:gravity=&center_vertical&
android:text=&@string/profile_user_url_title&
android:textColor=&#FF7D899D&
android:textSize=&16.0sp& &
&/TextView&
android:id=&@+id/user_url&
style=&@style/normalText&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_alignParentBottom=&true&
android:layout_below=&@id/view_3&
android:layout_marginLeft=&10.0dip&
android:layout_toRightOf=&@id/user_url_title&
android:autoLink=&web&
android:gravity=&center_vertical&
android:singleLine=&true&
android:textSize=&16.0sp& &
&/TextView&
&/RelativeLayout&
&!-- 自我描述部分 --&
&RelativeLayout
android:id=&@+id/relative_user_info&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_margin=&10.0dip&
android:background=&@drawable/panel_bg&
android:padding=&20.0dip& &
android:id=&@+id/tweet_user_info&
style=&@style/normalText&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content& &
&/TextView&
&/RelativeLayout&
&!-- 按钮面板部分 --&
&RelativeLayout
android:layout_width=&fill_parent&
android:layout_height=&130.0dip&
android:layout_margin=&10.0dip&
android:background=&@drawable/panel_bg& &
&!-- 垂直分隔条 --&
android:id=&@+id/view_one&
android:layout_width=&1.0dip&
android:layout_height=&fill_parent&
android:layout_centerHorizontal=&true&
android:background=&@drawable/vertical_separation_line_repeat& &
&!-- 水平分隔条 --&
android:id=&@+id/view_two&
android:layout_width=&fill_parent&
android:layout_height=&1.0dip&
android:layout_centerVertical=&true&
android:background=&@drawable/horizontal_separation_line_repeat& &
&!-- ta跟随的人 按钮 --&
&RelativeLayout
android:id=&@+id/friendsLayout&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_above=&@+id/view_two&
android:layout_alignParentLeft=&true&
android:layout_alignParentTop=&true&
android:layout_toLeftOf=&@+id/view_one&
android:background=&@drawable/bg_panel_above_left&
android:clickable=&true& &
&!-- ta跟随的人数 --&
android:id=&@+id/friends_count&
style=&@style/normalText&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_centerHorizontal=&true&
android:layout_marginTop=&10.0dip&
android:gravity=&center&
android:text=&0& &
&/TextView&
&!-- ta跟随的人 --&
android:id=&@+id/friends_count_title&
style=&@style/normalText.span&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_below=&@+id/friends_count&
android:layout_centerHorizontal=&true&
android:gravity=&center&
android:text=&@string/profile_friends_count_title& &
&/TextView&
&/RelativeLayout&
&!-- 跟随ta的人 按钮 --&
&LinearLayout
android:id=&@+id/followersLayout&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_above=&@id/view_two&
android:layout_alignParentRight=&true&
android:layout_alignParentTop=&true&
android:layout_toRightOf=&@id/view_one&
android:background=&@drawable/bg_panel_above_right&
android:clickable=&true&
android:orientation=&vertical& &
&!-- 跟随ta的人数 --&
android:id=&@+id/followers_count&
style=&@style/normalText&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_gravity=&center_horizontal&
android:layout_marginTop=&10.0dip&
android:gravity=&center&
android:text=&0& &
&/TextView&
android:id=&@+id/followers_count_title&
style=&@style/normalText.span&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_gravity=&center_horizontal&
android:gravity=&center&
android:text=&@string/profile_followers_count_title& &
&/TextView&
&/LinearLayout&
消息TODO:有bug 同样的布局,却不居中,
需要加padding-right,
怀疑资源图片中patches有问题
还好横屏竖屏都没问题
&LinearLayout
android:id=&@+id/statusesLayout&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_alignParentBottom=&true&
android:layout_alignParentLeft=&true&
android:layout_below=&@id/view_two&
android:layout_toLeftOf=&@id/view_one&
android:background=&@drawable/bg_panel_below_left&
android:clickable=&true&
android:orientation=&vertical&
android:paddingRight=&10dp& &
&!-- 消息数 --&
android:id=&@+id/statuses_count&
style=&@style/normalText&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_gravity=&center_horizontal&
android:layout_marginTop=&10.0dip&
android:gravity=&center&
android:text=&0& &
&/TextView&
android:id=&@+id/statuses_count_title&
style=&@style/normalText.span&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_gravity=&center_horizontal&
android:gravity=&center&
android:text=&@string/profile_statuses_count_title& &
&/TextView&
&/LinearLayout&
&!-- 收藏按钮 --&
&LinearLayout
android:id=&@+id/favouritesLayout&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_alignParentBottom=&true&
android:layout_alignParentRight=&true&
android:layout_below=&@+id/view_two&
android:layout_toRightOf=&@+id/view_one&
android:background=&@drawable/bg_panel_below_right&
android:clickable=&true&
android:orientation=&vertical& &
&!-- 收藏数 --&
android:id=&@+id/favourites_count&
style=&@style/normalText&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_gravity=&center_horizontal&
android:layout_marginTop=&10.0dip&
android:gravity=&center&
android:text=&0& &
&/TextView&
android:id=&@+id/favourites_count_title&
style=&@style/normalText.span&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_gravity=&center_horizontal&
android:gravity=&center&
android:text=&@string/profile_favourites_count_title& &
&/TextView&
&/LinearLayout&
&/RelativeLayout&
&LinearLayout
android:orientation=&vertical&
android:background=&@drawable/panel_bg&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_margin=&10.0dip&
&RelativeLayout
android:id=&@+id/relativelayout_7&
android:focusable=&true&
android:clickable=&true&
android:layout_width=&fill_parent&
android:layout_height=&43.0dip&
android:id=&@+id/textview_15&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_marginLeft=&10.0dip&
android:text=&test&
android:layout_alignParentLeft=&true&
android:layout_centerVertical=&true&
&/TextView&
android:id=&@+id/textview_16&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_marginLeft=&10.0dip&
android:text=&0&
android:layout_toRightOf=&@+id/textview_15&
android:layout_centerVertical=&true&
&/TextView&
&ImageView
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_marginRight=&20.0dip&
android:src=&@drawable/icon&
android:layout_alignParentRight=&true&
android:layout_centerVertical=&true&
&/ImageView&
&/RelativeLayout&
android:id=&@+id/view_4&
android:background=&@drawable/horizontal_separation_line_repeat&
android:layout_width=&fill_parent&
android:layout_height=&1.0dip&
android:layout_centerVertical=&true&
&RelativeLayout
android:id=&@+id/relativelayout_7&
android:focusable=&true&
android:clickable=&true&
android:layout_width=&fill_parent&
android:layout_height=&43.0dip&
android:id=&@+id/textview_16&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_marginLeft=&10.0dip&
android:text=&tsss&
android:layout_alignParentLeft=&true&
android:layout_centerVertical=&true&
&/TextView&
&ImageView
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_marginRight=&20.0dip&
android:src=&@drawable/icon&
android:layout_alignParentRight=&true&
android:layout_centerVertical=&true&
&/ImageView&
&/RelativeLayout&
&/LinearLayout&
TODO 工具栏
&LinearLayout
android:orientation=&vertical&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_margin=&10.0dip&
&RelativeLayout
android:id=&@+id/relativelayout_7&
android:focusable=&true&
android:clickable=&true&
android:layout_width=&fill_parent&
android:layout_height=&43.0dip&
android:id=&@+id/textview_16&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_marginLeft=&10.0dip&
android:text=&tsss&
android:layout_alignParentLeft=&true&
android:layout_centerVertical=&true&
&/TextView&
&ImageView
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_marginRight=&20.0dip&
android:src=&@drawable/icon&
android:layout_alignParentRight=&true&
android:layout_centerVertical=&true&
&/ImageView&
&/RelativeLayout&
&/LinearLayout&
&/LinearLayout&
&/ScrollView&
&/LinearLayout&
实现就是这么简单!~
看看它的搜索效果如图:
布局如下:
&LinearLayout xmlns:android=&/apk/res/android&
android:layout_width=&fill_parent&
android:layout_height=&fill_parent&
android:background=&@color/body_background&
android:orientation=&vertical& &
&!-- Header --&
&include layout=&@layout/header_search& /&
&!-- 复合列表,包含保存的搜索和热门搜索 --&
android:id=&@+id/search_section_list&
android:layout_width=&fill_parent&
android:layout_height=&fill_parent&
android:layout_weight=&1&
android:cacheColorHint=&#&
android:divider=&@drawable/dashed_line&
android:dividerHeight=&1dip&
android:fadeScrollbars=&true&
android:fastScrollEnabled=&true& /&
&/LinearLayout&
对应的类SearchActivity,而搜索是在SearchResultActivity中由SearchTask完成的!
布局都是简单的!只是贴出了它的主要代码!
那它的消息机制是怎样的?它的消息机制都是继承抽象GenericTask完成的!
GenericTask 定义
public abstract class GenericTask extends
AsyncTask&TaskParams, Object, TaskResult& implements Observer
&AsyncTask是抽象类,子类必须实现抽象方法doInBackground(Params... p) ,在此方法中实现任务的执行工作,比如连接网络获取数据等。通常还应该实现onPostExecute(Result r)方法,因为应用程序关心的结果在此方法中返回。
&&AsyncTask 的执行分为四个步骤,与前面定义的TaskListener类似。每一步都对应一个回调方法,需要注意的是这些方法不应该由应用程序调用,开发者需要做的就是实现这些方法。在任务的执行过程中,这些方法被自动调用。
& & * onPreExecute() 当任务执行之前开始调用此方法,可以在这里显示进度对话框。
& & * doInBackground(Params...) 此方法在后台线程执行,完成任务的主要工作,通常需要较长的时间。在执行过程中可以调用publicProgress(Progress...)来更新任务的进度。
& & * onProgressUpdate(Progress...) 此方法在主线程执行,用于显示任务执行的进度。
& & * onPostExecute(Result) 此方法在主线程执行,任务执行的结果作为此方法的参数返回。
原来它的消息是这样的呀!~~~~
它的图片操作又是怎样的?
它操作图片的类有
ImageManager:管理图标图像的检索和存储、&使用put方法来下载和存储图像、使用get方法来检索图像的经理。
LazyImageLoader:异步图片加载。
MemoryImageCache:管理内存图片缓冲。
SimpleImageLoader:使用了LazyImageLoader加载图片。
CallbackManager:
当图片加载完成后就会触发完成回调函数!~
如此简单!~~~
它使用Auth认证与服务器进行了交流!~分析如下:
XAuthClient类继承OAuthClient类,实现了Auth自定义信息操作的类,与服务器交流如下:
public void retrieveAccessToken(String username, String password)
throws OAuthStoreException, ClientProtocolException, IOException,
ResponseException
HttpClient client = new DefaultHttpClient();
HttpPost request = new HttpPost(BASE_URL + &/access_token&);
CommonsHttpOAuthConsumer consumer = new CommonsHttpOAuthConsumer(
CONSUMER_KEY, CONSUMER_SECRET);
List&BasicNameValuePair& params = Arrays.asList(new BasicNameValuePair(
&x_auth_username&, username), new BasicNameValuePair(
&x_auth_password&, password), new BasicNameValuePair(
&x_auth_mode&, &client_auth&));
UrlEncodedFormEntity entity =
entity = new UrlEncodedFormEntity(params, HTTP.UTF_8);
} catch (UnsupportedEncodingException e)
throw new RuntimeException(&wtf&);
request.setEntity(entity);
consumer.sign(request);
} catch (OAuthMessageSignerException e)
e.printStackTrace();
} catch (OAuthExpectationFailedException e)
e.printStackTrace();
} catch (OAuthCommunicationException e)
e.printStackTrace();
HttpResponse response = client.execute(request);
String responseString = Response.entityToString(response.getEntity());
String[] tmp = TextUtils.split(responseString, &&&);
if (tmp.length & 2)
Log.e(TAG, &something wrong with access token response: &
+ responseString);
String token = tmp[0].replace(&oauth_token=&, &&);
String tokenSerect = tmp[1].replace(&oauth_token_secret=&, &&);
mAccessToken = new OAuthAccessToken(token, tokenSerect);
storeAccessToken();
(&retrieve access token with request token &
+ mConsumer.getToken() + & & + mAccessToken + & &
+ mProvider.getAccessTokenEndpointUrl());
其实关键与服务器交流的获取用户信息等操作都在Weibo类中,Weibo类通过HttpClient向服务器发送请求参数,服务器接收到参数后信息给weibo,weibo进行数据分析!
该源码易懂,适合学习!
学习的目标是成熟!~~
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:320054次
积分:5562
积分:5562
排名:第1378名
原创:128篇
评论:494条
文章:33篇
阅读:97817
(2)(5)(6)(2)(4)(2)(3)(1)(1)(3)(4)(4)(7)(1)(16)(3)(5)(1)(1)(2)(14)(33)(2)(5)(1)(1)(2)
说的太好了,我顶!
Copyright & 2014
Corporation, All Rights Reserved
Processed in 0.8229 second(s), 3 db_queries,
0 rpc_queries

我要回帖

更多关于 龙之谷太卡 的文章

 

随机推荐