Fixed various lint warnings.

This commit is contained in:
Felix Ableitner 2015-06-19 20:15:35 +02:00
parent 90e640b904
commit 97b03f97a5
10 changed files with 58 additions and 5 deletions

View File

@ -6,4 +6,42 @@
<!-- Ignore "Value overridden by Gradle build script" for app
version (which is actually read from manifest by gradle). -->
<issue id="GradleOverrides" severity="ignore" />
<!-- Some attributes aren't used on older Android versions,
but we don't care or use alternative attributes for these
platforms -->
<issue id="UnusedAttribute" severity="ignore" />
<!-- Ignore types in translations (not handled by us) -->
<issue id="Typos">
<ignore path="src/main/res/values-ar" />
<ignore path="src/main/res/values-cs" />
<ignore path="src/main/res/values-da" />
<ignore path="src/main/res/values-da-rDK" />
<ignore path="src/main/res/values-de" />
<ignore path="src/main/res/values-el" />
<ignore path="src/main/res/values-es" />
<ignore path="src/main/res/values-fi" />
<ignore path="src/main/res/values-fr" />
<ignore path="src/main/res/values-fr-rFR" />
<ignore path="src/main/res/values-hu" />
<ignore path="src/main/res/values-in" />
<ignore path="src/main/res/values-it" />
<ignore path="src/main/res/values-ja" />
<ignore path="src/main/res/values-ko" />
<ignore path="src/main/res/values-nb" />
<ignore path="src/main/res/values-nl" />
<ignore path="src/main/res/values-pl" />
<ignore path="src/main/res/values-pl-rPL" />
<ignore path="src/main/res/values-pt" />
<ignore path="src/main/res/values-pt-rBR" />
<ignore path="src/main/res/values-ru" />
<ignore path="src/main/res/values-sk" />
<ignore path="src/main/res/values-sl" />
<ignore path="src/main/res/values-sr" />
<ignore path="src/main/res/values-sv" />
<ignore path="src/main/res/values-tr" />
<ignore path="src/main/res/values-zh-rCN" />
<ignore path="src/main/res/values-zh-rTW" />
</issue>
</lint>

View File

@ -23,7 +23,8 @@
android:banner="@drawable/banner"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar"
android:description="@string/app_description">
android:description="@string/app_description"
android:supportsRtl="true">
<activity
android:name=".activities.MainActivity"
android:label="@string/app_name"

View File

Before

Width:  |  Height:  |  Size: 885 KiB

After

Width:  |  Height:  |  Size: 885 KiB

View File

@ -11,13 +11,16 @@
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_toLeftOf="@+id/status"
android:layout_toStartOf="@+id/status"
android:lines="1"
android:ellipsize="end" />
<TextView
android:id="@+id/status"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignBottom="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -35,6 +38,7 @@
android:id="@+id/download"
android:layout_alignBaseline="@id/download_title"
android:layout_toRightOf="@id/download_title"
android:layout_toEndOf="@id/download_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" />
@ -51,6 +55,7 @@
android:id="@+id/upload"
android:layout_alignBaseline="@id/upload_title"
android:layout_toRightOf="@id/upload_title"
android:layout_toEndOf="@id/upload_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" />

View File

@ -43,6 +43,7 @@
android:id="@+id/cpu_usage"
android:layout_alignBottom="@id/cpu_usage_title"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
@ -62,6 +63,7 @@
android:id="@+id/ram_usage"
android:layout_alignBottom="@id/ram_usage_title"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
@ -81,6 +83,7 @@
android:id="@+id/download"
android:layout_alignBottom="@id/download_title"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
@ -100,6 +103,7 @@
android:id="@+id/upload"
android:layout_alignBottom="@id/upload_title"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
@ -119,6 +123,7 @@
android:id="@+id/announce_server"
android:layout_alignBottom="@id/announce_server_title"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

View File

@ -11,7 +11,9 @@
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_toLeftOf="@+id/state"
android:layout_toStartOf="@+id/state"
android:lines="1"
android:ellipsize="end" />
@ -19,6 +21,7 @@
android:id="@+id/state"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignBottom="@+id/id"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

View File

@ -15,6 +15,7 @@
<TextView
android:id="@+id/loading_text"
android:layout_toRightOf="@id/progress"
android:layout_toEndOf="@id/progress"
android:layout_alignBottom="@id/progress"
android:layout_alignTop="@id/progress"
android:gravity="center"

View File

@ -14,7 +14,7 @@
<TextView
android:id="@+id/log"
android:gravity="top"
android:textSize="10sp"
android:textSize="12sp"
android:textIsSelectable="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />

View File

@ -6,12 +6,12 @@
<item
android:id="@+id/switch_logs"
android:title="@string/log_android_title"
app:showAsAction="always" />
app:showAsAction="ifRoom" />
<item
android:id="@+id/menu_share"
android:title="@string/share_title"
app:actionProviderClass="android.support.v7.widget.ShareActionProvider"
app:showAsAction="always" />
app:showAsAction="ifRoom" />
</menu>

View File

@ -10,7 +10,7 @@
<!--Shown in the chooser dialog when sharing a Device ID-->
<string name="send_device_id_to">Poslat ID přístroje přes</string>
<!--Text for FoldersFragment and DevicesFragment loading view-->
<string name="api_loading">Načítání...</string>
<string name="api_loading">Načítání</string>
<string name="usage_reporting_dialog_title">Povolit anonymní hlášení o používání?</string>
<string name="usage_reporting_dialog_description">Zašifrované hlášení o používání je odesíláno denně. Je použito k zjišťování obvyklých platforem, velikosti adresářů a verzi aplikace. Pokud se změní množství odesílaných detailů, budete znovu upozorněni tímto dialogem.\n\nSouhrnné statistiky jsou veřejně dostupné na https://data.syncthing.net.</string>
<string name="yes">Ano</string>