diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2011-01-10 17:53:50 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2011-01-10 17:53:50 (GMT) |
commit | d246a23579ce354ced6e6c11989a59347f8d7d0a (patch) | |
tree | bfaebf1129da4e34fa1a739a4bdb724a69a2261d /res | |
parent | 90d900724576bc04b7ef2596100ba931e65eaf7f (diff) | |
download | SoftKeys-d246a23579ce354ced6e6c11989a59347f8d7d0a.zip SoftKeys-d246a23579ce354ced6e6c11989a59347f8d7d0a.tar.gz SoftKeys-d246a23579ce354ced6e6c11989a59347f8d7d0a.tar.bz2 |
Layouts for service extra buttons and configure extra buttons
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/configure_extra.xml | 110 | ||||
-rw-r--r-- | res/layout/service_extra.xml | 151 |
2 files changed, 261 insertions, 0 deletions
diff --git a/res/layout/configure_extra.xml b/res/layout/configure_extra.xml new file mode 100644 index 0000000..0f65862 --- /dev/null +++ b/res/layout/configure_extra.xml @@ -0,0 +1,110 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + + Copyright (c) 2010 Steve Slaven + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/main_view" + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + > + + <LinearLayout + android:id="@+id/extra_row1" + android:gravity="center" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <Spinner + android:id="@+id/extra_custom1" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="custom"/> + <Spinner + android:id="@+id/extra_custom2" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="custom"/> + </LinearLayout> + + <LinearLayout + android:id="@+id/extra_row2" + android:gravity="center" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <Spinner + android:id="@+id/extra_custom3" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="custom"/> + <Spinner + android:id="@+id/extra_custom4" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="custom"/> + </LinearLayout> + + <LinearLayout + android:id="@+id/extra_row3" + android:gravity="center" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <Spinner + android:id="@+id/extra_custom5" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="custom"/> + <Spinner + android:id="@+id/extra_custom6" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="custom6"/> + </LinearLayout> + + <LinearLayout + android:id="@+id/extra_row_modify" + android:gravity="center" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <Button + android:id="@+id/extra_modify_cancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="Cancel"/> + + <Button + android:id="@+id/extra_modify_save" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="Save"/> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/service_extra.xml b/res/layout/service_extra.xml new file mode 100644 index 0000000..674153f --- /dev/null +++ b/res/layout/service_extra.xml @@ -0,0 +1,151 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + + Copyright (c) 2010 Steve Slaven + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/main_view" + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + > + + <LinearLayout + android:gravity="center" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <ImageButton + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:id="@+id/extra_up"/> + + </LinearLayout> + + <LinearLayout + android:gravity="center" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <ImageButton + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:id="@+id/extra_left"/> + <ImageButton + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:id="@+id/extra_center"/> + <ImageButton + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:id="@+id/extra_right"/> + </LinearLayout> + + <LinearLayout + android:gravity="center" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <ImageButton + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:id="@+id/extra_less"/> + + <ImageButton + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:id="@+id/extra_down"/> + + <ImageButton + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:id="@+id/extra_more"/> + + </LinearLayout> + + <!-- these are user-customizable buttons --> + <LinearLayout + android:id="@+id/extra_row1" + android:gravity="center" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <Button + android:id="@+id/extra_custom1" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="custom"/> + <Button + android:id="@+id/extra_custom2" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="custom"/> + </LinearLayout> + + <LinearLayout + android:id="@+id/extra_row2" + android:gravity="center" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <Button + android:id="@+id/extra_custom3" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="custom"/> + <Button + android:id="@+id/extra_custom4" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="custom"/> + </LinearLayout> + + <LinearLayout + android:id="@+id/extra_row3" + android:gravity="center" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <Button + android:id="@+id/extra_custom5" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="custom"/> + <Button + android:id="@+id/extra_custom6" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="custom"/> + </LinearLayout> +</LinearLayout>
\ No newline at end of file |