Android
无风子
这个作者很懒,什么都没留下…
展开
-
android 5大布局
http://blog.csdn.net/hh2000/article/details/41510653LinearLayoutRelativeLayoutFrameLayoutTableLayoutAbsoluteLayout转载 2015-12-30 09:31:55 · 250 阅读 · 0 评论 -
欢迎使用CSDN-markdown编辑器
android:parentActivityNameandroid:name=”android.support.PARENT_ACTIVITY”<application ... > ... <activity android:name="com.mycompany.myfirstapp.DisplayMessageActivity"转载 2016-03-28 22:14:20 · 272 阅读 · 0 评论 -
android 之开源控件roundedimageview
roundedimageview主页> http://android-arsenal.com/details/1/680githup的地址 https://github.com/vinc3m1/RoundedImageView至于用法,楼主就不介绍了 看githup就可以原创 2015-12-27 00:57:53 · 311 阅读 · 0 评论 -
android之开源框架butterknife环境搭建
butterknife githup官网 http://jakewharton.github.io/butterknife/butterknife插件 http://plugins.jetbrains.com/plugin/7369?pr=androidstudio这里描述这么安装butterknife插件说一下怎么搭建butterknife使用环境 第一步:添加butterknife使用包原创 2015-12-26 22:04:48 · 424 阅读 · 0 评论 -
Android TextView
android:lineSpacingMultiplier=”1.2” 设置行间距的倍数 如”1.2“ android:lineSpacingExtra=”20dp” 设置行间距 如 20dp原创 2015-12-26 01:46:52 · 277 阅读 · 0 评论 -
Android View.post()
android开发中,界面必须在主线程中,即UI线程。但时因为延迟,等待时间才能刷新,常用方法 1. Thread+handler2.TimerTask+handler3.Runnable+Handler.postDelayed(runnable,time)今天突然发现 view.post(Runnable action) view.postDelayed(Runnable action, l原创 2015-12-24 16:47:48 · 497 阅读 · 0 评论 -
android ActionBarActivity 显示ActionBar
首先推荐两篇文章 http://www.android-doc.com/reference/android/support/v7/app/ActionBarActivity.html http://www.android-doc.com/guide/topics/ui/actionbar.html这两篇官方文档,大概讲述了ActionBarActivity 和什么事ActionBar重点原创 2015-12-24 15:41:01 · 663 阅读 · 0 评论 -
android WebView加载 assets html文件
今天发现自己太机智了,开发app时,用显示一个注册条约(里面有很多文字),一开始我使用的是TextView,做到一下感觉太复杂。然后思考,突然想到WebView 可以加载html文件,于是把条约做出html文件,放在assets文件下面就可以了!注意 由于android新建项目是没有assets文件夹,assets文件夹与java,res文件夹同级,不要放在res文件夹下面了哟(楼主就犯二了)最后代原创 2015-12-17 21:33:04 · 7997 阅读 · 0 评论 -
Android 之fragment显示 FragmentTransaction show and hide
我们一般显示fragment用的是getSupportFragmentManager().beginTransaction().add(id, fragment).commit();或者使用getSupportFragmentManager().beginTransaction().replace(id, fragment).commit();但是使用replace方法要remove原来已经存在的原创 2015-12-16 22:52:58 · 15881 阅读 · 0 评论 -
android studio git设置忽略
http://ask.android-studio.org/?/question/89要忽略的文件 - .idea 文件夹 - .gradle 文件夹 - 所有的 build 文件夹 - 所有的 .iml 文件 - local.properties 文件所以: 跟目录的 .gitignore.gradle/local.properties/.idea/workspace.xml原创 2015-12-30 21:38:43 · 3895 阅读 · 0 评论