Given the following dimens.xml file, how would you define an ImageView with medium spacing at the bottom?

Advertisement

<?xml version=1.0 encoding=”utf-8″?>
<resources>
<dimen name=”spacing_medium”>8dp</dimen>
<dimen name=”spacing_large”>12dp</dimen>
</resources>

  • <ImageView
    android:id=@+id/image_map_pin”
    android:layout_width=”wrap_content”
    android:layout_heignt=”wrap_content”
    android:src=@drawable/map_pin />
  • android:id=@+id/image_map_pin”
    android:layout_width=”wrap_content”
    android:layout_heignt=”wrap_content”
    androi:layout_botttom=”@dimen/spacing_medium”
    android:src=@drawable/map_pin />
  • <ImageView
    android:id=@+id/image_map_pin”
    android:layout_width=”wrap_content”
    android:layout_heignt=”wrap_content”
    android:layout_marginBottom=”@resources/spacing_medium”
    android:src=@drawable/map_pin />
  • <ImageView
    android:id=@+id/image_map_pin”
    android:layout_width=”wrap_content”
    android:layout_heignt=”wrap_content”
    android:layout_marginBottom=”@dimen/spacing_medium”
    android:src=@drawable/map_pin />
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
G Certification Course We would like to show you notifications for the latest news and updates.
Dismiss
Allow Notifications
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend