Skip to content

Instantly share code, notes, and snippets.

Container(
color: Colors.transparent,
height: 200,
width: 200,
child: GridView.count(
primary: false,
padding: const EdgeInsets.all(0),
crossAxisSpacing: 8,
mainAxisSpacing: 8,
crossAxisCount: 2,
private void showNotification(String title, String message, Intent intent) {
PendingIntent pendingIntent = PendingIntent.getActivity(getApplicationContext(), Defines.REQUEST_GOTO_HOME, intent, PendingIntent.FLAG_ONE_SHOT);
Notification.Builder builder = new Notification.Builder(this);
builder.setSmallIcon(R.mipmap.ic_launcher);
builder.setShowWhen(true);
builder.setContentTitle(title);
builder.setContentText(message);
builder.setTicker(message);
builder.setWhen(System.currentTimeMillis());
....
<permission android:name="appid.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="appid.permission.C2D_MESSAGE" android:protectionLevel="signature"/>
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<application
import Foundation
import UIKit
import SnapKit
/********************************************************************************
1.view 구조
-contentview
-titleLabel
2.extension 구조
(1).init
import Foundation
import UIKit
import SnapKit
/********************************************************************************
1.view 구조
-view
-tableView
2.extension 구조
(1).init
//snapkit
extension MainController {
func initUI() {
self.view.addSubview(self.tableView)
view.setNeedsUpdateConstraints()
}
override func updateViewConstraints() {
if (!didSetupConstraints) {
### mac에 sshpass 설치 하기
``` bash
$ brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb
```
에러가 발생
``` bash
$ brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb
######################################################################## 100.0%
let backButton = UIBarButtonItem(image:UIImage(named:"icon_prev"),
style: UIBarButtonItemStyle.plain,
target: navigationController, action: nil)
navigationItem.leftBarButtonItem = backButton
#java 6
brew tap caskroom/versions
brew cask install java6
#java 8
brew update
brew tap caskroom/cask
brew install Caskroom/cask/java
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/view2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:id="@+id/from"
android:layout_width="100dp"