I had a scenario where I need to have spaces for android:text attribute value.
android:text="Input type" ---> I need output with 5 spaces between "Input" and "type" Strings
How can I achieve the above result.
Thanks in Advance
I had a scenario where I need to have spaces for android:text attribute value.
android:text="Input type" ---> I need output with 5 spaces between "Input" and "type" Strings
How can I achieve the above result.
Thanks in Advance
<TextView
android:id="@+id/xxx"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/empty_spaces" />
in strings.
<string name="empty_spaces">Input\t\t type</string>
It's better to use string ressources.
Put all your string value in a file on res/values/strings.xml.
If you want to add space you can do it by surround your text by double quotes.
You can see an example in the documentation : http://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling