- 浏览: 1237593 次
- 性别:
- 来自: 广州
-
最新评论
-
hesai_vip:
学习了,感谢
gradlew wrapper使用下载到本地的gradle.zip文件安装。 -
imknown:
姚瑶大坏蛋 写道我也遇到了这个,用你这个方法,导致下拉刷新不起 ...
解决android-Ultra-Pull-To-Refresh下拉刷新组件中嵌套ViewPager的一个bug -
姚瑶大坏蛋:
我也遇到了这个,用你这个方法,导致下拉刷新不起作用了,你遇到过 ...
解决android-Ultra-Pull-To-Refresh下拉刷新组件中嵌套ViewPager的一个bug -
寐语者:
LeaderElection(String zookeeper ...
使用Zookeeper来为你的程序加上Leader Election的功能。 -
fyc0109:
博主, 安装了一部分还是报这个错误!FAILURE: Buil ...
gradlew wrapper使用下载到本地的gradle.zip文件安装。
文章列表
引用db.default.url="jdbc:mysql://localhost:3306/kissbb_data?useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false"
等于false就不会反悔boolean类型了。
引用当前的View将不顾其子控件是否可以Focus自身接管了所有的Focus,通常默认能获得focus的控件有Button,Checkable继承来的所有控件,这就意味着如果你的自定义ListViewItem中有Button或者Checkable的子类控件的话,那么默认focus是交给了子控件,而ListView的Item能被选中的基础是它能获取Focus,也就是说我们可以通过将ListView中Item中包含的所有控件的focusable属性设置为false,这样的话ListView的Item自动获得了Focus的权限,也就可以被选中了,也就会响应onItemClickListener中的on ...
Windows key: Switch between Modern Desktop Start screen and the last accessed application
Windows key + C: Access the charms bar
Windows key + Tab: Access the Modern Desktop Taskbar
Windows key + I: Access the Settings charm
Windows key + H: Access the Share charm
Windows key + K: Access the Dev ...
Setup with ActionBarSherlock
Setup as above.
Checkout a clean copy of ActionBarSherlock and import into your Eclipse workspace.
Add ActionBarSherlock as a dependency to SlidingMenu
Go into the SlidingActivities that you plan on using make them extend Sherlock___Activity instead of ___Activity.
http ...
http://www.dreamincode.net/forums/topic/303248-popupmenu-contextmenu-and-custom-popupwindow-all-in-one/
很多时候, 在做自动下拉框时,默认点上去时需要显示一组默认的下拉数据。但是默认的AutoCompleteTextView是实现不了的, 因为setThreshold方法最小值是1,就算你设的值为0,也会自动改成1的。
/**
* <p>Specifies the minimum number of characters the user has to type in the
* edit box before the drop down list is shown.</p>
*
* <p>When &l ...
http://pixelstech.net/article/1351875079_Create_animated_refresh_button_in_Android
自定义ProgressBar的图片
- 博客分类:
- android
<ProgressBar
android:id="@+id/progress_down_bar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="fill_parent"
android:layout_height="5dip"
...
Gif图片在android设备中播放
- 博客分类:
- android
有一个开源项目 http://code.google.com/p/gifview/ 这个的原理是用java写了个gif解码器。 效率可能比较低下。 而且因为android上app内存的限制, 很容易出现oom的error
另外的方式是用MediaPlay去播放gif图片。 网上有相应的做法。
http://my.oschina.net/wangyongqing/blog/75760
ListView
OnScrollListener分析
ListView.setOnScrollListener(new OnScrollListener() {
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
switch (scrollState) {
case OnScrollListener.SCROLL_STATE_IDLE:
Log.v("已经停止:SCROLL_ ...
http://marakana.com/s/android_fragments_tutorial,1250/index.html
TabHost的使用, 如果自定义的话 其实可以隐藏TabWidget 使用自己的Layout, 然后调用TabHost的方法来模拟点击Tab mHost.setCurrentTabByTag("mblog_tab")
Ref: http://www.cnblogs.com/over140/archive/2011/03/02/1968042.html
如果在一个tab中需要支持还在一个界面启动Activity的话 那就需要ActivityGroup 具体可以看附件中的代码。
package com.javaeye.dengyin2000.android.jo ...
引用This is a virtual pixel unit that you would use when defining a layout’s UI in order to express the layout’s dimensions or position in a density-independent way. The density-independent pixel is equivalent to one physical pixel on a 160 DPI screen, which is the baseline density assumed by t ...
需要继承GridView 覆盖onMeasure
import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;
public class MyGridView extends GridView {
public MyGridView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public MyGridView(Context ...