I'm trying to make an app that involves writing some poems in Arabic language, however I'm having difficulties in making the poem look justified to look nice when reading them.
I'm using TableLayout to fill in the poem:
<TableLayout
android:id="@+id/whole_line_table"
android:layout_width="match_parent"
android:layout_height="50dp"
android:gravity="center_vertical"
android:stretchColumns="1"
>
<TableRow
android:padding="6dp">
<TextView
android:layout_width="0dp"
android:id="@+id/poem2_textView"
android:layout_weight="1"
android:gravity="right"
android:textSize="15sp"
tools:text="Some text here"
/>
<TextView
android:id="@+id/poem1_textView"
android:layout_width="0dp"
android:layout_weight="1"
android:gravity="right"
android:textSize="15sp"
tools:text="Some text here"
android:maxLines="1"/>
</TableRow>
</TableLayout>
Example of how I want the poem to appear in the image below
You can see how each verse in the poem start and end together and notice the space between them.
Screen shot of what I have in layout so far shown below enter image description here
I want the right part to reach to end not half the textView only.
I'm totally new to developing apps so please excuse me for any bad coding look