本文内容 项目结构 环境 演示 参考资料 本文有三个演示: 简单翻书效果。翻下一页后,当前页不会消失。 翻书时的贝塞尔曲线。演示翻书时,贝塞尔曲线的路径。 完整翻书效果。 下载 Demo 项目结构 图 1 项目结构 图 2 程序主界面 环境 Windows 2008 R2 64 位 Eclipse ...
                            
                            
                                分类:
其他好文   时间:
2014-08-04 20:44:47   
                                阅读次数:
440
                             
                         
                    
                        
                            
                            
                                最近在帮机械学院开发一个app用了第三方的图像引擎——achartengine功能还算强大(虽然相比于Html那些第三方图像引擎还是差点不过也够用了)入门:参考http://blog.csdn.net/lk_blog/article/details/7645509就看着一页就行了 后面不用看了 知道...
                            
                            
                                分类:
其他好文   时间:
2014-08-04 10:53:17   
                                阅读次数:
258
                             
                         
                    
                        
                            
                            
                                小猪的Android入门之路 Day 3 - part 2
各种UI组件的学习 Part 2
本节引言:
在part 1里面我们学习了TextView(文本框),EditText(编辑框),Button(按钮),ImageButton(图像按钮);
RadioButton(单选按钮),CheckBox(复选框),ToggleButton(开关按钮),Switch(开关)以及ImageView的使用!
在Part 2中我们会讲下与Adapter适配器有关的一些UI组件,比如ListView,GridView...
                            
                            
                                分类:
移动开发   时间:
2014-08-03 15:23:35   
                                阅读次数:
274
                             
                         
                    
                        
                            
                            
                                如果插入话题和插入@符号:
final class TopicHelper {
		private static final String TOPIC = "#请插入话题名称#";
		private WriteBlog activity;
		public void insertText() {
			final EditText editText = activity.etMblog;
	...
                            
                            
                                分类:
其他好文   时间:
2014-08-03 10:15:45   
                                阅读次数:
190
                             
                         
                    
                        
                            
                            
                                第一部分 个性化控件(View)主要介绍那些不错个性化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar及其他如Dialog、Toast、EditText、TableView、Activit...
                            
                            
                                分类:
移动开发   时间:
2014-08-01 19:01:12   
                                阅读次数:
386
                             
                         
                    
                        
                            
                            
                                有时我们在做多行EditText的时候会出现光标在中间的问题:
<EditText 
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:minLines="5"
    android:background="#ffffff"
    android:paddi...
                            
                            
                                分类:
其他好文   时间:
2014-07-31 21:03:17   
                                阅读次数:
308
                             
                         
                    
                        
                            
                            
                                首先还是一贯作风,我们先看案例: 静态图看不出来效果,如果用过此软件(扎客)的同学们都知道,她的背景会动.怎么样,是不是觉得很时尚,起码比静态的要好(个人观点).其实实现起来并 不复杂,这个如果让做游戏程序员做简直太小儿科了,这里我说明一点,其实我们做应用的也应该多少了解...
                            
                            
                                分类:
移动开发   时间:
2014-07-31 20:36:04   
                                阅读次数:
340
                             
                         
                    
                        
                            
                            
                                找了很多地方都没看到,经过尝试,发现这么一种方法可以达到限定edittext中的字符。android:digits="1234567890qwertyuiopasdfghjklzxcvbnm`-=[]\;,./~!@#$%^*()_+}{:?&<>"'"里面是...
                            
                            
                                分类:
移动开发   时间:
2014-07-31 16:26:37   
                                阅读次数:
222
                             
                         
                    
                        
                            
                            
                                先上效果图:
首先来写一个表情的GridView
public class EmotionView extends LinearLayout implements OnItemClickListener {
	private GridView mGridView;
	private static final ArrayList emotionDisplayList = new...
                            
                            
                                分类:
移动开发   时间:
2014-07-31 07:28:25   
                                阅读次数:
388
                             
                         
                    
                        
                            
                            
                                如何把textview的一些文字加上背景色:
Spannable str = new SpannableString("#fdsfdfsdfdsfd#");
		Matcher matcher = getEmailPattern().matcher((CharSequence) str);
		while (matcher.find()) {
			int start = matcher.sta...
                            
                            
                                分类:
移动开发   时间:
2014-07-31 00:02:05   
                                阅读次数:
427