Fixed lint warnings regarding rtl layouts.
This commit is contained in:
parent
b39cfbe90c
commit
122bf7f167
2 changed files with 16 additions and 2 deletions
|
@ -13,11 +13,22 @@ buildscript {
|
|||
dependencies {
|
||||
compile "com.android.support:appcompat-v7:22.2.0"
|
||||
compile 'com.android.support:multidex:1.0.1'
|
||||
androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" }
|
||||
androidTestCompile "com.android.support:multidex-instrumentation:1.0.1",
|
||||
{ exclude module: "multidex" }
|
||||
compile "org.scala-lang:scala-library:2.11.7"
|
||||
compile 'com.google.guava:guava:18.0'
|
||||
}
|
||||
|
||||
// RtlHardcoded behaviour differs between target API versions. We only care about API 15.
|
||||
preBuild.doFirst {
|
||||
android.applicationVariants.each { variant ->
|
||||
if (variant.name == 'devDebug' || variant.name == 'devRelease') {
|
||||
println variant.name
|
||||
android.lintOptions.disable 'RtlHardcoded'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 22
|
||||
buildToolsVersion "22.0.1"
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:minHeight="?attr/listPreferredItemHeight"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:paddingRight="?android:attr/listPreferredItemPaddingRight" >
|
||||
|
||||
<ImageView
|
||||
|
@ -24,7 +24,9 @@
|
|||
android:textStyle="bold"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:layout_toEndOf="@id/identicon"
|
||||
android:layout_toRightOf="@id/identicon"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginLeft="10dp" />
|
||||
|
||||
<TextView
|
||||
|
@ -35,6 +37,7 @@
|
|||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:layout_below="@android:id/text1"
|
||||
android:layout_alignStart="@android:id/text1"
|
||||
android:layout_alignLeft="@android:id/text1" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
Reference in a new issue