android - TextViews overlapping in Relative layout -
i have these 2 textviews in content_main, beginner , can't figure out why overlapping in center, tried chanign , still doesn't work.
<textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancelarge" android:gravity="top" android:text="" android:id="@+id/nametextview" android:layout_alignparenttop="true" android:layout_centerhorizontal="true" android:textsize="35sp" android:textcolor="#1a237e" /> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancelarge" android:gravity="bottom" android:text="" android:id="@+id/temperaturetextview" android:layout_alignparenttop="false" android:layout_centerhorizontal="true" android:textsize="50sp" android:textcolor="#00bcd4" />
try adding code on second textview(@tempraturetextview
):
layout_below="@+id/nametextview"
Comments
Post a Comment