android - tablelayout - 3 rows x 4 columns - each cell with TextView,Editview and Spinner -


good morning,

i trying design layout , wondering if possible @ all.

i think want tablelayout 3 rows , 4 columns. within each cell want have textview editview below textview , spinner below editview. objective user enter values , select unit of measurement, inches or millimeters. textview going identify name of parameter, user enters number , selects unit of measurement.

i first tried 3 things (textview, editview , spinner) underneath each other no success. can textview , editview working when add spinner not showup. can textview, editview , 2 buttons working , can spinners working life of me can't textview,editview , spinner working although no errors when debugging or running. trying within relativeview can stack 3 things together. thought if can relativeview working can put inside tableview , 3 rows of 4 inputs accross or 12 total parameters.

does make sense? right approach create way of inputting parameters, reason trying instead of linearview want see values @ 1 time on nice grid layout.

i anxiously await of assistance, in advance!

obviously i'm not getting setting unique ids or layout height/widths elements, structure:

<tablelayout>   <tablerow>     <linearlayout       android:orientation="horizontal">       <include layout="@layout/form_fields" />     </linearlayout>     <linearlayout       android:orientation="horizontal">       <include layout="@layout/form_fields" />     </linearlayout>     <linearlayout       android:orientation="horizontal">       <include layout="@layout/form_fields" />     </linearlayout>     <linearlayout       android:orientation="horizontal">       <include layout="@layout/form_fields" />     </linearlayout>   </tablerow>   <tablerow>     <linearlayout       android:orientation="horizontal">       <include layout="@layout/form_fields" />     </linearlayout>     <linearlayout       android:orientation="horizontal">       <include layout="@layout/form_fields" />     </linearlayout>     <linearlayout       android:orientation="horizontal">       <include layout="@layout/form_fields" />     </linearlayout>     <linearlayout       android:orientation="horizontal">       <include layout="@layout/form_fields" />     </linearlayout>   </tablerow>   <tablerow>     <linearlayout       android:orientation="horizontal">       <include layout="@layout/form_fields" />     </linearlayout>     <linearlayout       android:orientation="horizontal">       <include layout="@layout/form_fields" />     </linearlayout>     <linearlayout       android:orientation="horizontal">       <include layout="@layout/form_fields" />     </linearlayout>     <linearlayout       android:orientation="horizontal">       <include layout="@layout/form_fields" />     </linearlayout>   </tablerow> </tablelayout> 

then @layout/form_fields looks this:

<linearlayout   android:orientation="vertical">   <textview />   <edittext />   <spinner /> </linearlayout> 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -