Split the project into a library and sample app

This commit is contained in:
Alexandros Schillings
2014-03-11 17:08:17 +00:00
parent cad6427b49
commit cb6e9db082
59 changed files with 200 additions and 38 deletions
+78
View File
@@ -0,0 +1,78 @@
<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" >
<GridLayout
android:id="@+id/gridLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:columnCount="2" >
<TextView
android:layout_column="0"
android:layout_gravity="center_horizontal"
android:layout_row="0"
android:text="Bluetooth LE:"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/tvBluetoothLe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_gravity="left"
android:layout_marginLeft="28dp"
android:layout_row="0"
android:text="@string/not_supported"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="0"
android:layout_gravity="left"
android:layout_row="1"
android:text="Bluetooth:"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/tvBluetoothStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_gravity="right|bottom"
android:layout_row="1"
android:text="@string/off"
android:textAppearance="?android:attr/textAppearanceMedium" />
</GridLayout>
<View
android:id="@+id/upperSepparator"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@id/gridLayout1"
android:background="@android:color/holo_blue_dark" />
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/upperSepparator" />
<TextView
android:id="@android:id/empty"
android:gravity="center_vertical|center_horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/upperSepparator"
android:text="@string/no_data" />
</RelativeLayout>