Change the about page layout to single column to

support long translated strings in different languages.
This commit is contained in:
Jimmy Shih
2011-12-20 14:10:36 -08:00
parent 3833a9f7fe
commit 912075ddd4
2 changed files with 103 additions and 99 deletions
+35 -31
View File
@@ -17,16 +17,25 @@ 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">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:orientation="vertical"
android:padding="10dp">
<!-- Title -->
<TableLayout <TableLayout
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_width="fill_parent"
android:padding="2dp" android:padding="2dp"
android:shrinkColumns="0" android:shrinkColumns="0"
android:stretchColumns="1"> android:stretchColumns="1">
<TableRow style="@style/AboutTableRow"> <TableRow>
<ImageView <ImageView
android:layout_column="0" android:layout_column="0"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:scaleType="center" android:scaleType="center"
android:src="@drawable/arrow_icon"/> android:src="@drawable/arrow_icon"/>
<LinearLayout <LinearLayout
@@ -46,58 +55,53 @@ limitations under the License.
android:textSize="15sp"/> android:textSize="15sp"/>
</LinearLayout> </LinearLayout>
</TableRow> </TableRow>
<TableRow style="@style/AboutTableRow"> </TableLayout>
<!-- Team -->
<TextView <TextView
android:text="@string/about_team" android:text="@string/about_team"
style="@style/AboutTextView.Column0"/> style="@style/AboutLabel"/>
<LinearLayout
android:layout_column="1"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:orientation="vertical">
<TextView <TextView
android:text="@string/about_bart" android:text="@string/about_bart"
style="@style/AboutTextView"/> style="@style/AboutItem"/>
<TextView <TextView
android:text="@string/about_dylan" android:text="@string/about_dylan"
style="@style/AboutTextView"/> style="@style/AboutItem"/>
<TextView <TextView
android:text="@string/about_jimmy" android:text="@string/about_jimmy"
style="@style/AboutTextView"/> style="@style/AboutItem"/>
<TextView <TextView
android:text="@string/about_leif" android:text="@string/about_leif"
style="@style/AboutTextView"/> style="@style/AboutItem"/>
<TextView <TextView
android:text="@string/about_rodrigo" android:text="@string/about_rodrigo"
style="@style/AboutTextView"/> style="@style/AboutItem"/>
<TextView <TextView
android:text="@string/about_sandor" android:text="@string/about_sandor"
style="@style/AboutTextView"/> style="@style/AboutItem"/>
</LinearLayout>
</TableRow> <!-- Version -->
<TableRow style="@style/AboutTableRow">
<TextView <TextView
android:text="@string/about_version" android:text="@string/about_version"
style="@style/AboutTextView.Column0"/> style="@style/AboutLabel"/>
<TextView <TextView
android:id="@+id/about_version" android:id="@+id/about_version"
style="@style/AboutTextView"/> style="@style/AboutItem"/>
</TableRow>
<TableRow style="@style/AboutTableRow"> <!-- Support -->
<TextView <TextView
android:text="@string/about_support" android:text="@string/about_support"
style="@style/AboutTextView.Column0"/> style="@style/AboutLabel"/>
<TextView <TextView
android:text="@string/my_tracks_web_url" android:text="@string/my_tracks_web_url"
style="@style/AboutTextView.Url"/> style="@style/AboutUrl"/>
</TableRow>
<TableRow style="@style/AboutTableRow"> <!-- Privacy -->
<TextView <TextView
android:text="@string/about_privacy" android:text="@string/about_privacy"
style="@style/AboutTextView.Column0"/> style="@style/AboutLabel"/>
<TextView <TextView
android:text="@string/my_tracks_privacy_url" android:text="@string/my_tracks_privacy_url"
style="@style/AboutTextView.Url"/> style="@style/AboutUrl"/>
</TableRow> </LinearLayout>
</TableLayout>
</ScrollView> </ScrollView>
+17 -17
View File
@@ -15,30 +15,30 @@ 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:paddingBottom">2dp</item>
<item name="android:textSize">20sp</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: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> <item name="android:textSize">18sp</item>
</style> </style>