android - How to change layout_weight in my View (programmatically) -
How do I use Java code to replace My XML: layout_weight of my code
View object from XML? I have included the last thing that I tried below
vynosy is my specialty with the value that I want to set
see hospVyslLineAppColor = (see) View.findViewById (R.id.hospodarsky_vysledok_line_appcolor). HospVyslLineAppcolor.setLayoutParams (New LinearLayout.LayoutParams (Layout Paramount. MATCH_PARENT, Layout P. WRAP_CONTENT, Math. Falcon (Float) vynosy)));
& lt; Android: id = "@ + id / hospodarsky_vysledok_line_appcolor" Android: layout_width = "match_parent" android: layout_height = "20dp" Android: layout_weight = "69382" Android: background = "# a8a8a8" /> You can use it for linerlight
Comments
Post a Comment