Migrate to gradle, appcompat as external dependency.
[mobilnebezpieczenstwo.git] / app / src / main / res / layout / activity_app_info.xml
1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2     xmlns:tools="http://schemas.android.com/tools"
3     android:id="@+id/container"
4     android:layout_width="match_parent"
5     android:layout_height="match_parent"
6     android:background="@color/app_detail_bg"
7     android:padding="20dp" >
8
9     <LinearLayout
10         android:id="@+id/app_layout"
11         android:layout_width="match_parent"
12         android:layout_height="wrap_content"
13         android:layout_alignParentLeft="true"
14         android:layout_alignParentTop="true"
15         android:gravity="center" >
16
17         <RelativeLayout
18             android:layout_width="50dp"
19             android:layout_height="50dp" >
20
21             <ImageView
22                 android:id="@+id/app_icon"
23                 android:layout_width="50dp"
24                 android:layout_height="50dp"
25                 android:scaleType="centerInside"
26                 android:src="@drawable/ic_launcher" />
27
28             <ImageView
29                 android:id="@+id/list_system_app_icon"
30                 android:layout_width="25dp"
31                 android:layout_height="25dp"
32                 android:layout_alignParentBottom="true"
33                 android:layout_alignParentRight="true"
34                 android:scaleType="centerInside"
35                 android:src="@drawable/ic_system_dark"
36                 android:visibility="invisible" />
37         </RelativeLayout>
38
39         <TextView
40             android:id="@+id/app_name"
41             android:layout_width="match_parent"
42             android:layout_height="wrap_content"
43             android:layout_marginLeft="10dp"
44             android:textSize="14sp" />
45     </LinearLayout>
46
47     <TextView
48         android:id="@+id/system_app_text"
49         android:layout_width="match_parent"
50         android:layout_height="wrap_content"
51         android:layout_below="@+id/app_layout"
52         android:layout_marginTop="20dp"
53         android:layout_marginBottom="-10dp"
54         android:text="@string/app_detail_settings_app_text"
55         android:textSize="16sp"
56         android:textStyle="bold" />
57
58     <TextView
59         android:id="@+id/header_text"
60         android:layout_width="match_parent"
61         android:layout_height="wrap_content"
62         android:layout_below="@+id/system_app_text"
63         android:layout_marginTop="20dp"
64         android:text="@string/app_detail_header"
65         android:textSize="14sp"
66         android:textStyle="bold" />
67
68     <ListView
69         android:id="@+id/threats_list"
70         android:layout_width="match_parent"
71         android:layout_height="match_parent"
72         android:layout_above="@+id/button_layout"
73         android:layout_below="@+id/header_text"
74         android:layout_marginBottom="10dp"
75         android:layout_marginTop="10dp"
76         android:divider="@color/app_detail_list_divider"
77         android:cacheColorHint="@android:color/transparent"
78         android:scrollbarDefaultDelayBeforeFade="2000"
79         android:scrollbarFadeDuration="2000" />
80
81     <LinearLayout
82         android:id="@+id/button_layout"
83         android:layout_width="match_parent"
84         android:layout_height="wrap_content"
85         android:layout_alignParentBottom="true"
86         android:layout_centerHorizontal="true"
87         android:layout_marginTop="20dp"
88         android:paddingLeft="10dp"
89         android:paddingRight="10dp" >
90
91         <ImageButton
92             android:id="@+id/more_info_button"
93             android:layout_width="0dip"
94             android:layout_height="wrap_content"
95             android:layout_weight="1"
96             android:layout_marginRight="10dp"
97             android:background="#00000000"
98             android:contentDescription="@string/app_detail_more_info_button"
99             android:scaleType="fitCenter"
100             android:src="@drawable/app_info_what_can_button"
101             android:visibility="gone" />
102
103         <ImageButton
104             android:id="@+id/uninstall_button"
105             android:layout_width="0dip"
106             android:layout_height="wrap_content"
107             android:layout_weight="1"
108             android:background="#00000000"
109             android:contentDescription="@string/app_detail_uninstall_button"
110             android:scaleType="fitCenter"
111             android:src="@drawable/app_info_uninstall_button" />
112
113     </LinearLayout>
114 </RelativeLayout>