Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

TextView.LineSpacingMultiplier property not available as advertised

$
0
0

In a layout I decrease the line spacing of a text view by using the attribute

android:lineSpacingMultiplier="0.8"

At run time I want to read the value of that attribute on the textview like this:

var title = FindViewById<TextView>(Resource.Id.screen_name);
   Console.WriteLine("Line multiplier: {0}", title.LineSpacingMultiplier);

which throws this error:

Java.Lang.NoSuchMethodError: getLineSpacingMultiplier

Is there another way to get hold of this value?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>