summaryrefslogtreecommitdiffstats
path: root/docs/html/training/custom-views/create-view.jd
diff options
context:
space:
mode:
Diffstat (limited to 'docs/html/training/custom-views/create-view.jd')
-rw-r--r--docs/html/training/custom-views/create-view.jd10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/html/training/custom-views/create-view.jd b/docs/html/training/custom-views/create-view.jd
index 674bcc9..b849cb3 100644
--- a/docs/html/training/custom-views/create-view.jd
+++ b/docs/html/training/custom-views/create-view.jd
@@ -68,8 +68,8 @@ This constructor allows the layout editor to create and edit an instance of your
<pre class="prettyprint">
class PieChart extends View {
- public PieChart(Context ctx, AttributeSet attrs) {
- super(ctx, attrs);
+ public PieChart(Context context, AttributeSet attrs) {
+ super(context, attrs);
}
}
</pre>
@@ -104,7 +104,7 @@ enable this behavior in your custom view, you must:
</p>
<pre>
-&lt;resources>;
+&lt;resources>
&lt;declare-styleable name="PieChart">
&lt;attr name="showText" format="boolean" />
&lt;attr name="labelPosition" format="enum">
@@ -189,8 +189,8 @@ enable this behavior in your custom view, you must:
reads its attributes:</p>
<pre>
-public PieChart(Context ctx, AttributeSet attrs) {
- super(ctx, attrs);
+public PieChart(Context context, AttributeSet attrs) {
+ super(context, attrs);
TypedArray a = context.getTheme().obtainStyledAttributes(
attrs,
R.styleable.PieChart,