Make A Text View Overlay Another Text View
I am trying to make a text view to overlay the above text view, I have tried the text align with no success; I can accomplish this by adding a large amount of padding but I do not
Solution 1:
Reading this, it appears you want the project_name
view to overlay the org_name
view. You can do this by aligning the bottom of the views.
Change this line:
android:layout_below="@id/org_name"
To this:
android:layout_alignBottom="@id/org_name"
That will align the bottom of the two views, effectively placing project_name
on top of the org_name
view.
Solution 2:
The reason they aren't overlapping is the android:layout_below="@id/org_name"
in the second TextView. If you remove that, I think it should work as you want it to. If not, you might want to try a FrameLayout instead of a RelativeLayout.
Post a Comment for "Make A Text View Overlay Another Text View"