Layout TextView a proportion of available width

MartHughMartHugh ✭✭✭USMember ✭✭✭
edited January 2017 in Xamarin.Android

I am writing a ListView adapter, and part of this needs to allocate two TextView fields, such that each has 50% of the available width (i.e. one on the left up to halfway, the other from halfway to the right).

Looking at the TextView XML layout properties, "width" could be used but his has to match a specific number of px/dp/sp.

Is there anyway to specify widths (or heights for that matter) as a proportion of the containing view ?

Thanks.

Best Answers

Answers

  • Michael_ShapiroMichael_Shapiro ✭✭✭ USMember ✭✭✭

    You are very welcome :smile:

Sign In or Register to comment.