Avoid null pointer exception when the details fragment is empty
[pub/Android/ownCloud.git] / res / layout / main.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012 Bartek Przybylski
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="fill_parent"
21 android:layout_height="fill_parent"
22 android:orientation="vertical" >
23
24 <GridView
25 android:id="@+id/homeScreenGrid"
26 android:layout_width="fill_parent"
27 android:layout_height="fill_parent"
28 android:layout_gravity="center_horizontal"
29 android:columnWidth="90dp"
30 android:gravity="center"
31 android:horizontalSpacing="20dp"
32 android:verticalSpacing="20dp"
33 android:layout_marginTop="20dp"
34 android:numColumns="2"
35 android:stretchMode="columnWidth" >
36 </GridView>
37
38
39
40 </LinearLayout>