diff options
author | 2016-05-09 08:49:29 -0700 | |
---|---|---|
committer | 2016-05-09 08:49:29 -0700 | |
commit | 796c5bb4655a511553970e111c96d90963fb9ae4 (patch) | |
tree | c6ac0daf5a9a1756ddc55ec09728b2c0d3b31b29 /platform_tools/android/apps/viewer/src/main/res | |
parent | 5a493cdbeca87f85e2b08914c176c29d914083d9 (diff) |
Initial commit of our new Android app to demo Skia.
Currently, there's only a simple Activity with a title bar and a surface view
that connects with Skia viewer native application.
Before integrating user action events, I want to make sure that the design and
implementation so far are good. Note that the old NativeApplication-based
Activity (ViewerActivity) is still there for reference and test purposes. It
will be removed eventually.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1952323004
Review-Url: https://codereview.chromium.org/1952323004
Diffstat (limited to 'platform_tools/android/apps/viewer/src/main/res')
-rw-r--r-- | platform_tools/android/apps/viewer/src/main/res/layout/activity_main.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/platform_tools/android/apps/viewer/src/main/res/layout/activity_main.xml b/platform_tools/android/apps/viewer/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000000..6597a48dcc --- /dev/null +++ b/platform_tools/android/apps/viewer/src/main/res/layout/activity_main.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/mainLayout" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".ViewerActivity"> + + <SurfaceView + android:id="@+id/surfaceView" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_centerVertical="true" + android:layout_centerHorizontal="true" /> + +</LinearLayout> |