From 2d1b24f6c7c5ad8a643bcaa1703e33cedadf3320 Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 24 Apr 2017 15:18:09 +0200 Subject: [PATCH] modifications pour adaptation des écrans --- app/src/main/AndroidManifest.xml | 16 ++++++++-------- app/src/main/res/layout/activity_main.xml | 14 +++++++------- app/src/main/res/values-large/dimens.xml | 5 +++++ app/src/main/res/values-normal/dimens.xml | 5 +++++ app/src/main/res/values-small/dimens.xml | 5 +++++ app/src/main/res/values-xlarge/dimens.xml | 5 +++++ 6 files changed, 35 insertions(+), 15 deletions(-) create mode 100644 app/src/main/res/values-large/dimens.xml create mode 100644 app/src/main/res/values-normal/dimens.xml create mode 100644 app/src/main/res/values-small/dimens.xml create mode 100644 app/src/main/res/values-xlarge/dimens.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 17a66ec..4380773 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,13 +9,13 @@ android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" - android:screenOrientation="landscape" + android:supportsRtl="true" android:theme="@style/AppTheme"> + > @@ -27,28 +27,28 @@ + /> + /> + /> + /> + /> + /> @@ -117,7 +117,7 @@ android:backgroundTint="@color/colorPrimary" android:layout_width="wrap_content" android:textColor="@android:color/background_light" - android:textSize="24sp" + android:textSize="@dimen/txtmenu" tools:ignore="HardcodedText,UnusedAttribute" android:layout_height="wrap_content" android:text="MàJ" diff --git a/app/src/main/res/values-large/dimens.xml b/app/src/main/res/values-large/dimens.xml new file mode 100644 index 0000000..8d488f2 --- /dev/null +++ b/app/src/main/res/values-large/dimens.xml @@ -0,0 +1,5 @@ + + + 24sp + 57dp + \ No newline at end of file diff --git a/app/src/main/res/values-normal/dimens.xml b/app/src/main/res/values-normal/dimens.xml new file mode 100644 index 0000000..e1244b5 --- /dev/null +++ b/app/src/main/res/values-normal/dimens.xml @@ -0,0 +1,5 @@ + + + 20sp + 0dp + \ No newline at end of file diff --git a/app/src/main/res/values-small/dimens.xml b/app/src/main/res/values-small/dimens.xml new file mode 100644 index 0000000..ce39e9e --- /dev/null +++ b/app/src/main/res/values-small/dimens.xml @@ -0,0 +1,5 @@ + + + 15sp + 0dp + \ No newline at end of file diff --git a/app/src/main/res/values-xlarge/dimens.xml b/app/src/main/res/values-xlarge/dimens.xml new file mode 100644 index 0000000..8d488f2 --- /dev/null +++ b/app/src/main/res/values-xlarge/dimens.xml @@ -0,0 +1,5 @@ + + + 24sp + 57dp + \ No newline at end of file -- libgit2 0.21.2