Compare commits
27 Commits
81937a5e0f
...
feature/ic
Author | SHA1 | Date | |
---|---|---|---|
d9d325b18b | |||
17a7e1711e | |||
9b302d0461 | |||
e80272e0a4 | |||
3268286e76 | |||
c07986d604 | |||
c70a1b71a1 | |||
142558d057 | |||
968d9e7296 | |||
2855e9bde6 | |||
ee8bfe56b4 | |||
d519a2be14 | |||
1b3912c682 | |||
ba9383248c | |||
07127cea18 | |||
6a235d1d3f | |||
bac12825c9 | |||
bbed107c42 | |||
bca16caf94 | |||
0b887deb99 | |||
c85dc279dc | |||
db360c4d45 | |||
89f8cbfcae | |||
4420af337d | |||
6b6543ca3f | |||
f554356af1 | |||
0fabbc73be |
@ -19,6 +19,13 @@ android {
|
||||
buildFeatures {
|
||||
viewBinding false
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
checkReleaseBuilds false
|
||||
// Or, if you prefer, you can continue to check for errors in release builds,
|
||||
// but continue the build even when errors are found:
|
||||
//abortOnError false
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/AppTheme" >
|
||||
</application>
|
||||
|
@ -198,12 +198,11 @@ public abstract class AbstractSDParentActivity extends TabActivity {
|
||||
return res;
|
||||
}
|
||||
|
||||
public boolean getHistoryPositions(int sc_id, long timeGMTStart, long timeGMTStop)
|
||||
{
|
||||
public boolean getHistoryPositions(int sc_id, long timeGMTStart, long timeGMTStop) {
|
||||
if(tcp == null)
|
||||
return false;
|
||||
|
||||
String histSeqID = "1."+Integer.toString((int) (System.currentTimeMillis() / 1000L));
|
||||
String histSeqID = "1."+ (int) (System.currentTimeMillis() / 1000L);
|
||||
boolean res = tcp.Write(histSeqID,"#26#"+sc_id+"#"+timeGMTStart+"#"+timeGMTStop+"#");
|
||||
if(res)
|
||||
SM.Debug("Message [getHistoryPositions] sent to app server");
|
||||
@ -213,8 +212,7 @@ public abstract class AbstractSDParentActivity extends TabActivity {
|
||||
return res;
|
||||
}
|
||||
|
||||
public boolean getRadiosList()
|
||||
{
|
||||
public boolean getRadiosList() {
|
||||
if(tcp == null)
|
||||
return false;
|
||||
|
||||
|
@ -28,13 +28,11 @@ public class TCPService extends Service {
|
||||
int port = 13589;
|
||||
try {
|
||||
port = Integer.parseInt(AppParams.PORT);
|
||||
}
|
||||
catch(Exception ex) { }
|
||||
} catch(Exception ex) { }
|
||||
|
||||
tcpParser = new TCPmsgParser();
|
||||
|
||||
if(tcp == null && !AppParams.IP.equalsIgnoreCase("n/a"))
|
||||
{
|
||||
if(tcp == null && !AppParams.IP.equalsIgnoreCase("n/a")) {
|
||||
tcp = new TCPhandler(getApplicationContext(), AppParams.IP, port);
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ public class TCPhandler implements Runnable
|
||||
private boolean alive = true;
|
||||
|
||||
public String serverHostname = new String ("10.120.1.114");//
|
||||
private int port = 13579;
|
||||
private int port;
|
||||
private Thread listenThread;
|
||||
private Socket soc =null;
|
||||
|
||||
|
Before Width: | Height: | Size: 16 KiB |
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
BIN
libSafeMobile/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.8 KiB |
BIN
libSafeMobile/src/main/res/mipmap-hdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
libSafeMobile/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 1020 B |
After Width: | Height: | Size: 1.0 KiB |
BIN
libSafeMobile/src/main/res/mipmap-mdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
libSafeMobile/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.7 KiB |
BIN
libSafeMobile/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
libSafeMobile/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 4.4 KiB |
BIN
libSafeMobile/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
libSafeMobile/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 6.3 KiB |
BIN
libSafeMobile/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 12 KiB |
@ -1,14 +1,36 @@
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
|
||||
apply plugin: "com.gladed.androidgitversion"
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
url "https://plugins.gradle.org/m2/"
|
||||
}
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath "gradle.plugin.com.gladed.gradle.androidgitversion:gradle-android-git-version:0.4.3"
|
||||
}
|
||||
}
|
||||
|
||||
androidGitVersion {
|
||||
codeFormat 'MNNBBBB'
|
||||
format '%tag%%.count%'
|
||||
hideBranches = ['develop']
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 31
|
||||
buildToolsVersion "31.0.0"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.safemobile.dispatch"
|
||||
applicationId "com.safemobile.safedispatch"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 31
|
||||
versionName androidGitVersion.name()
|
||||
versionCode androidGitVersion.code()
|
||||
archivesBaseName = "SafeDispatchMobile_v.$versionName"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
@ -20,6 +42,13 @@ android {
|
||||
buildFeatures {
|
||||
viewBinding false
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
checkReleaseBuilds false
|
||||
// Or, if you prefer, you can continue to check for errors in release builds,
|
||||
// but continue the build even when errors are found:
|
||||
//abortOnError false
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
implementation project(':libSafeMobile')
|
||||
|
BIN
safeDispatch/release/SafeDispatchMobile_v.8.0.35-release.aab
Normal file
20
safeDispatch/release/output-metadata.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"version": 3,
|
||||
"artifactType": {
|
||||
"type": "APK",
|
||||
"kind": "Directory"
|
||||
},
|
||||
"applicationId": "com.safemobile.safedispatch",
|
||||
"variantName": "release",
|
||||
"elements": [
|
||||
{
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"attributes": [],
|
||||
"versionCode": 8000035,
|
||||
"versionName": "8.0.35",
|
||||
"outputFile": "SafeDispatchMobile_v.8.0.35-release.apk"
|
||||
}
|
||||
],
|
||||
"elementType": "File"
|
||||
}
|
@ -1,9 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.safemobile.dispatch"
|
||||
android:versionCode="9"
|
||||
android:versionName="1.0.9">
|
||||
package="com.safemobile.safedispatch">
|
||||
|
||||
<!-- require OpenGL ES version 2 for Google Maps -->
|
||||
<uses-feature
|
||||
@ -30,7 +27,7 @@
|
||||
|
||||
<application
|
||||
android:configChanges="orientation"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:screenOrientation="landscape"
|
||||
android:theme="@style/AppTheme">
|
||||
@ -45,7 +42,7 @@
|
||||
<service android:name="com.safemobile.services.TCPService" />
|
||||
|
||||
<activity
|
||||
android:name=".SDMobileActivity"
|
||||
android:name="com.safemobile.safedispatch.SDMobileActivity"
|
||||
android:configChanges="orientation"
|
||||
android:exported="true"
|
||||
android:label="@string/app_name_demo"
|
||||
@ -57,41 +54,41 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".SetupActivity"
|
||||
android:name="com.safemobile.safedispatch.SetupActivity"
|
||||
android:configChanges="orientation"
|
||||
android:screenOrientation="landscape" />
|
||||
<activity
|
||||
android:name=".TabLayoutActivity"
|
||||
android:name="com.safemobile.safedispatch.TabLayoutActivity"
|
||||
android:configChanges="orientation"
|
||||
android:screenOrientation="landscape" />
|
||||
<activity
|
||||
android:name=".LiveActivity"
|
||||
android:name="com.safemobile.safedispatch.LiveActivity"
|
||||
android:exported="false"
|
||||
android:configChanges="orientation"
|
||||
android:screenOrientation="landscape"
|
||||
android:label="@string/title_activity_google_maps" />
|
||||
<activity
|
||||
android:name=".HistoryActivity"
|
||||
android:name="com.safemobile.safedispatch.HistoryActivity"
|
||||
android:configChanges="orientation"
|
||||
android:screenOrientation="landscape" />
|
||||
<activity
|
||||
android:name=".MessagesActivity"
|
||||
android:name="com.safemobile.safedispatch.MessagesActivity"
|
||||
android:configChanges="orientation"
|
||||
android:screenOrientation="landscape" />
|
||||
<activity
|
||||
android:name=".AlarmActivity"
|
||||
android:name="com.safemobile.safedispatch.AlarmActivity"
|
||||
android:configChanges="orientation"
|
||||
android:screenOrientation="landscape" />
|
||||
<activity
|
||||
android:name=".RadioActivity"
|
||||
android:name="com.safemobile.safedispatch.RadioActivity"
|
||||
android:configChanges="orientation"
|
||||
android:screenOrientation="landscape" />
|
||||
<activity
|
||||
android:name=".RecordingsActivity"
|
||||
android:name="com.safemobile.safedispatch.RecordingsActivity"
|
||||
android:configChanges="orientation"
|
||||
android:screenOrientation="landscape" />
|
||||
<activity
|
||||
android:name=".NotificationActivity"
|
||||
android:name="com.safemobile.safedispatch.NotificationActivity"
|
||||
android:configChanges="orientation"
|
||||
android:screenOrientation="landscape" />
|
||||
</application>
|
||||
|
BIN
safeDispatch/src/main/ic_launcher-playstore.png
Normal file
After Width: | Height: | Size: 18 KiB |
@ -1,162 +0,0 @@
|
||||
package com.safemobile.dispatch;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.Spinner;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.google.android.gms.maps.GoogleMap;
|
||||
import com.google.android.gms.maps.SupportMapFragment;
|
||||
import com.safemobile.lib.AppParams;
|
||||
import com.safemobile.lib.SM;
|
||||
import com.safemobile.lib.Vehicle;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
|
||||
public class HistoryActivity extends AppCompatActivity {
|
||||
|
||||
public Bundle savedInstanceState;
|
||||
private TabLayoutActivity parentTab;
|
||||
private GoogleMap googleMap;
|
||||
private Spinner spinnerVehicle;
|
||||
private ImageView changeMapType, checkTraffic, slideLayoutImage;
|
||||
private LinearLayout layoutTraffic, slidelayout, layoutVehicles;
|
||||
|
||||
private ArrayList<Vehicle> allVehicle = new ArrayList<>();
|
||||
private ArrayList<String> allVehicleNames = new ArrayList<>();
|
||||
private ArrayAdapter<String> adapter;
|
||||
private boolean showVehicle = true;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
this.savedInstanceState = savedInstanceState;
|
||||
setContentView(R.layout.tabhistory);
|
||||
|
||||
parentTab = (TabLayoutActivity) getParent();
|
||||
parentTab.setHistoryActivity(this);
|
||||
|
||||
Locale locale = new Locale(AppParams.LANGUAGETMP);
|
||||
Locale.setDefault(locale);
|
||||
|
||||
googleMap = parentTab.getLiveActivity().getMap();
|
||||
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
|
||||
.findFragmentById(R.id.map);
|
||||
|
||||
spinnerVehicle = findViewById(R.id.spinnerVehicle);
|
||||
getVehicles();
|
||||
|
||||
adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, allVehicleNames);
|
||||
adapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);
|
||||
spinnerVehicle.setAdapter(adapter);
|
||||
spinnerVehicle.setSelection(0);
|
||||
|
||||
changeMapType();
|
||||
changeTraffic();
|
||||
|
||||
slidelayout = findViewById(R.id.slidelayout);
|
||||
slideLayoutImage = findViewById(R.id.slideLayoutImage);
|
||||
layoutVehicles = findViewById(R.id.layoutBig);
|
||||
// slidelayout.setOnTouchListener((v, event) -> {
|
||||
// if (showVehicle) {
|
||||
// layoutVehicles.setVisibility(View.GONE);
|
||||
// slideLayoutImage.setImageResource(R.drawable.arrow_right);
|
||||
// showVehicle = false;
|
||||
// } else {
|
||||
// layoutVehicles.setVisibility(View.VISIBLE);
|
||||
// slideLayoutImage.setImageResource(R.drawable.arrow_left);
|
||||
// showVehicle = true;
|
||||
// }
|
||||
// return false;
|
||||
// });
|
||||
|
||||
setDate();
|
||||
}
|
||||
|
||||
private void setDate() {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
Date endDate = calendar.getTime();
|
||||
calendar.add(Calendar.DATE, -1);
|
||||
Date startDate = calendar.getTime();
|
||||
|
||||
LinearLayout layoutStartPicker = findViewById(R.id.layoutStartPicker);
|
||||
TextView textViewDate = findViewById(R.id.textViewStartDate);
|
||||
|
||||
textViewDate.setText(new SimpleDateFormat("HH:mm, dd.MM.yyyy").format(startDate));
|
||||
// layoutStartPicker.setOnTouchListener((v, event) -> {
|
||||
// showDialog(layoutStartPicker);
|
||||
// return false;
|
||||
// });
|
||||
|
||||
// layoutEndPicker.setOnTouchListener(new OnTouchListener() {
|
||||
// @Override
|
||||
// public boolean onTouch(View v, MotionEvent event) {
|
||||
// showDialog(layoutEndPicker);
|
||||
// return false;
|
||||
// }
|
||||
// });
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void changeTraffic() {
|
||||
ImageView changeTrafficImageView = findViewById(R.id.changeTraffic);
|
||||
changeTrafficImageView.setOnClickListener(v -> {
|
||||
if (googleMap.isTrafficEnabled()) {
|
||||
changeTrafficImageView.setImageResource(R.drawable.traffic_off);
|
||||
googleMap.setTrafficEnabled(false);
|
||||
} else {
|
||||
changeTrafficImageView.setImageResource(R.drawable.traffic);
|
||||
googleMap.setTrafficEnabled(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void changeMapType() {
|
||||
changeMapType = findViewById(R.id.changeMapType);
|
||||
ImageView changeMapTypeImageView = findViewById(R.id.changeMapType);
|
||||
changeMapType.setOnClickListener(view -> {
|
||||
if (googleMap.getMapType() == GoogleMap.MAP_TYPE_SATELLITE) {
|
||||
changeMapTypeImageView.setImageResource(R.drawable.satellite);
|
||||
googleMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
|
||||
} else {
|
||||
changeMapTypeImageView.setImageResource(R.drawable.map);
|
||||
googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void getVehicles() {
|
||||
try {
|
||||
for (Vehicle vehicle : parentTab.getAllVehicle()) {
|
||||
allVehicleNames.add(vehicle.name);
|
||||
allVehicle.add(vehicle);
|
||||
}
|
||||
} catch (Exception ex) { }
|
||||
|
||||
}
|
||||
|
||||
public void UpdateMap() {
|
||||
SM.Debug("Do the updateMAP post");
|
||||
}
|
||||
|
||||
public void UpdateUnableDisp() {
|
||||
SM.Debug("Do Cancelwindow");
|
||||
}
|
||||
|
||||
public void UpdateCancel() {
|
||||
SM.Debug("Do Cancelwindow");
|
||||
}
|
||||
|
||||
public void UpdateNrPos(int size) {
|
||||
SM.Debug("Do Cancelwindow");
|
||||
}
|
||||
}
|
@ -5,7 +5,7 @@ import android.app.AlertDialog;
|
||||
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
import com.safemobile.dispatch.R;
|
||||
import com.safemobile.safedispatch.R;
|
||||
import com.safemobile.interfaces.IDialogService;
|
||||
|
||||
public class DialogService implements IDialogService {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Locale;
|
@ -1,4 +1,4 @@
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
@ -12,10 +12,12 @@ import androidx.annotation.NonNull;
|
||||
|
||||
import com.google.android.gms.maps.GoogleMap;
|
||||
import com.google.android.gms.maps.model.Marker;
|
||||
import com.safemobile.lib.HistPos;
|
||||
import com.safemobile.lib.SuperVehicle;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Locale;
|
||||
@ -25,8 +27,10 @@ public class GoogleMapsInfoBubble implements GoogleMap.InfoWindowAdapter {
|
||||
private final String TAG = GoogleMapsInfoBubble.class.getName();
|
||||
|
||||
private final View mWindow;
|
||||
private final Hashtable<Long, SuperVehicle> superVehHash;
|
||||
private Hashtable<Long, SuperVehicle> superVehHash;
|
||||
private final Context context;
|
||||
private ArrayList<HistPos> histPosList;
|
||||
private boolean isLiveTab = true;
|
||||
|
||||
|
||||
public GoogleMapsInfoBubble(LayoutInflater layoutInflater, Context context, Hashtable<Long, SuperVehicle> vehicles) {
|
||||
@ -35,6 +39,17 @@ public class GoogleMapsInfoBubble implements GoogleMap.InfoWindowAdapter {
|
||||
mWindow = layoutInflater.inflate(R.layout.map_marker_info_bubble, null);
|
||||
}
|
||||
|
||||
public GoogleMapsInfoBubble(LayoutInflater layoutInflater, Context context) {
|
||||
isLiveTab = false;
|
||||
this.context = context;
|
||||
// this.superVehHash = vehicles;
|
||||
mWindow = layoutInflater.inflate(R.layout.map_marker_info_bubble, null);
|
||||
}
|
||||
|
||||
public void setHistoryPositions(ArrayList<HistPos> positions) {
|
||||
this.histPosList = positions;
|
||||
}
|
||||
|
||||
@Override
|
||||
public View getInfoWindow(@NonNull Marker marker) {
|
||||
render(marker, mWindow);
|
||||
@ -49,13 +64,21 @@ public class GoogleMapsInfoBubble implements GoogleMap.InfoWindowAdapter {
|
||||
|
||||
private void render(Marker marker, View view) {
|
||||
long key = 0;
|
||||
|
||||
try {
|
||||
key = Long.parseLong(marker.getTitle());
|
||||
} catch (Exception ex) {
|
||||
Log.v(TAG, "Unable to parse Google Maps Info Bubble title");
|
||||
int position = 0;
|
||||
if (isLiveTab) {
|
||||
try {
|
||||
key = Long.parseLong(marker.getTitle());
|
||||
} catch (Exception ex) {
|
||||
Log.v(TAG, "Unable to parse Google Maps Info Bubble title");
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
position = Integer.getInteger(marker.getTitle());
|
||||
} catch (Exception e) {
|
||||
Log.v(TAG, "Unable to parse Google Maps Info Bubble title on History");
|
||||
}
|
||||
}
|
||||
SuperVehicle vehicle = superVehHash.get(key);
|
||||
|
||||
|
||||
RelativeLayout rlMapInfoBubbleInfo = view.findViewById(R.id.rlMapInfoBubbleInfo);
|
||||
TextView tvUnitName = view.findViewById(R.id.tvUnitName);
|
||||
@ -67,27 +90,39 @@ public class GoogleMapsInfoBubble implements GoogleMap.InfoWindowAdapter {
|
||||
rlMapInfoBubbleInfo.setVisibility(View.VISIBLE);
|
||||
|
||||
boolean isMilitaryTime = false;
|
||||
Date positionTime = new Date(vehicle.timeGMT);
|
||||
|
||||
Date positionTime;
|
||||
String speed, address, gpsLocation, name = "";
|
||||
if (isLiveTab) {
|
||||
SuperVehicle vehicle = superVehHash.get(key);
|
||||
positionTime = new Date(vehicle.timeGMT);
|
||||
address = vehicle.Address != null ? vehicle.Address : "";
|
||||
name = vehicle.name;
|
||||
speed = String.format(context.getResources().getString(R.string.speedMph), vehicle.speed);
|
||||
gpsLocation = "[" + String.format("%.4f", vehicle.lat) + "," + String.format("%.4f",vehicle.lng) + "]";
|
||||
} else {
|
||||
HistPos histPos = histPosList.get(position);
|
||||
positionTime = new Date(histPos.timeGMT);
|
||||
address = histPos.Address != null ? histPos.Address : "";
|
||||
speed = String.format(context.getResources().getString(R.string.speedMph), histPos.speed);
|
||||
gpsLocation = "[" + String.format("%.4f", histPos.lat) + "," + String.format("%.4f",histPos.lng) + "]";
|
||||
}
|
||||
|
||||
String timeFormat = isMilitaryTime
|
||||
? "HH:mm:ss dd.MMM.yyyy"
|
||||
: "hh:mm:ss a dd.MMM.yyy";
|
||||
|
||||
DateFormat format = new SimpleDateFormat(timeFormat, Locale.ENGLISH);
|
||||
|
||||
tvTimeAgo.setText(format.format(positionTime));
|
||||
|
||||
tvSpeed.setText(String.format(context.getResources().getString(R.string.speedMph), vehicle.speed));
|
||||
|
||||
String address = vehicle.Address != null ? vehicle.Address : "";
|
||||
|
||||
tvStreetView.setText(address);
|
||||
streetView.setVisibility(address.length() > 0 ? View.VISIBLE : View.GONE);
|
||||
tvStreetView.setVisibility(address.length() > 0 ? View.VISIBLE : View.GONE);
|
||||
tvUnitName.setText(vehicle.name);
|
||||
tvGPSLocation.setText("[" + String.format("%.4f", vehicle.lat)
|
||||
+ "," + String.format("%.4f",vehicle.lng) + "]");
|
||||
if (!isLiveTab)
|
||||
tvUnitName.setVisibility(View.GONE);
|
||||
else
|
||||
tvUnitName.setText(name);
|
||||
|
||||
tvSpeed.setText(speed);
|
||||
tvGPSLocation.setText(gpsLocation);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,241 @@
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.app.DatePickerDialog;
|
||||
import android.app.Dialog;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.util.Log;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.Spinner;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.google.android.gms.maps.CameraUpdateFactory;
|
||||
import com.google.android.gms.maps.GoogleMap;
|
||||
import com.google.android.gms.maps.OnMapReadyCallback;
|
||||
import com.google.android.gms.maps.SupportMapFragment;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptor;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.gms.maps.model.LatLng;
|
||||
import com.google.android.gms.maps.model.MarkerOptions;
|
||||
import com.google.android.gms.maps.model.PolylineOptions;
|
||||
import com.safemobile.lib.AppParams;
|
||||
import com.safemobile.lib.HistPos;
|
||||
import com.safemobile.lib.OperationCodes;
|
||||
import com.safemobile.lib.SM;
|
||||
import com.safemobile.lib.Vehicle;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
|
||||
public class HistoryActivity extends AppCompatActivity implements OnMapReadyCallback {
|
||||
|
||||
public Bundle savedInstanceState;
|
||||
private TabLayoutActivity parentTab;
|
||||
private GoogleMap googleMap;
|
||||
private Spinner spinnerVehicle;
|
||||
private Button displayButton;
|
||||
private Date startDate, endDate;
|
||||
private final Handler myHandler = new Handler();
|
||||
private GoogleMapsInfoBubble infoBubble;
|
||||
|
||||
private final ArrayList<Vehicle> allVehicle = new ArrayList<>();
|
||||
private final ArrayList<String> allVehicleNames = new ArrayList<>();
|
||||
private final SimpleDateFormat sdf = new SimpleDateFormat("MMMM dd yyyy");
|
||||
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
this.savedInstanceState = savedInstanceState;
|
||||
setContentView(R.layout.tabhistory);
|
||||
|
||||
parentTab = (TabLayoutActivity) getParent();
|
||||
parentTab.setHistoryActivity(this);
|
||||
|
||||
Locale locale = new Locale(AppParams.LANGUAGETMP);
|
||||
Locale.setDefault(locale);
|
||||
|
||||
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
|
||||
.findFragmentById(R.id.map);
|
||||
if (mapFragment != null)
|
||||
mapFragment.getMapAsync(this);
|
||||
|
||||
spinnerVehicle = findViewById(R.id.spinnerVehicle);
|
||||
getVehicles();
|
||||
|
||||
ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, allVehicleNames);
|
||||
adapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);
|
||||
spinnerVehicle.setAdapter(adapter);
|
||||
spinnerVehicle.setSelection(0);
|
||||
|
||||
changeMapType();
|
||||
changeTraffic();
|
||||
|
||||
displayButton = findViewById(R.id.buttonDisplay);
|
||||
displayButton.setOnClickListener(view -> {
|
||||
googleMap.clear();
|
||||
if (!AppParams.DEMO) {
|
||||
parentTab.setDropAllData(false);
|
||||
parentTab.setFirstHistoryData(true);
|
||||
parentTab.clearHistoryMessageList();
|
||||
parentTab.clearHistoryPositionList();
|
||||
|
||||
// request history
|
||||
parentTab.executeNetworkStuff(new String[] {OperationCodes.GetHistoryPositions + "", allVehicle.get(spinnerVehicle.getSelectedItemPosition()).sc_id + "",
|
||||
(startDate.getTime()/ 1000L) + "", (endDate.getTime()/ 1000L) + ""});
|
||||
} else {
|
||||
parentTab.demoPositionsList();
|
||||
displayHistory(parentTab.getDemoPositions());
|
||||
}
|
||||
});
|
||||
|
||||
setDate();
|
||||
}
|
||||
|
||||
private void displayHistory(ArrayList<HistPos> positions) {
|
||||
LatLng latLng = null;
|
||||
PolylineOptions polylineOptions = new PolylineOptions();
|
||||
BitmapDescriptor markerIcon = BitmapDescriptorFactory.fromResource(R.drawable.history_pin);
|
||||
for (int i = 0; i < positions.size(); i++) {
|
||||
HistPos pos = positions.get(i);
|
||||
if (pos.speed > 0) {
|
||||
latLng = new LatLng(pos.lat, pos.lng);
|
||||
polylineOptions.add(latLng);
|
||||
|
||||
googleMap.addMarker(new MarkerOptions()
|
||||
.position(latLng)
|
||||
.icon(markerIcon)
|
||||
.title(String.valueOf(i)));
|
||||
}
|
||||
}
|
||||
|
||||
googleMap.addPolyline(polylineOptions);
|
||||
if (latLng != null)
|
||||
googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 14));
|
||||
}
|
||||
|
||||
private void setDate() {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
endDate = calendar.getTime();
|
||||
calendar.add(Calendar.DATE, -1);
|
||||
startDate = calendar.getTime();
|
||||
|
||||
TextView textViewStartDate = findViewById(R.id.textViewStartDate);
|
||||
TextView textViewEndDate = findViewById(R.id.textViewEndDate);
|
||||
|
||||
textViewStartDate.setText(sdf.format(startDate));
|
||||
textViewEndDate.setText(sdf.format(endDate));
|
||||
|
||||
textViewStartDate.setOnClickListener(view -> openDialog(textViewStartDate, true));
|
||||
textViewEndDate.setOnClickListener(view -> openDialog(textViewEndDate, false));
|
||||
}
|
||||
|
||||
private void openDialog(TextView textView, Boolean isStartDate) {
|
||||
Date date = startDate;
|
||||
if (!isStartDate)
|
||||
date = endDate;
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
|
||||
DatePickerDialog.OnDateSetListener setListener = (datePicker, y, m, d) -> {
|
||||
calendar.set(y, m, d);
|
||||
String dateString = sdf.format(calendar.getTime());
|
||||
textView.setText(dateString);
|
||||
if (isStartDate)
|
||||
startDate = calendar.getTime();
|
||||
else
|
||||
endDate = calendar.getTime();
|
||||
};
|
||||
|
||||
Dialog dialog = new DatePickerDialog(this, android.R.style.Theme_Holo_Light_Dialog_MinWidth, setListener,
|
||||
calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH));
|
||||
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
private void changeTraffic() {
|
||||
ImageView changeTrafficImageView = findViewById(R.id.changeTraffic);
|
||||
changeTrafficImageView.setOnClickListener(v -> {
|
||||
if (googleMap.isTrafficEnabled()) {
|
||||
changeTrafficImageView.setImageResource(R.drawable.traffic_off);
|
||||
googleMap.setTrafficEnabled(false);
|
||||
} else {
|
||||
changeTrafficImageView.setImageResource(R.drawable.traffic);
|
||||
googleMap.setTrafficEnabled(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void changeMapType() {
|
||||
ImageView changeMapType = findViewById(R.id.changeMapType);
|
||||
changeMapType.setOnClickListener(view -> {
|
||||
if (googleMap.getMapType() == GoogleMap.MAP_TYPE_SATELLITE) {
|
||||
changeMapType.setImageResource(R.drawable.satellite);
|
||||
googleMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
|
||||
} else {
|
||||
changeMapType.setImageResource(R.drawable.map);
|
||||
googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void getVehicles() {
|
||||
try {
|
||||
allVehicle.clear();
|
||||
allVehicleNames.clear();
|
||||
for (Vehicle vehicle : parentTab.getAllVehicle()) {
|
||||
allVehicleNames.add(vehicle.name);
|
||||
allVehicle.add(vehicle);
|
||||
}
|
||||
} catch (Exception ignored) { }
|
||||
|
||||
}
|
||||
|
||||
final Runnable UpdateMapResults = new Runnable() {
|
||||
public void run() {
|
||||
Log.v("updateMap", parentTab.getHistoryPositionList().toString());
|
||||
SM.Debug("Do the Display");
|
||||
infoBubble.setHistoryPositions(parentTab.getHistoryPositionList());
|
||||
displayHistory(parentTab.getHistoryPositionList());
|
||||
}
|
||||
};
|
||||
|
||||
public void UpdateMap() {
|
||||
myHandler.post(UpdateMapResults);
|
||||
SM.Debug("Do the updateMAP post");
|
||||
}
|
||||
|
||||
public void UpdateUnableDisp() {
|
||||
SM.Debug("Do Cancelwindow");
|
||||
}
|
||||
|
||||
public void UpdateCancel() {
|
||||
SM.Debug("Do Cancelwindow");
|
||||
}
|
||||
|
||||
public void UpdateNrPos(int size) {
|
||||
SM.Debug("Do Cancelwindow");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMapReady(@NonNull GoogleMap googleMap) {
|
||||
this.googleMap = googleMap;
|
||||
|
||||
infoBubble = new GoogleMapsInfoBubble(getLayoutInflater(), this);
|
||||
this.googleMap.setInfoWindowAdapter(infoBubble);
|
||||
|
||||
parentTab.demoPositionsList();
|
||||
displayButton.performClick();
|
||||
}
|
||||
}
|
@ -14,7 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
@ -1,4 +1,4 @@
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import android.os.Bundle;
|
||||
import androidx.fragment.app.FragmentActivity;
|
@ -1,4 +1,4 @@
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
@ -1,4 +1,4 @@
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
@ -1,4 +1,4 @@
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
@ -673,10 +673,10 @@ public class RadioActivity extends Activity {
|
||||
dialog.setCancelable(true);
|
||||
dialog.setCanceledOnTouchOutside(true);
|
||||
|
||||
TextView text = (TextView) dialog.findViewById(R.id.text);
|
||||
ImageView image = (ImageView) dialog.findViewById(R.id.image);
|
||||
TextView text = dialog.findViewById(R.id.text);
|
||||
ImageView image = dialog.findViewById(R.id.image);
|
||||
|
||||
image.setImageResource(R.drawable.ic_launcher);
|
||||
image.setImageResource(R.mipmap.ic_launcher);
|
||||
text.setText(errorMsg);
|
||||
dialog.show();
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
@ -184,10 +184,10 @@ public class RecordingsActivity extends Activity {
|
||||
dialog.setCancelable(true);
|
||||
dialog.setCanceledOnTouchOutside(true);
|
||||
|
||||
TextView text = (TextView) dialog.findViewById(R.id.text);
|
||||
ImageView image = (ImageView) dialog.findViewById(R.id.image);
|
||||
TextView text = dialog.findViewById(R.id.text);
|
||||
ImageView image = dialog.findViewById(R.id.image);
|
||||
|
||||
image.setImageResource(R.drawable.ic_launcher);
|
||||
image.setImageResource(R.mipmap.ic_launcher);
|
||||
text.setText(errorMsg);
|
||||
dialog.show();
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
@ -233,10 +233,10 @@ public class SDMobileActivity extends Activity {
|
||||
etPassword.setText(AppParams.PASSWORD.equalsIgnoreCase("n/a") ? "" : AppParams.PASSWORD);
|
||||
}
|
||||
|
||||
layoutTCP = (RelativeLayout) findViewById(R.id.layoutTCP);
|
||||
layoutTCP = findViewById(R.id.layoutTCP);
|
||||
|
||||
llUsername = (LinearLayout) findViewById(R.id.llUsername);
|
||||
llPassword = (LinearLayout) findViewById(R.id.llPassword);
|
||||
llUsername = findViewById(R.id.llUsername);
|
||||
llPassword = findViewById(R.id.llPassword);
|
||||
|
||||
// enable ui after the language is changed and tcp connection is on
|
||||
if (tcp != null && tcp.isConnectionUP) {
|
||||
@ -663,7 +663,7 @@ public class SDMobileActivity extends Activity {
|
||||
// get default password
|
||||
AppParams.PASSWORD = AppParams.prefs.getString(PASSWORD, "n/a");
|
||||
// get default IP
|
||||
AppParams.IP = AppParams.prefs.getString("ip", "192.168.2.100");
|
||||
AppParams.IP = AppParams.prefs.getString("ip", "185.8.154.190");
|
||||
|
||||
// get Radio ID & IP
|
||||
AppParams.RADIOID = AppParams.prefs.getInt("radioId", 100);
|
||||
@ -737,10 +737,10 @@ public class SDMobileActivity extends Activity {
|
||||
Dialog dialogInfo = new Dialog(context);
|
||||
dialogInfo.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
dialogInfo.setContentView(R.layout.dialog_login);
|
||||
TextView textTitle = (TextView) dialogInfo.findViewById(R.id.textTitle);
|
||||
TextView text = (TextView) dialogInfo.findViewById(R.id.text);
|
||||
TextView text2 = (TextView) dialogInfo.findViewById(R.id.text2);
|
||||
ImageView image = (ImageView) dialogInfo.findViewById(R.id.image);
|
||||
TextView textTitle = dialogInfo.findViewById(R.id.textTitle);
|
||||
TextView text = dialogInfo.findViewById(R.id.text);
|
||||
TextView text2 = dialogInfo.findViewById(R.id.text2);
|
||||
ImageView image = dialogInfo.findViewById(R.id.image);
|
||||
|
||||
textTitle.setText(getString(R.string.connectionError));
|
||||
image.setImageResource(R.drawable.error);
|
@ -1,4 +1,4 @@
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
@ -1,4 +1,4 @@
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import java.util.Locale;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.safemobile.dispatch;
|
||||
package com.safemobile.safedispatch;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
@ -20,6 +20,7 @@ import com.safemobile.activities.AbstractLiveActivity;
|
||||
import com.safemobile.activities.AbstractMessagesActivity;
|
||||
import com.safemobile.activities.AbstractRadioActivity;
|
||||
import com.safemobile.activities.AbstractSDParentActivity;
|
||||
import com.safemobile.safedispatch.R;
|
||||
import com.safemobile.enums.AuthorizationCode;
|
||||
import com.safemobile.enums.AuthorizationStatus;
|
||||
import com.safemobile.enums.ProviderSettingsStatus;
|
||||
@ -260,6 +261,10 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
|
||||
this.historyPositionList = historyPositionList;
|
||||
}
|
||||
|
||||
public void clearHistoryPositionList() {
|
||||
this.historyPositionList.clear();
|
||||
}
|
||||
|
||||
public Boolean getFirstHistoryData() {
|
||||
return firstHistoryData;
|
||||
}
|
||||
@ -284,6 +289,10 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
|
||||
this.historyMessageList = historyMessageList;
|
||||
}
|
||||
|
||||
public void clearHistoryMessageList() {
|
||||
this.historyMessageList.clear();
|
||||
}
|
||||
|
||||
public ArrayList<SMS> getDemoSmsList() {
|
||||
return demoSmsList;
|
||||
}
|
||||
@ -465,7 +474,7 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
|
||||
// add radio tab
|
||||
intent[6] = new Intent(context, AbstractEmptyActivity.class);
|
||||
tabSpecs[6] = tabHost.newTabSpec(ABOUT)
|
||||
.setIndicator(ABOUT, res.getDrawable(AppParams.DEMO ? R.drawable.icon_demo : R.drawable.ic_launcher))
|
||||
.setIndicator(ABOUT, res.getDrawable(AppParams.DEMO ? R.drawable.icon_demo : R.mipmap.ic_launcher))
|
||||
.setContent(intent[6]);
|
||||
|
||||
// add history tab
|
||||
@ -744,7 +753,7 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
|
||||
dialog.setTitle(AppParams.DEMO ? getString(R.string.app_name_demo) : getString(R.string.app_name));
|
||||
dialog.setContentView(R.layout.dialog);
|
||||
ImageView image = dialog.findViewById(R.id.image);
|
||||
image.setImageResource(AppParams.DEMO ? R.drawable.icon_demo : R.drawable.ic_launcher);
|
||||
image.setImageResource(AppParams.DEMO ? R.drawable.icon_demo : R.mipmap.ic_launcher);
|
||||
TextView text = dialog.findViewById(R.id.text);
|
||||
TextView text2 = dialog.findViewById(R.id.text2);
|
||||
text.setText(String.format("%s1.0.8", getString(R.string.version)));
|
||||
@ -935,7 +944,7 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
|
||||
}
|
||||
}
|
||||
|
||||
private void demoPositionsList() {
|
||||
public void demoPositionsList() {
|
||||
AssetManager assetManager = res.getAssets();
|
||||
SM.Debug("TRY 2 OPEN demo_positions.txt");
|
||||
InputStream input = null;
|
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 207 KiB |
Before Width: | Height: | Size: 66 KiB |
BIN
safeDispatch/src/main/res/drawable-hdpi/safedispatch_logo.png
Normal file
After Width: | Height: | Size: 145 KiB |
BIN
safeDispatch/src/main/res/drawable-mdpi/history_pin.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
@ -31,10 +31,10 @@
|
||||
android:paddingLeft="3dp"
|
||||
android:layout_weight="1"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayoutChecked"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:background="@drawable/checked">
|
||||
</LinearLayout>
|
||||
android:id="@+id/linearLayoutChecked"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:background="@drawable/checked"
|
||||
android:orientation="horizontal" />
|
||||
</LinearLayout>
|
@ -32,7 +32,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/serverIP"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="center_vertical|right"
|
||||
@ -67,7 +66,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/serverPort"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center_vertical|right"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
@ -112,7 +110,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/configName"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center_vertical|right"
|
||||
android:layout_gravity="center_vertical"/>
|
||||
@ -181,7 +178,6 @@
|
||||
android:text="@string/language"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#FFFFFF"
|
||||
android:gravity="right"
|
||||
android:layout_gravity="center_vertical"/>
|
||||
<LinearLayout
|
||||
|
@ -7,9 +7,9 @@
|
||||
android:padding="2dp"
|
||||
android:background="@drawable/style_nameoverlay">
|
||||
|
||||
<TextView android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:id="@+id/balloon_vehicle_name"
|
||||
android:textSize="12dip"
|
||||
android:textColor="#FF000000"></TextView>
|
||||
<TextView android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:id="@+id/balloon_vehicle_name"
|
||||
android:textSize="12dip"
|
||||
android:textColor="#FF000000" />
|
||||
</LinearLayout>
|
||||
|
@ -1,37 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layout_root"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:padding="10dp"
|
||||
>
|
||||
<ImageView android:id="@+id/image"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/ic_launcher"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="center_vertical">
|
||||
<TextView android:id="@+id/text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="8dp"
|
||||
android:textSize="18dp"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
<TextView android:id="@+id/text2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="8dp"
|
||||
android:textSize="18dp"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layout_root"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:padding="10dp" >
|
||||
<ImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="center_vertical">
|
||||
<TextView
|
||||
android:id="@+id/text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="8dp"
|
||||
android:textSize="18dp"
|
||||
/>
|
||||
<TextView
|
||||
android:id="@+id/text2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="8dp"
|
||||
android:textSize="18dp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
@ -11,7 +11,7 @@
|
||||
android:paddingTop="2dp"
|
||||
android:text="TITLE"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_horizontal"
|
||||
@ -24,7 +24,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/ic_launcher"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
android:contentDescription="image for dialog"
|
||||
/>
|
||||
<LinearLayout
|
||||
@ -40,7 +40,6 @@
|
||||
android:paddingTop="8dp"
|
||||
android:text="Row1"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="#FFFFFF"
|
||||
/>
|
||||
<TextView android:id="@+id/text2"
|
||||
android:layout_width="wrap_content"
|
||||
@ -48,7 +47,6 @@
|
||||
android:paddingTop="8dp"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="Row2"
|
||||
android:textColor="#FFFFFF"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
@ -217,13 +217,13 @@
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageLoading"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="64dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="0"
|
||||
android:visibility="gone"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentLeft="true" />
|
||||
android:id="@+id/imageLoading"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="64dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="0"
|
||||
android:visibility="gone"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentLeft="true" />
|
||||
|
||||
</RelativeLayout>
|
@ -210,8 +210,6 @@
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/frameLayoutLanguage"
|
||||
android:layout_width="wrap_content"
|
||||
@ -221,20 +219,16 @@
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_gravity="right"
|
||||
android:paddingBottom="6dp"
|
||||
android:layout_toLeftOf="@+id/frameLayout13">
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
android:layout_toLeftOf="@+id/frameLayout13" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageLoading"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="64dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="0"
|
||||
android:visibility="gone"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentLeft="true" />
|
||||
android:id="@+id/imageLoading"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="64dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="0"
|
||||
android:visibility="gone"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentLeft="true" />
|
||||
|
||||
</RelativeLayout>
|
@ -31,10 +31,10 @@
|
||||
android:paddingLeft="3dp"
|
||||
android:layout_weight="1"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayoutChecked"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:background="@drawable/checked">
|
||||
</LinearLayout>
|
||||
android:id="@+id/linearLayoutChecked"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:background="@drawable/checked"
|
||||
android:orientation="horizontal" />
|
||||
</LinearLayout>
|
@ -1,30 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp"
|
||||
android:paddingTop="5dp"
|
||||
android:paddingBottom="5dp"/>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical">
|
||||
<TextView
|
||||
android:id="@+id/language"
|
||||
android:textSize="20dp"
|
||||
android:textColor="#000000"
|
||||
android:textStyle="bold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_launcher"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp"
|
||||
android:paddingTop="5dp"
|
||||
android:paddingBottom="5dp"/>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical">
|
||||
<TextView
|
||||
android:id="@+id/language"
|
||||
android:textSize="20dp"
|
||||
android:textColor="#000000"
|
||||
android:textStyle="bold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"/>
|
||||
android:gravity="center_vertical"/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
@ -10,14 +10,14 @@
|
||||
android:gravity="center_vertical" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButtonAdd"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:layout_marginRight="5dp"
|
||||
android:paddingLeft="2dp"
|
||||
android:visibility="invisible"
|
||||
android:background="@drawable/addmessage_selector"/>
|
||||
android:id="@+id/imageButtonAdd"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:layout_marginRight="5dp"
|
||||
android:paddingLeft="2dp"
|
||||
android:visibility="invisible"
|
||||
android:background="@drawable/addmessage_selector"/>
|
||||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -9,7 +9,6 @@
|
||||
style="?header"
|
||||
android:gravity="center_vertical" >
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -21,13 +20,13 @@
|
||||
android:gravity="left|center_vertical"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageCheckAll"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:layout_marginRight="1dp"
|
||||
android:paddingLeft="2dp"
|
||||
android:background="@drawable/uncheck_all"/>
|
||||
<ImageButton
|
||||
android:id="@+id/imageCheckAll"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:layout_marginRight="1dp"
|
||||
android:paddingLeft="2dp"
|
||||
android:background="@drawable/uncheck_all"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
@ -5,85 +5,84 @@
|
||||
android:orientation="vertical"
|
||||
style="?bg">
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="left"
|
||||
android:layout_weight="0"
|
||||
android:orientation="horizontal"
|
||||
style="?header"
|
||||
android:id="@+id/layoutHeader">
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="left"
|
||||
android:layout_weight="0"
|
||||
android:orientation="horizontal"
|
||||
style="?header"
|
||||
android:id="@+id/layoutHeader">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewMsg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/alert"
|
||||
android:paddingLeft="0dp"
|
||||
android:layout_margin="3dp"
|
||||
android:layout_weight="0" />
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/alarms"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:textStyle="bold"
|
||||
android:paddingTop="7dp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_weight="0"/>
|
||||
<ImageView
|
||||
android:id="@+id/imageViewMsg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/alert"
|
||||
android:paddingLeft="0dp"
|
||||
android:layout_margin="3dp"
|
||||
android:layout_weight="0" />
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/alarms"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:textStyle="bold"
|
||||
android:paddingTop="7dp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_weight="0"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewSeparator"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/separator_white"
|
||||
android:layout_margin="2dp"
|
||||
android:layout_weight="0"
|
||||
android:visibility="invisible"
|
||||
android:focusable="false" />
|
||||
<ImageView
|
||||
android:id="@+id/imageViewSeparator"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/separator_white"
|
||||
android:layout_margin="2dp"
|
||||
android:layout_weight="0"
|
||||
android:visibility="invisible"
|
||||
android:focusable="false" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewDown"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:focusable="false"
|
||||
android:visibility="invisible"
|
||||
android:src="@drawable/arrow_menu_down" />
|
||||
<ImageView
|
||||
android:id="@+id/imageViewDown"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:focusable="false"
|
||||
android:visibility="invisible"
|
||||
android:src="@drawable/arrow_menu_down" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButtonAdd2"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:scaleType="centerInside"
|
||||
android:layout_marginRight="5dp"
|
||||
android:paddingLeft="2dp"
|
||||
android:visibility="invisible"
|
||||
android:background="@drawable/addmessage_selector"/>
|
||||
<ImageButton
|
||||
android:id="@+id/imageButtonAdd2"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:scaleType="centerInside"
|
||||
android:layout_marginRight="5dp"
|
||||
android:paddingLeft="2dp"
|
||||
android:visibility="invisible"
|
||||
android:background="@drawable/addmessage_selector"/>
|
||||
|
||||
<!-- android:background="@drawable/addmessage_selector" -->
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1">
|
||||
<GridView
|
||||
android:id="@+id/gridViewAlarms"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#999999"
|
||||
android:drawSelectorOnTop="false"
|
||||
android:horizontalSpacing="0dp"
|
||||
android:listSelector="@drawable/gridalarm_selector"
|
||||
android:numColumns="1"
|
||||
android:verticalSpacing="1dp"
|
||||
android:padding="5dp"/>
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1">
|
||||
<GridView
|
||||
android:id="@+id/gridViewAlarms"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#999999"
|
||||
android:drawSelectorOnTop="false"
|
||||
android:horizontalSpacing="0dp"
|
||||
android:listSelector="@drawable/gridalarm_selector"
|
||||
android:numColumns="1"
|
||||
android:verticalSpacing="1dp"
|
||||
android:padding="5dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
@ -1,8 +1,10 @@
|
||||
<?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:id="@+id/tab1Layout" android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:id="@+id/tab1Layout"
|
||||
android:orientation="horizontal"
|
||||
style="?bg">
|
||||
|
||||
<RelativeLayout
|
||||
@ -162,10 +164,11 @@
|
||||
android:text="@string/startDate"
|
||||
android:textSize="22dp"
|
||||
android:paddingLeft="5dp"
|
||||
android:layout_marginTop="15sp"
|
||||
android:textColor="#000000"
|
||||
android:gravity="left"
|
||||
android:id="@+id/labelStartDate"
|
||||
android:visibility="gone"/>
|
||||
/>
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutStartPicker"
|
||||
android:layout_height="wrap_content"
|
||||
@ -202,7 +205,7 @@
|
||||
android:textColor="#000000"
|
||||
android:gravity="left"
|
||||
android:id="@+id/labelEndDate"
|
||||
android:visibility="gone"/>
|
||||
/>
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutEndPicker"
|
||||
android:layout_height="wrap_content"
|
||||
@ -284,14 +287,15 @@
|
||||
</LinearLayout>
|
||||
|
||||
<fragment
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:id="@+id/map"
|
||||
android:layout_toRightOf="@id/slidelayout"
|
||||
android:layout_weight="1"
|
||||
tools:context=".HistoryActivity"
|
||||
android:name="com.google.android.gms.maps.SupportMapFragment" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:id="@+id/changeMapType"
|
||||
|
@ -7,356 +7,352 @@
|
||||
style="?bg">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutGateway"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:weightSum="100"
|
||||
android:orientation="horizontal"
|
||||
style="?header">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewRadioStation"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/enable"
|
||||
android:layout_weight="0" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/textViewGateway"
|
||||
android:text="n/a"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:textStyle="bold"
|
||||
android:paddingTop="7dp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/textViewIP"
|
||||
android:text="[192.168.2.100]"
|
||||
android:paddingLeft="4dp"
|
||||
android:paddingTop="17dp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:visibility="gone"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewSeparator"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/separator_white"
|
||||
android:layout_margin="2dp"
|
||||
android:layout_weight="0"
|
||||
android:visibility="invisible"
|
||||
android:focusable="false" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewDown"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:focusable="false"
|
||||
android:visibility="visible"
|
||||
android:src="@drawable/arrow_menu_down" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/status_offline" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="right"
|
||||
android:layout_marginRight="8dp"
|
||||
android:visibility="gone">
|
||||
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButtonAdd"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:layout_marginRight="2dp"
|
||||
android:paddingLeft="2dp"
|
||||
android:background="@drawable/addmessage_selector"
|
||||
android:visibility="invisible"/>
|
||||
<ImageView
|
||||
android:id="@+id/imageViewGreen"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="fitCenter"
|
||||
android:paddingTop="4dp"
|
||||
android:src="@drawable/call_private_green_small"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textViewLoggedIn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/login"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="16dp"
|
||||
android:paddingTop="7dp" />
|
||||
</LinearLayout>
|
||||
<!-- android:background="@drawable/addmessage_selector" -->
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/style_bluebutton"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:visibility="gone"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/IP"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="17dp" />
|
||||
<TextView
|
||||
android:id="@+id/textViewIP2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/emptyIP"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="17dp" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/layoutGateway2">
|
||||
<ImageView
|
||||
android:id="@+id/imageView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/enable" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:id="@+id/textViewGateway2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text=""
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="17dp"
|
||||
android:paddingRight="2dp"/>
|
||||
<ImageView
|
||||
android:id="@+id/imageViewGateway"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/arrow_down" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="6">
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/Status"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="17dp" />
|
||||
<ImageView
|
||||
android:id="@+id/imageViewStatus2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/status_offline"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
android:id="@+id/layoutGateway"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:weightSum="100"
|
||||
android:orientation="horizontal"
|
||||
style="?header">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="2dp">
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewRadioStation"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/enable"
|
||||
android:layout_weight="0" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/textViewGateway"
|
||||
android:text="n/a"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:textStyle="bold"
|
||||
android:paddingTop="7dp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/textViewIP"
|
||||
android:text="[192.168.2.100]"
|
||||
android:paddingLeft="4dp"
|
||||
android:paddingTop="17dp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:visibility="gone"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewSeparator"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/separator_white"
|
||||
android:layout_margin="2dp"
|
||||
android:layout_weight="0"
|
||||
android:visibility="invisible"
|
||||
android:focusable="false" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewDown"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:focusable="false"
|
||||
android:visibility="visible"
|
||||
android:src="@drawable/arrow_menu_down" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/status_offline" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center">
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="right"
|
||||
android:layout_marginRight="8dp"
|
||||
android:visibility="gone">
|
||||
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButtonAdd"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:layout_marginRight="2dp"
|
||||
android:paddingLeft="2dp"
|
||||
android:background="@drawable/addmessage_selector"
|
||||
android:visibility="invisible"/>
|
||||
<ImageView
|
||||
android:id="@+id/imageViewGreen"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="fitCenter"
|
||||
android:paddingTop="4dp"
|
||||
android:src="@drawable/call_private_green_small"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textViewLoggedIn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/login"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="16dp"
|
||||
android:paddingTop="7dp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/style_bluebutton"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:visibility="gone"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/IP"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="17dp" />
|
||||
<TextView
|
||||
android:id="@+id/textViewIP2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/emptyIP"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="17dp" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/layoutGateway2">
|
||||
<ImageView
|
||||
android:id="@+id/imageView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/enable" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:id="@+id/textViewGateway2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text=""
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="17dp"
|
||||
android:paddingRight="2dp"/>
|
||||
<ImageView
|
||||
android:id="@+id/imageViewGateway"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/arrow_down" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="6">
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/Status"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="17dp" />
|
||||
<ImageView
|
||||
android:id="@+id/imageViewStatus2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/status_offline" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="2dp">
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingRight="10dp"
|
||||
android:layout_gravity="center_vertical">
|
||||
<LinearLayout
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:gravity="center">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/Zone"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#ffffffff"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutSpinnerZone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/style_spinner"
|
||||
android:gravity="right"
|
||||
android:minWidth="150dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingRight="3dp"
|
||||
android:paddingTop="4dp" >
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingRight="10dp"
|
||||
android:layout_gravity="center_vertical">
|
||||
<LinearLayout
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:gravity="center">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/Zone"
|
||||
android:textStyle="bold"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutSpinnerZone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/style_spinner"
|
||||
android:gravity="right"
|
||||
android:minWidth="150dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingRight="3dp"
|
||||
android:paddingTop="4dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textViewZone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text=""
|
||||
android:textColor="#000000"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20dp"/>
|
||||
<ImageView
|
||||
android:src="@drawable/arrow_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:gravity="center">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/Channel"
|
||||
android:textColor="#ffffffff"
|
||||
android:textStyle="bold"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
<TextView
|
||||
android:id="@+id/textViewZone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text=""
|
||||
android:textColor="#000000"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20dp"/>
|
||||
<ImageView
|
||||
android:src="@drawable/arrow_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:gravity="center">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/Channel"
|
||||
android:textStyle="bold"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutSpinnerChannel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/style_spinner"
|
||||
android:gravity="right"
|
||||
android:minWidth="150dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingRight="3dp"
|
||||
android:paddingTop="4dp" >
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutSpinnerChannel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/style_spinner"
|
||||
android:gravity="right"
|
||||
android:minWidth="150dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingRight="3dp"
|
||||
android:paddingTop="4dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textViewChannel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text=""
|
||||
android:textColor="#000000"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20dp"/>
|
||||
<ImageView
|
||||
android:src="@drawable/arrow_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/textViewChannel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text=""
|
||||
android:textColor="#000000"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20dp"/>
|
||||
<ImageView
|
||||
android:src="@drawable/arrow_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center"
|
||||
android:layout_gravity="center_horizontal">
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center"
|
||||
android:layout_gravity="center_horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_weight="1"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center"
|
||||
android:paddingTop="3dp">
|
||||
<LinearLayout
|
||||
android:layout_width="276dp"
|
||||
android:layout_height="93dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/screen"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="0dp"
|
||||
android:paddingTop="7dp">
|
||||
<LinearLayout
|
||||
android:layout_weight="1"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center"
|
||||
android:paddingTop="3dp">
|
||||
<LinearLayout
|
||||
android:layout_width="276dp"
|
||||
android:layout_height="93dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/screen"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="0dp"
|
||||
android:paddingTop="7dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textViewMessageChannel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:paddingBottom="7dp"
|
||||
android:textColor="#000000"
|
||||
android:textSize="20dp"
|
||||
android:textStyle="bold"/>
|
||||
<TextView
|
||||
android:id="@+id/textViewMessageStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:textColor="#000000"
|
||||
android:textSize="20dp"
|
||||
android:textStyle="bold"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/textViewMessageChannel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:paddingBottom="7dp"
|
||||
android:textColor="#000000"
|
||||
android:textSize="20dp"
|
||||
android:textStyle="bold"/>
|
||||
<TextView
|
||||
android:id="@+id/textViewMessageStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:textColor="#000000"
|
||||
android:textSize="20dp"
|
||||
android:textStyle="bold"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
@ -366,104 +362,104 @@
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center_horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_weight="1">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<RadioGroup android:id="@+id/radioGroupCallType"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="3sp">
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_weight="1">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<RadioGroup
|
||||
android:id="@+id/radioGroupCallType"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="3sp">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/radioAll"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:checked="true"
|
||||
android:text="@string/AllCall"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="#ffffffff" />
|
||||
<RadioButton
|
||||
android:id="@+id/radioAll"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:checked="true"
|
||||
android:text="@string/AllCall"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/radioGroup"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:text="@string/GroupCall"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="#ffffffff" />
|
||||
<RadioButton
|
||||
android:id="@+id/radioGroup"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:text="@string/GroupCall"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/radioPrivate"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:text="@string/PrivateCall"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="#ffffffff" />
|
||||
<RadioButton
|
||||
android:id="@+id/radioPrivate"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:text="@string/PrivateCall"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
|
||||
</RadioGroup>
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutSpinnerCallType"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/style_spinner"
|
||||
android:gravity="right"
|
||||
android:minWidth="150dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingRight="3dp"
|
||||
android:paddingTop="4dp"
|
||||
android:visibility="invisible" >
|
||||
</RadioGroup>
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutSpinnerCallType"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/style_spinner"
|
||||
android:gravity="right"
|
||||
android:minWidth="150dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingRight="3dp"
|
||||
android:paddingTop="4dp"
|
||||
android:visibility="invisible" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textViewCallType"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text=""
|
||||
android:textColor="#000000"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20dp"/>
|
||||
<ImageView
|
||||
android:src="@drawable/arrow_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:orientation="vertical" >
|
||||
<Button
|
||||
android:id="@+id/buttonPTT"
|
||||
style="@style/ButtonPTT"
|
||||
android:layout_width="135dp"
|
||||
android:layout_height="88dp"
|
||||
android:background="@drawable/style_buttonptt"
|
||||
android:gravity="center"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="@string/PTT" />
|
||||
<Button
|
||||
android:id="@+id/buttonDKey"
|
||||
style="@style/ButtonText"
|
||||
android:layout_width="135dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/style_bluebutton"
|
||||
android:text="@string/DeKey"
|
||||
android:textSize="18dp" />
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/textViewCallType"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text=""
|
||||
android:textColor="#000000"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20dp"/>
|
||||
<ImageView
|
||||
android:src="@drawable/arrow_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:orientation="vertical" >
|
||||
<Button
|
||||
android:id="@+id/buttonPTT"
|
||||
style="@style/ButtonPTT"
|
||||
android:layout_width="135dp"
|
||||
android:layout_height="88dp"
|
||||
android:background="@drawable/style_buttonptt"
|
||||
android:gravity="center"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="@string/PTT" />
|
||||
<Button
|
||||
android:id="@+id/buttonDKey"
|
||||
style="@style/ButtonText"
|
||||
android:layout_width="135dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/style_bluebutton"
|
||||
android:text="@string/DeKey"
|
||||
android:textSize="18dp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
@ -123,19 +123,18 @@
|
||||
android:visibility="gone"
|
||||
android:background="@drawable/recycle"/>
|
||||
|
||||
<!-- android:background="@drawable/addmessage_selector" -->
|
||||
</LinearLayout>
|
||||
|
||||
<GridView
|
||||
android:id="@+id/gridViewRecordings"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:verticalSpacing="1dp"
|
||||
android:horizontalSpacing="0dp"
|
||||
android:background="#999999"
|
||||
android:drawSelectorOnTop="false"
|
||||
android:listSelector="@drawable/gridalarm_selector"
|
||||
android:numColumns="1"
|
||||
android:padding="5dp"></GridView>
|
||||
</LinearLayout>
|
||||
|
||||
<GridView
|
||||
android:id="@+id/gridViewRecordings"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:verticalSpacing="1dp"
|
||||
android:horizontalSpacing="0dp"
|
||||
android:background="#999999"
|
||||
android:drawSelectorOnTop="false"
|
||||
android:listSelector="@drawable/gridalarm_selector"
|
||||
android:numColumns="1"
|
||||
android:padding="5dp"></GridView>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layoutMain"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
@ -10,246 +11,237 @@
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="80">
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="center"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingBottom="50dp" >
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="center"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingBottom="50dp" >
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="left"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingLeft="7dp"
|
||||
android:layout_weight="0.4">
|
||||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/serverIP"
|
||||
android:textSize="14dp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="center_vertical|right"
|
||||
android:layout_weight="2"/>
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="left"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingLeft="7dp"
|
||||
android:layout_weight="0.4">
|
||||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/serverIP"
|
||||
android:textSize="14dp"
|
||||
android:textStyle="bold"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="center_vertical|right"
|
||||
android:layout_weight="2"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingTop="3dp">
|
||||
<EditText
|
||||
android:id="@+id/appServerIP"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:minWidth="200dp"
|
||||
android:singleLine="true"
|
||||
android:imeOptions="actionDone" >
|
||||
</EditText>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingTop="3dp">
|
||||
<EditText
|
||||
android:id="@+id/appServerIP"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:minWidth="200dp"
|
||||
android:singleLine="true"
|
||||
android:imeOptions="actionDone" >
|
||||
</EditText>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="left"
|
||||
android:paddingTop="10dp"
|
||||
android:layout_weight="0.6">
|
||||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/serverPort"
|
||||
android:textSize="14dp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center_vertical|right"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:layout_weight="1.4"/>
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingTop="3dp">
|
||||
<EditText
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/appServerPort"
|
||||
android:maxLength="5"
|
||||
android:minWidth="73dp"
|
||||
android:gravity="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:inputType="number"
|
||||
android:imeOptions="actionDone">
|
||||
</EditText>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="left"
|
||||
android:paddingTop="10dp"
|
||||
android:layout_weight="0.6">
|
||||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/serverPort"
|
||||
android:textSize="14dp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center_vertical|right"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:layout_weight="1.4"/>
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingTop="3dp">
|
||||
<EditText
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/appServerPort"
|
||||
android:maxLength="5"
|
||||
android:minWidth="73dp"
|
||||
android:gravity="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:inputType="number"
|
||||
android:imeOptions="actionDone" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/layoutPath">
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="0dp"
|
||||
android:gravity="center_vertical|left">
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="95dp"
|
||||
android:layout_weight="0">
|
||||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/configName"
|
||||
android:textSize="14dp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center_vertical|right"
|
||||
android:layout_gravity="center_vertical"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingTop="3dp">
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="0dp"
|
||||
android:gravity="center_vertical|left">
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="95dp"
|
||||
android:layout_weight="0">
|
||||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/configName"
|
||||
android:textSize="14dp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center_vertical|right"
|
||||
android:layout_gravity="center_vertical"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingTop="3dp">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editTextPath"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="right|center_vertical"
|
||||
android:text="serial"
|
||||
android:imeOptions="actionDone"
|
||||
android:minWidth="73dp"
|
||||
<EditText
|
||||
android:id="@+id/editTextPath"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="right|center_vertical"
|
||||
android:text="serial"
|
||||
android:imeOptions="actionDone"
|
||||
android:minWidth="73dp"
|
||||
|
||||
android:singleLine="true" >
|
||||
<requestFocus />
|
||||
</EditText>
|
||||
android:singleLine="true" >
|
||||
<requestFocus />
|
||||
</EditText>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:paddingTop="3dp">
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/btn_browse"
|
||||
android:text="@string/load"
|
||||
style="@style/ButtonText"
|
||||
android:textColor="#000"
|
||||
android:textSize="18dp"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:paddingTop="3dp"
|
||||
android:paddingRight="3dp">
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:paddingTop="3dp">
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/btn_browse"
|
||||
android:text="@string/load"
|
||||
style="@style/ButtonText"
|
||||
android:textColor="#000"
|
||||
android:textSize="18dp"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:paddingTop="3dp"
|
||||
android:paddingRight="3dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewQuestionMark"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/questionmark_small" />
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:id="@+id/imageViewQuestionMark"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/questionmark_small" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/frameLayout11"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="left" >
|
||||
android:id="@+id/frameLayout11"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="left" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="95dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/language"
|
||||
android:textSize="14dp"
|
||||
android:layout_marginRight="2dp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold"
|
||||
android:gravity="right"
|
||||
android:layout_gravity="center_vertical"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutSpinnerLanguage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/style_spinner"
|
||||
android:gravity="left|center_vertical"
|
||||
android:minWidth="223dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingRight="3dp"
|
||||
android:paddingTop="4dp" >
|
||||
<ImageView
|
||||
android:id="@+id/imageLanguage"
|
||||
android:src="@drawable/de"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="0" />
|
||||
<TextView
|
||||
android:id="@+id/textViewSpinnerLanguage"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="left"
|
||||
android:text="Germany"
|
||||
android:textColor="#000000"
|
||||
android:textSize="17dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingBottom="2dp"
|
||||
android:paddingLeft="3dp">
|
||||
<requestFocus />
|
||||
</TextView>
|
||||
<ImageView
|
||||
android:src="@drawable/arrow_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="0" />
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:layout_width="95dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/language"
|
||||
android:textSize="14dp"
|
||||
android:layout_marginRight="2dp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="right"
|
||||
android:layout_gravity="center_vertical"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutSpinnerLanguage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/style_spinner"
|
||||
android:gravity="left|center_vertical"
|
||||
android:minWidth="223dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingRight="3dp"
|
||||
android:paddingTop="4dp" >
|
||||
<ImageView
|
||||
android:id="@+id/imageLanguage"
|
||||
android:src="@drawable/de"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="0" />
|
||||
<TextView
|
||||
android:id="@+id/textViewSpinnerLanguage"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="left"
|
||||
android:text="Germany"
|
||||
android:textColor="#000000"
|
||||
android:textSize="17dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingBottom="2dp"
|
||||
android:paddingLeft="3dp">
|
||||
<requestFocus />
|
||||
</TextView>
|
||||
<ImageView
|
||||
android:src="@drawable/arrow_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="0" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_marginTop="20dp">
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/btn_save"
|
||||
android:text="@string/save"
|
||||
style="@style/ButtonText"
|
||||
android:textSize="22dp"
|
||||
android:background="@drawable/style_bluebutton"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_marginTop="20dp">
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/btn_save"
|
||||
android:text="@string/save"
|
||||
style="@style/ButtonText"
|
||||
android:textSize="22dp"
|
||||
android:background="@drawable/style_bluebutton"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_launcher_background">#FFFFFF</color>
|
||||
</resources>
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="app_name">SafeMobile Dispatch</string>
|
||||
<string name="app_name_demo">SafeMobile Dispatch Demo</string>
|
||||
<string name="app_name">SafeDispatch Mobile</string>
|
||||
<string name="app_name_demo">SafeDispatch Mobile Demo</string>
|
||||
<string name="app_name_radiopod">RadioPod</string>
|
||||
<string name="app_name_radiopad">RadioPad</string>
|
||||
<string name="app_name_radiopodd">RadioPod</string>
|
||||
|
@ -82,7 +82,7 @@
|
||||
|
||||
<style name="mainBackground_sd">
|
||||
<item name="android:orientation">vertical</item>
|
||||
<item name="android:background">@drawable/safedispatch</item>
|
||||
<item name="android:background">@drawable/safedispatch_logo</item>
|
||||
<item name="android:scaleType">centerInside</item>
|
||||
</style>
|
||||
|
||||
@ -138,7 +138,7 @@
|
||||
</style>
|
||||
|
||||
<style name="bg_sd">
|
||||
<item name="android:background">@drawable/safedispatch</item>
|
||||
<item name="android:background">@drawable/safedispatch_logo</item>
|
||||
</style>
|
||||
|
||||
<style name="header_sd">
|
||||
@ -155,7 +155,7 @@
|
||||
|
||||
<style name="mainBackground_hy">
|
||||
<item name="android:orientation">vertical</item>
|
||||
<item name="android:background">@drawable/safedispatch</item>
|
||||
<item name="android:background">@drawable/safedispatch_logo</item>
|
||||
<item name="android:scaleType">centerInside</item>
|
||||
</style>
|
||||
|
||||
@ -211,7 +211,7 @@
|
||||
</style>
|
||||
|
||||
<style name="bg_hy">
|
||||
<item name="android:background">@drawable/safedispatch</item>
|
||||
<item name="android:background">@drawable/safedispatch_logo</item>
|
||||
</style>
|
||||
|
||||
<style name="header_hy">
|
||||
@ -228,7 +228,7 @@
|
||||
|
||||
<style name="mainBackground_vi">
|
||||
<item name="android:orientation">vertical</item>
|
||||
<item name="android:background">@drawable/safedispatch</item>
|
||||
<item name="android:background">@drawable/safedispatch_logo</item>
|
||||
<item name="android:scaleType">centerInside</item>
|
||||
</style>
|
||||
|
||||
@ -285,7 +285,7 @@
|
||||
</style>
|
||||
|
||||
<style name="bg_vi">
|
||||
<item name="android:background">@drawable/safedispatch</item>
|
||||
<item name="android:background">@drawable/safedispatch_logo</item>
|
||||
</style>
|
||||
|
||||
<style name="header_vi">
|
||||
|