mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-04 08:05:10 +00:00
Make it look better on old Androids
This commit is contained in:
7
res/drawable/text_section_header.xml
Normal file
7
res/drawable/text_section_header.xml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<size android:width="1000dp" android:height="2dp" />
|
||||||
|
<solid android:color="#cecbce"/>
|
||||||
|
</shape>
|
@@ -2,10 +2,9 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_margin="16dip"
|
android:padding="16dip"
|
||||||
tools:context=".MainActivity"
|
tools:context=".MainActivity"
|
||||||
android:id="@+id/listView1"
|
android:id="@+id/listView1"
|
||||||
android:addStatesFromChildren="true"
|
android:addStatesFromChildren="true"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
</ListView>
|
</ListView>
|
||||||
|
@@ -5,9 +5,20 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<include
|
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/list_item_category_text"
|
android:drawableBottom="@drawable/text_section_header"
|
||||||
layout="@android:layout/preference_category" />
|
android:textStyle="bold"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:textColor="?android:textColorSecondary"
|
||||||
|
android:drawablePadding="4dp"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:paddingLeft="8dip"
|
||||||
|
android:paddingRight="8dip"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:id="@+id/list_item_category_text"
|
||||||
|
/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
Reference in New Issue
Block a user