diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-08-03 01:26:30 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2013-08-03 01:26:30 +0200 |
commit | 300b62fd6d6dd89bb4d249f27f6211ec21e447ef (patch) | |
tree | c129f914955caedbbd8369ed6cbd2b690f231b38 /res/layout | |
parent | 81f7dab77c5f28c74da332a038bb3411337f80ad (diff) | |
download | android_packages_wallpapers_PhotoPhase-300b62fd6d6dd89bb4d249f27f6211ec21e447ef.tar.gz android_packages_wallpapers_PhotoPhase-300b62fd6d6dd89bb4d249f27f6211ec21e447ef.tar.bz2 android_packages_wallpapers_PhotoPhase-300b62fd6d6dd89bb4d249f27f6211ec21e447ef.zip |
Disposition enhancements
* Defaults portrait and landscape disposition
* Fix disposition calculation
* Disposition Preference: Resize widgets (not finished)
* CleanUp
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/choose_disposition_fragment.xml | 40 |
1 files changed, 29 insertions, 11 deletions
diff --git a/res/layout/choose_disposition_fragment.xml b/res/layout/choose_disposition_fragment.xml index 166f715..1569ecd 100644 --- a/res/layout/choose_disposition_fragment.xml +++ b/res/layout/choose_disposition_fragment.xml @@ -14,22 +14,22 @@ limitations under the License. --> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginTop="@dimen/default_margin" - android:layout_marginBottom="@dimen/default_margin" + android:layout_marginTop="@dimen/small_margin" + android:layout_marginBottom="@dimen/small_margin" android:orientation="vertical"> - <TextView android:id="@+id/description" + <TextView android:id="@+id/advise" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@android:color/holo_blue_light" - android:layout_marginEnd="8dip" - android:layout_marginStart="8dip" - android:padding="4dip" + android:layout_marginStart="@dimen/disposition_frame_margin" + android:layout_marginEnd="@dimen/disposition_frame_margin" + android:padding="@dimen/disposition_advise_frame_padding" android:gravity="center_horizontal" - android:textColor="#FFFFFF" + android:textColor="@color/notification_text_color" android:textAppearance="?android:attr/textAppearanceSmall" android:text="@string/pref_disposition_description" /> @@ -37,6 +37,24 @@ android:id="@+id/disposition_view" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginTop="@dimen/default_margin" - android:layout_marginBottom="@dimen/default_margin" /> -</LinearLayout> + android:padding="@dimen/disposition_frame_margin" + android:layout_below="@id/advise" + android:layout_alignParentLeft="true" + android:layout_alignParentRight="true" + android:layout_alignParentBottom="true" /> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_alignLeft="@id/disposition_view" + android:layout_alignRight="@id/disposition_view" + android:layout_alignTop="@id/disposition_view" + android:layout_alignBottom="@id/disposition_view"> + <org.cyanogenmod.wallpapers.photophase.widgets.ResizeFrame + android:id="@+id/resize_frame" + android:layout_width="1dp" + android:layout_height="1dp"> + </org.cyanogenmod.wallpapers.photophase.widgets.ResizeFrame> + </FrameLayout> + +</RelativeLayout> |