Add landscape layout for AppDetails
This commit is contained in:
parent
9c3da557fa
commit
63c573b28b
77
res/layout-land/appdetails.xml
Normal file
77
res/layout-land/appdetails.xml
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<LinearLayout android:layout_width="0dp"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:layout_weight="0.5"
|
||||||
|
android:layout_margin="5dp"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<RelativeLayout android:id="@+id/header"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="4dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<TextView android:id="@+id/title"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:singleLine="false"
|
||||||
|
android:layout_marginBottom="4dp"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true" />
|
||||||
|
|
||||||
|
<ImageView android:id="@+id/icon"
|
||||||
|
android:scaleType="fitCenter"
|
||||||
|
android:layout_marginRight="5dp"
|
||||||
|
android:layout_height="42dp"
|
||||||
|
android:layout_width="42dp"
|
||||||
|
android:layout_below="@id/title" />
|
||||||
|
|
||||||
|
<TextView android:id="@+id/license"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:layout_below="@id/title"
|
||||||
|
android:layout_toRightOf="@id/icon"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="wrap_content" />
|
||||||
|
|
||||||
|
<TextView android:id="@+id/status"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:layout_below="@id/license"
|
||||||
|
android:layout_toRightOf="@id/icon"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="fill_parent" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<TextView android:id="@+id/signature"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:layout_marginBottom="4dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="fill_parent" />
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:id="@+id/desc_scrollview"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<TextView android:id="@+id/description"
|
||||||
|
android:singleLine="false"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ListView android:id="@android:id/list"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:layout_weight="0.5" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
@ -16,19 +16,13 @@
|
|||||||
|
|
||||||
<TextView android:id="@+id/version"
|
<TextView android:id="@+id/version"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:singleLine="true"
|
android:maxLines="2"
|
||||||
android:ellipsize="marquee"
|
android:ellipsize="end"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_toLeftOf="@id/buildtype"
|
||||||
android:textSize="18sp" />
|
android:textSize="18sp" />
|
||||||
|
|
||||||
<TextView android:id="@+id/status"
|
|
||||||
android:textSize="12sp"
|
|
||||||
android:layout_below="@id/version"
|
|
||||||
android:layout_alignParentRight="false"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="wrap_content" />
|
|
||||||
|
|
||||||
<TextView android:id="@+id/size"
|
<TextView android:id="@+id/size"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:layout_below="@id/version"
|
android:layout_below="@id/version"
|
||||||
@ -36,4 +30,14 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="wrap_content" />
|
android:layout_width="wrap_content" />
|
||||||
|
|
||||||
|
<TextView android:id="@+id/status"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:maxLines="2"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:layout_below="@id/version"
|
||||||
|
android:layout_toLeftOf="@id/size"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="wrap_content" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
@ -327,6 +327,7 @@ public class AppDetails extends ListActivity {
|
|||||||
if (pref_expert && mInstalledSignature != null) {
|
if (pref_expert && mInstalledSignature != null) {
|
||||||
tv = (TextView) findViewById(R.id.signature);
|
tv = (TextView) findViewById(R.id.signature);
|
||||||
tv.setText("Signed: " + mInstalledSigID);
|
tv.setText("Signed: " + mInstalledSigID);
|
||||||
|
tv.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user