需要定义一个SideBar的视图类 在布局文件中引用 同时在布局中设置一个textView默认不可见当触摸时才显示 在调用的Activity中sideBar.setOnTouchingLetterChangedListener方法离开时不可见 同时联动listView listVi...
分类:
其他好文 时间:
2015-11-07 20:31:57
阅读次数:
241
Matplotlib官网上有上百个例子,但是基本上都没有注释。下面我把例子代码贴上,然后说明一下语句的意思。"""Simple demo of a horizontal bar chart."""import matplotlib.pyplot as pltplt.rcdefaults()imp.....
分类:
其他好文 时间:
2015-11-06 12:56:17
阅读次数:
1170
一、系统说明Ubuntu12.04TLS64位二、制作静态库(1)编写需要制作成静态库的程序(根据实际情况进行编写,这里只是一个简单例子)//bar.h
#ifndef_BAR_H
#define_BAR_H
voidbar(inti);
#endif//bar.c
#include<stdio.h>
#include<stdlib.h>
#include"bar.h"
voidba..
分类:
其他好文 时间:
2015-11-03 00:46:39
阅读次数:
167
更改状态栏颜色将iOS状态栏默认颜色为黑色,但有时为了需求,我们需要更改状态栏的颜色,常用的方式有:方法一: 1.在info.plist添加View controller-based status bar appearance为NO; 2.在页面执行[[UIApplication sharedApp...
分类:
移动开发 时间:
2015-11-01 22:46:28
阅读次数:
592
https://scotch.io/bar-talk/s-o-l-i-d-the-first-five-principles-of-object-oriented-designhttp://www.oodesign.com/interface-segregation-principle.html
分类:
其他好文 时间:
2015-11-01 13:53:38
阅读次数:
141
详见:http://ionicframework.com/docs/css/components 代码一:www/index.html <body ng-app="myreddit" ng-controller="RedditCtrl">
<ion-pane>
<ion-header-bar class="bar-positive">
<h1 class="tit...
分类:
其他好文 时间:
2015-11-01 06:58:40
阅读次数:
434
Tip_self:本次去掉了一个工具栏 Window->Customize- Perspactive中的Tool Bar Visibility--Editor Presentation(去掉选重)--OK ------ 一、eclipse字体调整: windows7系统下eclipse的默认字体里面...
分类:
数据库 时间:
2015-11-01 00:17:29
阅读次数:
376
jQuery Easy-Paging Test Prev Page #n Page #n Page #n Page #n ...
分类:
其他好文 时间:
2015-10-31 11:22:19
阅读次数:
184
13.6 Why does a destructor in base class need to be declared virtual?这道题问我们为啥基类中的析构函数要定义为虚函数。首先来看下面这段代码:class Foo {public: void f();};class Bar: pu...
分类:
其他好文 时间:
2015-10-31 08:00:23
阅读次数:
155
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
其他好文 时间:
2015-10-30 07:03:53
阅读次数:
265