mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Changed the bounds of the image
This commit is contained in:
parent
3797d714a1
commit
b0f9687a46
2 changed files with 8 additions and 6 deletions
|
|
@ -33,7 +33,7 @@ import fr.free.nrw.commons.theme.NavigationBaseActivity;
|
||||||
public class AchievementsActivity extends NavigationBaseActivity {
|
public class AchievementsActivity extends NavigationBaseActivity {
|
||||||
|
|
||||||
private static final double BADGE_IMAGE_WIDTH_RATIO = 0.4;
|
private static final double BADGE_IMAGE_WIDTH_RATIO = 0.4;
|
||||||
private static final double BADGE_IMAGE_HEIGHT_RATIO = 0.36;
|
private static final double BADGE_IMAGE_HEIGHT_RATIO = 0.3;
|
||||||
|
|
||||||
@BindView(R.id.achievement_badge) ImageView imageView;
|
@BindView(R.id.achievement_badge) ImageView imageView;
|
||||||
@BindView(R.id.toolbar) android.support.v7.widget.Toolbar toolbar;
|
@BindView(R.id.toolbar) android.support.v7.widget.Toolbar toolbar;
|
||||||
|
|
@ -60,7 +60,7 @@ public class AchievementsActivity extends NavigationBaseActivity {
|
||||||
imageView.getLayoutParams();
|
imageView.getLayoutParams();
|
||||||
params.height = (int) (height*BADGE_IMAGE_HEIGHT_RATIO);
|
params.height = (int) (height*BADGE_IMAGE_HEIGHT_RATIO);
|
||||||
params.width = (int) (width*BADGE_IMAGE_WIDTH_RATIO);
|
params.width = (int) (width*BADGE_IMAGE_WIDTH_RATIO);
|
||||||
imageView.setImageResource(R.drawable.sydney_opera_house);
|
imageView.setImageResource(R.drawable.featured);
|
||||||
imageView.requestLayout();
|
imageView.requestLayout();
|
||||||
|
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
|
|
|
||||||
|
|
@ -188,11 +188,12 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
style="?android:textAppearanceMedium"
|
style="?android:textAppearanceMedium"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_marginEnd="@dimen/activity_margin_horizontal"
|
android:layout_marginEnd="44dp"
|
||||||
android:layout_marginTop="@dimen/activity_margin_horizontal"
|
android:layout_marginTop="@dimen/activity_margin_horizontal"
|
||||||
android:layout_marginStart="@dimen/activity_margin_horizontal"
|
android:layout_marginStart="@dimen/activity_margin_horizontal"
|
||||||
android:text="2"
|
android:text="2"
|
||||||
android:layout_marginLeft="@dimen/activity_margin_horizontal" />
|
android:layout_marginLeft="@dimen/activity_margin_horizontal"
|
||||||
|
android:layout_marginRight="44dp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
@ -226,11 +227,12 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
style="?android:textAppearanceMedium"
|
style="?android:textAppearanceMedium"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_marginEnd="@dimen/activity_margin_horizontal"
|
android:layout_marginEnd="44dp"
|
||||||
android:layout_marginTop="@dimen/activity_margin_horizontal"
|
android:layout_marginTop="@dimen/activity_margin_horizontal"
|
||||||
android:layout_marginStart="@dimen/activity_margin_horizontal"
|
android:layout_marginStart="@dimen/activity_margin_horizontal"
|
||||||
android:layout_marginLeft="@dimen/activity_margin_horizontal"
|
android:layout_marginLeft="@dimen/activity_margin_horizontal"
|
||||||
android:text="2" />
|
android:text="2"
|
||||||
|
android:layout_marginRight="44dp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue