-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated styles in Settings.java to copy the look of a Preferences activity. Removed cancel and save buttons and just called the save to the settings in onPause(). * Removed a bunch of unused strings. * Fixed a few lint warnings and errors.
- Loading branch information
Showing
16 changed files
with
389 additions
and
536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,184 +1,155 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/mainRL" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:background="#FFFFFFFF" | ||
android:orientation="vertical" > | ||
|
||
<ScrollView | ||
<RelativeLayout | ||
android:id="@+id/settings" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:background="#FFFFFFFF" | ||
android:fillViewport="true" > | ||
android:layout_height="wrap_content" | ||
android:padding="@dimen/settings_padding" > | ||
|
||
<RelativeLayout | ||
android:id="@+id/settings" | ||
android:id="@+id/section1" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" > | ||
|
||
<TextView | ||
android:id="@+id/l_section1" | ||
style="@style/WordPressSettingsSectionHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/account_details" /> | ||
|
||
<EditText | ||
android:id="@+id/username" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/l_section1" | ||
android:hint="@string/username" | ||
android:singleLine="true" /> | ||
|
||
<EditText | ||
android:id="@+id/password" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/username" | ||
android:hint="@string/password" | ||
android:inputType="textPassword" | ||
android:singleLine="true" /> | ||
|
||
<TextView | ||
android:id="@+id/l_httpuser" | ||
style="@style/WordPressSubHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/password" | ||
android:text="@string/http_credentials" /> | ||
|
||
<EditText | ||
android:id="@+id/httpuser" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/l_httpuser" | ||
android:singleLine="true" | ||
android:hint="@string/httpuser" /> | ||
|
||
<EditText | ||
android:id="@+id/httppassword" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/httpuser" | ||
android:inputType="textPassword" | ||
android:singleLine="true" | ||
android:hint="@string/httppassword" /> | ||
</RelativeLayout> | ||
|
||
<RelativeLayout | ||
android:id="@+id/section2" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="@dimen/settings_padding" > | ||
android:layout_below="@id/section1" | ||
android:layout_marginTop="8dp" > | ||
|
||
<RelativeLayout | ||
android:id="@+id/section1" | ||
<TextView | ||
android:id="@+id/l_section2" | ||
style="@style/WordPressSettingsSectionHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" > | ||
|
||
<TextView | ||
android:id="@+id/l_section1" | ||
style="@style/WordPressSectionHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/account_details" /> | ||
|
||
<EditText | ||
android:id="@+id/username" | ||
android:hint="@string/username" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/l_section1" | ||
android:singleLine="true" /> | ||
|
||
<EditText | ||
android:id="@+id/password" | ||
android:hint="@string/password" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/username" | ||
android:inputType="textPassword" | ||
android:singleLine="true" /> | ||
|
||
<TextView | ||
android:id="@+id/l_httpuser" | ||
style="@style/WordPressSubHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/password" | ||
android:text="@string/httpuser" /> | ||
|
||
<EditText | ||
android:id="@+id/httpuser" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/l_httpuser" | ||
android:layout_marginLeft="4dp" | ||
android:layout_marginRight="4dp" | ||
android:singleLine="true" /> | ||
|
||
<TextView | ||
android:id="@+id/l_httppassword" | ||
style="@style/WordPressSubHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/httpuser" | ||
android:text="@string/httppassword" /> | ||
|
||
<EditText | ||
android:id="@+id/httppassword" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/l_httppassword" | ||
android:inputType="textPassword" | ||
android:singleLine="true" /> | ||
</RelativeLayout> | ||
|
||
<RelativeLayout | ||
android:id="@+id/section2" | ||
android:layout_height="wrap_content" | ||
android:text="@string/media" /> | ||
|
||
<TextView | ||
android:id="@+id/l_maxImageWidth" | ||
style="@style/WordPressSubHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/section1" | ||
android:layout_marginTop="8dp" > | ||
|
||
<TextView | ||
android:id="@+id/l_section2" | ||
style="@style/WordPressSectionHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/media" /> | ||
|
||
<TextView | ||
android:id="@+id/l_maxImageWidth" | ||
style="@style/WordPressSubHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/l_section2" | ||
android:text="@string/max_thumbnail_px_width" /> | ||
|
||
<Spinner | ||
android:id="@+id/maxImageWidth" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:paddingLeft="12dp" | ||
android:layout_below="@id/l_maxImageWidth" /> | ||
|
||
<CheckBox | ||
android:id="@+id/fullSizeImage" | ||
android:layout_marginTop="8dp" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/maxImageWidth" | ||
android:text="@string/upload_full_size_image" /> | ||
<CheckBox | ||
android:id="@+id/scaledImage" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/fullSizeImage" | ||
android:text="@string/upload_scaled_image" /> | ||
<TextView | ||
android:id="@+id/l_scaledImage" | ||
style="@style/WordPressSubHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/scaledImage" | ||
android:text="@string/scaled_image" /> | ||
<EditText | ||
android:id="@+id/scaledImageWidth" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/l_scaledImage" | ||
android:numeric="integer" | ||
android:maxLength="4" | ||
android:singleLine="true" /> | ||
</RelativeLayout> | ||
|
||
<RelativeLayout | ||
android:id="@+id/section3" | ||
android:layout_below="@id/l_section2" | ||
android:text="@string/max_thumbnail_px_width" /> | ||
|
||
<Spinner | ||
android:id="@+id/maxImageWidth" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/section2" | ||
android:layout_marginTop="8dp" > | ||
|
||
<TextView | ||
android:id="@+id/l_section3" | ||
style="@style/WordPressSectionHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/location" /> | ||
|
||
<CheckBox | ||
android:id="@+id/location" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/l_section3" | ||
android:text="@string/geotag" /> | ||
</RelativeLayout> | ||
|
||
<Button | ||
android:id="@+id/save" | ||
android:layout_below="@id/l_maxImageWidth" | ||
android:paddingLeft="12dp" /> | ||
|
||
<CheckBox | ||
android:id="@+id/fullSizeImage" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/maxImageWidth" | ||
android:layout_marginTop="8dp" | ||
android:text="@string/upload_full_size_image" /> | ||
|
||
<CheckBox | ||
android:id="@+id/scaledImage" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_below="@id/section3" | ||
android:layout_marginLeft="8dp" | ||
android:text="@string/save" | ||
android:textSize="18sp" /> | ||
|
||
<Button | ||
android:id="@+id/cancel" | ||
android:layout_below="@id/fullSizeImage" | ||
android:text="@string/upload_scaled_image" /> | ||
|
||
<TextView | ||
android:id="@+id/l_scaledImage" | ||
style="@style/WordPressSubHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/scaledImage" | ||
android:text="@string/scaled_image" /> | ||
|
||
<EditText | ||
android:id="@+id/scaledImageWidth" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/l_scaledImage" | ||
android:maxLength="4" | ||
android:numeric="integer" | ||
android:singleLine="true" /> | ||
</RelativeLayout> | ||
|
||
<RelativeLayout | ||
android:id="@+id/section3" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/section2" | ||
android:layout_marginTop="8dp" > | ||
|
||
<TextView | ||
android:id="@+id/l_section3" | ||
style="@style/WordPressSettingsSectionHeader" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/location" /> | ||
|
||
<CheckBox | ||
android:id="@+id/location" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignTop="@id/save" | ||
android:layout_toLeftOf="@id/save" | ||
android:text="@string/cancel" | ||
android:textSize="18sp" /> | ||
android:layout_below="@id/l_section3" | ||
android:text="@string/geotag" /> | ||
</RelativeLayout> | ||
</ScrollView> | ||
</RelativeLayout> | ||
</RelativeLayout> | ||
|
||
</ScrollView> |
Oops, something went wrong.