I believe you can set layout_width and layout_height to textview element dynamically using something like:
I\'m using a FrameLayout to display (on demand) some text on the screen. I want the text to be in a certain place, so I thought setGravity() would do the job... but no, it seems开发者_C百科 to have no
I tried to show new view on the center of relativelayout. But the new view always places on the top of screen.
I have a Listview in my xml. The structure of it like that: <ListView android:id=\"@+id/SeriesCastListIt开发者_Go百科emView\"
I am adding a button dynamically to a ListActivity. As follows: setContentView(R.layout.listview_singlegrey);
Working with the XML file was easy as I could specify the parameters as <android:layout_width=\"fill_parent\" android:layout_height=\"wrap_content\">
I\'m trying to set some layout params to an edittext in a dialog but it seems to have no effect. Why? How can I reduce the width of my edittext?
Hi I\'m new to android world. I\'m working on an application that supports arabic and english languages.So I made my design for english language in the xml and through the code when the user wants to
I\'m trying to write my own custom View and I have problem with LayoutParams. The idea is to extend ViewGroup (LinearLayout)
I have a linear layout that is contained inside a relative layout. It is set in the XML file to be to the right of another linear layout (this works fine).