summaryrefslogtreecommitdiff
path: root/android/res/layout/buttons.xml
diff options
context:
space:
mode:
authorPaul Gardiner <paul@glidos.net>2012-02-20 16:43:54 +0000
committerTor Andersson <tor.andersson@artifex.com>2012-02-21 17:38:23 +0100
commit3b20948bb65fd52c15935a660e19cfeff75af2fc (patch)
treed3cd03c928ca5b7b6a02614ef9b99bcb4eedea8c /android/res/layout/buttons.xml
parenta1538974d2abf2d29a3a70d018ee681bc8a517ba (diff)
downloadmupdf-3b20948bb65fd52c15935a660e19cfeff75af2fc.tar.xz
Go back to using a direct fade animation in favour of the ViewAnimator
Diffstat (limited to 'android/res/layout/buttons.xml')
-rw-r--r--android/res/layout/buttons.xml207
1 files changed, 97 insertions, 110 deletions
diff --git a/android/res/layout/buttons.xml b/android/res/layout/buttons.xml
index cb5b4075..82cfc94d 100644
--- a/android/res/layout/buttons.xml
+++ b/android/res/layout/buttons.xml
@@ -1,129 +1,116 @@
<?xml version="1.0" encoding="utf-8"?>
-<ViewAnimator xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/buttons"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:inAnimation="@anim/fade_in"
- android:outAnimation="@anim/fade_out">
+ android:layout_height="match_parent" >
- <RelativeLayout
- android:id="@+id/dummy"
- android:layout_width="0dp"
- android:layout_height="0dp" />
-
- <RelativeLayout
+ <SeekBar
+ android:id="@+id/pageSlider"
android:layout_width="match_parent"
- android:layout_height="match_parent" >
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:layout_centerHorizontal="true"
+ android:layout_margin="10dp"
+ android:background="@drawable/slider" />
- <SeekBar
- android:id="@+id/pageSlider"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
- android:layout_margin="10dp"
- android:background="@drawable/slider" />
+ <ViewSwitcher
+ android:id="@+id/switcher"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_below="@+id/topBar"
+ android:layout_centerHorizontal="true" >
- <ViewSwitcher
- android:id="@+id/switcher"
- android:layout_width="wrap_content"
+ <RelativeLayout
+ android:id="@+id/topBar"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:layout_below="@+id/topBar"
- android:layout_centerHorizontal="true" >
+ android:background="#CC444444"
+ android:paddingBottom="0dp"
+ android:paddingLeft="5dp"
+ android:paddingRight="5dp"
+ android:paddingTop="0dp" >
- <RelativeLayout
- android:id="@+id/topBar"
- android:layout_width="match_parent"
+ <ImageButton
+ android:id="@+id/searchButton"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:background="#CC444444"
- android:paddingBottom="0dp"
- android:paddingLeft="5dp"
- android:paddingRight="5dp"
- android:paddingTop="0dp" >
+ android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ android:contentDescription="@string/search_document"
+ android:src="@drawable/ic_btn_search" />
- <ImageButton
- android:id="@+id/searchButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:contentDescription="@string/search_document"
- android:src="@drawable/ic_btn_search" />
+ <ImageButton
+ android:id="@+id/outlineButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_toLeftOf="@+id/searchButton"
+ android:contentDescription="@string/search_document"
+ android:src="@drawable/btn_star_big_off" />
- <ImageButton
- android:id="@+id/outlineButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_toLeftOf="@+id/searchButton"
- android:layout_centerVertical="true"
- android:contentDescription="@string/search_document"
- android:src="@drawable/btn_star_big_off" />
+ <TextView
+ android:id="@+id/docNameText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_centerVertical="true"
+ android:layout_toLeftOf="@+id/outlineButton"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+ </RelativeLayout>
- <TextView
- android:id="@+id/docNameText"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:singleLine="true"
- android:layout_alignParentLeft="true"
- android:layout_toLeftOf="@+id/outlineButton"
- android:layout_centerVertical="true"
- android:textAppearance="?android:attr/textAppearanceMedium" />
- </RelativeLayout>
+ <RelativeLayout
+ android:id="@+id/topBar2"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="#CC444444" >
- <RelativeLayout
- android:id="@+id/topBar2"
- android:layout_width="match_parent"
+ <Button
+ android:id="@+id/cancel"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:background="#CC444444" >
-
- <Button
- android:id="@+id/cancel"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:text="@string/cancel" />
+ android:layout_alignParentLeft="true"
+ android:layout_centerVertical="true"
+ android:text="@string/cancel" />
- <EditText
- android:id="@+id/searchText"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_toLeftOf="@+id/searchBack"
- android:layout_toRightOf="@+id/cancel"
- android:singleLine="true"
- android:inputType="text" />
+ <EditText
+ android:id="@+id/searchText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_toLeftOf="@+id/searchBack"
+ android:layout_toRightOf="@+id/cancel"
+ android:inputType="text"
+ android:singleLine="true" />
- <ImageButton
- android:id="@+id/searchBack"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_toLeftOf="@+id/searchForward"
- android:contentDescription="@string/search_backwards"
- android:src="@drawable/ic_media_previous" />
+ <ImageButton
+ android:id="@+id/searchBack"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_toLeftOf="@+id/searchForward"
+ android:contentDescription="@string/search_backwards"
+ android:src="@drawable/ic_media_previous" />
- <ImageButton
- android:id="@+id/searchForward"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:contentDescription="@string/search_forwards"
- android:src="@drawable/ic_media_next" />
- </RelativeLayout>
- </ViewSwitcher>
+ <ImageButton
+ android:id="@+id/searchForward"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ android:contentDescription="@string/search_forwards"
+ android:src="@drawable/ic_media_next" />
+ </RelativeLayout>
+ </ViewSwitcher>
- <TextView
- android:id="@+id/pageNumber"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_above="@+id/pageSlider"
- android:layout_centerHorizontal="true"
- android:layout_marginBottom="10dp"
- android:background="@drawable/page_num"
- android:textAppearance="?android:attr/textAppearanceMedium" />
- </RelativeLayout>
+ <TextView
+ android:id="@+id/pageNumber"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_above="@+id/pageSlider"
+ android:layout_centerHorizontal="true"
+ android:layout_marginBottom="10dp"
+ android:background="@drawable/page_num"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
-</ViewAnimator> \ No newline at end of file
+</RelativeLayout> \ No newline at end of file