Commit eb3280fa authored by Edward Wang's avatar Edward Wang
Browse files

res: adjust about_main font sizes and layout (centre all)

parent 897cd32e
......@@ -31,7 +31,7 @@
android:layout_gravity="center_horizontal|top"
android:text="@string/app_name_full"
android:textColor="@android:color/black"
android:textSize="27sp" />
android:textSize="29sp" />
<TextView
android:layout_width="fill_parent"
......@@ -39,46 +39,56 @@
android:layout_gravity="center_horizontal|top"
android:text="@string/for_android"
android:textColor="@android:color/black"
android:textSize="18sp" />
android:textSize="20sp" />
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:layout_marginTop="10dp"
android:gravity="center"
android:text="@string/about_text"
android:textColor="@android:color/black"
android:textSize="16sp" />
android:textSize="18sp" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginTop="30dp"
android:gravity="center"
android:text="@string/about_copyright"
android:textColor="@android:color/black"
android:textSize="16sp" />
android:textSize="14sp" />
<TextView
android:id="@+id/main_revision"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center"
android:textColor="@android:color/black"
android:text="@string/revision"
android:textSize="14sp" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="@string/compiled_by"
android:gravity="center"
android:textColor="@android:color/black"
android:textSize="16sp" />
android:textSize="11sp" />
<TextView
android:id="@+id/main_compiled"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:paddingLeft="32sp"
android:gravity="center"
android:text="foo@bar (xxxx-xx-xx)"
android:textColor="@android:color/black"
android:textSize="16sp" />
android:textSize="11sp" />
<TextView
android:id="@+id/main_link"
......
......@@ -83,6 +83,7 @@
<!-- About -->
<string name="version">Version</string>
<string name="licence">Licence</string>
<string name="revision">Révision</string>
<string name="about">À propos</string>
<string name="about_copyright">Copyright &#169; 1996&#8211;2012 par l\'équipe VideoLAN.\nConsultez le onglet «Licence» pour informations relatives aux licences.</string>
<string name="for_android">pour Android</string>
......
......@@ -92,6 +92,7 @@
<!-- About -->
<string name="version">Version</string>
<string name="licence">Licence</string>
<string name="revision">Revision</string>
<string name="about">About</string>
<string name="about_text">VLC media player for Android is a port of VLC, the free media player that can read from files and network streams, to the Android operating system.</string>
<string name="about_link">
......
......@@ -43,9 +43,12 @@ public class AboutMainFragment extends Fragment {
String builddate = Util.readAsset("builddate.txt", "Unknown");
String builder = Util.readAsset("builder.txt", "unknown");
String revision = Util.readAsset("revision.txt", "unknown");
TextView compiled = (TextView) v.findViewById(R.id.main_compiled);
compiled.setText(builder + " (" + builddate + ")");
TextView textview_rev = (TextView) v.findViewById(R.id.main_revision);
textview_rev.setText(getResources().getString(R.string.revision) + " " + revision + " (" + builddate + ")");
return v;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment