I'm trying to pass a @string/something
to a value converter so I can use it to format the output, so say I have a DateTime
value, I want to pass something like "Signup Date: {0}"
to the ValueConverter.
The problem is, the text above is translatable, so it came from the strings.xml
file of any given language. So far, I tried this:
<TextView
local:MvxBind="Text SignupDate, Converter=FriendlyDate, ConverterParameter=@string/release_date"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="5"
android:paddingTop="8dp"
style="@style/WhiteParagraphText" />
Note the ConverterParameter=@string/release_date
. How can I do it?