Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2363b5fa authored by Xavier Ducrohet's avatar Xavier Ducrohet Committed by Android (Google) Code Review
Browse files

Merge "LayoutLib: support for Path and BitmapShader using delegates."

parents 3f3c58f1 d348b6ea
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<com.android.test.hwui.PathsActivity.PathsView
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
</com.android.test.hwui.PathsActivity.PathsView>
+6 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<com.android.test.hwui.ShadersActivity.ShadersView
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
</com.android.test.hwui.ShadersActivity.ShadersView>
+6 −6
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ public class PathsActivity extends Activity {
        setContentView(view);
    }

    static class PathsView extends View {
    public static class PathsView extends View {
        private final Bitmap mBitmap1;
        private final Paint mSmallPaint;
        private final Paint mMediumPaint;
@@ -50,7 +50,7 @@ public class PathsActivity extends Activity {
        private final float mOffset;
        private final Paint mLinePaint;

        PathsView(Context c) {
        public PathsView(Context c) {
            super(c);

            mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1);
Loading