| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:paddingBottom="@dimen/activity_vertical_margin" |
| android:paddingLeft="@dimen/activity_horizontal_margin" |
| android:paddingRight="@dimen/activity_horizontal_margin" |
| android:paddingTop="@dimen/activity_vertical_margin" |
| tools:context=".SlidePresenterActivity"> |
| |
| <ImageView |
| android:id="@+id/slideView" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentTop="true" |
| android:layout_centerHorizontal="true" |
| android:layout_weight="0.5" |
| android:adjustViewBounds="true" |
| android:src="@drawable/slide1" |
| ></ImageView> |
| |
| <LinearLayout |
| android:id="@+id/navigateButtonLinearLayout" |
| android:layout_width="fill_parent" |
| android:layout_height="70dp" |
| android:layout_below="@+id/slideView"> |
| |
| <Button |
| android:id="@+id/prevButton" |
| android:layout_width="0dp" |
| android:layout_height="70dp" |
| android:layout_weight="0.3" |
| android:onClick="prevSlide" |
| android:text="Prev"></Button> |
| |
| |
| <Button |
| android:id="@+id/nextButton" |
| android:layout_width="0dp" |
| android:layout_height="70dp" |
| android:layout_weight="0.7" |
| android:onClick="nextSlide" |
| android:text="Next" /> |
| </LinearLayout> |
| |
| <TextView |
| android:id="@+id/textView" |
| android:layout_width="match_parent" |
| android:layout_height="160dp" |
| android:layout_below="@+id/navigateButtonLinearLayout" |
| android:text="" |
| android:textAppearance="?android:attr/textAppearanceLarge" /> |
| |
| <LinearLayout |
| android:id="@+id/slidePreviewLinearLayout" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentBottom="true" |
| android:layout_below="@+id/textView"> |
| |
| <ImageView |
| android:id="@+id/prevSlide" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="0.3" /> |
| |
| <View |
| android:id="@+id/strut1" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight=".03" /> |
| |
| <ImageView |
| android:id="@+id/currSlide" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="0.3" |
| android:src="@drawable/slide1"/> |
| |
| <View |
| android:id="@+id/strut2" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight=".03" /> |
| |
| <ImageView |
| android:id="@+id/nextSlide" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="0.3" |
| android:src="@drawable/slide2"/> |
| </LinearLayout> |
| |
| </RelativeLayout> |