Style: use attrs from appcompat rather than from frameworks

This isn't possible for colorForeground, colorBackground,
textAppearanceMedium, but at least it's useful for some things here.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-07-30 22:38:58 +02:00
parent 8ec2cc8582
commit ffa3cefa67
3 changed files with 5 additions and 5 deletions

View File

@ -4,12 +4,12 @@
<item> <item>
<selector> <selector>
<item app:state_multiselected="true" android:state_activated="true"> <item app:state_multiselected="true" android:state_activated="true">
<color android:color="?android:attr/colorControlActivated" /> <color android:color="?attr/colorControlActivated" />
</item> </item>
<item app:state_multiselected="false" android:state_activated="true"> <item app:state_multiselected="false" android:state_activated="true">
<color android:color="?android:attr/colorControlHighlight" /> <color android:color="?attr/colorControlHighlight" />
</item> </item>
</selector> </selector>
</item> </item>
<item android:drawable="?android:attr/selectableItemBackground" /> <item android:drawable="?attr/selectableItemBackground" />
</layer-list> </layer-list>

View File

@ -5,7 +5,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:baselineAligned="false" android:baselineAligned="false"
android:divider="?android:attr/dividerHorizontal" android:divider="?attr/dividerHorizontal"
android:orientation="horizontal" android:orientation="horizontal"
android:showDividers="middle" android:showDividers="middle"
tools:context=".activity.MainActivity"> tools:context=".activity.MainActivity">

View File

@ -120,7 +120,7 @@
<TextView <TextView
android:id="@+id/public_key_text" android:id="@+id/public_key_text"
style="?android:attr/editTextStyle" style="?attr/editTextStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/public_key_label" android:layout_below="@+id/public_key_label"