changes made
This commit is contained in:
23
source/libs/res/layout/activity_main.xml
Executable file
23
source/libs/res/layout/activity_main.xml
Executable file
@@ -0,0 +1,23 @@
|
||||
<android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity" >
|
||||
|
||||
<!--
|
||||
This title strip will display the currently visible page title, as well as the page
|
||||
titles for adjacent pages.
|
||||
-->
|
||||
|
||||
<android.support.v4.view.PagerTitleStrip
|
||||
android:id="@+id/pager_title_strip"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="top"
|
||||
android:background="#fd0"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingTop="4dp"
|
||||
android:textColor="#000" />
|
||||
|
||||
</android.support.v4.view.ViewPager>
|
||||
17
source/libs/res/layout/fragment_main_dummy.xml
Executable file
17
source/libs/res/layout/fragment_main_dummy.xml
Executable file
@@ -0,0 +1,17 @@
|
||||
<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:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
tools:context=".MainActivity$DummySectionFragment"
|
||||
android:background="@color/fragment_background" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/section_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</RelativeLayout>
|
||||
7
source/libs/res/layout/fragment_teacher_substitution.xml
Executable file
7
source/libs/res/layout/fragment_teacher_substitution.xml
Executable file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<me.caesar2011.vpherder.views.PullToRefreshListView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/listview"
|
||||
android:listSelector="@android:color/transparent"
|
||||
android:background="@color/fragment_background" />
|
||||
31
source/libs/res/layout/pull_to_refresh_header.xml
Executable file
31
source/libs/res/layout/pull_to_refresh_header.xml
Executable file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:background="#777"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0sp"
|
||||
android:padding="0sp"
|
||||
android:layout_margin="0sp"
|
||||
android:visibility="gone"
|
||||
android:gravity="center" >
|
||||
<LinearLayout
|
||||
android:background="#777"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="0sp"
|
||||
android:layout_margin="0sp"
|
||||
android:gravity="center"
|
||||
android:layout_centerVertical="true"
|
||||
android:orientation="horizontal" >
|
||||
<TextView
|
||||
android:text="@string/pull_to_refresh_pull_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingRight="0sp"
|
||||
android:paddingTop="0sp"
|
||||
android:paddingBottom="0sp"
|
||||
android:paddingLeft="10sp"
|
||||
android:layout_margin="0sp"
|
||||
android:visibility="gone"
|
||||
android:id="@+id/text" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
10
source/libs/res/layout/teacher_substitution_change.xml
Executable file
10
source/libs/res/layout/teacher_substitution_change.xml
Executable file
@@ -0,0 +1,10 @@
|
||||
<?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="wrap_content" >
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/text"
|
||||
style="@android:style/TextAppearance.Small" />
|
||||
</RelativeLayout>
|
||||
110
source/libs/res/layout/teacher_substitution_row_alteration.xml
Executable file
110
source/libs/res/layout/teacher_substitution_row_alteration.xml
Executable file
@@ -0,0 +1,110 @@
|
||||
<?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="wrap_content" >
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/main" >
|
||||
<TextView
|
||||
android:layout_width="58sp"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="6sp"
|
||||
android:id="@+id/teacher"
|
||||
android:layout_gravity="center"
|
||||
android:layout_centerVertical="true"
|
||||
style="@style/TextSize:VeryLarge"
|
||||
android:textColor="@color/teacher" />
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_toRightOf="@+id/teacher"
|
||||
android:layout_toLeftOf="@+id/changes"
|
||||
android:id="@+id/box_subject"
|
||||
android:layout_gravity="center"
|
||||
android:layout_centerVertical="true"
|
||||
style="@android:style/TextAppearance.Large" >
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="6sp"
|
||||
android:paddingTop="6sp"
|
||||
android:paddingRight="6sp"
|
||||
android:paddingBottom="0sp"
|
||||
android:id="@+id/subject"
|
||||
style="@android:style/TextAppearance.Medium"
|
||||
android:textColor="@color/subject" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="6sp"
|
||||
android:paddingTop="0sp"
|
||||
android:paddingRight="6sp"
|
||||
android:paddingBottom="6sp"
|
||||
android:id="@+id/subject_subinfo"
|
||||
android:layout_below="@+id/subject"
|
||||
android:layout_alignLeft="@+id/subject"
|
||||
style="@android:style/TextAppearance.Small"
|
||||
android:textColor="@color/block" />
|
||||
</RelativeLayout>
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/changes"
|
||||
android:layout_alignParentRight="true"
|
||||
style="@android:style/TextAppearance.Large" >
|
||||
<TextView
|
||||
android:layout_width="45sp"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/textview_from"
|
||||
android:layout_toLeftOf="@+id/to_arrow"
|
||||
android:gravity="center"
|
||||
android:layout_centerVertical="true"
|
||||
style="@android:style/TextAppearance.Small" />
|
||||
<TextView
|
||||
android:padding="6sp"
|
||||
android:layout_width="30sp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/to_arrow"
|
||||
android:id="@+id/to_arrow"
|
||||
android:layout_toLeftOf="@+id/textview_to"
|
||||
android:gravity="center"
|
||||
android:layout_centerVertical="true"
|
||||
style="@style/TextSize:VeryLarge" />
|
||||
<TextView
|
||||
android:layout_width="45sp"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/textview_to"
|
||||
android:layout_alignParentRight="true"
|
||||
android:gravity="center"
|
||||
android:layout_centerVertical="true"
|
||||
style="@android:style/TextAppearance.Small" />
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/remark"
|
||||
android:layout_below="@+id/main"
|
||||
android:layout_centerVertical="true"
|
||||
style="@android:style/TextAppearance.Medium"
|
||||
android:textStyle="italic"
|
||||
android:padding="6sp" />
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/cancelbar"
|
||||
android:layout_alignLeft="@+id/main"
|
||||
android:layout_alignTop="@+id/main"
|
||||
android:layout_alignRight="@+id/main"
|
||||
android:layout_alignBottom="@+id/main">
|
||||
<View
|
||||
android:background="@color/cancelled"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginLeft="15sp"
|
||||
android:layout_marginRight="15sp"
|
||||
android:layout_centerInParent="true" />
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
11
source/libs/res/layout/teacher_substitution_row_remark.xml
Executable file
11
source/libs/res/layout/teacher_substitution_row_remark.xml
Executable file
@@ -0,0 +1,11 @@
|
||||
<?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="wrap_content" >
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="6sp"
|
||||
android:id="@+id/text"
|
||||
style="@android:style/TextAppearance.Medium" />
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user