Skip to content

Commit b0f9687

Browse files
committed
Changed the bounds of the image
1 parent 3797d71 commit b0f9687

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

app/src/main/java/fr/free/nrw/commons/achievements/AchievementsActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public class AchievementsActivity extends NavigationBaseActivity {
3434

3535
private static final double BADGE_IMAGE_WIDTH_RATIO = 0.4;
36-
private static final double BADGE_IMAGE_HEIGHT_RATIO = 0.36;
36+
private static final double BADGE_IMAGE_HEIGHT_RATIO = 0.3;
3737

3838
@BindView(R.id.achievement_badge) ImageView imageView;
3939
@BindView(R.id.toolbar) android.support.v7.widget.Toolbar toolbar;
@@ -60,7 +60,7 @@ protected void onCreate(Bundle savedInstanceState) {
6060
imageView.getLayoutParams();
6161
params.height = (int) (height*BADGE_IMAGE_HEIGHT_RATIO);
6262
params.width = (int) (width*BADGE_IMAGE_WIDTH_RATIO);
63-
imageView.setImageResource(R.drawable.sydney_opera_house);
63+
imageView.setImageResource(R.drawable.featured);
6464
imageView.requestLayout();
6565

6666
setSupportActionBar(toolbar);

app/src/main/res/layout/activity_achievements.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,12 @@
188188
android:layout_height="wrap_content"
189189
style="?android:textAppearanceMedium"
190190
android:layout_alignParentRight="true"
191-
android:layout_marginEnd="@dimen/activity_margin_horizontal"
191+
android:layout_marginEnd="44dp"
192192
android:layout_marginTop="@dimen/activity_margin_horizontal"
193193
android:layout_marginStart="@dimen/activity_margin_horizontal"
194194
android:text="2"
195-
android:layout_marginLeft="@dimen/activity_margin_horizontal" />
195+
android:layout_marginLeft="@dimen/activity_margin_horizontal"
196+
android:layout_marginRight="44dp" />
196197

197198
</RelativeLayout>
198199

@@ -226,11 +227,12 @@
226227
android:layout_height="wrap_content"
227228
style="?android:textAppearanceMedium"
228229
android:layout_alignParentRight="true"
229-
android:layout_marginEnd="@dimen/activity_margin_horizontal"
230+
android:layout_marginEnd="44dp"
230231
android:layout_marginTop="@dimen/activity_margin_horizontal"
231232
android:layout_marginStart="@dimen/activity_margin_horizontal"
232233
android:layout_marginLeft="@dimen/activity_margin_horizontal"
233-
android:text="2" />
234+
android:text="2"
235+
android:layout_marginRight="44dp" />
234236

235237
</RelativeLayout>
236238
</LinearLayout>

0 commit comments

Comments
 (0)