diff options
Diffstat (limited to 'tensorflow/contrib/lite/java/demo/app/src/main/res/layout-land/fragment_camera2_basic.xml')
-rw-r--r-- | tensorflow/contrib/lite/java/demo/app/src/main/res/layout-land/fragment_camera2_basic.xml | 92 |
1 files changed, 48 insertions, 44 deletions
diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/layout-land/fragment_camera2_basic.xml b/tensorflow/contrib/lite/java/demo/app/src/main/res/layout-land/fragment_camera2_basic.xml index 20f520814d..ef8a9e0845 100644 --- a/tensorflow/contrib/lite/java/demo/app/src/main/res/layout-land/fragment_camera2_basic.xml +++ b/tensorflow/contrib/lite/java/demo/app/src/main/res/layout-land/fragment_camera2_basic.xml @@ -13,51 +13,55 @@ See the License for the specific language governing permissions and limitations under the License. --> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="match_parent" + android:background="#bb7700" + android:orientation="horizontal"> + + <com.example.android.tflitecamerademo.AutoFitTextureView + android:id="@+id/texture" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight=".8"/> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight=".2" + android:orientation="vertical"> + + <ImageView + android:id="@+id/logoview" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:scaleType="centerInside" + android:src="@drawable/logo"/> - <LinearLayout + <ToggleButton + android:id="@+id/button" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textOff="@string/tflite" + android:textOn="@string/nnapi"/> + <NumberPicker + android:id="@+id/np" + android:layout_width="wrap_content" + android:layout_height="47dp" + android:layout_gravity="center_horizontal" + android:visibility="visible"/> + + <TextView + android:id="@+id/text" + android:textStyle="bold" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="#bb7700" - android:orientation="horizontal" - android:weightSum="100"> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_weight="30" - android:orientation="vertical"> - - <com.example.android.tflitecamerademo.AutoFitTextureView - android:id="@+id/texture" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_weight="100" /> - - <ImageView - android:id="@+id/logoview" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_weight="100" - android:scaleType="centerCrop" - android:src="@drawable/logo" /> - - </LinearLayout> - - <TextView - android:id="@+id/text" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_weight="70" - android:paddingLeft="5dp" - android:paddingTop="20dp" - android:textColor="#FFF" - android:textSize="20sp" - android:textStyle="bold" /> - - </LinearLayout> - -</RelativeLayout> + android:paddingTop="20dp" + android:textColor="#FFF" + android:textSize="20sp"/> + + </LinearLayout> +</LinearLayout> + |