diff options
author | Teddy <[email protected]> | 2013-08-30 22:48:29 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-08-30 22:48:29 +0800 |
commit | 29b6f83eca288a1bdc2b5cfcbbd1ae2651b97ae6 (patch) | |
tree | 173a519dbb893170aa4856a727205f0d73b8b2fd /client/Piztor/res/layout/activity_settings.xml | |
parent | 3054e381a1d384dee4206bfe5646f057bf82446e (diff) | |
parent | 1cc2c0f8319df86602da0ae1eed6456d4ff3b172 (diff) |
Merge branch 'master' of github.com:Determinant/piztor
Diffstat (limited to 'client/Piztor/res/layout/activity_settings.xml')
-rw-r--r-- | client/Piztor/res/layout/activity_settings.xml | 246 |
1 files changed, 141 insertions, 105 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 |