GithubHelp home page GithubHelp logo

android-news's People

Contributors

solocao avatar

Watchers

 avatar  avatar

android-news's Issues

学习笔记,不断更新

  • AppCompatActivity 修改为Activity

  • 我创建了一个文件夹,名字叫做drawable-hdpi 但是引用的时候,使用的是@drawable

  • 图片标签

    ImageView

  • 还有一种布局叫做RelativeLayout

  • 开始布局总入口是AndroidManifest.xml

  • 一张图片在屏幕中居中

    android:layout_centerInParent="true"

  • 修改全部配置参数的地方

    main/res/values/string.xml

  • 修改启动的APP图标

    在AndroidMainifest.xml中修改android:icon

  • 给view添加id

    android:id="@+id/rl_splash_root"
    

然后获取到它(实例化)

private RelativeLayout rl_splash_root;

rl_splash_root =  (RelativeLayout) findViewById(R.id.rl_splash_root);

快捷键fbc

  • 动画的完成

  • 新建了一个类,实现了一个接口,然后需要快速导入接口要实现的方法

    alt + enter option + enter

  • /** + enter 可以对一个方法或者类增加注视说明

  • 缓存工具类

  • 抽取成员变量 option + cmd + c

  • 引入的快捷键是 option+enter

  • 数据类型 Context

  • 保存参数的数据类型

    SharedPreference

  • 启动页面类

    Intent intent = new Intent(SplashActivity.this,GuideActivity.this)

    startActivity(intent)

    intent机制讲解

    https://www.cnblogs.com/X-knight/p/5438042.html

  • layout 中使用ViewPager

  • ViewPager填充窗体

  • Button组建就直接

  • 文本 android:text

  • 复制代码 ctrl + 下

  • Button 的 background 还可以是xml,先写名字,然后 option + enter

  • 线性布局 LinearLayout

    android:layout_width="wrap_content"  //包裹
    android:orientation="horizontal"     //水平方向
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.