android tablelayout expand row height to listview contents -


I have a table layout for a form of two columns - field name and field value. In some cases, the field value is a checklist. I like the line height of the "Checklist" row to expand, so I can see all the items in the list view.

The following code in a small vertical scroll view, how do I raise the height of the line in the same column as the first field name so that I can see the entire list? (The frame layout in the table cell is such, so I can overlay an icon or text).

  // Table Layout Table = FindVBIID & lt; Table layout & gt; (Resource.indexormal); // A new table row tableRow line = new TableRow (this); // Add Field Name (Left Column) TextView rowName = New TextView (this); RowName.Text = field.Name + ":"; Line name Gravity = gravity flogs Wright | GravityFlags.CenterVertical; TableRow.LayoutParams tableLayoutParams = New TableRow.LayoutParams (LinearLayout.LayoutParams.FillParent, LinearLayout.LayoutParams.FillParent); Table layout paragraph Gravity = gravity flogs Wright | GravityFlags.CenterVertical; Table layout Brick = 1.0 f; Table layout paragraph Wathth = 0; Line. Adwew (row name, table layout param); // Add field value (correct column - in this case, a list view for a checklist) FrameLayout Frame Layout = New Frame Layout (this); & Lt; String & gt; Strings = field. Toolist (); See list view list = new list view (this); ListView.Adapter = New ListViewFormAdapterCheckList (this, strings); FrameLayout.AddView (ListView); Table LayoutParons = New Tablerops Layoutperms (table layout, layout side, vip content, table layout, layout pam, wad content); Table layoutParams Set margins (0, 10, 0, 0); Table layout paragraph Wathth = 0; Line. Edve (frame layout, table layout param);  

This work was never found with the listing view. Instead a linerlayout is used ...

  table table layout table = findvibid & lt; Table layout & gt; (Resource.indexormal); // A new table row tableRow line = new TableRow (this); // Enter the field name at the top of the line line. Gravity = Gravity Flags Wright | GravityFlags.Top; Line name .Set padding (0, 20, 20, 0); // frame layout so we can overlay an image / icon on the list FrameLayout frame layout = new frame layout (this); FrameLayout.Id = kCurrentFieldId ++; FrameLayout.Tag = Index; MFieldToView [field] = framelayout; & Lt; String & gt; Strings = field. Toolist (); LinearLayout listLayout = new linear line (this); List Lieutenant Orationation = Android Widgets Orientation. Layout Infotent Inflator = (Layout Inflator) GetSystemSewire (Reference Layout Infolator Service); Forrest (string item strings) {See V = Inflator. Inflight (resource.laylot.list_checklist, blank); V.FindViewById & lt; Checkbox & gt; (Resource.edit.checkbox). Text = object; ListLayout.AddView (v); } Frame layout. Edve (list layout); Table LayoutParons = New Tablerops Layoutperms (table layout, layoutparts, wad content, table layout, layoutpam, vip content); Table layoutParams Set margins (0, 10, 0, 0); Table layout paragraph Wathth = 0; Table layout VE = 2.0 F; Line. Edve (frame layout, table layout param);  

defined as list_checklist:

   

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -