Browse Source

Support fonts for API 15

pull/559/head
TacoTheDank 4 years ago
parent
commit
120ef24924
  1. 5
      app/src/main/res/layout/actionbar_searchsite.xml
  2. 5
      app/src/main/res/layout/actionbar_serverselection.xml
  3. 13
      app/src/main/res/layout/actionbar_serverstatus.xml
  4. 13
      app/src/main/res/layout/dialog_about.xml
  5. 25
      app/src/main/res/layout/fragment_details_header.xml
  6. 3
      app/src/main/res/layout/list_item_remoterssitem.xml
  7. 3
      app/src/main/res/layout/list_item_rssitem.xml
  8. 3
      app/src/main/res/layout/list_item_searchresult.xml
  9. 3
      app/src/main/res/layout/list_item_torrent.xml
  10. 3
      app/src/main/res/layout/list_item_torrentfile.xml
  11. 5
      app/src/main/res/layout/list_item_widget.xml
  12. 5
      app/src/main/res/layout/list_item_widget_dark.xml
  13. 25
      app/src/main/res/layout/widget_torrents.xml

5
app/src/main/res/layout/actionbar_searchsite.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
@ -25,9 +26,9 @@ @@ -25,9 +26,9 @@
android:id="@+id/searchsite_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-condensed"
android:textColor="?attr/text_actionbar"
android:textIsSelectable="false"
android:textSize="18sp" />
android:textSize="18sp"
app:fontFamily="sans-serif-condensed" />
</FrameLayout>

5
app/src/main/res/layout/actionbar_serverselection.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:layout_height="?android:attr/actionBarSize"
tools:layout_width="match_parent">
@ -30,10 +31,10 @@ @@ -30,10 +31,10 @@
android:id="@+id/filter_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-condensed"
android:textColor="?attr/text_actionbar"
android:textIsSelectable="false"
android:textSize="@dimen/ui_navigation_filter"
app:fontFamily="sans-serif-condensed"
tools:text="Downloading" />
<TextView
@ -41,10 +42,10 @@ @@ -41,10 +42,10 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="-4dip"
android:fontFamily="sans-serif-light"
android:textColor="?attr/text_actionbar"
android:textIsSelectable="false"
android:textSize="@dimen/ui_navigation_server"
app:fontFamily="sans-serif-light"
tools:text="XIRVIK RTORRENT" />
</LinearLayout>

13
app/src/main/res/layout/actionbar_serverstatus.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="?android:attr/actionBarSize"
@ -40,10 +41,10 @@ @@ -40,10 +41,10 @@
android:id="@+id/downcount_text"
android:layout_width="@dimen/ui_serverstatus_width"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-light"
android:gravity="end"
android:textColor="?attr/text_actionbar"
android:textSize="@dimen/ui_serverstatus_bignumber"
app:fontFamily="sans-serif-light"
tools:text="7" />
<TextView
@ -52,11 +53,11 @@ @@ -52,11 +53,11 @@
android:layout_height="wrap_content"
android:layout_toEndOf="@id/downcount_text"
android:layout_toRightOf="@id/downcount_text"
android:fontFamily="sans-serif-light"
android:text="↓"
android:textColor="?attr/text_actionbar"
android:textSize="@dimen/ui_serverstatus_sign"
android:visibility="invisible"
app:fontFamily="sans-serif-light"
tools:ignore="HardcodedText"
tools:visibility="visible" />
@ -66,10 +67,10 @@ @@ -66,10 +67,10 @@
android:layout_height="wrap_content"
android:layout_toEndOf="@id/downcount_sign"
android:layout_toRightOf="@id/downcount_sign"
android:fontFamily="sans-serif-light"
android:gravity="end"
android:textColor="?attr/text_actionbar"
android:textSize="@dimen/ui_serverstatus_bignumber"
app:fontFamily="sans-serif-light"
tools:text="128" />
<TextView
@ -78,11 +79,11 @@ @@ -78,11 +79,11 @@
android:layout_height="wrap_content"
android:layout_toEndOf="@id/upcount_text"
android:layout_toRightOf="@id/upcount_text"
android:fontFamily="sans-serif-light"
android:text="↑"
android:textColor="?attr/text_actionbar"
android:textSize="@dimen/ui_serverstatus_sign"
android:visibility="invisible"
app:fontFamily="sans-serif-light"
tools:ignore="HardcodedText"
tools:visibility="visible" />
@ -96,10 +97,10 @@ @@ -96,10 +97,10 @@
android:layout_alignEnd="@id/downcount_sign"
android:layout_alignRight="@id/downcount_sign"
android:layout_marginTop="-4dip"
android:fontFamily="sans-serif-light"
android:gravity="end"
android:textColor="?attr/text_actionbar"
android:textSize="@dimen/ui_serverstatus_smallnumber"
app:fontFamily="sans-serif-light"
tools:text="1.2 MB/s" />
<TextView
@ -112,10 +113,10 @@ @@ -112,10 +113,10 @@
android:layout_alignEnd="@id/upcount_sign"
android:layout_alignRight="@id/upcount_sign"
android:layout_marginTop="-4dip"
android:fontFamily="sans-serif-light"
android:gravity="end"
android:textColor="?attr/text_actionbar"
android:textSize="@dimen/ui_serverstatus_smallnumber"
app:fontFamily="sans-serif-light"
tools:text="678 KB/s" />
</RelativeLayout>

13
app/src/main/res/layout/dialog_about.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
@ -34,11 +35,11 @@ @@ -34,11 +35,11 @@
android:drawableStart="@drawable/ic_launcher"
android:drawableLeft="@drawable/ic_launcher"
android:drawablePadding="@dimen/margin_half"
android:fontFamily="sans-serif-condensed"
android:gravity="center_vertical"
android:text="@string/app_name"
android:textColor="@android:color/white"
android:textSize="36sp" />
android:textSize="36sp"
app:fontFamily="sans-serif-condensed" />
<TextView
android:layout_width="wrap_content"
@ -52,11 +53,11 @@ @@ -52,11 +53,11 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/margin_default"
android:fontFamily="sans-serif-condensed"
android:gravity="center"
android:text="@string/system_developer"
android:textColor="@android:color/white"
android:textSize="18sp" />
android:textSize="18sp"
app:fontFamily="sans-serif-condensed" />
<TextView
android:layout_width="wrap_content"
@ -80,9 +81,9 @@ @@ -80,9 +81,9 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="@dimen/margin_default"
android:fontFamily="monospace"
android:text="@string/system_libraries"
android:textSize="12sp" />
android:textSize="12sp"
app:fontFamily="monospace" />
</LinearLayout>
</ScrollView>

25
app/src/main/res/layout/fragment_details_header.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/margin_default"
@ -71,10 +72,10 @@ @@ -71,10 +72,10 @@
android:layout_marginTop="@dimen/margin_half"
android:layout_toEndOf="@id/separator"
android:layout_toRightOf="@id/separator"
android:fontFamily="sans-serif-light"
android:textColor="?attr/text_bright"
android:textIsSelectable="false"
android:textSize="@dimen/text_hugenumbers" />
android:textSize="@dimen/text_hugenumbers"
app:fontFamily="sans-serif-light" />
<TextView
android:id="@+id/uploadedunit_text"
@ -85,9 +86,9 @@ @@ -85,9 +86,9 @@
android:layout_marginLeft="4dip"
android:layout_toEndOf="@id/uploaded_text"
android:layout_toRightOf="@id/uploaded_text"
android:fontFamily="sans-serif-light"
android:textColor="?attr/text_bright"
android:textIsSelectable="false" />
android:textIsSelectable="false"
app:fontFamily="sans-serif-light" />
<TextView
android:id="@+id/ratio_text"
@ -111,10 +112,10 @@ @@ -111,10 +112,10 @@
android:layout_marginBottom="4dip"
android:layout_toEndOf="@id/separator"
android:layout_toRightOf="@id/separator"
android:fontFamily="sans-serif-light"
android:textColor="?attr/text_bright"
android:textIsSelectable="false"
android:textSize="@dimen/text_enlargednumbers" />
android:textSize="@dimen/text_enlargednumbers"
app:fontFamily="sans-serif-light" />
<TextView
android:id="@+id/leechers_text"
@ -137,9 +138,9 @@ @@ -137,9 +138,9 @@
android:layout_marginRight="@dimen/margin_half"
android:layout_toStartOf="@id/separator"
android:layout_toLeftOf="@id/separator"
android:fontFamily="sans-serif-light"
android:textColor="?attr/text_bright"
android:textIsSelectable="false" />
android:textIsSelectable="false"
app:fontFamily="sans-serif-light" />
<TextView
android:id="@+id/downloaded_text"
@ -150,10 +151,10 @@ @@ -150,10 +151,10 @@
android:layout_marginRight="4dip"
android:layout_toStartOf="@id/downloadedunit_text"
android:layout_toLeftOf="@id/downloadedunit_text"
android:fontFamily="sans-serif-light"
android:textColor="?attr/text_bright"
android:textIsSelectable="false"
android:textSize="@dimen/text_hugenumbers" />
android:textSize="@dimen/text_hugenumbers"
app:fontFamily="sans-serif-light" />
<TextView
android:id="@+id/totalsize_text"
@ -176,10 +177,10 @@ @@ -176,10 +177,10 @@
android:layout_marginRight="@dimen/margin_half"
android:layout_toStartOf="@id/separator"
android:layout_toLeftOf="@id/separator"
android:fontFamily="sans-serif-light"
android:textColor="?attr/text_bright"
android:textIsSelectable="false"
android:textSize="@dimen/text_enlargednumbers" />
android:textSize="@dimen/text_enlargednumbers"
app:fontFamily="sans-serif-light" />
<TextView
android:id="@+id/seeders_text"

3
app/src/main/res/layout/list_item_remoterssitem.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
@ -38,10 +39,10 @@ @@ -38,10 +39,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/label_text"
android:fontFamily="sans-serif-condensed"
android:textColor="?attr/text_bright"
android:textIsSelectable="false"
android:textSize="@dimen/text_enlarged"
app:fontFamily="sans-serif-condensed"
tools:text="Title for torrent" />
<TextView

3
app/src/main/res/layout/list_item_rssitem.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<org.transdroid.core.gui.rss.RssitemStatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
@ -28,10 +29,10 @@ @@ -28,10 +29,10 @@
android:id="@+id/name_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-condensed"
android:textColor="?attr/text_bright"
android:textIsSelectable="false"
android:textSize="@dimen/text_enlarged"
app:fontFamily="sans-serif-condensed"
tools:text="Test RSS Item Text Here" />
<TextView

3
app/src/main/res/layout/list_item_searchresult.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<org.transdroid.core.gui.rss.RssitemStatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
@ -28,10 +29,10 @@ @@ -28,10 +29,10 @@
android:id="@+id/name_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-condensed"
android:textColor="?attr/text_bright"
android:textIsSelectable="false"
android:textSize="@dimen/text_enlarged"
app:fontFamily="sans-serif-condensed"
tools:text="Torrent.Title.2016.1080p.mkv" />
<TextView

3
app/src/main/res/layout/list_item_torrent.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<org.transdroid.core.gui.lists.TorrentStatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
@ -30,11 +31,11 @@ @@ -30,11 +31,11 @@
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_torrentlistleft"
android:layout_marginLeft="@dimen/margin_torrentlistleft"
android:fontFamily="sans-serif-condensed"
android:paddingTop="@dimen/margin_half"
android:textColor="?attr/text_bright"
android:textIsSelectable="false"
android:textSize="@dimen/text_enlarged"
app:fontFamily="sans-serif-condensed"
tools:text="Torrent.Title.That.Can-Be.Long.2015.1080p.Group.Release.mkv" />
<TextView

3
app/src/main/res/layout/list_item_torrentfile.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<org.transdroid.core.gui.lists.TorrentFilePriorityLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
@ -29,10 +30,10 @@ @@ -29,10 +30,10 @@
android:id="@+id/name_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-condensed"
android:textColor="?attr/text_bright"
android:textIsSelectable="false"
android:textSize="@dimen/text_enlarged"
app:fontFamily="sans-serif-condensed"
tools:text="File.In.Torrent.Title.Which.Can.Be.Long.2016.1080p.Release.mkv" />
<TextView

5
app/src/main/res/layout/list_item_widget.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/widget_line_layout"
android:layout_width="fill_parent"
android:layout_height="@dimen/widget_list_item_height"
@ -34,12 +35,12 @@ @@ -34,12 +35,12 @@
android:layout_marginStart="@dimen/widget_list_item_padding_left"
android:layout_marginLeft="@dimen/widget_list_item_padding_left"
android:ellipsize="end"
android:fontFamily="sans-serif-condensed"
android:maxLines="1"
android:paddingTop="@dimen/widget_list_item_padding"
android:textColor="@color/transdroid_text_bright"
android:textIsSelectable="false"
android:textSize="@dimen/text_enlarged" />
android:textSize="@dimen/text_enlarged"
app:fontFamily="sans-serif-condensed" />
<TextView
android:id="@+id/ratio_text"

5
app/src/main/res/layout/list_item_widget_dark.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/widget_line_layout"
android:layout_width="fill_parent"
android:layout_height="@dimen/widget_list_item_height"
@ -34,12 +35,12 @@ @@ -34,12 +35,12 @@
android:layout_marginStart="@dimen/widget_list_item_padding_left"
android:layout_marginLeft="@dimen/widget_list_item_padding_left"
android:ellipsize="end"
android:fontFamily="sans-serif-condensed"
android:maxLines="1"
android:paddingTop="@dimen/widget_list_item_padding"
android:textColor="@color/transdroid_dark_text_bright"
android:textIsSelectable="false"
android:textSize="@dimen/text_enlarged" />
android:textSize="@dimen/text_enlarged"
app:fontFamily="sans-serif-condensed" />
<TextView
android:id="@+id/ratio_text"

25
app/src/main/res/layout/widget_torrents.xml

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -55,11 +56,11 @@ @@ -55,11 +56,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fontFamily="sans-serif-condensed"
android:singleLine="true"
android:textColor="@color/transdroid_text_actionbar"
android:textIsSelectable="false"
android:textSize="@dimen/ui_navigation_filter"
app:fontFamily="sans-serif-condensed"
tools:text="Filter" />
<TextView
@ -68,11 +69,11 @@ @@ -68,11 +69,11 @@
android:layout_height="wrap_content"
android:layout_marginTop="-4dip"
android:ellipsize="marquee"
android:fontFamily="sans-serif-light"
android:singleLine="true"
android:textColor="@color/transdroid_text_actionbar"
android:textIsSelectable="false"
android:textSize="@dimen/ui_navigation_server"
app:fontFamily="sans-serif-light"
tools:text="Server" />
</LinearLayout>
@ -93,10 +94,10 @@ @@ -93,10 +94,10 @@
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:fontFamily="sans-serif-light"
android:paddingTop="@dimen/ui_serverstatus_signmargin"
android:text="↑"
android:textSize="@dimen/ui_serverstatus_sign"
app:fontFamily="sans-serif-light"
tools:ignore="HardcodedText" />
<TextView
@ -105,9 +106,9 @@ @@ -105,9 +106,9 @@
android:layout_height="wrap_content"
android:layout_toStartOf="@id/upcount_sign"
android:layout_toLeftOf="@id/upcount_sign"
android:fontFamily="sans-serif-light"
android:gravity="end"
android:textSize="@dimen/ui_serverstatus_bignumber" />
android:textSize="@dimen/ui_serverstatus_bignumber"
app:fontFamily="sans-serif-light" />
<TextView
android:id="@+id/downcount_sign"
@ -115,10 +116,10 @@ @@ -115,10 +116,10 @@
android:layout_height="wrap_content"
android:layout_toStartOf="@id/upcount_text"
android:layout_toLeftOf="@id/upcount_text"
android:fontFamily="sans-serif-light"
android:paddingTop="@dimen/ui_serverstatus_signmargin"
android:text="↓"
android:textSize="@dimen/ui_serverstatus_sign"
app:fontFamily="sans-serif-light"
tools:ignore="HardcodedText" />
<TextView
@ -127,9 +128,9 @@ @@ -127,9 +128,9 @@
android:layout_height="wrap_content"
android:layout_toStartOf="@id/downcount_sign"
android:layout_toLeftOf="@id/downcount_sign"
android:fontFamily="sans-serif-light"
android:gravity="end"
android:textSize="@dimen/ui_serverstatus_bignumber" />
android:textSize="@dimen/ui_serverstatus_bignumber"
app:fontFamily="sans-serif-light" />
<TextView
android:id="@+id/upspeed_text"
@ -141,9 +142,9 @@ @@ -141,9 +142,9 @@
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginTop="-4dip"
android:fontFamily="sans-serif-light"
android:gravity="end"
android:textSize="@dimen/ui_serverstatus_smallnumber" />
android:textSize="@dimen/ui_serverstatus_smallnumber"
app:fontFamily="sans-serif-light" />
<TextView
android:id="@+id/downspeed_text"
@ -155,9 +156,9 @@ @@ -155,9 +156,9 @@
android:layout_alignEnd="@id/downcount_sign"
android:layout_alignRight="@id/downcount_sign"
android:layout_marginTop="-4dip"
android:fontFamily="sans-serif-light"
android:gravity="end"
android:textSize="@dimen/ui_serverstatus_smallnumber" />
android:textSize="@dimen/ui_serverstatus_smallnumber"
app:fontFamily="sans-serif-light" />
</RelativeLayout>
<ImageButton

Loading…
Cancel
Save