@@ -46,6 +46,18 @@ |
||
46 | 46 |
android:label="@string/app_name"> |
47 | 47 |
</activity> |
48 | 48 |
|
49 |
+ <activity |
|
50 |
+ android:name=".briefs.BriefsActivity" |
|
51 |
+ android:configChanges="keyboardHidden|orientation|screenSize" |
|
52 |
+ android:label="@string/app_name"> |
|
53 |
+ </activity> |
|
54 |
+ |
|
55 |
+ <activity |
|
56 |
+ android:name=".settings.SettingsActivity" |
|
57 |
+ android:configChanges="keyboardHidden|orientation|screenSize" |
|
58 |
+ android:label="@string/app_name"> |
|
59 |
+ </activity> |
|
60 |
+ |
|
49 | 61 |
</application> |
50 | 62 |
|
51 | 63 |
</manifest> |
@@ -0,0 +1,33 @@ |
||
1 |
+package ai.pai.lensman.briefs; |
|
2 |
+ |
|
3 |
+import android.content.Intent; |
|
4 |
+import android.os.Bundle; |
|
5 |
+import android.support.annotation.Nullable; |
|
6 |
+import android.support.v7.app.AppCompatActivity; |
|
7 |
+ |
|
8 |
+import ai.pai.lensman.R; |
|
9 |
+import ai.pai.lensman.settings.SettingsActivity; |
|
10 |
+import butterknife.ButterKnife; |
|
11 |
+import butterknife.OnClick; |
|
12 |
+ |
|
13 |
+public class BriefsActivity extends AppCompatActivity{ |
|
14 |
+ |
|
15 |
+ @Override |
|
16 |
+ protected void onCreate(@Nullable Bundle savedInstanceState) { |
|
17 |
+ super.onCreate(savedInstanceState); |
|
18 |
+ setContentView(R.layout.activity_briefs); |
|
19 |
+ |
|
20 |
+ ButterKnife.bind(this); |
|
21 |
+ } |
|
22 |
+ |
|
23 |
+ @OnClick(R.id.title_bar_back_layout) |
|
24 |
+ void back(){ |
|
25 |
+ finish(); |
|
26 |
+ } |
|
27 |
+ |
|
28 |
+ @OnClick(R.id.iv_settings) |
|
29 |
+ void goToSettingPage(){ |
|
30 |
+ startActivity(new Intent(this, SettingsActivity.class)); |
|
31 |
+ } |
|
32 |
+ |
|
33 |
+} |
@@ -0,0 +1,35 @@ |
||
1 |
+package ai.pai.lensman.settings; |
|
2 |
+ |
|
3 |
+import android.os.Bundle; |
|
4 |
+import android.support.annotation.Nullable; |
|
5 |
+import android.support.v7.app.AppCompatActivity; |
|
6 |
+ |
|
7 |
+import ai.pai.lensman.R; |
|
8 |
+import butterknife.ButterKnife; |
|
9 |
+import butterknife.OnClick; |
|
10 |
+ |
|
11 |
+/** |
|
12 |
+ * Created by chengzhenyu on 2016/7/21. |
|
13 |
+ */ |
|
14 |
+public class SettingsActivity extends AppCompatActivity { |
|
15 |
+ |
|
16 |
+ |
|
17 |
+ @Override |
|
18 |
+ protected void onCreate(@Nullable Bundle savedInstanceState) { |
|
19 |
+ super.onCreate(savedInstanceState); |
|
20 |
+ setContentView(R.layout.activity_settings); |
|
21 |
+ |
|
22 |
+ ButterKnife.bind(this); |
|
23 |
+ } |
|
24 |
+ |
|
25 |
+ @OnClick(R.id.title_bar_back_layout) |
|
26 |
+ void back(){ |
|
27 |
+ finish(); |
|
28 |
+ } |
|
29 |
+ |
|
30 |
+ @OnClick(R.id.iv_options) |
|
31 |
+ void clickOptionBtn(){ |
|
32 |
+ |
|
33 |
+ } |
|
34 |
+ |
|
35 |
+} |
@@ -1,5 +1,6 @@ |
||
1 | 1 |
package ai.pai.lensman.upload; |
2 | 2 |
|
3 |
+import android.content.Intent; |
|
3 | 4 |
import android.os.Bundle; |
4 | 5 |
import android.support.v7.app.AppCompatActivity; |
5 | 6 |
import android.support.v7.widget.GridLayoutManager; |
@@ -12,6 +13,7 @@ import android.widget.TextView; |
||
12 | 13 |
import java.util.ArrayList; |
13 | 14 |
|
14 | 15 |
import ai.pai.lensman.R; |
16 |
+import ai.pai.lensman.briefs.BriefsActivity; |
|
15 | 17 |
import butterknife.BindView; |
16 | 18 |
import butterknife.ButterKnife; |
17 | 19 |
import butterknife.OnClick; |
@@ -52,7 +54,7 @@ public class UploadActivity extends AppCompatActivity implements UploadContract. |
||
52 | 54 |
|
53 | 55 |
@OnClick(R.id.iv_briefs) |
54 | 56 |
void jumpToBriefs(){ |
55 |
- |
|
57 |
+ startActivity(new Intent(this, BriefsActivity.class)); |
|
56 | 58 |
} |
57 | 59 |
|
58 | 60 |
@OnClick(R.id.iv_add_session) |
@@ -0,0 +1,63 @@ |
||
1 |
+<?xml version="1.0" encoding="utf-8"?> |
|
2 |
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
3 |
+ android:layout_width="match_parent" |
|
4 |
+ android:layout_height="match_parent" |
|
5 |
+ android:background="@color/background_white"> |
|
6 |
+ |
|
7 |
+ <LinearLayout |
|
8 |
+ android:id="@+id/title_bar_with_back_btn" |
|
9 |
+ android:layout_width="match_parent" |
|
10 |
+ android:layout_height="@dimen/action_bar_height" |
|
11 |
+ android:background="@color/colorPrimary" |
|
12 |
+ android:orientation="horizontal"> |
|
13 |
+ |
|
14 |
+ <LinearLayout |
|
15 |
+ android:id="@+id/title_bar_back_layout" |
|
16 |
+ android:layout_width="70dp" |
|
17 |
+ android:layout_height="match_parent" |
|
18 |
+ android:gravity="center_vertical" |
|
19 |
+ android:orientation="horizontal" |
|
20 |
+ android:paddingLeft="12dp"> |
|
21 |
+ |
|
22 |
+ <ImageView |
|
23 |
+ android:layout_width="32dp" |
|
24 |
+ android:layout_height="32dp" |
|
25 |
+ android:src="@drawable/back_selector" /> |
|
26 |
+ |
|
27 |
+ </LinearLayout> |
|
28 |
+ |
|
29 |
+ <TextView |
|
30 |
+ android:id="@+id/title_bar_middle_txt" |
|
31 |
+ android:layout_width="0dp" |
|
32 |
+ android:layout_height="match_parent" |
|
33 |
+ android:layout_weight="1" |
|
34 |
+ android:gravity="center" |
|
35 |
+ android:paddingLeft="10dp" |
|
36 |
+ android:paddingRight="10dp" |
|
37 |
+ android:singleLine="true" |
|
38 |
+ android:text="@string/briefs" |
|
39 |
+ android:textColor="@color/text_white" |
|
40 |
+ android:textSize="@dimen/action_bar_title_medium_text_size" /> |
|
41 |
+ |
|
42 |
+ <LinearLayout |
|
43 |
+ android:id="@+id/title_bar_option_layout" |
|
44 |
+ android:layout_width="70dp" |
|
45 |
+ android:layout_height="match_parent" |
|
46 |
+ android:gravity="center_vertical|right" |
|
47 |
+ android:orientation="horizontal" |
|
48 |
+ android:paddingRight="9dp"> |
|
49 |
+ |
|
50 |
+ |
|
51 |
+ <ImageView |
|
52 |
+ android:id="@+id/iv_settings" |
|
53 |
+ android:layout_width="32dp" |
|
54 |
+ android:layout_height="32dp" |
|
55 |
+ android:layout_marginLeft="6dp" |
|
56 |
+ android:src="@drawable/settings" /> |
|
57 |
+ |
|
58 |
+ </LinearLayout> |
|
59 |
+ |
|
60 |
+ </LinearLayout> |
|
61 |
+ |
|
62 |
+ |
|
63 |
+</RelativeLayout> |
@@ -0,0 +1,63 @@ |
||
1 |
+<?xml version="1.0" encoding="utf-8"?> |
|
2 |
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
3 |
+ android:layout_width="match_parent" |
|
4 |
+ android:layout_height="match_parent" |
|
5 |
+ android:background="@color/background_white"> |
|
6 |
+ |
|
7 |
+ <LinearLayout |
|
8 |
+ android:id="@+id/title_bar_with_back_btn" |
|
9 |
+ android:layout_width="match_parent" |
|
10 |
+ android:layout_height="@dimen/action_bar_height" |
|
11 |
+ android:background="@color/colorPrimary" |
|
12 |
+ android:orientation="horizontal"> |
|
13 |
+ |
|
14 |
+ <LinearLayout |
|
15 |
+ android:id="@+id/title_bar_back_layout" |
|
16 |
+ android:layout_width="70dp" |
|
17 |
+ android:layout_height="match_parent" |
|
18 |
+ android:gravity="center_vertical" |
|
19 |
+ android:orientation="horizontal" |
|
20 |
+ android:paddingLeft="12dp"> |
|
21 |
+ |
|
22 |
+ <ImageView |
|
23 |
+ android:layout_width="32dp" |
|
24 |
+ android:layout_height="32dp" |
|
25 |
+ android:src="@drawable/back_selector" /> |
|
26 |
+ |
|
27 |
+ </LinearLayout> |
|
28 |
+ |
|
29 |
+ <TextView |
|
30 |
+ android:id="@+id/title_bar_middle_txt" |
|
31 |
+ android:layout_width="0dp" |
|
32 |
+ android:layout_height="match_parent" |
|
33 |
+ android:layout_weight="1" |
|
34 |
+ android:gravity="center" |
|
35 |
+ android:paddingLeft="10dp" |
|
36 |
+ android:paddingRight="10dp" |
|
37 |
+ android:singleLine="true" |
|
38 |
+ android:text="@string/settings" |
|
39 |
+ android:textColor="@color/text_white" |
|
40 |
+ android:textSize="@dimen/action_bar_title_medium_text_size" /> |
|
41 |
+ |
|
42 |
+ <LinearLayout |
|
43 |
+ android:id="@+id/title_bar_option_layout" |
|
44 |
+ android:layout_width="70dp" |
|
45 |
+ android:layout_height="match_parent" |
|
46 |
+ android:gravity="center_vertical|right" |
|
47 |
+ android:orientation="horizontal" |
|
48 |
+ android:paddingRight="9dp"> |
|
49 |
+ |
|
50 |
+ |
|
51 |
+ <ImageView |
|
52 |
+ android:id="@+id/iv_options" |
|
53 |
+ android:layout_width="32dp" |
|
54 |
+ android:layout_height="32dp" |
|
55 |
+ android:layout_marginLeft="6dp" |
|
56 |
+ android:src="@drawable/option" /> |
|
57 |
+ |
|
58 |
+ </LinearLayout> |
|
59 |
+ |
|
60 |
+ </LinearLayout> |
|
61 |
+ |
|
62 |
+ |
|
63 |
+</RelativeLayout> |