Add landscape to the main activitypull/1/head
parent
9be5255cdc
commit
1b85bb2f14
@ -1,7 +1,25 @@ |
||||
/* |
||||
* Copyright (C) 2015 Anthony Chomienne, anthony@mob-dev.fr |
||||
* |
||||
* This program is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU General Public License |
||||
* as published by the Free Software Foundation; either version 3 |
||||
* of the License, or (at your option) any later version. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with this program; if not, write to the Free Software |
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
||||
*/ |
||||
|
||||
package fr.mobdev.gobelim.listener; |
||||
|
||||
import java.util.EventListener; |
||||
|
||||
public interface ServerListener extends EventListener { |
||||
public void updateServerList(); |
||||
void updateServerList(); |
||||
} |
||||
|
@ -0,0 +1,74 @@ |
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" |
||||
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" |
||||
android:paddingRight="@dimen/activity_horizontal_margin" |
||||
android:paddingTop="@dimen/activity_vertical_margin" |
||||
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"> |
||||
|
||||
<Button |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:text="@string/upload_pict" |
||||
android:id="@+id/upload_button" |
||||
android:layout_alignParentBottom="true" |
||||
android:layout_centerHorizontal="true" |
||||
android:layout_marginTop="25dp" |
||||
/> |
||||
|
||||
<Button |
||||
android:layout_above="@+id/upload_button" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:text="@string/select_pict" |
||||
android:id="@+id/select_button" |
||||
android:layout_alignParentBottom="true" |
||||
android:layout_centerHorizontal="true" |
||||
android:layout_marginTop="25dp" |
||||
/> |
||||
<LinearLayout |
||||
android:id="@+id/spinners_layout" |
||||
android:orientation="horizontal" |
||||
android:layout_above="@+id/select_button" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content"> |
||||
<Spinner |
||||
android:layout_weight="50" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:id="@+id/servers_spinner" |
||||
android:layout_marginLeft="25dp" |
||||
/> |
||||
<LinearLayout |
||||
android:layout_weight="50" |
||||
android:orientation="horizontal" |
||||
android:id="@+id/layout_days" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="25dp" |
||||
android:gravity="center_vertical" |
||||
> |
||||
<TextView |
||||
android:text="@string/duration" |
||||
android:singleLine="false" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginLeft="15dp"/> |
||||
<Spinner |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:id="@+id/delete_day_spinner" |
||||
android:entries="@array/deleted_days" |
||||
/> |
||||
</LinearLayout> |
||||
</LinearLayout> |
||||
|
||||
<ImageView |
||||
android:layout_above="@+id/spinners_layout" |
||||
android:id="@+id/thumbnail_main" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_alignParentTop="true" |
||||
android:layout_centerHorizontal="true" |
||||
/> |
||||
|
||||
</RelativeLayout> |
Loading…
Reference in new issue