- 浏览: 551550 次
- 来自: -
博客专栏
-
libgdx 游戏开发
浏览量:11981
文章分类
- 全部博客 (171)
- OS (1)
- JavaScript (13)
- Struts (2)
- Regular Expression (1)
- Java (14)
- HTML (4)
- XML (1)
- Non-Relational Database (2)
- Miscellaneous (7)
- Lotus Notes (8)
- Algorithm (3)
- Web Analytics (6)
- Web (8)
- Perl (3)
- PHP (3)
- C & C++ (1)
- Shell (7)
- Google (1)
- Android (31)
- iPhone (1)
- SQL (1)
- HTML5 (3)
- jQuery (6)
- CSS (6)
- PostgreSQL (1)
- Design Patterns (1)
- Excel (1)
- Magento (4)
- jMeter (3)
- SEO (1)
- libgdx (5)
- Software (4)
- App (1)
- Game (1)
- Gradle (1)
- Linux (16)
- Ubuntu (4)
- Docker (2)
- Spring (2)
- Other (3)
- Directory Server (1)
- CentOS (1)
- Python (1)
- VCS (3)
- Database (1)
- Open Source (1)
最新评论
-
ls0609:
赞一个,支持下博主。
[原创] Android ListView 在右上角添加三角形图标和文字 -
love297:
不让别人商用,自己先商用起来了。
手机游戏开发展示 -
a851206:
你的有些类是哪里来的?我想研究一下你的程序,可是有些类没有代码 ...
[原创] Google Custom Search & Yahoo Boss Search | Web Search API 使用 -
ypppk:
BitmapFactory.Options options = ...
[原创] 连载 1 - 深入讨论 Android 关于高效显示图片的问题 - 如何高效的加载大位图 -
笑遍世界:
我也遇到了,弄清了其中原因,可参考我的博客:http://sm ...
[原创] 使用 jMeter 登录 Wordpress
原文地址:https://stackoverflow.com/a/13381228/6091500
亲测可用。
亲测可用。
import android.view.View; import android.view.ViewGroup; import android.view.animation.Animation; import android.view.animation.Transformation; public class ViewAnimation { public static void expand(final View v) { v.measure(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); final int targetHeight = v.getMeasuredHeight(); // Older versions of android (pre API 21) cancel animations for views with a height of 0. v.getLayoutParams().height = 1; v.setVisibility(View.VISIBLE); Animation a = new Animation() { @Override protected void applyTransformation(float interpolatedTime, Transformation t) { v.getLayoutParams().height = interpolatedTime == 1 ? ViewGroup.LayoutParams.WRAP_CONTENT : (int)(targetHeight * interpolatedTime); v.requestLayout(); } @Override public boolean willChangeBounds() { return true; } }; // 1dp/ms a.setDuration((int)(targetHeight / v.getContext().getResources().getDisplayMetrics().density)); v.startAnimation(a); } public static void collapse(final View v) { final int initialHeight = v.getMeasuredHeight(); Animation a = new Animation() { @Override protected void applyTransformation(float interpolatedTime, Transformation t) { if(interpolatedTime == 1){ v.setVisibility(View.GONE); }else{ v.getLayoutParams().height = initialHeight - (int)(initialHeight * interpolatedTime); v.requestLayout(); } } @Override public boolean willChangeBounds() { return true; } }; // 1dp/ms a.setDuration((int)(initialHeight / v.getContext().getResources().getDisplayMetrics().density)); v.startAnimation(a); } }
发表评论
-
[转] DialogFragment Fragment already added
2017-10-25 11:16 2624原文地址:http://blog.csdn.net/u0129 ... -
Android Studio .gitignore
2017-10-16 15:44 845参考文献: https://github.com/github ... -
[转] How to detect incoming calls in an Android
2017-10-13 14:14 1174原文地址:https://stackoverflow.com/ ... -
[转] Android 检测电源按钮是否被按下
2017-10-11 12:55 974原文地址:https://stackoverflow.com/ ... -
[原创] Android Activity onNewIntent() 详解
2017-08-16 13:46 4726阅读难度:中 阅读前提: 1. 需要了解 Android 的生 ... -
[转] Android Webview: “Uncaught TypeError: Cannot read property 'getItem' of null
2017-08-14 15:09 2251原文地址:https://stackoverflow.com/ ... -
[原创] 使用 Vitamio 播放视频作为 Splash 时出现失真情况的解决方案
2017-08-02 09:10 1190目前在做关于视频及流媒体播放项目时,有这样一个需求,应用启动时 ... -
[原创] Android ListView 在右上角添加三角形图标和文字
2017-07-26 17:24 2695最终显示效果如下图,在右上角添加三角形图标并在图标内显示文字: ... -
[转] Detect home button press in android
2017-07-20 17:49 1152原文地址:https://stackoverflow.com/ ... -
[原创] 开启 Android TextView Marquee
2017-07-18 15:47 1785亲测可能。直接上代码。 测试机器:XiaoMi 2S Andr ... -
[原创] 小米手机无法真机调试
2017-07-06 09:10 6455系统环境: 小米 2S MIUI 版本:8.0.1.0(LXA ... -
了解数据绑定 - Data Binding Library
2017-06-22 15:31 906原文地址: -
How to play gif with Fresco
2017-06-22 14:00 636原文地址:https://stackoverflow.com/ ... -
设置 Toolbar(ActionBar) 上的按钮颜色
2017-06-22 08:11 2042原文地址: https://stackoverflow.com ... -
Display back button on action bar and back event
2017-06-22 08:00 718原文地址: https://stackoverflow.com ... -
Gradle 修改 Maven 仓库地址
2017-06-02 15:51 1633修改 Gradle Maven 仓库地址为阿里云镜像 修改根 ... -
[转] How to clear cookies and cache of webview on Android when not in webview?
2017-04-26 09:28 2171原文地址:http://stackoverflow.com/a ... -
[转] Android 在程序中如何动态的修改程序图标
2017-03-02 17:05 887http://stackoverflow.com/a/4150 ... -
[转] Android Libraries
2017-01-16 10:28 543原文地址: https://dzone.com/article ... -
[原创] Android 长按识别图中二维码 - Zxing
2017-01-10 09:27 6337前提: 本文使用了 ButterKnife 依赖库 开始环境 ...
相关推荐
Android实验指导 实验一:系统安装与HelloWorld 【目的】 安装智能手机开发相关软件平台。 【要求】 1. 完成智能手机开发平台安装、以及... 利用布局安排各种控件,设计良好用户界面 "<LinearLayout " "xmlns:android=...
ShortURL 是一个能缩短网址,并生成二维码的...Return: JSONExamples:$ curl 3sd.me/j/expand -d "shorten=Jh8x3" {"shorten": "http://3sd.me/Jh8x3", "expand": "http://baidu.com"} 标签:ShortURL
精彩编程与编程技巧-往列表框中填入文件目录信息 ...
This will allow the users to follow up the comment and expand the conversation if desired. 评论回复通知插件, 当评论被回复时会email通知评论的作者. Author URI: http://fairyfish.net/ Donate link: ...
2. Expand the distribution archive. 3. Modify the included script files for your local file system (if neccessary). 4. Edit the mail.conf, user.conf and log.conf files. 5. Run the mail server ...
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:slider="http://schemas.android.com/apk/res-auto" android:id="@+id/xml_slider_layout...
Java Developer Newsletter: From your Oracle account, select Subscriptions, expand Technology, and subscribe to Java. Java Developer Day hands-on workshops (free) and other events Java Magazine
Expand your knowledge and experience of working with Unity by creating a simple top down arcade style shooter. Using basic assets provided by Unity Technologies, built-in components and writing simple...
Get::finalValue接口提供了这种自动的转: template<typename T> void transmit(T p) { receive(Get::finalValue(p)); } ☆ Convert type qualifiers,e.g. addConst/removeConst.. , keep same output qualifier ...
利用布局安排各种控件,设计良好用户界面 "<LinearLayout " "xmlns:android="schemas.android./apk/res/android" " "android:orientation="vertical" " "android:layout_width="fill_parent" " "android:layout_...
http http://localhost:23023/api/list 缩短给定的URL: http "http://localhost:23023/api/shorten?url=http://example.com/" 扩展给定URL的哈希值: http "http://localhost:23023/api/expand?has
mysql5+(系统默认使用mysql,你需要将mysql的数据转到oracle,sqlserver里),需要注意的是修改mysql的【max_connections=1000】 2.在mysql中建库doroodo,在库中执行doroodo.sql 3.在eclipse中引入doroodo,修改...
LABVIEW 资源,AES128加密子VI:Expand Key
详情请查看博客: https://blog.csdn.net/qq_20785431/article/details/80873463
基于最新的AndroidStudio实现。Appearance animations for items in ListViews, GridViews, other AbsListViews; Built in animations include Alpha, SwingRightIn, SwingLeftIn, SwingBottomIn, SwingRightIn and ...
IBM PC服务器硬件日志收集工具安装及收集方式 目录 第一章日志类型、用途及收集方式
这是很酷一个可以展开,缩小的Viewpager。下载体验使用在gradle添加依赖allprojects { repositories { ... maven { url 'https://jitpack.io' } } ...mViewpager.expand(); mViewpager.collaps();
NULL 博文链接:https://guangqiang.iteye.com/blog/1767257
1、修改“取文本注册项”不能取出扩展型文本“REG_EXPAND_SZ”的BUG。 2、修改变体型的“赋值”方法给变体型数组赋值失败的BUG。 3、应易友的要求,可以自行选择恢复原来LOADER,体积将缩小40K左右。结束()...
expand-file-name " ~/.emacs.d/elpa " )) ( setq package-archives '(( " gnu " . " http://elpa.gnu.org/packages/ " ) ( " melpa-stable " . " http://stable.melpa.org/packages/ " ) ( " melpa " . " ...