I want to know if its possible to enlarge a EditText in android from 0 until to fill its parent. I tried several things, but in the moment I have the LinearLayout and the EditText is added by code:
<LinearLayout
android:id="@+id/ll_buscarenlace"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="0.8"
android:gravity="right" >
-
EditText et = (EditText) new EditText(this.act);
LinearLayout ll = (LinearLayout) this.act.findViewById(R.id.ll_buscarenlace);
et.setWidth(0);
ll.addView(et);
for (int i=0; i<=ll.getWidth(); i++){
et.setWidth(i);
Thread.sleep(50);
}
But this is one of many things that I tried to do. Thanks in advance