style定义在单个视图或者控件上
theme用于activity或整个app上
由于作用范围的不同,theme就需要比style包含更多的定义属性值的item
使用系统风格和主题use platform styles and themes
to make your a
——
Sally
于 2016-04-28 📝
当用户卸载app时,android系统会删除:
保存在内部存储(internal storage)的所有文件
通过getExternalFilesDir()方法保存在外部存储(external storage)的所有文件
还有,应该手动删除缓存文件getCacheDir()以
——
Sally
于 2016-04-24 📝
暂停(pause your activity)一般在onPause()方法中,应该做一下几件事:
停止动画以及一些消耗cpu的操作
提交未保存的改动;那些在用户离开时,希望持久化的但是尚未保存的改动,例如:邮件草稿
释放系统资源,例如:广播、传感器(gps)、其他用户不需要且
——
Sally
于 2016-04-19 📝
配置action bar (setting up the action bar)在android > 3.0版本 (API level 11)
android3.0开始,action bar可以通过Theme.Holo主题来引用,并且是一个默认主题
1234// 使用时,
——
Sally
于 2016-04-17 📝
rails ui
引入gem
123gem "therubyracer"gem "less-rails"gem "twitter-bootstrap-rails"
123456// 安装bootstrap文件rails generate bootstrap:intall// 创
——
Sally
于 2016-04-16 📝
app/build.gradle 文件
defaultConfig settings
1234compiledSdkVersion - is the platform version against which you will compile your app.applica
——
Sally
于 2016-04-13 📝
model的关系
Decoratingcase
12has_many :supervisor_operationshas_many :supervisors, :through => :supervisor_operations
Supervisor
12has_ma
——
Sally
于 2016-04-06 📝