dheera / android-attopedia

A smartwatch-friendly interface for Wikipedia
http://dheera.net/projects/android-attopedia
32 stars 4 forks source link

Unnecessary padding on pages with content (square watch) #3

Open moneytoo opened 9 years ago

moneytoo commented 9 years ago

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).

shots

dheera commented 9 years ago

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!

moneytoo commented 9 years ago

I believe I just:

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:+'
} 
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.

dheera commented 9 years ago

OK thanks! I'll try this in the next couple days.

PolBaladas commented 9 years ago

Is it fixed?