je le ImageView suivant et TextView: Comment puis-je aligner mon ImageView avec mon TextView dans un LinearLayout?
Voici le XML:
<LinearLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/headerLinearLay" android:orientation="horizontal">
<ImageView android:src="@drawable/icon" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/avatarImageView"></ImageView>
<TextView android:layout_height="wrap_content" android:id="@+id/usernameTextView" android:text="TextView" android:layout_width="wrap_content" android:paddingLeft="4px"></TextView>
</LinearLayout>
Comment puis-je faire l'image et le texte sont positionnés à la même hauteur? Je veux aussi le ImageView d'être dans le coin
double possible de [Android: Utilisation alignBaseline pour une image de texte suivant] (http://stackoverflow.com/questions/5102532/android-using-alignbaseline-pour-un-image-suivant-texte) –