android-attopedia
android-attopedia copied to clipboard
Unnecessary padding on pages with content (square watch)
The actual page content is surrounded by a lot of padding on square watches (LG G Watch in my case). I can duplicate it when compiling from source (after fixing the project to compile with latest sdk).

Yep will fix this soon. The padding was added to accomodate circular watches but I should remove it for square watches. Unfortunately the new Android Studio is unable to convert my code to work with the latest Gradle version and complains that the version I'm using is no longer supported, without any option for conversion, so I've been putting this off. (It looks like I need to actually redo the entire app by cutting and pasting each Java class and resource one by one (?) Will deal with this soon when I get a chance, unless there's a known converter tool). Thanks!
I believe I just:
- commented out
import android.support.wearable.view.ImageReference;as it's deprecated (and the one used method) - updated wear/build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion '21.1.2'
defaultConfig {
applicationId "net.dheera.attopedia"
minSdkVersion 20
targetSdkVersion 20
versionCode 5
versionName "1.4"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:+'
compile 'com.google.android.gms:play-services-wearable:+'
}
- and mobile/build.gradle to
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion '21.1.2'
defaultConfig {
applicationId "net.dheera.attopedia"
minSdkVersion 14
targetSdkVersion 20
versionCode 5
versionName "1.4"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
wearApp project(':wear')
compile 'com.google.android.support:wearable:+'
compile 'com.google.android.gms:play-services:6.5.87'
compile files('libs/jsoup-1.7.3.jar')
}
...and it compiled with Android Studio 1.1.0 with latest sdk/tools.
OK thanks! I'll try this in the next couple days.
Is it fixed?