[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SelectCategory and AddCategory activities refreshed #21

Merged
merged 13 commits into from
Jul 31, 2013
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add a category label and change the "Category +" button behavior
  • Loading branch information
maxme committed Jul 29, 2013
commit d107cd74b138f31fecc0d9c0c56ac3d0e3ce6d46
8 changes: 8 additions & 0 deletions res/layout/edit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,20 @@
android:hint="@string/tags_separate_with_commas"
android:inputType="textAutoCorrect" />

<TextView
android:id="@+id/categoryLabel"
style="@style/WordPressSubHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/category" />

</LinearLayout>

<org.wordpress.android.util.FlowLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:id="@+id/sectionCategories" android:paddingLeft="8dp">
</org.wordpress.android.util.FlowLayout>

<RelativeLayout
android:id="@+id/sectionLocation"
android:layout_width="fill_parent"
Expand Down
5 changes: 0 additions & 5 deletions src/org/wordpress/android/ui/posts/EditPostActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1362,11 +1362,6 @@ private void populateSelectedCategories() {

// Add select category button
Button selectCategory = (Button) layoutInflater.inflate(R.layout.category_select_button, null);
if (mCategories.size() == 0) {
selectCategory.setText(getResources().getText(R.string.category));
} else {
selectCategory.setText("");
}
selectCategory.setOnClickListener(this);
sectionCategories.addView(selectCategory);
}
Expand Down