¡@

Home 

2014/10/16 ¤W¤È 08:14:27

android Programming Glossary: graphbar

my Custom View gets drawn only when added in onCreate

http://stackoverflow.com/questions/4163918/my-custom-view-gets-drawn-only-when-added-in-oncreate

Custom View gets drawn only when added in onCreate I made a GraphBar custom view that is a RelativeLayout with a TextView on the bottom and an ImageView varying in height above that. Here is.. with a TextView on the bottom and an ImageView varying in height above that. Here is the code public class GraphBar extends RelativeLayout private int mAvailHeight space for the bar component minus label private float mBarHeight 0.0 1.0.. private int mAvailHeight space for the bar component minus label private float mBarHeight 0.0 1.0 value public GraphBar Context context this context null public GraphBar Context context AttributeSet attrs this context attrs 0 public GraphBar..