I am developing for Android and I ran into a problem. When I use addView method of ViewGroup to add a ViewGroup object, it does not display anything on the screen.
Can anyone help me?
I am trying to create a small list (3 rows) where there are one RadioButton and one EditText view on each row arranged horizontally. I want the radiobuttons to be in the same RadioGroup. I can't add the radio button and the edit text view to a linearlayout because then Android yells about the radiobutton having another parent.
This ViewGroup has a bunch of children. I need to animate a few and change their position. I understand that Android animations move just the bitmap and not the real object. I've been trying to MOVE them by following various resources but have failed.
I am using following code to inflate a view in my layout under its child LinearLayout:
LayoutInflater vi = (LayoutInflater)getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View v = vi.inflate(R.layout.your_layout, null);
// fill in any details dynamically here
TextView textView = (TextView) v.findViewById(R.id.a_text_view);
// insert into