RelativeLayout android:gravity not use below api 16? -


i write show video's name , mark.

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_weight="1"         android:gravity="left"         android:paddingbottom="7dp" >         <textview             android:id="@+id/drama_mark"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparentright="true"             android:includefontpadding="false"             android:textcolor="#ff9313"             android:textsize="16dp"             android:layout_marginleft="8dp"             android:text="8.8"/>         <textview             android:id="@+id/drama_name"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:includefontpadding="false"             android:gravity="left|end"             android:textcolor="#ff323232"             android:textsize="16dp"             android:text="see again"             android:layout_toleftof="@id/drama_mark" />     </relativelayout> 

but not use below android 16.why show in right?the video, name maybe 2 or more lines.i have try many times ,please me. enter image description here

try this:

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_weight="1"             android:gravity="left"             android:paddingbottom="7dp" > <textview     android:id="@+id/drama_mark"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:includefontpadding="false"     android:textcolor="#ff9313"     android:layout_alignparentright="true"     android:textsize="16dp"     android:layout_marginleft="8dp"     android:text="8.8"/> <textview     android:id="@+id/drama_name"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:includefontpadding="false"     android:gravity="left|start"     android:textcolor="#ff323232"     android:layout_alignparentleft="true"     android:textsize="16dp"     android:layout_toleftof="@+id/drama_mark"     android:text="see again gbfayufbafubsayfbas fysgafysaf fyasgfysuafas" /> </relativelayout> 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -