Kaydet (Commit) 797df291 authored tarafından Iain Billett's avatar Iain Billett

Some styling of document viewer. Transparent overlayed action bar with hide/show…

Some styling of document viewer. Transparent overlayed action bar with hide/show on tap. Navigation overlay with page thumbnails.
üst 677f10cd
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<!-- Original Document Loader activity - file Viewer --> <!-- Original Document Loader activity - file Viewer -->
<activity android:name=".android.DocumentLoader" <activity android:name=".android.DocumentLoader"
android:theme="@style/DocumentViewer"
android:label="DocumentLoader" android:label="DocumentLoader"
android:configChanges="orientation|keyboardHidden"> android:configChanges="orientation|keyboardHidden">
<!-- <intent-filter> <!-- <intent-filter>
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/document_viewer_root">
<ViewFlipper
android:id="@+id/page_flipper"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</ViewFlipper>
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/page_flipper"
android:background="#aa000000">
<LinearLayout
android:id="@+id/navigator"
android:layout_width="wrap_content"
android:layout_height="150dp"
android:orientation="horizontal">
</LinearLayout>
</HorizontalScrollView >
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_gravity="center"
android:background="#00880000"
android:orientation="vertical" >
<!-- Can I give all thumbs the same ID? works in grid adapter "getView" -->
<ImageView
android:src="@drawable/dummy_page"
android:id="@+id/thumbnail"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_margin="15dp"
android:layout_gravity="center"/>
</LinearLayout>
\ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<item name="android:actionBarStyle">@style/TransparentDarkActionBar</item> <item name="android:actionBarStyle">@style/TransparentDarkActionBar</item>
</style> </style>
<style name="TransparentDarkActionBar" parent="@android:style/Widget.Holo.ActionBar"> <style name="TransparentDarkActionBar" parent="@android:style/Widget.Holo.ActionBar">
<item name="android:background">#dd000000</item> <item name="android:background">#bb000000</item>
</style> </style>
</resources> </resources>
\ No newline at end of file
...@@ -169,6 +169,9 @@ public class LibreOfficeUIActivity extends Activity implements OnNavigationListe ...@@ -169,6 +169,9 @@ public class LibreOfficeUIActivity extends Activity implements OnNavigationListe
*/ */
Intent i = new Intent( this , DocumentLoader.class ); Intent i = new Intent( this , DocumentLoader.class );
i.putExtra("input",new File( currentDirectory , file).getAbsolutePath() ); i.putExtra("input",new File( currentDirectory , file).getAbsolutePath() );
i.putExtra( CURRENT_DIRECTORY_KEY , currentDirectory.getAbsolutePath() );
i.putExtra( FILTER_MODE_KEY , filterMode );
i.putExtra( EXPLORER_VIEW_TYPE_KEY , viewMode );
startActivity( i ); startActivity( i );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment