graphical-layout-editor

Use layout editor effectively on layouts with non-static fragments

烈酒焚心 提交于 2019-12-01 02:27:25
问题 With all the Android development tools greatness, especially as of version 21, the graphical layout editor is a powerful tool to have visual control over a layout with fragments for every configuration and locale. I'm aware that a typical Activity 's layout XML will contain static fragment tags with info embedded for the layout editor, for example tools:layout="@layout/book_collection_view_window_list" . However, because I need to replace the Fragments in my window dynamically, I cannot use

Error “java heap size” in Eclipse Android?

≯℡__Kan透↙ 提交于 2019-11-29 12:03:08
When I'm using the graphical layout editor after 5-10 minutes of working I get the error "java heap size". I tried to increase size in eclipse.ini: -Xms512m -Xmx1024m But it doesn't helped. Please tell me who encountered this problem and how to solve it? Raghunandan Your eclipse.ini settings will take effect only if you change following: Run -> External Tools -> External Tool Configurations. go to configuration that u use, under jre tab -select option Run in same JRE in workspace. For more info on the topic have a look at this link. What are the best JVM settings for Eclipse? If sometimes you

Can you set graphical layout preview-only text on a TextView?

核能气质少年 提交于 2019-11-28 06:47:31
I have a styled TextView whose real text is populated dynamically at runtime. The Graphical Layout view is very useful for getting a feel on how this component works with others in terms of look and feel, etc. There is no sensible default to this text field and I wish it to be blank before being populated. If I don't specify any text in the TextView declaration then the TextView is blank. I can set the text manually using: <TextView ... android:text="Preview text"/> and then switch to the Graphical Layout. However, I must remember to remove this or risk it being shipped in my production

Error “java heap size” in Eclipse Android?

丶灬走出姿态 提交于 2019-11-28 06:05:38
问题 When I'm using the graphical layout editor after 5-10 minutes of working I get the error "java heap size". I tried to increase size in eclipse.ini: -Xms512m -Xmx1024m But it doesn't helped. Please tell me who encountered this problem and how to solve it? 回答1: Your eclipse.ini settings will take effect only if you change following: Run -> External Tools -> External Tool Configurations. go to configuration that u use, under jre tab -select option Run in same JRE in workspace. For more info on

Can you set graphical layout preview-only text on a TextView?

有些话、适合烂在心里 提交于 2019-11-27 01:16:01
问题 I have a styled TextView whose real text is populated dynamically at runtime. The Graphical Layout view is very useful for getting a feel on how this component works with others in terms of look and feel, etc. There is no sensible default to this text field and I wish it to be blank before being populated. If I don't specify any text in the TextView declaration then the TextView is blank. I can set the text manually using: <TextView ... android:text="Preview text"/> and then switch to the