1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-30 05:52:57 +01:00
Gadgetbridge/app/src/main/res/layout/activity_discovery.xml
cpfeiffer 7c597b325a Big refactoring: move classes and packages around to get a better structure
- model package contains mostly shared interfaces (UI+service), not named GB*
- impl package contains implementations of those interfaces, named GB*
  the impl classes should not be used by the service (not completely done)
- the service classes should mostly use classes inside the service and deviceevents
  packages (tbd)

Every device now has two packages:
- devices/[device name] for UI related functionality
- service[device name] for lowlevel communication
2015-08-03 23:09:49 +02:00

61 lines
2.4 KiB
XML

<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:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="nodomain.freeyourgadget.gadgetbridge.activities.DiscoveryActivity">
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:weightSum="1">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/discovery_start_scanning"
android:id="@+id/discovery_start"
android:layout_gravity="center_horizontal" />
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/discovery_progressbar"
android:indeterminate="true"
android:indeterminateOnly="true"
android:visibility="gone"
android:layout_gravity="center_horizontal" />
<ListView
android:layout_width="wrap_content"
android:layout_height="0dp"
android:id="@+id/discovery_deviceCandidatesView"
android:layout_gravity="bottom|top"
android:layout_weight="0.83" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="@string/discovery_note"
android:id="@+id/discovery_note"
android:textStyle="bold"
android:textColor="@color/secondarytext"
android:gravity="center_horizontal|bottom" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="@string/discovery_connected_devices_hint"
android:id="@+id/discovery_hint"
android:textColor="@color/secondarytext"
android:gravity="bottom"
android:textIsSelectable="true" />
</LinearLayout>
</RelativeLayout>