[Libreoffice-commits] .: android/sdremote
Andrzej J.R. Hunt
ajrhunt at kemper.freedesktop.org
Wed Aug 15 10:37:22 PDT 2012
android/sdremote/res/layout-land/fragment_blankscreen.xml | 55 ++++++++++
android/sdremote/res/layout/fragment_blankscreen.xml | 3
android/sdremote/src/org/libreoffice/impressremote/BlankScreenFragment.java | 13 ++
3 files changed, 70 insertions(+), 1 deletion(-)
New commits:
commit 105cd5ea833d2d6dc23d2df3f303073ec6bd9929
Author: Andrzej J.R. Hunt <andrzej at ahunt.org>
Date: Wed Aug 15 19:36:31 2012 +0200
Added rotated blankscreen + fixed return button.
Change-Id: I770ff1d77102cfbe63849babed6bd9406d958b09
diff --git a/android/sdremote/res/layout-land/fragment_blankscreen.xml b/android/sdremote/res/layout-land/fragment_blankscreen.xml
new file mode 100644
index 0000000..3117d30
--- /dev/null
+++ b/android/sdremote/res/layout-land/fragment_blankscreen.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="center_vertical"
+ android:layout_margin="10dip"
+ android:gravity="center_horizontal"
+ android:orientation="vertical" >
+
+ <ImageView
+ android:id="@+id/blankscreen_blankimage"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:scaleType="fitXY"
+ android:src="@drawable/rectangle_black" />
+
+ <ImageView
+ android:id="@+id/blankscreen_divider"
+ android:layout_width="1dip"
+ android:layout_height="fill_parent"
+ android:layout_centerHorizontal="true"
+ android:layout_marginLeft="10dip"
+ android:layout_marginRight="5dip"
+ android:layout_toRightOf="@+id/blankscreen_blankimage"
+ android:src="@color/medium_grey" />
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_alignParentRight="true"
+ android:layout_gravity="center_vertical"
+ android:layout_toRightOf="@id/blankscreen_divider"
+ android:gravity="center"
+ android:orientation="vertical" >
+
+ <ImageView
+ android:id="@+id/blankscreen_slidepreview"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="5dip"
+ android:adjustViewBounds="true"
+ android:scaleType="centerInside"
+ android:src="@drawable/rectangle_black" />
+
+ <TextView
+ android:id="@+id/blankscreen_return"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:layout_margin="5dip"
+ android:gravity="center"
+ android:text="@string/blankscreen_return" />
+ </LinearLayout>
+
+</RelativeLayout>
\ No newline at end of file
diff --git a/android/sdremote/res/layout/fragment_blankscreen.xml b/android/sdremote/res/layout/fragment_blankscreen.xml
index f717f24..cf287ba 100644
--- a/android/sdremote/res/layout/fragment_blankscreen.xml
+++ b/android/sdremote/res/layout/fragment_blankscreen.xml
@@ -39,6 +39,7 @@
android:layout_alignParentRight="true"
android:gravity="center"
android:layout_below="@id/blankscreen_divider"
- android:text="@string/blankscreen_return" />
+ android:text="@string/blankscreen_return"
+ android:layout_margin="5dip" />
</RelativeLayout>
\ No newline at end of file
diff --git a/android/sdremote/src/org/libreoffice/impressremote/BlankScreenFragment.java b/android/sdremote/src/org/libreoffice/impressremote/BlankScreenFragment.java
index 2f0c8d1..e849125 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/BlankScreenFragment.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/BlankScreenFragment.java
@@ -11,6 +11,7 @@ import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
+import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;
@@ -52,6 +53,18 @@ public class BlankScreenFragment extends Fragment {
.findViewById(R.id.blankscreen_slidepreview);
aImage.setImageBitmap(aOut);
+ OnClickListener aListener = new OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ getFragmentManager().popBackStackImmediate();
+ }
+
+ };
+
+ v.findViewById(R.id.blankscreen_slidepreview).setOnClickListener(
+ aListener);
+ v.findViewById(R.id.blankscreen_return).setOnClickListener(aListener);
mCommunicationService.getTransmitter().blankScreen();
// TODO Auto-generated method stub
return v;
More information about the Libreoffice-commits
mailing list