Skip to content

Commit

Permalink
Baseline aligned DN Story actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbutcher committed May 14, 2016
1 parent 992fe2d commit 81069ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/io/plaidapp/ui/DesignerNewsStory.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public class DesignerNewsStory extends Activity {
private ElasticDragDismissFrameLayout.SystemChromeFader chromeFader;
@Nullable @BindView(R.id.backdrop_toolbar) CollapsingTitleLayout collapsingToolbar;
@Nullable @BindView(R.id.story_title_background) PinnedOffsetView toolbarBackground;
private Button upvoteStory;
private TextView upvoteStory;
private EditText enterComment;
private ImageButton postComment;
@BindInt(R.integer.fab_expand_duration) int fabExpandDuration;
Expand Down Expand Up @@ -462,7 +462,7 @@ public void loadImage(String src, ImageLoadingSpan loadingSpan) {
storyComment.setVisibility(View.GONE);
}

upvoteStory = (Button) header.findViewById(R.id.story_vote_action);
upvoteStory = (TextView) header.findViewById(R.id.story_vote_action);
upvoteStory.setText(getResources().getQuantityString(R.plurals.upvotes, story.vote_count,
NumberFormat.getInstance().format(story.vote_count)));
upvoteStory.setOnClickListener(new View.OnClickListener() {
Expand All @@ -472,7 +472,7 @@ public void onClick(final View v) {
}
});

final Button share = (Button) header.findViewById(R.id.story_share_action);
final TextView share = (TextView) header.findViewById(R.id.story_share_action);
share.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/designer_news_story_description.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
android:layout_height="0dp"
android:layout_weight="1" />

<Button
<io.plaidapp.ui.widget.BaselineGridTextView
android:id="@+id/story_vote_action"
android:layout_width="0dp"
android:layout_height="wrap_content"
Expand All @@ -66,7 +66,7 @@
android:layout_height="0dp"
android:layout_weight="1" />

<Button
<io.plaidapp.ui.widget.BaselineGridTextView
android:id="@+id/story_share_action"
android:layout_width="0dp"
android:layout_height="wrap_content"
Expand Down

0 comments on commit 81069ad

Please sign in to comment.