mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 710325 - Show addon version in about:home (r=mfinkle)
This commit is contained in:
parent
d4f6a11174
commit
27befc2cf8
@ -429,8 +429,11 @@ public class AboutHomeContent extends ScrollView {
|
||||
try {
|
||||
for (int i = 0; i < array.length(); i++) {
|
||||
JSONObject jsonobj = array.getJSONObject(i);
|
||||
|
||||
View row = mInflater.inflate(R.layout.abouthome_addon_row, mAddonsLayout, false);
|
||||
((TextView) row.findViewById(R.id.addon_title)).setText(jsonobj.getString("name"));
|
||||
((TextView) row.findViewById(R.id.addon_version)).setText(jsonobj.getString("version"));
|
||||
|
||||
mAddonsLayout.addView(row);
|
||||
}
|
||||
} catch (JSONException e) {
|
||||
|
@ -1,18 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/abouthome_separator">
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="47dip"
|
||||
android:gravity="left|center_vertical"
|
||||
android:background="@drawable/abouthome_separator">
|
||||
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/addon_title"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="47dip"
|
||||
android:paddingLeft="12dip"
|
||||
android:gravity="left|center_vertical"
|
||||
<TextView android:id="@+id/addon_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="12dip"
|
||||
android:layout_centerVertical="true"
|
||||
android:textSize="15sp"
|
||||
android:background="@android:drawable/list_selector_background"
|
||||
android:textColor="#222222"
|
||||
android:clickable="true"/>
|
||||
android:textColor="#222222"/>
|
||||
|
||||
</FrameLayout>
|
||||
<TextView android:id="@+id/addon_version"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@id/addon_title"
|
||||
android:layout_alignBottom="@id/addon_title"
|
||||
android:layout_marginLeft="5dip"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#666666"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
Loading…
Reference in New Issue
Block a user