Commit 5389583d authored by Varun Patil's avatar Varun Patil

Fix styles of action button badges

parent b129cbde
...@@ -217,7 +217,7 @@ public class BodyFragment extends BackHandledFragment { ...@@ -217,7 +217,7 @@ public class BodyFragment extends BackHandledFragment {
/* Check if user is already following /* Check if user is already following
* Initialize follow button */ * Initialize follow button */
followButton.setBackgroundColor(getResources().getColor(body.getBodyUserFollows() ? R.color.colorAccent : R.color.colorWhite)); followButton.setBackgroundColor(getResources().getColor(body.getBodyUserFollows() ? R.color.colorAccent : R.color.colorWhite));
followButton.setText(EventFragment.getCountBadgeSpannable("Follow", body.getBodyFollowersCount())); followButton.setText(EventFragment.getCountBadgeSpannable("FOLLOW", body.getBodyFollowersCount()));
followButton.setOnClickListener(new View.OnClickListener() { followButton.setOnClickListener(new View.OnClickListener() {
@Override @Override
......
...@@ -235,8 +235,8 @@ public class EventFragment extends BackHandledFragment { ...@@ -235,8 +235,8 @@ public class EventFragment extends BackHandledFragment {
goingButton.setBackgroundColor(getResources().getColor(status == Constants.STATUS_GOING ? R.color.colorAccent : R.color.colorWhite)); goingButton.setBackgroundColor(getResources().getColor(status == Constants.STATUS_GOING ? R.color.colorAccent : R.color.colorWhite));
// Show badges // Show badges
interestedButton.setText(getCountBadgeSpannable("Interested", event.getEventInterestedCount())); interestedButton.setText(getCountBadgeSpannable("INTERESTED", event.getEventInterestedCount()));
goingButton.setText(getCountBadgeSpannable("Going", event.getEventGoingCount())); goingButton.setText(getCountBadgeSpannable("GOING", event.getEventGoingCount()));
} }
/** /**
......
...@@ -99,11 +99,12 @@ ...@@ -99,11 +99,12 @@
<Button <Button
android:id="@+id/follow_button" android:id="@+id/follow_button"
style="?android:attr/buttonBarButtonStyle" style="?android:attr/buttonBarButtonStyle"
android:textAllCaps="false"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="0dp" android:layout_margin="0dp"
android:layout_weight="1" android:layout_weight="1"
android:text="Follow" android:text="FOLLOW"
android:textColor="@color/secondaryTextColor" /> android:textColor="@color/secondaryTextColor" />
</LinearLayout> </LinearLayout>
......
...@@ -152,11 +152,12 @@ ...@@ -152,11 +152,12 @@
<Button <Button
android:id="@+id/going_button" android:id="@+id/going_button"
style="?android:attr/buttonBarButtonStyle" style="?android:attr/buttonBarButtonStyle"
android:textAllCaps="false"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="0dp" android:layout_margin="0dp"
android:layout_weight="1" android:layout_weight="1"
android:text="Going" android:text="GOING"
android:textColor="@color/secondaryTextColor" /> android:textColor="@color/secondaryTextColor" />
<View <View
...@@ -171,11 +172,12 @@ ...@@ -171,11 +172,12 @@
<Button <Button
android:id="@+id/interested_button" android:id="@+id/interested_button"
style="?android:attr/buttonBarButtonStyle" style="?android:attr/buttonBarButtonStyle"
android:textAllCaps="false"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="0dp" android:layout_margin="0dp"
android:layout_weight="1" android:layout_weight="1"
android:text="Interested" android:text="INTERESTED"
android:textColor="@color/secondaryTextColor" /> android:textColor="@color/secondaryTextColor" />
</LinearLayout> </LinearLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment