update editbox style; remove unused resources
|
@ -547,8 +547,8 @@ extern (C) int UIAppMain(string[] args) {
|
||||||
table.addChild((new TextWidget(null, "Parameter 2 name bla bla"d)).alignment(Align.Right | Align.VCenter));
|
table.addChild((new TextWidget(null, "Parameter 2 name bla bla"d)).alignment(Align.Right | Align.VCenter));
|
||||||
table.addChild((new EditLine("edit2", "Some text for parameter 2"d)).layoutWidth(FILL_PARENT));
|
table.addChild((new EditLine("edit2", "Some text for parameter 2"d)).layoutWidth(FILL_PARENT));
|
||||||
// row 3
|
// row 3
|
||||||
table.addChild((new TextWidget(null, "Param 3"d)).alignment(Align.Right | Align.VCenter));
|
table.addChild((new TextWidget(null, "Param 3 is disabled"d)).alignment(Align.Right | Align.VCenter).enabled(false));
|
||||||
table.addChild((new EditLine("edit3", "Parameter 3 value"d)).layoutWidth(FILL_PARENT));
|
table.addChild((new EditLine("edit3", "Parameter 3 value"d)).layoutWidth(FILL_PARENT).enabled(false));
|
||||||
// normal readonly combo box
|
// normal readonly combo box
|
||||||
ComboBox combo1 = new ComboBox("combo1", ["item value 1"d, "item value 2"d, "item value 3"d, "item value 4"d, "item value 5"d, "item value 6"d]);
|
ComboBox combo1 = new ComboBox("combo1", ["item value 1"d, "item value 2"d, "item value 3"d, "item value 4"d, "item value 5"d, "item value 6"d]);
|
||||||
table.addChild((new TextWidget(null, "Combo box param"d)).alignment(Align.Right | Align.VCenter));
|
table.addChild((new TextWidget(null, "Combo box param"d)).alignment(Align.Right | Align.VCenter));
|
||||||
|
@ -664,11 +664,11 @@ extern (C) int UIAppMain(string[] args) {
|
||||||
table2.addChild((new TextWidget(null, "Param 5 - edit text here - blah blah blah"d)).alignment(Align.Right | Align.VCenter));
|
table2.addChild((new TextWidget(null, "Param 5 - edit text here - blah blah blah"d)).alignment(Align.Right | Align.VCenter));
|
||||||
table2.addChild((new EditLine("edit3", "Parameter 5 value"d)).layoutWidth(FILL_PARENT));
|
table2.addChild((new EditLine("edit3", "Parameter 5 value"d)).layoutWidth(FILL_PARENT));
|
||||||
// row 6
|
// row 6
|
||||||
table2.addChild((new TextWidget(null, "Param 6 - just to fill content widget"d)).alignment(Align.Right | Align.VCenter));
|
table2.addChild((new TextWidget(null, "Param 6 - just to fill content widget (DISABLED)"d)).alignment(Align.Right | Align.VCenter).enabled(false));
|
||||||
table2.addChild((new EditLine("edit3", "Parameter 5 value"d)).layoutWidth(FILL_PARENT));
|
table2.addChild((new EditLine("edit3", "Parameter 5 value"d)).layoutWidth(FILL_PARENT).enabled(false));
|
||||||
// row 7
|
// row 7
|
||||||
table2.addChild((new TextWidget(null, "Param 7 - just to fill content widget"d)).alignment(Align.Right | Align.VCenter));
|
table2.addChild((new TextWidget(null, "Param 7 - just to fill content widget (DISABLED)"d)).alignment(Align.Right | Align.VCenter).enabled(false));
|
||||||
table2.addChild((new EditLine("edit3", "Parameter 5 value"d)).layoutWidth(FILL_PARENT));
|
table2.addChild((new EditLine("edit3", "Parameter 5 value"d)).layoutWidth(FILL_PARENT).enabled(false));
|
||||||
// row 8
|
// row 8
|
||||||
table2.addChild((new TextWidget(null, "Param 8 - just to fill content widget"d)).alignment(Align.Right | Align.VCenter));
|
table2.addChild((new TextWidget(null, "Param 8 - just to fill content widget"d)).alignment(Align.Right | Align.VCenter));
|
||||||
table2.addChild((new EditLine("edit3", "Parameter 5 value"d)).layoutWidth(FILL_PARENT));
|
table2.addChild((new EditLine("edit3", "Parameter 5 value"d)).layoutWidth(FILL_PARENT));
|
||||||
|
|
|
@ -1,65 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Copyright (C) 2011 The Android Open Source Project
|
|
||||||
|
|
||||||
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
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
|
|
||||||
<!-- Enabled states -->
|
|
||||||
|
|
||||||
<item android:state_checked="true" android:state_window_focused="false"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_check_on_holo_light" />
|
|
||||||
<item android:state_checked="false" android:state_window_focused="false"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_check_off_holo_light" />
|
|
||||||
|
|
||||||
<item android:state_checked="true" android:state_pressed="true"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_check_on_pressed_holo_light" />
|
|
||||||
<item android:state_checked="false" android:state_pressed="true"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_check_off_pressed_holo_light" />
|
|
||||||
|
|
||||||
<item android:state_checked="true" android:state_focused="true"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_check_on_focused_holo_light" />
|
|
||||||
<item android:state_checked="false" android:state_focused="true"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_check_off_focused_holo_light" />
|
|
||||||
|
|
||||||
<item android:state_checked="false"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_check_off_holo_light" />
|
|
||||||
<item android:state_checked="true"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_check_on_holo_light" />
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Disabled states -->
|
|
||||||
|
|
||||||
<item android:state_checked="true" android:state_window_focused="false"
|
|
||||||
android:drawable="@drawable/btn_check_on_disabled_holo_light" />
|
|
||||||
<item android:state_checked="false" android:state_window_focused="false"
|
|
||||||
android:drawable="@drawable/btn_check_off_disabled_holo_light" />
|
|
||||||
|
|
||||||
<item android:state_checked="true" android:state_focused="true"
|
|
||||||
android:drawable="@drawable/btn_check_on_disabled_focused_holo_light" />
|
|
||||||
<item android:state_checked="false" android:state_focused="true"
|
|
||||||
android:drawable="@drawable/btn_check_off_disabled_focused_holo_light" />
|
|
||||||
|
|
||||||
<item android:state_checked="false" android:drawable="@drawable/btn_check_off_disabled_holo_light" />
|
|
||||||
<item android:state_checked="true" android:drawable="@drawable/btn_check_on_disabled_holo_light" />
|
|
||||||
|
|
||||||
</selector>
|
|
|
@ -1,59 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Copyright (C) 2011 The Android Open Source Project
|
|
||||||
|
|
||||||
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
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:state_checked="true" android:state_window_focused="false"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_radio_on_holo_light" />
|
|
||||||
<item android:state_checked="false" android:state_window_focused="false"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_radio_off_holo_light" />
|
|
||||||
|
|
||||||
<item android:state_checked="true" android:state_pressed="true"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_radio_on_pressed_holo_light" />
|
|
||||||
<item android:state_checked="false" android:state_pressed="true"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_radio_off_pressed_holo_light" />
|
|
||||||
|
|
||||||
<item android:state_checked="true" android:state_focused="true"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_radio_on_focused_holo_light" />
|
|
||||||
<item android:state_checked="false" android:state_focused="true"
|
|
||||||
android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_radio_off_focused_holo_light" />
|
|
||||||
|
|
||||||
<item android:state_checked="false" android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_radio_off_holo_light" />
|
|
||||||
<item android:state_checked="true" android:state_enabled="true"
|
|
||||||
android:drawable="@drawable/btn_radio_on_holo_light" />
|
|
||||||
|
|
||||||
<!-- Disabled states -->
|
|
||||||
|
|
||||||
<item android:state_checked="true" android:state_window_focused="false"
|
|
||||||
android:drawable="@drawable/btn_radio_on_disabled_holo_light" />
|
|
||||||
<item android:state_checked="false" android:state_window_focused="false"
|
|
||||||
android:drawable="@drawable/btn_radio_off_disabled_holo_light" />
|
|
||||||
|
|
||||||
<item android:state_checked="true" android:state_focused="true"
|
|
||||||
android:drawable="@drawable/btn_radio_on_disabled_focused_holo_light" />
|
|
||||||
<item android:state_checked="false" android:state_focused="true"
|
|
||||||
android:drawable="@drawable/btn_radio_off_disabled_focused_holo_light" />
|
|
||||||
|
|
||||||
<item android:state_checked="false" android:drawable="@drawable/btn_radio_off_disabled_holo_light" />
|
|
||||||
<item android:state_checked="true" android:drawable="@drawable/btn_radio_on_disabled_holo_light" />
|
|
||||||
|
|
||||||
</selector>
|
|
|
@ -1,26 +1,8 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
|
||||||
/* //device/apps/common/assets/res/any/drawable/editbox_background.xml
|
|
||||||
**
|
|
||||||
** Copyright 2006, The Android Open Source Project
|
|
||||||
**
|
|
||||||
** 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
|
|
||||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
** See the License for the specific language governing permissions and
|
|
||||||
** limitations under the License.
|
|
||||||
*/
|
|
||||||
-->
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/editbox_background_disabled_focus_yellow" />
|
<item android:state_focused="true" android:state_enabled="false" android:drawable="editbox_background_disabled_focus" />
|
||||||
<item android:state_focused="true" android:drawable="@drawable/editbox_background_focus_yellow" />
|
<item android:state_focused="true" android:drawable="editbox_background_focus" />
|
||||||
<item android:state_enabled="false" android:drawable="@drawable/editbox_background_disabled" />
|
<item android:state_enabled="false" android:drawable="editbox_background_disabled" />
|
||||||
<item android:drawable="@drawable/editbox_background_normal" />
|
<item android:drawable="editbox_background_normal" />
|
||||||
</selector>
|
</selector>
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 371 B |
Before Width: | Height: | Size: 368 B |
Before Width: | Height: | Size: 329 B |
Before Width: | Height: | Size: 425 B |
Before Width: | Height: | Size: 323 B |
Before Width: | Height: | Size: 491 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 632 B |
Before Width: | Height: | Size: 508 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 919 B |
Before Width: | Height: | Size: 479 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 533 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 736 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 578 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 220 B |
After Width: | Height: | Size: 239 B |
After Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 216 B |
|
@ -181,31 +181,16 @@
|
||||||
<style id="LIST_ITEM"
|
<style id="LIST_ITEM"
|
||||||
backgroundImageId="list_item_background"
|
backgroundImageId="list_item_background"
|
||||||
/>
|
/>
|
||||||
<style id="EDIT_LINE"
|
|
||||||
backgroundImageId="editbox_background"
|
|
||||||
padding="5,6,5,6"
|
|
||||||
margins="2,2,2,2"
|
|
||||||
minWidth="40"
|
|
||||||
fontFace="Arial"
|
|
||||||
fontFamily="SansSerif"
|
|
||||||
fontSize="16"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<style id="COMBO_BOX"
|
<style id="COMBO_BOX"
|
||||||
backgroundImageId="btn_background"
|
backgroundImageId="btn_background"
|
||||||
padding="2,2,2,2"
|
padding="2,2,2,2"
|
||||||
margins="2,2,2,2"
|
margins="2,2,2,2"
|
||||||
minWidth="40"
|
minWidth="40"
|
||||||
fontFace="Arial"
|
|
||||||
fontFamily="SansSerif"
|
|
||||||
fontSize="16"
|
|
||||||
/>
|
/>
|
||||||
<style id="COMBO_BOX_BODY"
|
<style id="COMBO_BOX_BODY"
|
||||||
padding="2,2,2,2"
|
padding="2,2,2,2"
|
||||||
minWidth="40"
|
minWidth="40"
|
||||||
fontFace="Arial"
|
|
||||||
fontFamily="SansSerif"
|
|
||||||
fontSize="16"
|
|
||||||
align="Left|VCenter"
|
align="Left|VCenter"
|
||||||
focusRectColors="#000"
|
focusRectColors="#000"
|
||||||
/>
|
/>
|
||||||
|
@ -215,17 +200,20 @@
|
||||||
align="Center"
|
align="Center"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<style id="EDIT_LINE"
|
||||||
|
backgroundImageId="editbox_background"
|
||||||
|
padding="4,4,4,4"
|
||||||
|
margins="2,2,2,2"
|
||||||
|
minWidth="40"
|
||||||
|
/>
|
||||||
<style id="EDIT_BOX"
|
<style id="EDIT_BOX"
|
||||||
backgroundImageId="editbox_background"
|
backgroundImageId="editbox_background"
|
||||||
padding="5,6,5,6"
|
padding="2,2,2,2"
|
||||||
margins="2,2,2,2"
|
margins="2,2,2,2"
|
||||||
minWidth="100"
|
minWidth="100"
|
||||||
minHeight="60"
|
minHeight="60"
|
||||||
layoutWidth="FILL_PARENT"
|
layoutWidth="FILL_PARENT"
|
||||||
layoutHeight="FILL_PARENT"
|
layoutHeight="FILL_PARENT"
|
||||||
fontFace="Courier New"
|
|
||||||
fontFamily="MonoSpace"
|
|
||||||
fontSize="16"
|
|
||||||
/>
|
/>
|
||||||
<style id="TREE_ITEM"
|
<style id="TREE_ITEM"
|
||||||
padding="2,2,2,2"
|
padding="2,2,2,2"
|
||||||
|
|