摘要: 值得注意的是,ListView中的控件不能设置clickable="true",否则会无视父控件的blockDescendants。 可参考: https://segmentfault.com/q/1010000005800016 同理,如果一个cardview里面有个listview,这个list 阅读全文
posted @ 2016-06-25 22:27 LarryLawrence 阅读(3799) 评论(0) 推荐(0) 编辑
摘要: 用layout_weight的时候,不要把宽度(或是高度,你想分配weight的那个)设成match_parent。 android:layout_weight只适用于LinearLayout android:layout_weight的真实含义是:一旦View设置了该属性(假设有效的情况下),那么 阅读全文
posted @ 2016-06-14 15:10 LarryLawrence 阅读(302) 评论(0) 推荐(0) 编辑
摘要: layout_width layout_height layout_weight 这些一定要自己写,直接复制很容易出错 阅读全文
posted @ 2016-06-14 14:36 LarryLawrence 阅读(274) 评论(0) 推荐(0) 编辑
摘要: git clone -b <branch> <remote_repo> 例如: git clone -b 指定的分支名字 阅读全文
posted @ 2016-06-03 15:53 LarryLawrence 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 今天下午写了一些代码,吃晚饭时分用Android Studio commit了一下,不知道有没有选择Commit and push,结果刚才代码出bug我想回滚到上个版本的时候,发现Android Studio没有上传那份代码!!非常难受,就像word写了一下午文章结果电脑死机一样。 我遇到了一个让 阅读全文
posted @ 2016-05-06 23:58 LarryLawrence 阅读(4896) 评论(1) 推荐(0) 编辑
摘要: 在WebView中想要使用FAB,如果你想向上滑动的时候隐藏FAB,那么需要再WebView外面套一个ScrollView! 原因之前也分析过,和为什么ListView不能让ToolBar、Tab隐藏一样,CoordinatorLayout里面没有一个「可滑动」的组件。 如果没有这个ScrollVi 阅读全文
posted @ 2016-05-02 19:45 LarryLawrence 阅读(1586) 评论(0) 推荐(0) 编辑
摘要: 昨天想到了NavigationDrawer中Item点击的问题。 点击Drawer中的一个Item需要到一个新的页面,你是应该打开一个新的Activity呢还是直接用fragment呢? 如果打开新的activity,那么新的Activity覆盖,Drawer按钮就会消失;当然你也可以在新的Acti 阅读全文
posted @ 2016-05-01 12:54 LarryLawrence 阅读(8714) 评论(2) 推荐(0) 编辑
摘要: ![](http://images2015.cnblogs.com/blog/573995/201604/573995-20160430162211050-1357272526.jpg =100x20)不行。 手机截图用MarkDown贴上来很大。查了下说是只能使用支持调整图片大小的图床。 还是用T 阅读全文
posted @ 2016-05-01 11:41 LarryLawrence 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 如果你的NavigationDrawer里面的Item没有响应,Drawer不能左滑关闭,应该是因为你没有把主要内容放在DrawerLayout标签下的第一位。 The main content view (the FrameLayout above) must be the first child 阅读全文
posted @ 2016-04-30 12:02 LarryLawrence 阅读(370) 评论(0) 推荐(0) 编辑
摘要: popupTheme是指toolBar中弹出的menu的Theme。 那么,如果想让ToolBar的文字是白色,如果你设置Toolbar的Theme是 "ThemeOverlay.AppCompat.Dark.ActionBar" 那么ToolBar的文字是白色了,但是弹出的Menu是黑色。这是Da 阅读全文
posted @ 2016-04-28 16:51 LarryLawrence 阅读(1165) 评论(0) 推荐(1) 编辑