intial commit of 4.0
This commit is contained in:
52
FindMyCarLib/res/layout/distancebar.xml
Normal file
52
FindMyCarLib/res/layout/distancebar.xml
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/distance_background"
|
||||
android:stretchColumns="0" >
|
||||
|
||||
<!-- distance display -->
|
||||
|
||||
<TableRow android:layout_marginBottom="2dip" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvDistance"
|
||||
android:layout_column="0"
|
||||
android:enabled="false"
|
||||
android:gravity="left"
|
||||
android:text="@string/distance"
|
||||
android:textColor="#000000"
|
||||
android:textSize="22sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvDistance2"
|
||||
android:layout_column="1"
|
||||
android:layout_marginRight="3dip"
|
||||
android:enabled="false"
|
||||
android:gravity="right"
|
||||
android:text="0"
|
||||
android:textColor="#000000"
|
||||
android:textSize="26sp" />
|
||||
</TableRow>
|
||||
|
||||
<!-- accuracy display -->
|
||||
<!-- <TableRow android:background="#505050"> -->
|
||||
<!-- <TextView android:layout_column="0" -->
|
||||
<!-- android:id="@+id/tvAccuracy" -->
|
||||
<!-- android:text="@string/gps_accuracy" -->
|
||||
<!-- android:enabled="false" -->
|
||||
<!-- android:textSize="22sp" -->
|
||||
<!-- android:gravity="left" -->
|
||||
<!-- android:textColor="#FFFFFF" -->
|
||||
<!-- android:textStyle="bold"/> -->
|
||||
<!-- <TextView android:layout_column="1" -->
|
||||
<!-- android:id="@+id/tvAccuracy2" -->
|
||||
<!-- android:gravity="right" -->
|
||||
<!-- android:text="0" -->
|
||||
<!-- android:enabled="false" -->
|
||||
<!-- android:textColor="#FFFFFF" -->
|
||||
<!-- android:textSize="26sp"/> -->
|
||||
<!-- </TableRow> -->
|
||||
|
||||
</TableLayout>
|
||||
22
FindMyCarLib/res/layout/list_row.xml
Executable file
22
FindMyCarLib/res/layout/list_row.xml
Executable file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/TextView01"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="20dip"
|
||||
android:textColor="#000000"/>
|
||||
<TextView
|
||||
android:id="@+id/TextView02"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="20dip"
|
||||
android:textColor="#000000"
|
||||
android:layout_gravity="right"
|
||||
android:paddingRight="10dip"
|
||||
/>
|
||||
</LinearLayout>
|
||||
7
FindMyCarLib/res/layout/listview.xml
Normal file
7
FindMyCarLib/res/layout/listview.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@android:id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
</ListView>
|
||||
31
FindMyCarLib/res/layout/main.xml
Normal file
31
FindMyCarLib/res/layout/main.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent" >
|
||||
|
||||
<com.google.ads.AdView
|
||||
android:id="@+id/ad"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
ads:adSize="BANNER"
|
||||
ads:adUnitId="a14bbdf596be063"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.jakewharton.android.viewpagerindicator.TitlePageIndicator
|
||||
android:id="@+id/indicator"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dip" />
|
||||
|
||||
<com.TwentyCodes.android.FindMyCarLib.UI.CustomViewPager
|
||||
android:id="@+id/pager"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_above="@id/ad"
|
||||
android:layout_below="@id/indicator"
|
||||
android:layout_weight="1"
|
||||
android:background="#ffffff" />
|
||||
|
||||
</RelativeLayout>
|
||||
57
FindMyCarLib/res/layout/map.xml
Executable file
57
FindMyCarLib/res/layout/map.xml
Executable file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="#505050"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<include
|
||||
android:id="@+id/table"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
layout="@layout/distancebar" />
|
||||
|
||||
|
||||
<!-- ricky beta release 0rKmsWMM0D-IRAEgcSZEqwZCs_8AUwxjYjj0bnA -->
|
||||
<!-- ricky 0rKmsWMM0D-KC9KXr1WbA5aEb-2ozQ0SHTvV46g -->
|
||||
<!-- TWENTYCODES 0rKmsWMM0D-K15bEM_kwabPbNhsn4dp4rcq2q5Q -->
|
||||
|
||||
<com.TwentyCodes.android.location.MapView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/mapview"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_above="@+id/buttons"
|
||||
android:layout_below="@id/table"
|
||||
android:apiKey="0rKmsWMM0D-KC9KXr1WbA5aEb-2ozQ0SHTvV46g"
|
||||
android:clickable="true" />
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/mapview"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_below="@id/table" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvAccuracy2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_below="@id/table"
|
||||
android:layout_marginRight="10dip"
|
||||
android:layout_marginTop="10dip"
|
||||
android:enabled="false"
|
||||
android:text="0"
|
||||
android:textColor="#F00000"
|
||||
android:textSize="26dip"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<include
|
||||
android:id="@id/buttons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
layout="@layout/map_buttons" />
|
||||
|
||||
48
FindMyCarLib/res/layout/map_buttons.xml
Normal file
48
FindMyCarLib/res/layout/map_buttons.xml
Normal file
@@ -0,0 +1,48 @@
|
||||
<?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:background="@drawable/distance_background"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/my_location"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/my_location_action_bar" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/mark_my_location"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/mark_my_location_action_bar" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/show_both"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/car_action_bar" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/parking_timer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/time_action_bar" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/directions"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/nav_action_bar" />
|
||||
|
||||
</LinearLayout>
|
||||
20
FindMyCarLib/res/layout/notes.xml
Executable file
20
FindMyCarLib/res/layout/notes.xml
Executable file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvAddress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/tvAddress"
|
||||
android:gravity="top" />
|
||||
|
||||
</RelativeLayout>
|
||||
9
FindMyCarLib/res/layout/parking_timer_activity.xml
Normal file
9
FindMyCarLib/res/layout/parking_timer_activity.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:name="com.TwentyCodes.android.FindMyCarLib.UI.fragments.ParkingTimerFragment" >
|
||||
|
||||
<!-- Preview: layout=@layout/parkingtimer_layout -->
|
||||
|
||||
</fragment>
|
||||
132
FindMyCarLib/res/layout/parkingtimer_layout.xml
Executable file
132
FindMyCarLib/res/layout/parkingtimer_layout.xml
Executable file
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<TableLayout
|
||||
android:id="@+id/pickerlayout"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="7dip"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal"
|
||||
android:stretchColumns="0,2" >
|
||||
|
||||
<TableRow >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="right"
|
||||
android:text="@string/hours"
|
||||
android:textSize="15dip"
|
||||
android:textStyle="bold" />
|
||||
<!-- This time picker picks the hour and minutes of the timer -->
|
||||
|
||||
<TimePicker
|
||||
android:id="@+id/tpParkingTimerTimePicker"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="left"
|
||||
android:text="@string/minutes"
|
||||
android:textSize="15dip"
|
||||
android:textStyle="bold" />
|
||||
</TableRow>
|
||||
</TableLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/notiyfyme"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/pickerlayout" >
|
||||
|
||||
<!-- this checkbox is used to enable/disable the notification alarm -->
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/chNotify"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginLeft="7dip"
|
||||
android:layout_marginTop="10dip"
|
||||
android:paddingLeft="7px" />
|
||||
|
||||
<!-- textview to hold text after the checkbox "Notify me" -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvNotify1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="25px"
|
||||
android:layout_toRightOf="@id/chNotify"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/notify_me"
|
||||
android:textStyle="bold" />
|
||||
<!-- this text field will hold the value for the notifcation alarm. -->
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etNotify"
|
||||
android:layout_width="50dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@id/chNotify"
|
||||
android:layout_marginLeft="7dip"
|
||||
android:layout_toRightOf="@id/tvNotify1"
|
||||
android:gravity="right|center_horizontal"
|
||||
android:phoneNumber="true"
|
||||
android:singleLine="true"
|
||||
android:text="5" />
|
||||
<!-- textview for "minutes after alarm" -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvBefore"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="7dip"
|
||||
android:layout_marginTop="17px"
|
||||
android:layout_toRightOf="@id/etNotify"
|
||||
android:text="@string/before"
|
||||
android:textStyle="bold" />
|
||||
<!-- this layout holds the two start and stop timer buttons -->
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/llButtons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/notiyfyme"
|
||||
android:layout_marginTop="10dip"
|
||||
android:background="@drawable/distance_background"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/btSetTimer"
|
||||
android:layout_width="130px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal|center_vertical"
|
||||
android:text="@string/setTimer"
|
||||
android:textSize="14dip" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btRemoveTimer"
|
||||
android:layout_width="130px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal|center_vertical"
|
||||
android:text="@string/removeTimer"
|
||||
android:textSize="14dip" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user