Logo
Explore Help
Sign In
Karl/BobStore
1
0
Fork 0
You've already forked BobStore
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
BobStore/F-Droid/res/layout/swap_activity.xml

14 lines
413 B
XML
Raw Normal View History

Swap works on 2.3 devices. * Cleaned up text alignment styles for API < 17. API v17 has a textAlignment style, wherease previous verisons rely on the "gravity" property. This change includes gravity="center" where there was previously only textAlignment="center". * Fragments get added properly on 2.3 device. For some reason, when adding the fragment to android.R.id.content, it wouldn't work on my 2.3 device. This change includes a (almost) empty activity layout with a single FrameLayout. The fragments are added to this rather than "content", and it works better. It is not perfect - it still adds the fargments behind the action bar, and so the action bar appears blue. But at least they are there :) * Added translatable strings where constants were used before. Not related to v2.3 support, but stil important for a stable release, that is fully translated.
2014-12-30 11:48:20 +11:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</FrameLayout>
</RelativeLayout>
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 31ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API