summaryrefslogtreecommitdiff
path: root/client/Piztor/res/layout
diff options
context:
space:
mode:
authorsjtufs <[email protected]>2013-08-30 22:33:16 +0800
committersjtufs <[email protected]>2013-08-30 22:33:16 +0800
commit6f38860cd5907501d90eb5518ac42978d7dec834 (patch)
tree6c461b109242e8c0bb59d1f1a1a0373261e8d88a /client/Piztor/res/layout
parent04cd785f24d779996df8672938372467af6c9a82 (diff)
update
Diffstat (limited to 'client/Piztor/res/layout')
-rw-r--r--client/Piztor/res/layout/activity_settings.xml246
-rw-r--r--client/Piztor/res/layout/activity_updateinfo.xml121
-rw-r--r--client/Piztor/res/layout/main_footbar.xml10
-rw-r--r--client/Piztor/res/layout/settings_headbar.xml4
4 files changed, 269 insertions, 112 deletions
diff --git a/client/Piztor/res/layout/activity_settings.xml b/client/Piztor/res/layout/activity_settings.xml
index 865cbc6..3bd6fef 100644
--- a/client/Piztor/res/layout/activity_settings.xml
+++ b/client/Piztor/res/layout/activity_settings.xml
@@ -11,121 +11,157 @@
<include layout="@layout/settings_headbar"></include>
- <TextView
- android:id="@+id/settings_GPSrefreshrate_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginTop="10dip"
- android:text="GPS refresh rate"
- android:textColor="@android:color/white"
- android:textSize="20dip" />
-
+ <RelativeLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="10dip"
+ android:orientation="horizontal">
+ <TextView
+ android:id="@+id/settings_GPSrefreshrate_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:layout_marginTop="10dip"
+ android:layout_marginLeft="60dip"
+ android:text="GPS refresh rate"
+ android:textColor="@android:color/white"
+ android:textSize="20dip" />
+ <TextView
+ android:id="@+id/settings_GPSrefreshrate"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="20dip"
+ android:layout_marginTop="10dip"
+ android:layout_marginLeft="20dip"
+ android:layout_gravity="center_vertical"
+ android:textColor="@android:color/white"
+ android:layout_toRightOf="@+id/settings_GPSrefreshrate_text"
+ android:text="30s"/>
+
+ </RelativeLayout>
+
<SeekBar
- android:id="@+id/settings_GPSrefreshrate"
+ android:id="@+id/settings_GPSrefreshrate_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:max="60"
+ android:progress="30"
+ android:paddingLeft="18px"
+ android:paddingRight="18px"
android:layout_marginLeft="40px"
android:layout_marginRight="40px" />
+ <RelativeLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="40dip"
+ android:layout_marginRight="40dip">
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="@android:color/white"
+ android:layout_alignParentLeft="true"
+ android:text="fast"
+ android:textSize="12dip"/>
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="@android:color/white"
+ android:layout_alignParentRight="true"
+ android:text="slow"
+ android:textSize="12dip"/>
+ </RelativeLayout>
+
<View
android:layout_width="fill_parent"
android:layout_height="1.0px"
- android:layout_marginTop="40px"
- android:layout_marginBottom="40px"
- android:layout_marginLeft="20.0px"
- android:layout_marginRight="20.0px"
+ android:layout_marginTop="20dip"
+ android:layout_marginBottom="20dip"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
android:background="#ffc0c3c4" />
- <Button
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="Button 2" />
-
- <Button
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="Button 3" />
-
- <Button
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="Button 4" />
-
- <Button
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="Button 5" />
-
- <ProgressBar
- android:id="@+id/progressBar1"
- style="?android:attr/progressBarStyleHorizontal"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
-
- <RadioButton
- android:id="@+id/radioButton2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="RadioButton 1" />
-
- <RadioButton
- android:id="@+id/radioButton1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="RadioButton 2" />
-
- <ToggleButton
- android:id="@+id/toggleButton1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="ToggleButton" />
-
- <Button
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="Button 6" />
-
- <SeekBar
- android:id="@+id/seekBar1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
-
- <Button
- android:id="@+id/button3"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Button 7" />
-
- <Button
- android:id="@+id/button4"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Button 8" />
-
- <CheckBox
- android:id="@+id/checkBox1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="CheckBox" />
-
- <Button
- android:id="@+id/button2"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Button 9" />
-
- <Button
- android:id="@+id/button1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Button 10" />
-
- <Button
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="Button 11"
- android:id="@+id/settings_btn_logout" />
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_gravity="center"
+ android:gravity="center"
+ android:textSize="30dip"
+ android:textColor="@android:color/white"
+ android:text="@string/subscribe_info"/>
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:gravity="center"
+ android:layout_marginTop="20dip"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:orientation="horizontal">
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="#4D4D4D"
+ android:textColor="#FFFFFF"
+ android:textSize="25dip"
+ android:text="company"
+ android:id="@+id/settings_subscribe_company"
+ />
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="#4D4D4D"
+ android:textColor="#FFFFFF"
+ android:textSize="25dip"
+ android:layout_marginLeft="20dip"
+ android:text="section"
+ android:id="@+id/settings_subscribe_section"
+ />
+
+ <Button
+ android:id="@+id/settings_btn_subscribe"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="20dip"
+ android:text="@string/change"
+ android:textSize="22dip" />
+
+ </LinearLayout>
+ <View
+ android:layout_width="fill_parent"
+ android:layout_height="1.0px"
+ android:layout_marginTop="20dip"
+ android:layout_marginBottom="20dip"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:background="#ffc0c3c4" />
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="50dip"
+ android:layout_marginRight="50dip"
+ android:orientation="vertical">
+ <Button
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="5dip"
+ android:paddingBottom="5dip"
+ android:text="@string/update_info"
+ android:textSize="30dip"
+ android:textColor="@android:color/white"
+ android:background="#4285F4"
+ android:id="@+id/settings_btn_updateinfo" />
+ <Button
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="5dip"
+ android:paddingBottom="5dip"
+ android:layout_marginTop="20dip"
+ android:text="@string/logout"
+ android:textSize="30dip"
+ android:textColor="@android:color/white"
+ android:background="#DB4437"
+ android:id="@+id/settings_btn_logout" />
+ </LinearLayout>
</LinearLayout>
-
</ScrollView> \ No newline at end of file
diff --git a/client/Piztor/res/layout/activity_updateinfo.xml b/client/Piztor/res/layout/activity_updateinfo.xml
new file mode 100644
index 0000000..de9ecc6
--- /dev/null
+++ b/client/Piztor/res/layout/activity_updateinfo.xml
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content" >
+
+ <LinearLayout
+
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_marginTop="20dip"
+ android:orientation="vertical" >
+
+ <include layout="@layout/settings_headbar"></include>
+
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:layout_marginTop="10dip"
+ android:gravity="center"
+ android:textSize="20dip"
+ android:textColor="#FFFFFF"
+ android:text="haha"
+ android:id="@+id/username_text" />
+ <View
+ android:layout_width="fill_parent"
+ android:layout_height="1.0px"
+ android:layout_marginTop="10dip"
+ android:layout_marginBottom="20dip"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:background="#ffc0c3c4" />
+
+ <EditText
+ android:id="@+id/editText1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="25dip"
+ android:layout_marginRight="25dip"
+ android:hint=" new nickname"
+ android:ems="10" >
+ </EditText>
+ <View
+ android:layout_width="fill_parent"
+ android:layout_height="1.0px"
+ android:layout_marginTop="20dip"
+ android:layout_marginBottom="20dip"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:background="#ffc0c3c4" />
+
+ <EditText
+ android:id="@+id/editText2"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="25dip"
+ android:layout_marginRight="25dip"
+ android:ems="10"
+ android:inputType="textPassword"
+ android:hint=" * old password"/>
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="25dip"
+ android:layout_marginRight="25dip"
+ android:layout_marginBottom="10dip"
+ android:layout_gravity="center"
+ android:gravity="center"
+ android:textSize="14dip"
+ android:text="Must enter your current password"
+ android:textColor="#808080"/>
+
+ <EditText
+ android:id="@+id/editText3"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="25dip"
+ android:layout_marginRight="25dip"
+ android:ems="10"
+ android:inputType="textPassword"
+ android:hint=" new password"/>
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="25dip"
+ android:layout_marginRight="25dip"
+ android:layout_gravity="center"
+ android:gravity="center"
+ android:textSize="14dip"
+ android:text="Keep this blank if you don't want to change"
+ android:textColor="#808080"/>
+ <View
+ android:layout_width="fill_parent"
+ android:layout_height="1.0px"
+ android:layout_marginTop="20dip"
+ android:layout_marginBottom="20dip"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:background="#ffc0c3c4" />
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:layout_gravity="center"
+ android:gravity="center">
+ <Button
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:paddingLeft="30dip"
+ android:paddingRight="30dip"
+ android:paddingTop="4dip"
+ android:paddingBottom="4dip"
+ android:background="#0F9D58"
+ android:textColor="#FFFFFF"
+ android:textSize="25dip"
+ android:text="Submit"/>
+ </LinearLayout>
+
+ </LinearLayout>
+</ScrollView> \ No newline at end of file
diff --git a/client/Piztor/res/layout/main_footbar.xml b/client/Piztor/res/layout/main_footbar.xml
index b4659ff..287fb4f 100644
--- a/client/Piztor/res/layout/main_footbar.xml
+++ b/client/Piztor/res/layout/main_footbar.xml
@@ -6,7 +6,7 @@
android:background="@drawable/footbar_background" android:baselineAligned="false">
<LinearLayout
- android:id="@+id/footbar_btn_search_layout"
+ android:id="@+id/footbar_btn_checkin_layout"
android:layout_width="64dip"
android:layout_height="match_parent"
android:orientation="vertical"
@@ -14,21 +14,21 @@
android:layout_gravity="center_vertical"
android:layout_weight="1">
<ImageButton
- android:id="@+id/footbar_btn_search"
+ android:id="@+id/footbar_btn_checkin"
android:layout_width="90dip"
android:layout_height="30dip"
android:layout_gravity="center"
android:contentDescription="@string/desc"
- android:background="@drawable/footbar_btn_search_style"/>
+ android:background="@drawable/footbar_btn_checkin_style"/>
<TextView
- android:id="@+id/footbar_btn_search_text"
+ android:id="@+id/footbar_btn_checkin_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:textSize="10dip"
android:textColor="@android:color/white"
android:layout_gravity="center"
- android:text="@string/search"/>
+ android:text="@string/checkin"/>
</LinearLayout>
<LinearLayout
diff --git a/client/Piztor/res/layout/settings_headbar.xml b/client/Piztor/res/layout/settings_headbar.xml
index 606c172..3063b66 100644
--- a/client/Piztor/res/layout/settings_headbar.xml
+++ b/client/Piztor/res/layout/settings_headbar.xml
@@ -5,14 +5,14 @@
android:background="@drawable/topbar_background"
android:id="@+id/settings_headbar_layout" >
- <ImageButton
+ <!-- ImageButton
android:id="@+id/settings_btn_back"
android:layout_width="110dip"
android:layout_height="40dip"
android:layout_marginLeft="0dip"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
- android:background="@drawable/navigation_back"/>
+ android:background="@drawable/navigation_back"/-->
<TextView
android:id="@+id/settings_headbar_text"