
* 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.
24 lines
865 B
XML
24 lines
865 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<TextView
|
|
android:id="@+id/text_description"
|
|
android:text="@string/swap_introduction"
|
|
style="@style/SwapTheme.StartSwap.MainText"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<Button
|
|
android:id="@+id/button_start_swap"
|
|
android:text="@string/swap_start"
|
|
style="@style/SwapTheme.StartSwap.StartButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_below="@+id/text_description"
|
|
android:layout_centerHorizontal="true"/>
|
|
|
|
</RelativeLayout> |