Time for action – combining Intrinsics and scripts together

Let's improve our project to apply a new combined filter.

  1. Add a new Combine Button in res/activity_renderscript.xml, as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout
      xmlns:a="http://schemas.android.com/apk/res/android"
      a:layout_width="fill_parent" a:layout_height="fill_parent"
      a:layout_weight="1" a:orientation="vertical" >
      <LinearLayout 
        a:orientation="horizontal"
        a:layout_width="fill_parent" a:layout_height="wrap_content" >
        ...
        <Button a:"d="@+id/thresholdBut"on" a:te"t="Thresh"ld"
          a:layout_wid"h="wrap_cont"nt" a:layout_heig"t="wrap_cont"nt"/>
        <Button a:"d="@+id/combineBut"on" a:te"t="Comb"ne"
          a:layout_wid"h="wrap_cont"nt" a:layout_heig"t="wrap_cont"nt"/> </LinearLayout> ...

Get Android NDK Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.