From 8f58d3e6701569e69bc95272bf0d887983346950 Mon Sep 17 00:00:00 2001 From: Peter Nagy Date: Wed, 8 Mar 2017 23:03:01 +0100 Subject: [PATCH] Change grade version and add clickable web link option --- build.gradle | 2 +- .../src/main/res/layout-land/fragment_slide.xml | 8 ++++++-- .../src/main/res/layout/fragment_slide.xml | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 6ab2dc7..53501fc 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.2.2' + classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.novoda:bintray-release:0.3.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/material-intro-screen/src/main/res/layout-land/fragment_slide.xml b/material-intro-screen/src/main/res/layout-land/fragment_slide.xml index 98ee8d2..fb03b3c 100644 --- a/material-intro-screen/src/main/res/layout-land/fragment_slide.xml +++ b/material-intro-screen/src/main/res/layout-land/fragment_slide.xml @@ -16,11 +16,11 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" - android:layout_marginRight="16dp" android:layout_marginBottom="128dp" - android:paddingTop="32dp" + android:layout_marginRight="16dp" android:layout_weight="1" android:adjustViewBounds="true" + android:paddingTop="32dp" android:visibility="gone" app:layout_parallaxFactor="0.6" tools:src="@android:drawable/arrow_down_float" @@ -37,7 +37,9 @@ android:id="@+id/txt_title_slide" android:layout_width="match_parent" android:layout_height="wrap_content" + android:autoLink="web" android:gravity="center" + android:linksClickable="true" android:textAppearance="@style/TextAppearance.AppCompat.Headline" app:layout_parallaxFactor="0.5" tools:text="Lorem ipsum" /> @@ -46,7 +48,9 @@ android:id="@+id/txt_description_slide" android:layout_width="match_parent" android:layout_height="wrap_content" + android:autoLink="web" android:gravity="center" + android:linksClickable="true" android:textAppearance="@style/TextAppearance.AppCompat.Subhead" app:layout_parallaxFactor="0.2" tools:text="Lorem ipsum dolor sit amet, consectetur, adipisci velit, …" /> diff --git a/material-intro-screen/src/main/res/layout/fragment_slide.xml b/material-intro-screen/src/main/res/layout/fragment_slide.xml index b8ed075..eb5ac9f 100644 --- a/material-intro-screen/src/main/res/layout/fragment_slide.xml +++ b/material-intro-screen/src/main/res/layout/fragment_slide.xml @@ -33,7 +33,9 @@ android:id="@+id/txt_title_slide" android:layout_width="match_parent" android:layout_height="wrap_content" + android:autoLink="web" android:gravity="center" + android:linksClickable="true" android:textAppearance="@style/TextAppearance.AppCompat.Headline" app:layout_parallaxFactor="0.5" tools:text="Lorem ipsum" /> @@ -43,7 +45,9 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" + android:autoLink="web" android:gravity="center" + android:linksClickable="true" android:textAppearance="@style/TextAppearance.AppCompat.Subhead" app:layout_parallaxFactor="0.2" tools:text="Lorem ipsum dolor sit amet, consectetur, adipisci velit, …" />