layoutparams
Android - setting layout params to TextView in millimeter
I believe you can set layout_width and layout_height to textview element dynamically using something like:[详细]
2023-04-11 14:08 分类:问答Android FrameLayout and TextView - why does LayoutParams work where setGravity() does not?
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[详细]
2023-04-06 22:53 分类:问答Controlling problem in android layouts
I tried to show new view on the center of relativelayout. But the new view always places on the top of screen.[详细]
2023-04-05 13:25 分类:问答Android ListView layout param set
I have a Listview in my xml. The structure of it like that: <ListView android:id=\"@+id/SeriesCastListIt开发者_Go百科emView\"[详细]
2023-03-22 12:42 分类:问答Problem setting the layout_gravity on a button using LayoutParams
I am adding a button dynamically to a ListActivity. As follows: setContentView(R.layout.listview_singlegrey);[详细]
2023-03-16 02:01 分类:问答Setting Layout parameters in android
Working with the XML file was easy as I could specify the parameters as <android:layout_width=\"fill_parent\" android:layout_height=\"wrap_content\">[详细]
2023-03-15 08:50 分类:问答How to set layout params to edittext in dialog?
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?[详细]
2023-03-13 15:31 分类:问答Source not found Exception while setting layoutparameters
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[详细]
2023-03-11 08:07 分类:问答Layout params of loaded view are ignored
I\'m trying to write my own custom View and I have problem with LayoutParams. The idea is to extend ViewGroup (LinearLayout)[详细]
2023-02-16 17:39 分类:问答How do I programmatically remove an existing rule that was defined in XML?
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).[详细]
2023-02-13 18:38 分类:问答