转载请注明出处:http://blog.csdn.net/dawanganban/article/details/9822431 Building Your First App GETSTARTED DEPENDENCIESAND PREREQUISITES ·     Android SDK ·     ADT Plugin 20.0.0 or higher (if you're usingEclipse) Welcome toAndroid application development!…
转载请注明出处:http://blog.csdn.net/dawanganban/article/details/9839523 Building a Simple User Interface 创建一个简单的用户界面 PREVIOUSNEXT THIS LESSON TEACHES YOU TO 这节课教你 1.    Create a Linear Layout 创建线性布局 2.    Add a Text Field 添加文本域 3.    Add String Resources 添加…
The action bar allows you to add buttons for the most important action items relating to the app's current context. Those that appear directly in the action bar with an icon and/or text are known as action buttons. Actions that can't fit in the actio…
Starting Another Activity 启动另一个Activity PREVIOUSNEXT THIS LESSON TEACHES YOU TO 这节课教你 1.   Respond to the Send Button按钮响应 2.   Build an Intent            创建一个意图Intent 3.   Start the Second Activity   开启第二个activity 4.   Create the Second Activity 创建第二…
转载请注明出处:http://blog.csdn.net/dawanganban/article/details/9823623 Running Your App PREVIOUSNEXT THIS LESSONTEACHES YOU TO 1.    Run on a Real Device 2.    Run on the Emulator YOU SHOULD ALSOREAD ·       Using Hardware Devices ·       Managing Virtual…
对于一个android 应用程序,用户的图形界面通常是由View(视图)和ViewGroup(视图组)对象构成的层次结构. View(视图)对象通常是按钮或文本输入框这类UI小部件,ViewGroup(视图组)对象是一些用来定义子视图布局的不可见容器,就像一个grid(表格)或者vertical List(垂直列表). Android提供了对应于View和ViewGroup对象的子类的XML 标签,所以你可以在XML文件中按照层次结构定义你的UI组件 图 1. ViewGroup(视图组)对象以…
Setting Up the Action Bar 设置Action Bar PREVIOUSNEXT THIS LESSONTEACHES YOU TO 这节课教你 1.    Support Android 3.0 and Above Only仅仅支持3.0以上 2.    Support Android 2.1 and Above     支持2.1以上 YOU SHOULD ALSOREAD ·       Setting Up the Support Library In its mo…
第二章 实体数据建模基础 很有可能,你才开始探索实体框架,你可能会问“我们怎么开始?”,如果你真是这样的话,那么本章就是一个很好的开始.如果不是,你已经建模,并在实体分裂和继承方面感觉良好,那么你可以跳过本章. 本章将带你漫游使用实体框架建模的基本实例,建模是实体框架的核心特性,同时也是区别实体框架和微软早期的数据访问平台的特性.一旦建好模,你就可以面向模型编写代码,而不用面向关系数据库中的行和列. 本章以创建一个简单概念模型的实例开始,然后让实体框架创建底层的数据库,剩下的实例,将向你展示,如…
0. 无废话版本 需求: 有一堆 .deb 包,想把它们做成一个 APT 仓库,这样就可以用apk install pkgname进行安装了,这样一方面自己可以规避 dpkg -i xxx.deb 时候的依赖问题,另一方面也方便了其他人 解决方法: mkdir -p /opt/raspi-apt-repos/raspbian8 cp ~/Downloads/raspbian8/*.deb /opt/raspi-apt-repos/raspbian8 cd /opt/raspi-apt-repos…
*:first-child { margin-top: 0 !important; } body > *:last-child { margin-bottom: 0 !important; } a { color: #4183C4; text-decoration: none; } a.absent { color: #cc0000; } a.anchor { display: block; padding-left: 30px; margin-left: -30px; cursor: poin…