-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update connect section in post dialog layout * Update single choice list item layout with drawable and view padding * Update attributes of fields section in post dialog layout * Update site list URL HTML in post dialog to mimic note list row style * Update posting section in post dialog layout to mimic progress dialog * Update post button visibility in post dialog to mimic progress dialog * Update success message in post dialog to use a single text view * Update success section in post dialog layout * Add confirmation message when post dialog URL copied to clipboard * Update hard-coded values to references in success section of post wordpress dialog * Update confirmation message when post dialog URL copied to clipboard * Update copy button in success section of post wordpress dialog
- Loading branch information
Showing
5 changed files
with
118 additions
and
105 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
176 changes: 89 additions & 87 deletions
176
Simplenote/src/main/res/layout/dialog_wordpress_post.xml
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,158 +1,160 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
|
||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical"> | ||
android:layout_width="match_parent" | ||
android:orientation="vertical" > | ||
|
||
<LinearLayout | ||
android:id="@+id/wp_dialog_section_fields" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_width="match_parent" | ||
android:orientation="vertical" | ||
android:visibility="gone"> | ||
android:visibility="gone" > | ||
|
||
<ListView | ||
android:id="@+id/wp_dialog_list_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_weight="1" | ||
android:choiceMode="singleChoice" | ||
android:clipToPadding="false" | ||
android:divider="@null" | ||
android:layout_height="0dp" | ||
android:layout_weight="1" | ||
android:layout_width="match_parent" | ||
android:listSelector="@drawable/selectable_background_simplestyle" | ||
android:paddingLeft="@dimen/padding_extra_small" | ||
android:paddingRight="@dimen/padding_extra_small" | ||
android:listSelector="@drawable/selectable_background_simplestyle" | ||
android:paddingTop="@dimen/padding_medium" /> | ||
android:paddingTop="@dimen/padding_medium" > | ||
</ListView> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_width="match_parent" | ||
android:orientation="horizontal" | ||
android:padding="@dimen/padding_large"> | ||
android:padding="@dimen/padding_large" > | ||
|
||
<CheckBox | ||
android:id="@+id/wp_dialog_draft_checkbox" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="start|center_vertical" | ||
android:layout_height="wrap_content" | ||
android:layout_width="fill_parent" | ||
android:paddingLeft="@dimen/padding_medium" | ||
android:paddingStart="@dimen/padding_medium" | ||
android:text="@string/wordpress_post_draft" | ||
android:textColor="?attr/noteTitleColor" | ||
android:textSize="16sp" | ||
android:textColor="?attr/noteTitleColor" /> | ||
tools:ignore="RtlSymmetry" > | ||
</CheckBox> | ||
|
||
<Space | ||
android:layout_width="0dp" | ||
android:layout_height="0dp" | ||
android:layout_weight="1" /> | ||
android:layout_weight="1" > | ||
</Space> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/wp_dialog_section_posting" | ||
android:layout_width="match_parent" | ||
android:layout_gravity="center_vertical" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:paddingLeft="24dp" | ||
android:paddingRight="24dp" | ||
android:paddingTop="@dimen/padding_large" | ||
android:layout_width="match_parent" | ||
android:orientation="horizontal" | ||
android:paddingBottom="@dimen/padding_large" | ||
android:orientation="vertical" | ||
android:visibility="gone"> | ||
android:paddingEnd="@dimen/padding_extra_extra_large" | ||
android:paddingLeft="@dimen/padding_extra_extra_large" | ||
android:paddingRight="@dimen/padding_extra_extra_large" | ||
android:paddingStart="@dimen/padding_extra_extra_large" | ||
android:paddingTop="@dimen/padding_large" | ||
android:visibility="gone" > | ||
|
||
<ProgressBar | ||
android:indeterminate="true" | ||
android:layout_height="wrap_content" | ||
android:layout_marginEnd="@dimen/padding_extra_extra_large" | ||
android:layout_marginRight="@dimen/padding_extra_extra_large" | ||
android:layout_width="wrap_content" > | ||
</ProgressBar> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:ellipsize="end" | ||
android:layout_gravity="center_vertical" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/padding_medium" | ||
android:layout_marginBottom="@dimen/padding_medium" | ||
android:gravity="center_horizontal" | ||
android:layout_width="fill_parent" | ||
android:maxLines="1" | ||
android:text="@string/uploading_post" | ||
android:textColor="?attr/noteTitleColor" /> | ||
android:textColor="?attr/noteTitleColor" | ||
tools:ignore="RtlSymmetry" > | ||
</TextView> | ||
|
||
<ProgressBar | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="@dimen/padding_large" | ||
android:gravity="center_horizontal" | ||
android:indeterminate="true" /> | ||
</LinearLayout> | ||
|
||
<RelativeLayout | ||
android:id="@+id/wp_dialog_section_success" | ||
android:layout_width="match_parent" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_height="wrap_content" | ||
android:paddingLeft="24dp" | ||
android:paddingRight="24dp" | ||
android:paddingTop="@dimen/padding_large" | ||
android:layout_width="match_parent" | ||
android:paddingBottom="@dimen/padding_large" | ||
android:layout_gravity="center_horizontal"> | ||
android:paddingLeft="@dimen/padding_extra_extra_large" | ||
android:paddingRight="@dimen/padding_extra_extra_large" | ||
android:paddingTop="@dimen/padding_large" > | ||
|
||
<TextView | ||
android:id="@+id/wp_dialog_success_summary" | ||
android:layout_width="match_parent" | ||
android:autoLink="web" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="@dimen/padding_medium" | ||
android:gravity="center_horizontal" | ||
android:layout_width="match_parent" | ||
android:text="@string/success" | ||
android:textColor="?attr/noteTitleColor" | ||
android:textSize="16sp" /> | ||
android:textSize="16sp" > | ||
</TextView> | ||
|
||
<TextView | ||
android:id="@+id/wp_dialog_success_url" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
<android.support.v7.widget.AppCompatButton | ||
android:id="@+id/wp_dialog_share" | ||
android:drawablePadding="@dimen/padding_extra_small" | ||
android:layout_below="@id/wp_dialog_success_summary" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginBottom="@dimen/padding_medium" | ||
android:autoLink="web" | ||
android:textSize="16sp" /> | ||
|
||
<LinearLayout | ||
android:id="@+id/wp_dialog_share_buttons" | ||
android:layout_height="wrap_content" | ||
android:layout_width="wrap_content" | ||
android:text="@string/share" | ||
android:theme="@style/FlatButton.Simplestyle" > | ||
</android.support.v7.widget.AppCompatButton> | ||
|
||
<android.support.v7.widget.AppCompatButton | ||
android:id="@+id/wp_dialog_copy_url" | ||
android:drawablePadding="@dimen/padding_extra_small" | ||
android:layout_below="@id/wp_dialog_share" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/wp_dialog_success_url" | ||
android:layout_centerHorizontal="true" | ||
android:orientation="horizontal"> | ||
|
||
<android.support.v7.widget.AppCompatButton | ||
android:id="@+id/wp_dialog_share" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginEnd="@dimen/padding_extra_small" | ||
android:layout_marginRight="@dimen/padding_extra_small" | ||
android:drawablePadding="@dimen/padding_extra_small" | ||
android:text="@string/share" | ||
android:theme="@style/FlatButton.Simplestyle" /> | ||
|
||
<android.support.v7.widget.AppCompatButton | ||
android:id="@+id/wp_dialog_copy_url" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:drawablePadding="@dimen/padding_extra_small" | ||
android:text="@string/copy_url" | ||
android:theme="@style/FlatButton.Simplestyle" /> | ||
android:layout_width="wrap_content" | ||
android:text="@string/copy" | ||
android:theme="@style/FlatButton.Simplestyle" > | ||
</android.support.v7.widget.AppCompatButton> | ||
|
||
</LinearLayout> | ||
</RelativeLayout> | ||
|
||
<RelativeLayout | ||
android:id="@+id/wp_dialog_section_connect" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:paddingLeft="24dp" | ||
android:paddingRight="24dp" | ||
android:paddingTop="@dimen/padding_large" | ||
android:orientation="vertical"> | ||
android:layout_width="match_parent" | ||
android:paddingBottom="@dimen/padding_medium" | ||
android:paddingEnd="@dimen/padding_extra_extra_large" | ||
android:paddingLeft="@dimen/padding_extra_extra_large" | ||
android:paddingRight="@dimen/padding_extra_extra_large" | ||
android:paddingStart="@dimen/padding_extra_extra_large" | ||
android:paddingTop="@dimen/padding_large" > | ||
|
||
<TextView | ||
android:id="@+id/wp_dialog_connect_summary" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="@dimen/padding_medium" | ||
android:gravity="start" | ||
android:layout_height="wrap_content" | ||
android:layout_width="match_parent" | ||
android:text="@string/wordpress_connect_summary" | ||
android:textColor="?attr/noteTitleColor" /> | ||
android:textColor="?attr/noteTitleColor" > | ||
</TextView> | ||
|
||
</RelativeLayout> | ||
</LinearLayout> | ||
|
||
</LinearLayout> |
25 changes: 17 additions & 8 deletions
25
Simplenote/src/main/res/layout/list_item_single_choice.xml
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,14 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.v7.widget.AppCompatCheckedTextView xmlns:android="http://schemas.android.com/apk/res/android" | ||
|
||
<android.support.v7.widget.AppCompatCheckedTextView | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@android:id/text1" | ||
android:layout_width="match_parent" | ||
android:layout_height="?android:attr/listPreferredItemHeightSmall" | ||
android:textAppearance="?android:attr/textAppearanceListItemSmall" | ||
android:gravity="center_vertical" | ||
android:checkMark="@null" | ||
android:drawableStart="?android:attr/listChoiceIndicatorSingle" | ||
android:drawableLeft="?android:attr/listChoiceIndicatorSingle" | ||
android:paddingStart="@dimen/padding_medium" | ||
android:drawablePadding="@dimen/padding_medium" | ||
android:drawableStart="?android:attr/listChoiceIndicatorSingle" | ||
android:gravity="center_vertical" | ||
android:layout_height="wrap_content" | ||
android:layout_width="match_parent" | ||
android:lineSpacingExtra="4dp" | ||
android:minHeight="?android:attr/listPreferredItemHeight" | ||
android:paddingEnd="@dimen/padding_medium" | ||
android:paddingLeft="@dimen/padding_medium" | ||
android:paddingRight="@dimen/padding_medium" /> | ||
android:paddingRight="@dimen/padding_medium" | ||
android:paddingStart="@dimen/padding_medium" | ||
android:textColor="?attr/noteTitleColor" | ||
android:textSize="18sp" | ||
tools:text="Example Item" > | ||
</android.support.v7.widget.AppCompatCheckedTextView> |
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