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

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

  • <ImageView
    android:[email protected]+id/image_map_pin”
    android:layout_width=”wrap_content”
    android:layout_heignt=”wrap_content”
    android:[email protected]/map_pin />
  • android:[email protected]+id/image_map_pin”
    android:layout_width=”wrap_content”
    android:layout_heignt=”wrap_content”
    androi:layout_botttom=”@dimen/spacing_medium”
    android:[email protected]/map_pin />
  • <ImageView
    android:[email protected]+id/image_map_pin”
    android:layout_width=”wrap_content”
    android:layout_heignt=”wrap_content”
    android:layout_marginBottom=”@resources/spacing_medium”
    android:[email protected]/map_pin />
  • <ImageView
    android:[email protected]+id/image_map_pin”
    android:layout_width=”wrap_content”
    android:layout_heignt=”wrap_content”
    android:layout_marginBottom=”@dimen/spacing_medium”
    android:[email protected]/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