码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
RecyclerView高度随Item自适应 GridLayoutManager和LinearLayoutManager都适用
ScrollView嵌套RecyclerView时,android:layout_height=”wrap_content”并不起作用,RecyclerView会填充剩余的整个屏幕空间,也就相当于android:layout_height=”match_parent”,通过重写GridLayoutManager或LinearLayoutManager 的onMeasure方法进行可重置Recycle...
分类:其他好文   时间:2015-08-13 15:56:16    阅读次数:671
hdu 3416 Marriage Match IV (最短路+最大流)
hdu 3416 Marriage Match IVDescription Do not sincere non-interference。 Like that show, now starvae also take part in a show, but it take place between city A and B. Starvae is in city A and girls are...
分类:其他好文   时间:2015-08-13 12:20:52    阅读次数:118
侧滑删除进阶(七、八)
activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:lay...
分类:其他好文   时间:2015-08-13 12:18:59    阅读次数:86
android基础(8):SharedPreferences原理
一:界面设计    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"     android:orientation="vertical"     tools:context=".Ma...
分类:移动开发   时间:2015-08-13 12:15:30    阅读次数:173
hdu 3416 Marriage Match IV 【 最短路 最大流 】
求边不可重复的最短路条数先从起点到终点用一次dijkstra,再从终点到起点用一次dijkstra,来判断一条边是否在最短路上如果在,就将这条边的两个端点连起来,容量为1再跑一下dinic(),最大流就是不可重复的最短路条数还是想不到怎么建图啊------每次做网络流的题目---诶---该怎么建图啊...
分类:其他好文   时间:2015-08-13 11:57:05    阅读次数:119
Case class和Case object代码实战解析之Scala学习笔记-20
package com.leegh.pattern_match/** * @author Guohui Li */abstract class Personcase class Student(age: Int) extends Personcase class Worker(age: Int, s...
分类:其他好文   时间:2015-08-13 08:55:14    阅读次数:134
hdu 3081 Marriage Match II (二分+最大流+并查集)
hdu 3081 Marriage Match IIDescription Presumably, you all have known the question of stable marriage match. A girl will choose a boy; it is similar as the game of playing house we used to play when we...
分类:其他好文   时间:2015-08-12 19:20:41    阅读次数:124
http 缓存示例
服务器收到请求时,会在 200OK中回送该资源的 Last-Modified和 ETag头,客户端将该资源保存在 cache中,并记录这两个属性。当客户端需要发送相同的请求时,会在请求中携带 If-Modified-Since和 If-None-Match两个头。两个头的值分别是响应中 Last-Modified和 ETag头的值。服务器通过这两个头判断本地资源未发生变化,客户端不需要重新下载,返...
分类:Web程序   时间:2015-08-12 16:49:00    阅读次数:175
android listview的item布局中含有button,不会响应listview的onitemclick监听 以及 onitemlongclick监听问题解决
效果图: activity的布局xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" andro...
分类:移动开发   时间:2015-08-12 13:23:34    阅读次数:162
Android Api Demos登顶之路(三十)Display Options
这个demo演示了actionbar的各种布局样式。 activity_main.xml<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_pa...
分类:移动开发   时间:2015-08-12 09:04:11    阅读次数:152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!