Commit a5d30287 authored by Pearl Jen Santos's avatar Pearl Jen Santos

made some minor edits for the layout. Still attempting card layout.

parent 7c06ed96
......@@ -57,6 +57,7 @@ public class ActionBarAttempt extends AppCompatActivity {
mTitle = mDrawerTitle = "About";
options = getResources().getStringArray(R.array.options);
mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
mDrawerList = (ListView) findViewById(R.id.left_drawer);
......
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#FFCCBC"/>
<corners android:radius="2dp"/>
</shape>
</item>
<item
android:bottom="20dp"
android:left="0dp"
android:right="0dp"
android:top="0dp">
<shape
android:shape="rectangle">
<solid
android:color="#FF8A65"/>
<corners android:radius="2dp"/>
</shape>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/card_state_pressed"
android:state_pressed="true"/>
<item android:drawable="@drawable/card_background"/>
</selector>
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#ca39883d"/>
<corners android:radius="2dp"/>
</shape>
</item>
<item
android:bottom="20dp"
android:left="0dp"
android:right="0dp"
android:top="0dp">
<shape
android:shape="rectangle">
<solid android:color="#FF5722"/>
<corners android:radius="2dp"/>
</shape>
</item>
</layer-list>
......@@ -33,7 +33,6 @@
android:hint="Reserve your tickets."
android:layout_gravity="center"
android:id="@+id/textView"
android:layout_weight="2"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
......@@ -74,45 +73,20 @@
android:layout_width="wrap_content"
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_weight="3">
android:layout_weight="2"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_gravity="center"
android:text="LOGIN"
android:onClick="submit"
android:layout_weight="2"
android:id="@+id/submit" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Not yet a member? Sign up"
android:layout_gravity="center"
android:id="@+id/notYetAMember"
android:layout_weight="2"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_weight="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="ABOUT"
android:layout_gravity="center"
android:id="@+id/about"
android:layout_weight="2"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
</LinearLayout>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.wdget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/card_background_selector">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Medium Text"
android:id="@+id/cardLayoutTrial"
android:layout_gravity="center_horizontal" />
</android.support.v7.wdget.CardView>
\ No newline at end of file
<?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:orientation="vertical"
>
<!--
**************************IMPORTANT***********************************
change this id attribute values as "frag2_icon" and "frag2_text" for
fragment_layout_two.xml and "frag3_icon" and "frag3_text" for
fragment_layout_three.xml
**********************************************************************
-->
<TextView
android:id="@+id/frag3_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Available Schedules"/>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FBE9E7">
<LinearLayout
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight = "0.5"
android:orientation="horizontal"
android:gravity="center">
</LinearLayout>
<ListView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight = "3"
android:id="@+id/list"
/>
<LinearLayout
android:id="@+id/LinearLayout2"
android:layout_width="match_parent"
android:layout_height="0dp"
android:orientation="horizontal"
android:layout_weight = "1"
android:gravity="center">
<TextView
android:id="@+id/loadLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="LOAD: "
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/load"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="load"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
android:layout_height="wrap_content"
android:listSelector="@android:color/transparent"
android:cacheColorHint="@android:color/transparent"
android:divider="@null"
android:dividerHeight="10dp" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="@drawable/card_background_selector">
<TextView
android:layout_width="wrap_content"
......
......@@ -10,12 +10,5 @@
android:orderInCategory="100"
app:showAsAction="ifRoom|collapseActionView"
app:actionViewClass="android.support.v7.widget.SearchView"/>
<item android:id="@+id/action_aboutUs"
android:title="About Us"
android:orderInCategory="100"
app:showAsAction="never" />
<item android:id="@+id/action_help"
android:title="Help"
android:orderInCategory="100"
app:showAsAction="never" />
</menu>
......@@ -12,7 +12,7 @@
<item>Edit Profile</item>
<item>View Past Trips</item>
<item>Settings</item>
<item>About</item>
<item>Log Out</item>
</string-array>
<string-array name="list">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment