How to set layout_span through code
        Posted  
        
            by 
                L4N0
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by L4N0
        
        
        
        Published on 2011-01-09T01:46:51Z
        Indexed on 
            2011/01/09
            1:54 UTC
        
        
        Read the original article
        Hit count: 315
        
Hi,
Does anyone know how to set/change the android:layout_span="" of an EditText in Android at runtime. 
I already have the EditText defined in my XML file.
<TableRow android:paddingTop="20dip" android:gravity="center_horizontal">  <EditText android:layout_width="150dip" 
android:text="" android:layout_height="40dip" 
android:id="@+id/p" android:layout_span="2"></EditText></TableRow>
        © Stack Overflow or respective owner