前面两章已经了解了大部分功能,不过还有一些东西没有讲到,接下来咱们就继续将剩下的部分讲完。
@Override
protected void onDestroy() {
super.onDestroy();
activityInstance = null;
EMGroupManager.getInstance().removeGroupChangeListener(groupLi...
分类:
其他好文 时间:
2015-04-29 11:47:54
阅读次数:
265
首先,写一个类,让其继承自TextView:重写focus方法,让TextView始终是focus。public class MarqueeText extends TextView {public MarqueeText(Context con) { super(con);}public Mar....
分类:
其他好文 时间:
2015-04-29 11:30:25
阅读次数:
125
ViewController.h中的代码如下:#import @interface ViewController : UIViewController @end ViewController.m中的详细代码:- (void)viewDidLoad { [super vie...
分类:
其他好文 时间:
2015-04-29 11:29:37
阅读次数:
186
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QMessageBox
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
...
分类:
其他好文 时间:
2015-04-29 10:12:21
阅读次数:
215
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QDesktopWidget
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
...
分类:
其他好文 时间:
2015-04-29 10:09:32
阅读次数:
154
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
class Example(QMainWindow):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
se...
分类:
其他好文 时间:
2015-04-29 10:07:14
阅读次数:
189
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QAction, qApp
from PyQt5.QtGui import QIcon
class Example(QMainWindow):
def __init__(self):
super().__init__()
sel...
分类:
其他好文 时间:
2015-04-29 10:07:10
阅读次数:
412
import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QIcon
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def init...
分类:
其他好文 时间:
2015-04-28 22:58:51
阅读次数:
301
//PECS:producer-extends-comsumer-super
import com.google.common.collect.Lists;
import java.util.Arrays;
import java.util.List;
/**
* Created by jianjun.yu on 15-4-21.
*/
public class GTest {
...
分类:
编程语言 时间:
2015-04-28 22:56:47
阅读次数:
307
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QToolTip
from PyQt5.QtGui import QFont
class Example(QWidget):
def __init__(self):
super().__init__()
sel...
分类:
其他好文 时间:
2015-04-28 22:56:40
阅读次数:
601