Skip to content
This repository has been archived by the owner on Mar 17, 2019. It is now read-only.

Commit

Permalink
Merge pull request #76 from bdonald25/picturesMaterial
Browse files Browse the repository at this point in the history
Pictures app -> Material Design
  • Loading branch information
bdonald25 committed May 22, 2015
2 parents 7559696 + 2a48926 commit ad5c6dd
Show file tree
Hide file tree
Showing 31 changed files with 487 additions and 288 deletions.
2 changes: 1 addition & 1 deletion Apps/Motion/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="21" />
android:targetSdkVersion="22" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
Expand Down
10 changes: 5 additions & 5 deletions Apps/Motion/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
apply plugin: 'android'
apply plugin: 'com.android.application'

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':Libs:iSENSE Imports')
compile "com.android.support:support-v4:21.0.2"
compile "com.android.support:appcompat-v7:21.0.2"
compile "com.android.support:support-v4:22.1.1"
compile "com.android.support:appcompat-v7:22.1.1"
}

android {
compileSdkVersion 21
buildToolsVersion "21.1.1"
compileSdkVersion 22
buildToolsVersion "22.0.1"

sourceSets {
main {
Expand Down
1 change: 0 additions & 1 deletion Apps/Motion/src/edu/uml/cs/isense/motion/Motion.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.app.ActionBarActivity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
Expand Down
32 changes: 13 additions & 19 deletions Apps/Motion/src/edu/uml/cs/isense/motion/dialogs/About.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package edu.uml.cs.isense.motion.dialogs;

import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
Expand All @@ -9,22 +8,17 @@

public class About extends ActionBarActivity {

private Button okButton;

@Override
public void onCreate(Bundle savedInstanceBundle) {
super.onCreate(savedInstanceBundle);
setContentView(R.layout.about);

okButton = (Button) findViewById(R.id.okButton);

okButton.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
finish();
}
});
}

@Override
public void onCreate(Bundle savedInstanceBundle) {
super.onCreate(savedInstanceBundle);
setContentView(R.layout.about);

Button okButton = (Button) findViewById(R.id.okButton);
okButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
}
}
5 changes: 2 additions & 3 deletions Apps/Pictures/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="21" />
android:targetSdkVersion="22" />

<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.INTERNET" />
Expand All @@ -26,7 +26,6 @@
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="edu.uml.cs.isense.riverwalk" />


<application
android:allowBackup="false"
android:icon="@drawable/ic_launcher"
Expand Down Expand Up @@ -88,13 +87,13 @@
android:theme="@style/AppThemeDialog" />
<activity
android:name="edu.uml.cs.isense.riverwalk.Continuous"
android:label="Continuous Photo Shooting"
android:theme="@style/AppThemeDialog" />

<!-- from iSENSE imports -->
<activity
android:name="edu.uml.cs.isense.queue.QueueLayout"
android:label="Upload Data"
android:launchMode="singleTask"
android:theme="@style/AppTheme" />
<activity
android:name="edu.uml.cs.isense.queue.QueueAlter"
Expand Down
10 changes: 6 additions & 4 deletions Apps/Pictures/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
apply plugin: 'android'
apply plugin: 'com.android.application'

dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':Libs:iSENSE Imports')
compile "com.android.support:support-v4:22.1.1"
compile "com.android.support:appcompat-v7:22.1.1"
}

android {
compileSdkVersion 21
buildToolsVersion '21.1.1'
compileSdkVersion 22
buildToolsVersion '22.0.1'

sourceSets {
main {
Expand Down
52 changes: 52 additions & 0 deletions Apps/Pictures/res/layout-v11/about.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_above="@+id/LinearLayoutButtons" >

<LinearLayout
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >

<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/aboutApp"
android:textSize="16sp"
android:padding="10dp"/>

</LinearLayout>
</ScrollView>

<LinearLayout
android:id="@+id/LinearLayoutButtons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="vertical"
android:background="@android:color/transparent" >

<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="?android:attr/dividerVertical" />

<Button
android:id="@+id/okButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@android:string/ok"
style="?android:attr/buttonBarButtonStyle"/>

</LinearLayout>

</RelativeLayout>
74 changes: 49 additions & 25 deletions Apps/Pictures/res/layout-v11/continuous_shooting.xml
Original file line number Diff line number Diff line change
@@ -1,36 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >


<CheckBox
android:id="@+id/checkContinuous"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/continuous" />
<!--This view forces the dialog to match_parent without it the dialog is really small, bug with Android L?-->
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"/>

<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding = "10dp"
android:text="@string/interval" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/continuouSingle"
android:textSize="16sp"
android:padding="10dp"/>

<EditText
android:id="@+id/etInterval"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="number" >
</EditText>
<CheckBox
android:id="@+id/checkContinuous"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/continuous" />

<Button
android:id="@+id/description_okay"
style="?android:attr/buttonBarButtonStyle"
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding = "10dp"
android:text="@string/interval" />

<EditText
android:id="@+id/etInterval"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/okay" />

android:ems="10"
android:inputType="number" />
<LinearLayout
android:id="@+id/LinearLayoutButtons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@android:color/transparent"
android:orientation="vertical">
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="?android:attr/dividerVertical" />

<Button
android:id="@+id/description_okay"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/okay" />
</LinearLayout>

</LinearLayout>
53 changes: 53 additions & 0 deletions Apps/Pictures/res/layout-v11/help.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_above="@+id/LinearLayoutButtons" >

<LinearLayout
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >

<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/helpText"
android:textSize="16sp"
android:padding="10dp"/>


</LinearLayout>

</ScrollView>

<LinearLayout
android:id="@+id/LinearLayoutButtons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@android:color/transparent"
android:orientation="vertical">
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="?android:attr/dividerVertical" />

<Button
android:id="@+id/okButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@android:string/ok"
style="?android:attr/buttonBarButtonStyle"/>

</LinearLayout>

</RelativeLayout>
59 changes: 59 additions & 0 deletions Apps/Pictures/res/layout-v11/share_picture.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >

<!--This view forces the dialog to match_parent without it the dialog is really small, bug with Android L?-->
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"/>

<TextView
android:id="@+id/tvStep1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/step1"
android:layout_marginTop="20dp"
android:layout_gravity="center"
android:textAppearance="?android:attr/textAppearanceMedium" />

<Button
android:id="@+id/buttonProject"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/selectProject"/>

<TextView
android:id="@+id/tvStep2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/step2"
android:layout_marginTop="40dp"
android:layout_gravity="center"
android:textAppearance="?android:attr/textAppearanceMedium" />

<Button
android:id="@+id/buttonCredentials"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/uploadCredentials"
/>

<TextView
android:id="@+id/tvOr"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/or"
android:layout_gravity="center"
android:textAppearance="?android:attr/textAppearanceMedium" />

<Button
android:id="@+id/buttonKey"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/uploadKey"
android:layout_marginBottom = "20dp"/>

</LinearLayout>
Loading

0 comments on commit ad5c6dd

Please sign in to comment.