Skip to content

Instantly share code, notes, and snippets.

View OssamaDroid's full-sized avatar

Ossama Bounnite OssamaDroid

  • Munich, Germany
View GitHub Profile
@okaybroda
okaybroda / ImageViewBaselineAlignTextView.xml
Created December 30, 2015 09:07
Example to align an ImageView to the baseline of a TextView.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent">
<ImageView
android:id="@+id/imageViewHello"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/img_star_05"
android:baselineAlignBottom="true"