forked from upstream-mirrors/OpenTracks
Change the about page layout to single column to
support long translated strings in different languages.
This commit is contained in:
@@ -17,87 +17,91 @@ limitations under the License.
|
|||||||
<ScrollView
|
<ScrollView
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="wrap_content">
|
android:layout_width="fill_parent">
|
||||||
<TableLayout
|
<LinearLayout
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="fill_parent"
|
||||||
android:padding="2dp"
|
android:orientation="vertical"
|
||||||
android:shrinkColumns="0"
|
android:padding="10dp">
|
||||||
android:stretchColumns="1">
|
|
||||||
<TableRow style="@style/AboutTableRow">
|
<!-- Title -->
|
||||||
<ImageView
|
<TableLayout
|
||||||
android:layout_column="0"
|
android:layout_height="wrap_content"
|
||||||
android:scaleType="center"
|
android:layout_width="fill_parent"
|
||||||
android:src="@drawable/arrow_icon"/>
|
android:padding="2dp"
|
||||||
<LinearLayout
|
android:shrinkColumns="0"
|
||||||
android:layout_column="1"
|
android:stretchColumns="1">
|
||||||
android:layout_height="wrap_content"
|
<TableRow>
|
||||||
android:layout_width="wrap_content"
|
<ImageView
|
||||||
android:orientation="vertical">
|
android:layout_column="0"
|
||||||
<TextView
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:text="@string/my_tracks_app_name"
|
android:scaleType="center"
|
||||||
android:textSize="30sp" />
|
android:src="@drawable/arrow_icon"/>
|
||||||
<TextView
|
<LinearLayout
|
||||||
|
android:layout_column="1"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:text="@string/about_copyright_notice"
|
android:orientation="vertical">
|
||||||
android:textSize="15sp" />
|
<TextView
|
||||||
</LinearLayout>
|
android:layout_height="wrap_content"
|
||||||
</TableRow>
|
android:layout_width="wrap_content"
|
||||||
<TableRow style="@style/AboutTableRow">
|
android:text="@string/my_tracks_app_name"
|
||||||
<TextView
|
android:textSize="30sp"/>
|
||||||
android:text="@string/about_team"
|
<TextView
|
||||||
style="@style/AboutTextView.Column0"/>
|
android:layout_height="wrap_content"
|
||||||
<LinearLayout
|
android:layout_width="wrap_content"
|
||||||
android:layout_column="1"
|
android:text="@string/about_copyright_notice"
|
||||||
android:layout_height="wrap_content"
|
android:textSize="15sp"/>
|
||||||
android:layout_width="wrap_content"
|
</LinearLayout>
|
||||||
android:orientation="vertical">
|
</TableRow>
|
||||||
<TextView
|
</TableLayout>
|
||||||
android:text="@string/about_bart"
|
|
||||||
style="@style/AboutTextView"/>
|
<!-- Team -->
|
||||||
<TextView
|
<TextView
|
||||||
android:text="@string/about_dylan"
|
android:text="@string/about_team"
|
||||||
style="@style/AboutTextView"/>
|
style="@style/AboutLabel"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:text="@string/about_jimmy"
|
android:text="@string/about_bart"
|
||||||
style="@style/AboutTextView"/>
|
style="@style/AboutItem"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:text="@string/about_leif"
|
android:text="@string/about_dylan"
|
||||||
style="@style/AboutTextView"/>
|
style="@style/AboutItem"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:text="@string/about_rodrigo"
|
android:text="@string/about_jimmy"
|
||||||
style="@style/AboutTextView"/>
|
style="@style/AboutItem"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:text="@string/about_sandor"
|
android:text="@string/about_leif"
|
||||||
style="@style/AboutTextView"/>
|
style="@style/AboutItem"/>
|
||||||
</LinearLayout>
|
<TextView
|
||||||
</TableRow>
|
android:text="@string/about_rodrigo"
|
||||||
<TableRow style="@style/AboutTableRow">
|
style="@style/AboutItem"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:text="@string/about_version"
|
android:text="@string/about_sandor"
|
||||||
style="@style/AboutTextView.Column0"/>
|
style="@style/AboutItem"/>
|
||||||
<TextView
|
|
||||||
android:id="@+id/about_version"
|
<!-- Version -->
|
||||||
style="@style/AboutTextView"/>
|
<TextView
|
||||||
</TableRow>
|
android:text="@string/about_version"
|
||||||
<TableRow style="@style/AboutTableRow">
|
style="@style/AboutLabel"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:text="@string/about_support"
|
android:id="@+id/about_version"
|
||||||
style="@style/AboutTextView.Column0"/>
|
style="@style/AboutItem"/>
|
||||||
<TextView
|
|
||||||
android:text="@string/my_tracks_web_url"
|
<!-- Support -->
|
||||||
style="@style/AboutTextView.Url"/>
|
<TextView
|
||||||
</TableRow>
|
android:text="@string/about_support"
|
||||||
<TableRow style="@style/AboutTableRow">
|
style="@style/AboutLabel"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:text="@string/about_privacy"
|
android:text="@string/my_tracks_web_url"
|
||||||
style="@style/AboutTextView.Column0"/>
|
style="@style/AboutUrl"/>
|
||||||
<TextView
|
|
||||||
android:text="@string/my_tracks_privacy_url"
|
<!-- Privacy -->
|
||||||
style="@style/AboutTextView.Url"/>
|
<TextView
|
||||||
</TableRow>
|
android:text="@string/about_privacy"
|
||||||
</TableLayout>
|
style="@style/AboutLabel"/>
|
||||||
|
<TextView
|
||||||
|
android:text="@string/my_tracks_privacy_url"
|
||||||
|
style="@style/AboutUrl"/>
|
||||||
|
</LinearLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
@@ -15,33 +15,33 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<resources>
|
<resources>
|
||||||
|
<!-- About page label -->
|
||||||
<!-- About dialog TableRow -->
|
<style name="AboutLabel">
|
||||||
<style name="AboutTableRow">
|
|
||||||
<item name="android:paddingBottom">2dp</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<!-- About dialog TextView -->
|
|
||||||
<style name="AboutTextView">
|
|
||||||
<item name="android:layout_height">wrap_content</item>
|
<item name="android:layout_height">wrap_content</item>
|
||||||
<item name="android:layout_width">wrap_content</item>
|
<item name="android:layout_width">fill_parent</item>
|
||||||
<item name="android:textSize">20sp</item>
|
<item name="android:paddingBottom">2dp</item>
|
||||||
|
<item name="android:textSize">20sp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- About dialog TextView column 0 -->
|
<!-- About page item -->
|
||||||
<style name="AboutTextView.Column0">
|
<style name="AboutItem">
|
||||||
<item name="android:gravity">right</item>
|
<item name="android:layout_height">wrap_content</item>
|
||||||
<item name="android:layout_column">0</item>
|
<item name="android:layout_width">fill_parent</item>
|
||||||
<item name="android:paddingLeft">10dp</item>
|
<item name="android:paddingBottom">2dp</item>
|
||||||
<item name="android:paddingRight">10dp</item>
|
<item name="android:paddingLeft">20dp</item>
|
||||||
|
<item name="android:textSize">18sp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- About dialog TextView Url -->
|
<!-- About page url -->
|
||||||
<style name="AboutTextView.Url">
|
<style name="AboutUrl">
|
||||||
<item name="android:autoLink">web</item>
|
<item name="android:autoLink">web</item>
|
||||||
<item name="android:textSize">18sp</item>
|
<item name="android:layout_height">wrap_content</item>
|
||||||
|
<item name="android:layout_width">fill_parent</item>
|
||||||
|
<item name="android:paddingBottom">2dp</item>
|
||||||
|
<item name="android:paddingLeft">20dp</item>
|
||||||
|
<item name="android:textSize">18sp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- Button -->
|
<!-- Button -->
|
||||||
<style name="Button">
|
<style name="Button">
|
||||||
<item name="android:layout_height">fill_parent</item>
|
<item name="android:layout_height">fill_parent</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user