techbooster / androidopentextbook Goto Github PK
View Code? Open in Web Editor NEWオープンソースで作るAndroidの教科書です
オープンソースで作るAndroidの教科書です
と、思った今日このごろです。
教材なら、Android的・iOSと併用的なペーパープロトの手順とか、
アプリ企画の注意点とかあったほうがいいのかも。
https://www.gnu.org/licenses/licenses.ja.html#FDL
目的的にGNU FDLあたりがよさそう?
くまった(・(ェ)・)
~/Book/AndroidOpenTextbook (master)$ grunt pdf
Running "exec:clean" (exec) task
Running "exec:preprocess" (exec) task
review-preproc -r --tabwidth=2 sample.re
Running "exec:compile2pdf" (exec) task
>> compiling preface.tex
>>
>> compiling uibasic-01.tex
>> compiling uibasic-02.tex
>> compiling background01.tex
>> compiling sensor-01.tex
>> compiling arduino-01.tex
>> compiling network-01.tex
>> compiling netdevice-01.tex
>> compiling netdevice-02.tex
>> compiling graphics-01.tex
>>
>> warning: no ID of (list|listnum) in //listnum[][ES20Utilクラス 抜粋]{
>> compiling multidevice-01.tex
>> compiling accessibility.tex
>> compiling ui-01.tex
>> compiling webserver-01.tex
>> compiling play-01.tex
>> /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1552:in `stat'
>> : No such file or directory - ./book-pdf/book.pdf (Errno::ENOENT)
>> from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1552:in `block in fu_each_src_dest'
>> from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1568:in `fu_each_src_dest0'
>> from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1550:in `fu_each_src_dest'
>> from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:393:in `cp'
>> from /Users/tomorrowkey/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/review-1.4.0/lib/review/pdfmaker.rb:159:in `generate_pdf'
>> from /Users/tomorrowkey/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/review-1.4.0/lib/review/pdfmaker.rb:92:in `execute'
>> from /Users/tomorrowkey/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/review-1.4.0/lib/review/pdfmaker.rb:56:in `execute'
>> from /Users/tomorrowkey/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/review-1.4.0/bin/review-pdfmaker:18:in `<top (required)>'
>> from /usr/bin/review-pdfmaker:19:in `load'
>> from /usr/bin/review-pdfmaker:19:in `<main>'
>> Exited with code: 1.
Warning: Task "exec:compile2pdf" failed. Use --force to continue.
Aborted due to warnings.
$ review-pdfmaker -v
review-pdfmaker 1.4.0
$ grunt -version
grunt-cli v0.1.13
grunt v0.4.4
糸井 @vvakame 重里先生から頂戴したい。
みんなからアイデアあればここに書き足してほしい。
Effective Androidの例「書きたい事だけ書きました。」
テーブル要素のうち、最初の行に見出しを追加して下さい(UI-Basic全般)
//table[ex][これはサンプルです]{
要素名 説明
top 上に寄せる
bottom 下に寄せる
left 左に寄せる
right 右に寄せる
center_vertical 垂直方向**にそろえる
center_hotizontal 水平方向**にそろえる
center 画面の**にそろえる
//}
Re:VIEWの問題な気もしますが、PDFのビルドがうまくいきません。MacTeXなど必要なツールチェインはインストールしていると思います。
該当箇所は https://github.com/kmuto/review/blob/v1.4.0/lib%2Freview%2Fpdfmaker.rb#L159 なのでそもそもPDFの生成がうまくいっていない…。同じような症状の方います?
# Re:VIEWはgem install reviewで入れた最新版
$ review-compile --version
review-compile 1.4.0
$ grunt pdf
Running "exec:clean" (exec) task
Removing articles/accessibility.html
Removing articles/arduino-01.html
Removing articles/background01.html
Removing articles/graphics-01.html
Removing articles/multidevice-01.html
Removing articles/netdevice-01.html
Removing articles/netdevice-02.html
Removing articles/network-01.html
Removing articles/preface.html
Removing articles/sensor-01.html
Removing articles/ui-01.html
Removing articles/uibasic-01.html
Removing articles/uibasic-02.html
Removing articles/webserver-01.html
Running "exec:preprocess" (exec) task
review-preproc -r --tabwidth=2 sample.re
Running "exec:compile2pdf" (exec) task
>> compiling preface.tex
>> compiling uibasic-01.tex
>> compiling uibasic-02.tex
>> compiling background01.tex
>> compiling sensor-01.tex
>> compiling arduino-01.tex
>> compiling network-01.tex
>> compiling netdevice-01.tex
>> compiling netdevice-02.tex
>> compiling graphics-01.tex
>> warning: no ID of (list|listnum) in //listnum[][ES20Utilクラス 抜粋]{
>> compiling multidevice-01.tex
>> compiling accessibility.tex
>> compiling ui-01.tex
>> compiling webserver-01.tex
>> /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/2.1.0/fileutils.rb:1401:in `initialize'
>> : No such file or directory @ rb_sysopen - ./book-pdf/book.pdf (Errno::ENOENT)
>> from /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/2.1.0/fileutils.rb:1401:in `open'
>> from /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/2.1.0/fileutils.rb:1401:in `copy_file'
>> from /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/2.1.0/fileutils.rb:483:in `copy_file'
>> from /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/2.1.0/fileutils.rb:400:in `block in cp'
>> from /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/2.1.0/fileutils.rb:1579:in `block in fu_each_src_dest'
>> from /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/2.1.0/fileutils.rb:1595:in `fu_each_src_dest0'
>> from /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/2.1.0/fileutils.rb:1577:in `fu_each_src_dest'
>> from /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/2.1.0/fileutils.rb:399:in `cp'
>> from /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/review-1.4.0/lib/review/pdfmaker.rb:159:in `generate_pdf'
>> from /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/review-1.4.0/lib/review/pdfmaker.rb:92:in `execute'
>> from /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/review-1.4.0/lib/review/pdfmaker.rb:56:in `execute'
>> from /Users/gfx/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/review-1.4.0/bin/review-pdfmaker:18:in `<top (required)>'
>> from /Users/gfx/.rbenv/versions/2.1.4/bin/review-pdfmaker:23:in `load'
>> from /Users/gfx/.rbenv/versions/2.1.4/bin/review-pdfmaker:23:in `<main>'
>> Exited with code: 1.
Warning: Task "exec:compile2pdf" failed. Use --force to continue.
Aborted due to warnings.
Eclipse,Android Studioの基本的な事や、Graldeとかプロジェクトのマイグレーションとかまで色々ネタはありそう。
という事で色々とネタを出しつつ章としての体裁などなどを検討できたらいいかなと。
UI-Basicについて、すべての表、図、リストにタイトルを付けてください。
またタイトル(キャプション)については時制を現在形(~する)や名詞(~している画面)などに一致させてください
順番に校正して目次とすりあわせる形で並べ直してからが本番。
Androidのソース自体の見方とか、コンパイル方法とか。
アプリの開発とは趣が異なる気がしますが。。。
応用編のゆきさんと要相談!
@mhidaka README.mdはREADME.reから生成するようにしたのだった…
npm install && grunt readme で生成できるます。
やめる?直接編集する?
org.techbooster
と
jp.techinstitute
のどちらが正しい?
本文でもサンプルコードでも統一したパッケージ名・名前空間が欲しいなぁと思いました
WebView...? WebView...?
本文校正を完了しました。こちらも #@# コメントを追加しています。確認おねがいします!
@tomovwgti 著者チェックおねがいします。最終チェックです。
clean処理が以下のようになっているためです。
return "git clean -x -f && rm -rf articles/book-pdf";
git cleanはgrunt htmlの出力結果をクリーンしたいということであれば、git cleanではなく、htmlファイルだけを削除するようにした方が良いのではないでしょうか。
まず必要かどうか相談してから。
節は細かくなってしまいましたが、コードだったら2行〜3行の内容のものもあるので、合体してもよい節もあります。
基礎で何やるかはっきりしないと何とも。。。
grunt pdf
, grunt html
, 共に同様の症状です(画像はpdfのもの)。
Re:VIEW の利用経験は全くないので、原因がわかりません。どんな解決策があるんでしょうか。
READMEのビルド方法を見ながらビルド環境を用意しました。
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.10.3
BuildVersion: 14D136
$ grunt --version
grunt-cli v0.1.13
grunt v0.4.4
## 数あるRe:VIEWのコマンドから無作為に一つを選択してバージョンを表示
$ review-check --version
review-check 1.5.0
$ tex --version
TeX 3.14159265 (TeX Live 2015)
kpathsea version 6.2.1
(ライセンスは省略)
表現は置いといて、以下のようなことが必要かと思います。
開発中の無効化をリリースビルドに残さない方法 (Gradleを活用せよ)
例: OAuth での認可取得は外部ブラウザを使って実施せよ
例: xml で onClick 宣言すると辛いことになる
そぉい
今の目次構成案だと、3Dがクローズアップされてて、2Dグラフィックス部分はないかも?となってるので、Issue化しました。
2Dグラフィックスの部分がないと、ライブ壁紙などのところがサポートできんのでは?と思ってます。
文字校正おわりました。一部コードが空でしたので再確認お願いいます。
have the description of English?
つくる。
due_date: 2014/4/10
本章を読む事で、Androidアプリケーションに外部ライブラリを組み込めるようになれる。自分でAndroidアプリケーション用のライブラリを作成できる。
目次案
・センサーの種類と原理(一般論。簡単な回路系まで言及するか悩みどころ)
・Androidのセンサーの種類と特徴
・各センサーの紹介と利用方法
・センサーを使ったプログラミングについて
・実装センサーの一覧の取得
・各センサーの取得方法(主要なものいくつか)
・応用例
・センサーの組み合わせによる応用
・バックグラウンド実行におけるバッテリの考慮や画面オン時のみ利用など
◯センサー調べたらこんなにあんの?(ドコモ仕様確認ツール調べ)
・加速度
・重力
・ジャイロ
・照度
・地磁気
・回転ベクトル
・アンキャリブレート回転ベクトル
・地磁気回転ベクトル
・気圧
・近接
・温度
・歩数
・歩行検出
・GPS ← 独立章かな?
メンバーに目次案をざっくり振り分けて細かく落とし込んだり、書き方の例を提案する
\( 'ω')/ウオオオアアアアアアアアアアアアアアアア
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.