I have one layout it contains data which will display to user when he press textview.In that lay out it contain lot of data that's way i use one string resource file to display that data and by using setResource i will access that file when ever i want.Everything is fine it display the data but alignment of data is not good.I want data will display in the format of Justified.
Note -I already try the WebView ,it is working but it don't take resource file and i want use the textview only.
Following is the code.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/actionbar_textview"
android:layout_margin="@dimen/fab_margin"
/></LinearLayout>
TextView textviewTitle = (TextView) viewActionBar.findViewById(R.id.actionbar_textview);
textviewTitle.setText(getResources().getString(R.string.terms_services_title));
This R.string.terms_services_title
file contain data.