xak的专栏

Sometimes when I look at the world, I can see a line behind it.

排序:
默认
按更新时间
按访问量

Android Market 对应资源显示位置

http://xayin.com/thisisatest.html

2014-08-22 11:53:06

阅读数:1084

评论数:0

logcat filter

很久没在eclipse下开发了,有点生疏了,突然不得不调试下,想在logcat中过滤一下没用的日志,还真想不起来怎么弄了,google一下,备忘一下。 67down voteaccepted Yes. Create a filter where the "By l...

2014-08-22 11:52:57

阅读数:580

评论数:0

计算触摸平均速度效果比较好的方式

float lambda = 0.8f; // the closer to 1 the higher weight to the next touch   newSpeed = (1.0 - lambda) * oldSpeed + lambda* (distanceFromPrevious...

2014-08-22 11:50:33

阅读数:643

评论数:0

Android lib or libs?

If you use the Android command line to create your project, it'll default to libs/. It turns out that the Android Ant tasks are set to look in libs/ ...

2014-08-22 11:48:20

阅读数:949

评论数:0

WebView loaddata中文乱码

如果单纯显示文字的话可以写webView.loadDataWithBaseURL(null, string, "text/html", "utf-8", null); 如果要显示图片可以写webView.loadDataWithBaseURL(baseU...

2014-08-22 11:48:05

阅读数:541

评论数:0

第三方jar包无法查看源码

From:ADT 17? 查看源码错误提示: The JAR of this class file belongs to container 'Android Dependencies'which does not allow modifications to source attachmen...

2014-08-22 11:48:03

阅读数:1128

评论数:0

Android 4.2 Gson 报错 Class no find

最新版本的adt根据将相关的外部jar包放入工程的libs目录中,否则无法将包一起编译进apk包。

2014-08-22 11:47:46

阅读数:616

评论数:0

Android重写textview排版

又遇textview排版问题,记录备忘一下~ import org.json.JSONArray; import org.json.JSONException; import android.content.Context; import android.graphics.Canvas; i...

2014-08-22 11:47:41

阅读数:607

评论数:0

程序中使用dimension中定义的尺寸大小不对的原因

When you define a dimension in a resource file you include the measurement unit. If you use sp units they are scaled according to the screen density ...

2014-08-22 11:47:35

阅读数:829

评论数:0

onAnimationEnd not get called

Here is the actual bug related to this issue http://code.google.com/p/android-misc-widgets/issues/detail?id=8 This basically states that the onAnima...

2014-08-22 11:47:28

阅读数:1235

评论数:0

Handling Features Not Supported on TV

TVs are much different from other Android-powered devices: They're not mobile. Out of habit, people use them for watching media with little or no in...

2014-08-22 11:47:19

阅读数:517

评论数:0

Optimizing Layouts for TV

When your application is running on a television set, you should assume that the user is sitting about ten feet away from the screen. This user envir...

2014-08-22 11:47:15

阅读数:498

评论数:0

Design to Handle Large Bitmaps

Design to Handle Large Bitmaps The Android system has a limited amount of memory, so downloading and storing high-resolution images can often caus...

2014-08-22 11:47:13

阅读数:427

评论数:0

tableHeaderView中包含ScrollView…

意图: 需要UITableView的headerView中包含水平ScrollView。其中headerView对应Xib中的UIview,UIview中包含scrollview和PageControl。直接设置tbView.tableHeaderView = [[[NSBundle mainB...

2014-08-22 11:46:45

阅读数:940

评论数:0

apk签名信息查看

jarsigner -verify -verbose -certs test.apk

2014-08-22 11:46:38

阅读数:360

评论数:0

Imageview保持宽高比FILL_PARENT

重写onMeasure方法 @Override      protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec){          Drawable d = getDrawable();          i...

2014-08-22 11:46:34

阅读数:491

评论数:0

自定RatingBar显示不全

RatingBar默认有Padding。设置android:paddingLeft="0dp"即OK。

2014-08-22 11:46:30

阅读数:820

评论数:0

Play mp4 from url in android

I want to play video from a URL via HTTP. I read Media Tutorial and other stackoverflow questions. Here is my code: String url = "http://..../...

2014-08-22 11:46:26

阅读数:863

评论数:0

TabHost中,同一个页面向下级页面跳转时的解决方案

android里面,TabHost确实应用很广泛,也很好用,但就是有一个问题,同一个Tab中的页面如果有下一级页面的话,如果用startActivity来跳转的话,会跳出TabHost,即Tab就不会显示了,这样确实很不方便,项目用到了,想跳到下级页面的时候还显示Tab,找了很多方案都不能解决,后...

2014-08-22 11:46:10

阅读数:413

评论数:0

Tabhost中子Activity显示异常

场景:tabhost中加多个Activity。除了第一个Activity外,其他的Activity中onsizechanged中调用addview无效。(即界面看不到添加的控件)。更奇怪的是,此时如果使用Hierarchy View中的Load View Hierachy功能,则模拟器上的控件又会...

2014-08-22 11:46:08

阅读数:462

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭