Android Studio 使用教程

http://www.tuicool.com/articles/amMvM3B  用 Android Studio 开发安卓 APP-使用篇

http://ask.android-studio.org/?/article/23    常用功能介绍 比较详细

http://www.imooc.com/video/4246

http://yuedu.baidu.com/ebook/31beb61a9b6648d7c1c746e8?pn=1&click_type=10010002 Android Studio实用指南

http://yuedu.baidu.com/ebook/31beb61a9b6648d7c1c746e8?pn=1&click_type=10010002

http://www.tuicool.com/articles/NniIzmf  更换sublime主题  http://color-themes.com/?view=index

 

1.在程序中设置android:gravity 和 android:layout_Gravity属性

http://blog.csdn.net/feng88724/article/details/6333809

2.eclipse ctrl+1 提示信息快捷键

3.TabHost icon下载地址:

http://www.iconfont.cn/plus

  • 项目 VS 模块

Project中也有一个build.gradle文件用来指定构建的项目和任务,当你导入或新建一个Module时,build.gradle会自动更新.

Module相当于Eclipse当中的Project.

Project相当于Eclipse当中的workspace.

一个Project中可以包含多个Module.

Module中的build.grade用于配置模块的构建任务.Project中的build.grade用于定构建的项目和任务.

5.com.android.support:appcompat-v7:21.+ Android Studio报找不到这个错误

http://jingyan.baidu.com/article/c74d600080c02a0f6a595d3d.html

http://blog.csdn.net/lincyang/article/details/43853259

6.Android 中编译版本,最小版本, 目标版本都有什么区别?

compileSdkVersion: 编译SDK版本是将要编译APP的平台版本. 默认情况下它应该设置为SDK中最新的Android可用版本. 我们依然可以编译APP来支持更早的版本, 但是设置它为最新版本让我们可以使用新功能并优化APP使其在最新版本上拥有更好的用户体验.

minSdkVersion: 是新建工程的时候指定的”MinimumSDK version”. 它表示APP可以支持的Android SDK的最早版本. 意为小于该版本的Android系统上不保证APP正常运行.

targetSdkVersion: 表示开发者已经测试过的最高的Android版本. 当新版本的Android可用的时候, 我们应该在新版本上测试自己的APP并更新这个值以匹配最新版本的API, 从而使用新版本的功能.

编译版本和最小版本之间的都可以正常使用

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"
    defaultConfig {
        applicationId "com.ldytest.com.testpro"
        minSdkVersion 15
        targetSdkVersion 23 这里要和 compileSdkVersion填写相同
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:23.+'//这里要和compileSdkVersion填写相同
 testCompile 'junit:junit:4.12' }

比如这个表示 23- 15之间的版本都可以正常使用 即android 6.0 - 4.0之间

7.androidTest和 test目录是干啥用的

其中, test目录为在本机执行单元测试代码的目录, androidTest为在Android设备上执行单元测试代码的目录。

http://blog.csdn.net/working_harder/article/details/50505040

8.appcompat_v7是什么?

 google提供了Android Support Library package 系列的包来保证来高版本sdk开发的向下兼容性,即我们用4.x开发时,在1.6等版本上,可以使用高版本的有些特性,如fragement,ViewPager等,下面,简单说明下这几个版本间的区别:

   Android Support v4 这个包是为了照顾1.6及更高版本而设计的,这个包是使用最广泛的,eclipse新建工程时,都默认带有了。

    Android Support v7:  这个包是为了考虑照顾2.1及以上版本而设计的,但不包含更低,故如果不考虑1.6,我们可以采用再加上这个包,另外注意,v7是要依赖v4这个包的,即,两个得同时被包含。

    Android Support v13  :这个包的设计是为了android 3.2及更高版本的,一般我们都不常用,平板开发中能用到。

posted on 2016-11-28 22:29  防空洞123  阅读(499)  评论(0编辑  收藏  举报

导航