You can set height and width like this:
myGraphView.setLayoutParams(new LayoutParams(width, height));
More Related Contents:
- How to get the width and height of an android.widget.ImageView?
- Setting a maximum width on a ViewGroup
- Android: get height of a view before it´s drawn
- Android layout with one side round [closed]
- Animate change of view background color on Android
- onMeasure custom view explanation
- Set the absolute position of a view
- setBackground vs setBackgroundDrawable (Android)
- Software keyboard resizes background image on Android
- How to implement a view holder?
- Overlapping Views in Android
- Redraw a single row in a listview [duplicate]
- Programmatic Views how to set unique id’s?
- Android : Get view Reference to a Menu Item
- Android – Get time of chronometer widget
- How to set the initial zoom/width for a webview
- Are parameters in strings.xml possible? [duplicate]
- Tab not taking full width on Tablet device [Using android.support.design.widget.TabLayout]
- How to get ActionBar view?
- Android Custom Layout – onDraw() never gets called
- Android gridview keep item selected
- Android – cannot capture backspace/delete press in soft. keyboard
- Android — How to allow horizontal and vertical scrolling
- Android: How can I pass parameters to AsyncTask’s onPreExecute()?
- What is the difference between getWidth/Height() and getMeasuredWidth/Height() in Android SDK?
- Difference between View and ViewGroup in Android
- Android, Can I use putExtra to pass multiple values
- android: what is the difference between focused, enabled, pressed, and selected states?
- Android: startActivityForResult & setResult for a view class and an activity class
- How to set foreground attribute to other non FrameLayout view