This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> | |
<plist version="0.9"> | |
<dict> | |
<key>CFBundleIconFile</key> | |
<string>@ICON@</string> | |
<key>CFBundlePackageType</key> | |
<string>APPL</string> | |
<key>CFBundleGetInfoString</key> | |
<string>Created by Qt/QMake</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"errors" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/url" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task copyNativeLibs(type: Copy) { | |
from fileTree(dir: 'jni', include: '**/*.so' ) into 'build/native-libs' | |
} | |
tasks.withType(Compile) { compileTask -> compileTask.dependsOn copyNativeLibs } | |
clean.dependsOn 'cleanCopyNativeLibs' | |
tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask -> | |
pkgTask.jniDir file('build/native-libs') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<blink android:layout_width="wrap_content" | |
android:layout_height="wrap_content"> | |
<TextClock | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:id="@+id/textClock" | |
android:textSize="60sp" | |
android:textColor="#b3b5b5"/> | |
</blink> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TextClock | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:id="@+id/textClock" | |
android:textSize="60sp" | |
android:textColor="#b3b5b5" | |
android:format24Hour="k"/> | |
<blink android:layout_width="wrap_content" | |
android:layout_height="wrap_content"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TextClock | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:id="@+id/textClock" | |
android:textSize="60sp" | |
android:textColor="#b3b5b5" | |
android:format24Hour="k"/> | |
<blink android:layout_width="wrap_content" | |
android:layout_height="wrap_content"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2014 Julian Shen | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:celllayout="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".MainActivity"> | |
<com.jlnshen.widget.celllayout.SimpleCellLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<declare-styleable name="SimpleCellLayout"> | |
<attr name="col" format="integer"/> | |
<attr name="row" format="integer"/> | |
<attr name="gapsize" format="dimension"/> | |
<attr name="colspan" format="integer"/> | |
<attr name="rowspan" format="integer"/> | |
<attr name="cellX" format="integer"/> | |
<attr name="cellY" format="integer"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public SimpleCellLayout(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
initFromAttributes(context, attrs); | |
} | |
public SimpleCellLayout(Context context, AttributeSet attrs, int defStyle) { | |
super(context, attrs, defStyle); | |
initFromAttributes(context, attrs); |