2015/06/10
Microsoft MVP for Windows Platform Development 初音玲
Microsoft MVP for Microsoft Azure 酒井達明
https://channel9.msdn.com/events/MVP-Virtual-Conference/Windows-10-Developer-Readiness-Powered-by-MVPs/Japan
2015/06/10
Microsoft MVP for Windows Platform Development 初音玲
Microsoft MVP for Microsoft Azure 酒井達明
https://channel9.msdn.com/events/MVP-Virtual-Conference/Windows-10-Developer-Readiness-Powered-by-MVPs/Japan
9. マルチスクリーンへの対応
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
10. ちなみに
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
12. Exact Reproductions
http://code.google.com/policies.html
Portions of this page are reproduced from work created and
shared by the Android Open Source Project and used according to terms described in the
Creative Commons 2.5 Attribution License.
http://creativecommons.org/licenses/by/2.5/
13. Modified Versions
http://code.google.com/policies.html
Portions of this page are modifications based on work created and
shared by the Android Open Source Project and used according to terms described in the
Creative Commons 2.5 Attribution License.
http://creativecommons.org/licenses/by/2.5/
18. 例えば ...
リスト 詳細
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
19. 例えば ...
リスト 詳細 更新情報
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
20. 例えば ...
伸縮
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
21. 例えば ...
再配置
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
36. 48dp Rhythm
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
37. Why 48dp?
48dp は物理サイズで 約 9mm
タッチスクリーンで
安心して操作できる大きさ
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
38. Mind gaps
それぞれの UI の間隔を 8dp に。
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
39. 配置例
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
53. Providing Alternative Resources
At runtime, Android detects the current device
configuration and loads the appropriate resources
for your application.
http://goo.gl/xlZhz
実行時に、 Android はデバイスの設定によって
適切なリソースを読み込みます。
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
55. bitmap の例 (9patch)
button_pressed.9.png
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
73. ソースを覗いてみます
// Determine whether we are in single-pane or
// dual-pane mode by testing the visibility
// of the article view.
View articleView = findViewById(R.id.article);
mIsDualPane = articleView != null &&
articleView.getVisibility() == View.VISIBLE;
articleView : 記事本文の表示領域
mIsDualPane : タイトルと本文の表示領域があるかないか
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
77. レイアウト: onepane_with_bar
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout android:layout_width="match_parent"
android:id="@+id/linearLayout1"
android:gravity="center"
android:layout_height="50dp">
<ImageView android:id="@+id/imageView1"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/logo"
android:paddingRight="30dp"
android:layout_gravity="left"
android:layout_weight="0"
android:contentDescription="TODO"/>
<View android:layout_height="wrap_content"
android:id="@+id/view1"
android:layout_width="wrap_content"
android:layout_weight="1" />
<Button android:id="@+id/categorybutton"
android:background="@drawable/button_bg"
android:layout_height="match_parent"
android:layout_weight="0"
android:layout_width="120dp"
style="@style/CategoryButtonStyle"/>
</LinearLayout>
<fragment android:id="@+id/headlines"
表示領域 (pane) が 1 個
android:layout_height="fill_parent"
android:name="com.example.android.newsreader.HeadlinesFragment"
アクションバーを実装
android:layout_width="match_parent" />
</LinearLayout>
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.
83. ArticleActivity.java
// (省略)
// If we are in two-pane layout mode, this activity is no longer
necessary
if (getResources().getBoolean(R.bool.has_two_panes)) {
finish();
Twopane なレイアウトは
return;
Fragment で処理済み。
}
// Place an ArticleFragment as our content pane
Onepane なレイアウトは
ArticleFragment f = new ArticleFragment(); ここで Article を表示。
// (省略)
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License.