uopspop

Untitled

Sep 27th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.74 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:tools="http://schemas.android.com/tools"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:orientation="vertical"
  7.    android:paddingBottom="@dimen/activity_vertical_margin"
  8.    android:paddingLeft="@dimen/activity_horizontal_margin"
  9.    android:paddingRight="@dimen/activity_horizontal_margin"
  10.    android:paddingTop="@dimen/activity_vertical_margin"
  11.    tools:context="com.example.sam.scrollviewprac_horizontal.MainActivity">
  12.  
  13.     <LinearLayout
  14.        android:layout_width="match_parent"
  15.        android:layout_height="wrap_content"
  16.        android:orientation="horizontal">
  17.         <Button
  18.            android:id="@+id/btAdd"
  19.            android:layout_width="wrap_content"
  20.            android:layout_height="wrap_content"
  21.            android:onClick="onAddClick"
  22.            android:text="@string/text_btAdd"/>
  23.  
  24.         <TextView
  25.            android:id="@+id/tvCount"
  26.            android:layout_width="wrap_content"
  27.            android:layout_height="wrap_content"
  28.            android:layout_marginLeft="15dp"
  29.            android:text="9"/>
  30.  
  31.     </LinearLayout>
  32.  
  33.     <HorizontalScrollView
  34.        android:id="@+id/horizontalScrollView"
  35.        android:layout_width="match_parent"
  36.        android:layout_height="wrap_content"
  37.        android:padding="6dp">
  38.         <LinearLayout
  39.            android:id="@+id/linearLayout"
  40.            android:layout_width="match_parent"
  41.            android:layout_height="wrap_content"
  42.            android:padding="6dp"
  43.            android:orientation="horizontal">
  44.         </LinearLayout>
  45.     </HorizontalScrollView>
  46.  
  47. </LinearLayout>
Add Comment
Please, Sign In to add comment