Simple Notepad Application for Android OS
Revision | dd15c726d57ae2048a1c2c5a858b00d2a597686e (tree) |
---|---|
Zeit | 2012-08-05 16:56:05 |
Autor | Masahiko, SAWAI <say@user...> |
Commiter | Masahiko, SAWAI |
仮の Theme.Notepad.Light を定義
@@ -4,6 +4,17 @@ | ||
4 | 4 | !! notepad-app |
5 | 5 | |
6 | 6 | * Theme.Light ベースのテーマを追加 |
7 | +** アイコンが黒背景を前提に作ってあるので白背景用を作成する | |
8 | +*** 白背景 : #333333 で 60% の透過度 | |
9 | +*** 黒背景 : #FFFFFF で 80% の透過度 | |
10 | +*** ic_add.png | |
11 | +*** ic_clear.png | |
12 | +*** ic_delete.png | |
13 | +*** ic_edit.png | |
14 | +*** ic_home.png | |
15 | +*** ic_launcher_notepad.png | |
16 | +*** ic_save.png | |
17 | +*** ic_search.png | |
7 | 18 | |
8 | 19 | * ノートテンプレート機能 |
9 | 20 | ** 新規ノート作成時のテンプレートを作成、管理する機能 |
@@ -10,7 +10,7 @@ | ||
10 | 10 | |
11 | 11 | <application |
12 | 12 | android:label="@string/app_name" |
13 | - android:theme="@style/Theme.MyTheme" | |
13 | + android:theme="@style/Theme.Notepad.Black" | |
14 | 14 | android:icon="@drawable/ic_launcher_notepad" |
15 | 15 | > |
16 | 16 |
@@ -0,0 +1,8 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android" > | |
3 | + <item android:state_enabled="false" android:color="#555"/> | |
4 | + <item android:state_window_focused="false" android:color="#666"/> | |
5 | + <item android:state_pressed="true" android:color="#000"/> | |
6 | + <item android:state_selected="true" android:color="#000"/> | |
7 | + <item android:color="#111"/> <!-- not selected --> | |
8 | +</selector> | |
\ No newline at end of file |
@@ -12,10 +12,11 @@ | ||
12 | 12 | /> |
13 | 13 | <!-- View Mode --> |
14 | 14 | <TextView |
15 | - style="@style/actionbar_title" | |
15 | + style="@style/actionbar_title" | |
16 | 16 | android:id="@+id/title_textview" |
17 | 17 | android:text="@string/note_list_title" |
18 | 18 | /> |
19 | + <!--style="@style/actionbar_title"--> | |
19 | 20 | <ImageButton |
20 | 21 | style="@style/actionbar_right_button" |
21 | 22 | android:id="@+id/search_button" |
@@ -0,0 +1,7 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<resources> | |
3 | + <declare-styleable name="Theme.MyTheme"> | |
4 | + <attr name="myColor" format="color" /> | |
5 | + <attr name="actionBarTitleStyle" format="reference" /> | |
6 | + </declare-styleable> | |
7 | +</resources> | |
\ No newline at end of file |
@@ -16,14 +16,25 @@ | ||
16 | 16 | <item name="android:paddingLeft" >@dimen/actionbar_title_paddingLeft</item> |
17 | 17 | <item name="android:gravity">left|center_vertical</item> |
18 | 18 | <item name="android:textSize">@dimen/actionbar_title_textSize</item> |
19 | - <item name="android:textColor">#FFF</item> | |
20 | 19 | <item name="android:textStyle">bold</item> |
21 | - <item name="android:shadowColor" >#6666</item> | |
20 | + <item name="android:shadowColor" >#C999</item> | |
22 | 21 | <item name="android:shadowRadius" >3</item> |
23 | 22 | <item name="android:shadowDx" >2</item> |
24 | 23 | <item name="android:shadowDy" >2</item> |
25 | 24 | </style> |
26 | 25 | |
26 | + <!-- | |
27 | + <style name="Widget.Black.ActionBarTitle" parent="actionbar_title" > | |
28 | + <item name="android:textColor">#FFF</item> | |
29 | + <item name="android:shadowColor" >#6666</item> | |
30 | + </style> | |
31 | + | |
32 | + <style name="Widget.Light.ActionBarTitle" parent="actionbar_title" > | |
33 | + <item name="android:textColor">#000</item> | |
34 | + <item name="android:shadowColor" >#9999</item> | |
35 | + </style> | |
36 | + --> | |
37 | + | |
27 | 38 | <style name="actionbar_edittext"> |
28 | 39 | <item name="android:layout_width">fill_parent</item> |
29 | 40 | <item name="android:layout_height">fill_parent</item> |
@@ -37,7 +48,6 @@ | ||
37 | 48 | <item name="android:layout_margin" >0dip</item> |
38 | 49 | <item name="android:padding" >@dimen/actionbar_button_padding</item> |
39 | 50 | <item name="android:gravity" >center</item> |
40 | - <item name="android:textColor" >#fff</item> | |
41 | 51 | <item name="android:textSize" >16sp</item> |
42 | 52 | <item name="android:shadowColor" >#333</item> |
43 | 53 | <item name="android:shadowRadius" >2</item> |
@@ -1,12 +1,25 @@ | ||
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <resources> |
3 | 3 | |
4 | - <style name="Widget.Holo.EditText" parent="@android:style/Widget.EditText" > | |
4 | + <style name="Widget.Holo.Black.EditText" parent="@android:style/Widget.EditText" > | |
5 | 5 | <item name="android:textColor" >@color/primary_text_holo_dark</item> |
6 | 6 | <item name="android:background" >@drawable/edit_text_holo_dark</item> |
7 | 7 | </style> |
8 | 8 | |
9 | - <style name="Theme.MyTheme" parent="@android:style/Theme.NoTitleBar" > | |
10 | - <item name="android:editTextStyle">@style/Widget.Holo.EditText</item> | |
9 | + <style name="Widget.Holo.Light.EditText" parent="@android:style/Widget.EditText" > | |
10 | + <item name="android:textColor" >@color/primary_text_holo_light</item> | |
11 | + <item name="android:background" >@drawable/edit_text_holo_dark</item> | |
12 | + </style> | |
13 | + | |
14 | + <style name="Theme.Notepad.Black" parent="@android:style/Theme.NoTitleBar" > | |
15 | + <item name="myColor">#f00</item> | |
16 | + <item name="android:editTextStyle">@style/Widget.Holo.Black.EditText</item> | |
17 | + <!--<item name="actionBarTitleStyle">@style/Widget.Black.ActionBarTitle</item>--> | |
18 | + </style> | |
19 | + | |
20 | + <style name="Theme.Notepad.Light" parent="@android:style/Theme.Light.NoTitleBar" > | |
21 | + <item name="myColor">#00f</item> | |
22 | + <item name="android:editTextStyle">@style/Widget.Holo.Light.EditText</item> | |
23 | + <!--<item name="actionBarTitleStyle">@style/Widget.Light.ActionBarTitle</item>--> | |
11 | 24 | </style> |
12 | 25 | </resources> |