mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-06-30 21:04:16 +00:00
add project adins
This commit is contained in:
parent
ad06ac5505
commit
f8f85d679d
5299 changed files with 625430 additions and 0 deletions
Binary file not shown.
After Width: | Height: | Size: 7.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
|
@ -0,0 +1,134 @@
|
|||
package com.services;
|
||||
|
||||
import android.app.ActivityManager;
|
||||
import android.app.AlarmManager;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.ActivityNotFoundException;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.location.LocationManager;
|
||||
import android.os.Build;
|
||||
import android.os.SystemClock;
|
||||
import androidx.legacy.content.WakefulBroadcastReceiver;
|
||||
import android.telephony.TelephonyManager;
|
||||
import android.util.Log;
|
||||
|
||||
import com.adins.mss.base.GlobalData;
|
||||
import com.adins.mss.constant.Global;
|
||||
import com.adins.mss.dao.User;
|
||||
import com.adins.mss.foundation.location.LocationTrackingManager;
|
||||
import com.adins.mss.foundation.security.storepreferences.ObscuredSharedPreferences;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by loise on 12/27/2017.
|
||||
*/
|
||||
|
||||
public class ServiceAutoRestart extends WakefulBroadcastReceiver {
|
||||
|
||||
public static void startAutoRestartService(Context context) {
|
||||
PendingIntent pendingIntent;
|
||||
ObscuredSharedPreferences sharedPref = ObscuredSharedPreferences.getPrefs(context, "GlobalData", Context.MODE_PRIVATE);
|
||||
boolean hasLogged = sharedPref.getBoolean("HAS_LOGGED", false);
|
||||
User user = GlobalData.getSharedGlobalData().getUser();
|
||||
if (user != null && hasLogged) {
|
||||
long delay = 1000L * 30;
|
||||
long time = SystemClock.elapsedRealtime() + delay;
|
||||
|
||||
Intent alarmIntent = new Intent(context, ServiceAutoRestart.class);
|
||||
pendingIntent = PendingIntent.getBroadcast(context, 0, alarmIntent, 0);
|
||||
AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
|
||||
//untuk memodifikasi periode update ke database ganti AlarmManager.INTERVAL_DAY
|
||||
//dengan interval yang dibutuhkan, dan submitDataUsage akan berjalan tiap interval setelah
|
||||
//waktu yang telah ditentukan
|
||||
|
||||
if (Build.VERSION.SDK_INT >= 23) {
|
||||
// Wakes up the device in Doze Mode
|
||||
am.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, time,
|
||||
pendingIntent);
|
||||
} else if (Build.VERSION.SDK_INT >= 19) {
|
||||
// Wakes up the device in Idle Mode
|
||||
am.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, time, pendingIntent);
|
||||
} else {
|
||||
// Old APIs
|
||||
am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, time, pendingIntent);
|
||||
}
|
||||
Log.i("Alarm", "Alarm Started");
|
||||
|
||||
checkLocationTracking(context);
|
||||
}
|
||||
}
|
||||
|
||||
private static void checkLocationTracking(Context context) {
|
||||
if (null == Global.LTM) {
|
||||
LocationManager lm = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
|
||||
TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
|
||||
LocationTrackingManager manager = new LocationTrackingManager(tm, lm, context);
|
||||
manager.setMinimalDistanceChangeLocation(100);
|
||||
manager.setMinimalTimeChangeLocation(5000);
|
||||
manager.applyLocationListener(context);
|
||||
Global.LTM = manager;
|
||||
} else {
|
||||
LocationTrackingManager ltm = Global.LTM;
|
||||
if (!ltm.hasConnected()){
|
||||
ltm.connectLocationClient();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isServiceRunningInForeground(Context context, Class<?> serviceClass) {
|
||||
ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
|
||||
for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {
|
||||
if (serviceClass.getName().equals(service.service.getClassName())) {
|
||||
if (service.foreground) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isAppRunning(final Context context, final String packageName) {
|
||||
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
|
||||
final List<ActivityManager.RunningAppProcessInfo> procInfos = activityManager.getRunningAppProcesses();
|
||||
if (procInfos != null) {
|
||||
for (final ActivityManager.RunningAppProcessInfo processInfo : procInfos) {
|
||||
if (processInfo.processName.equals(packageName)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean openApp(Context context, String packageName) {
|
||||
PackageManager manager = context.getPackageManager();
|
||||
try {
|
||||
Intent i = manager.getLaunchIntentForPackage(packageName);
|
||||
if (i == null) {
|
||||
return false;
|
||||
//throw new ActivityNotFoundException();
|
||||
}
|
||||
i.addCategory(Intent.CATEGORY_LAUNCHER);
|
||||
context.startActivity(i);
|
||||
return true;
|
||||
} catch (ActivityNotFoundException e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
Log.i("Alarm", "Broadcast Recieved");
|
||||
if (!isAppRunning(context, context.getPackageName())) {
|
||||
Log.i("Alarm", "App Restarting...");
|
||||
openApp(context, context.getPackageName());
|
||||
Log.i("Alarm", "App Restarted");
|
||||
}
|
||||
startAutoRestartService(context);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,106 @@
|
|||
package com.adins.mss.base;
|
||||
|
||||
import android.Manifest;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.location.Location;
|
||||
import android.location.LocationListener;
|
||||
import android.location.LocationManager;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import android.widget.AdapterView;
|
||||
|
||||
import com.adins.mss.base.commons.AppInfo;
|
||||
import com.adins.mss.base.crashlytics.FireCrash;
|
||||
import com.adins.mss.base.util.Utility;
|
||||
import com.adins.mss.foundation.dialog.DialogManager;
|
||||
|
||||
/**
|
||||
* Created by kusnendi.muhamad on 03/08/2017.
|
||||
*/
|
||||
|
||||
public abstract class MssFragmentActivity extends AppCompatActivity implements LocationListener,
|
||||
AdapterView.OnItemClickListener, AppInfo {
|
||||
|
||||
protected LocationManager mLocation;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
bindLocationListener();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
if (mLocation != null) {
|
||||
mLocation.removeUpdates(this);
|
||||
if (mLocation != null) {
|
||||
mLocation = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
|
||||
//Check GPS Location Setting
|
||||
// DialogManager.showGPSAlert(this);
|
||||
|
||||
if (mLocation == null) {
|
||||
bindLocationListener();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLocationChanged(Location location) {
|
||||
if (location != null)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
if (location.isFromMockProvider())
|
||||
DialogManager.showMockDialog(this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStatusChanged(String provider, int status, Bundle extras) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onProviderEnabled(String provider) {
|
||||
DialogManager.closeGPSAlert();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onProviderDisabled(String provider) {
|
||||
DialogManager.showGPSAlert(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void checkAppVersion(NewMainActivity activity) {
|
||||
}
|
||||
|
||||
public void bindLocationListener() {
|
||||
mLocation = (LocationManager) getSystemService(LOCATION_SERVICE);
|
||||
try {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
if (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
|
||||
Utility.checkPermissionGranted(this);
|
||||
return;
|
||||
} else {
|
||||
if (mLocation.getAllProviders().contains(LocationManager.GPS_PROVIDER))
|
||||
mLocation.requestLocationUpdates(LocationManager.GPS_PROVIDER, 15 * 1000L, 10f, this);
|
||||
}
|
||||
} else {
|
||||
if (mLocation.getAllProviders().contains(LocationManager.GPS_PROVIDER))
|
||||
mLocation.requestLocationUpdates(LocationManager.GPS_PROVIDER, 15 * 1000L, 10f, this);
|
||||
}
|
||||
} catch (IllegalArgumentException e) {
|
||||
// TODO: handle exception
|
||||
} catch (Exception e) {
|
||||
FireCrash.log(e);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.adins.mss.foundation.questiongenerator.form.QuestionView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/questionLookupLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_height="match_parent">
|
||||
<TextView
|
||||
android:id="@+id/questionLookupLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="0. label" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnChooseLookup"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="0.5"
|
||||
android:gravity="center"
|
||||
android:text="@string/chooseLookup" />
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/txtSelectedAnswer"
|
||||
android:text="@string/selectedAnswer"
|
||||
android:layout_span="2"/>
|
||||
<TableLayout
|
||||
|
||||
android:id="@+id/questionLookupAnswerLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:stretchColumns="1"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
|
||||
|
||||
</TableLayout>
|
||||
<TextView
|
||||
android:id="@+id/questionLookupAnswer"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
|
||||
</com.adins.mss.foundation.questiongenerator.form.QuestionView>
|
|
@ -0,0 +1,41 @@
|
|||
package com.adins.mss.coll.models;
|
||||
|
||||
import com.adins.mss.foundation.http.MssRequestType;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class EmergencyRequest extends MssRequestType {
|
||||
@SerializedName("latitude")
|
||||
private String latitude;
|
||||
|
||||
@SerializedName("longitude")
|
||||
private String longitude;
|
||||
|
||||
@SerializedName("dtm_emergency")
|
||||
private Date dtm_emergency;
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public Date getDtm_emergency() {
|
||||
return dtm_emergency;
|
||||
}
|
||||
|
||||
public void setDtm_emergency(Date dtm_emergency) {
|
||||
this.dtm_emergency = dtm_emergency;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,221 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent" android:visibility="visible"
|
||||
android:id="@+id/checkOrderLayout"
|
||||
android:background="@drawable/bg_grayscale">
|
||||
<View
|
||||
android:id="@+id/actionbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:background="@drawable/actionbar_background" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="8dp"
|
||||
android:layout_below="@+id/actionbar" >
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
>
|
||||
|
||||
<LinearLayout android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="visible"
|
||||
android:gravity="center_horizontal"
|
||||
android:id="@+id/searchBy">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:ems="10"
|
||||
android:text="@string/lblSearchBy"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="#000000" />
|
||||
<RelativeLayout
|
||||
android:id="@+id/filterBy"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginTop="5dp" >
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/cbSearchBy"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:ems="10"
|
||||
android:entries="@array/cbSearcrBy"
|
||||
/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btnRefresh"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/cbSearchBy"
|
||||
android:layout_alignRight="@+id/cbSearchBy"
|
||||
android:layout_margin="4dp"
|
||||
android:background="@android:color/transparent"
|
||||
android:src="@drawable/dropdown_right" />
|
||||
</RelativeLayout>
|
||||
<TextView
|
||||
android:text="@string/lblSearchByStatus"
|
||||
android:id="@+id/lblSearchByStatus"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:visibility="gone"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:ems="10"/>
|
||||
<RelativeLayout
|
||||
android:id="@+id/filterByStatus"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:visibility="gone"
|
||||
android:layout_marginTop="5dp" >
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/cbSearcrByStatus"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:ems="10"
|
||||
android:entries="@array/cbSearcrByStatus"
|
||||
/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btnRefresh2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/cbSearcrByStatus"
|
||||
android:layout_alignRight="@+id/cbSearcrByStatus"
|
||||
android:background="@android:color/transparent"
|
||||
android:src="@drawable/dropdown_right" />
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/byDate"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/startdate"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:ems="10"
|
||||
android:text="@string/lblStartDate"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/txtStartDate"
|
||||
android:hint="@string/requiredField"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/startdate"
|
||||
android:layout_toLeftOf="@+id/btnStartDate"
|
||||
android:editable="false"
|
||||
android:ems="10" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/enddate"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/txtStartDate"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:ems="10"
|
||||
android:text="@string/lblEndDate"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/txtEndDate"
|
||||
android:hint="@string/requiredField"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignRight="@+id/txtStartDate"
|
||||
android:layout_below="@+id/enddate"
|
||||
android:editable="false"
|
||||
android:ems="10" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btnStartDate"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/txtStartDate"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:background="@drawable/ic_calendar" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btnEndDate"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/txtEndDate"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:background="@drawable/ic_calendar" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/byNoOrder"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone"
|
||||
android:gravity="center_horizontal" >
|
||||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:ems="10"
|
||||
android:text="@string/lblNomorOrder"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="#000000"/>
|
||||
|
||||
<EditText android:id="@+id/txtNomorOrder"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:ems="10"
|
||||
android:hint="@string/requiredField"
|
||||
android:singleLine="true"
|
||||
android:inputType="number"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/buttons"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_below="@+id/byDay"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="20dp"
|
||||
android:paddingTop="20dp" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnSearchOrder"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/button_background"
|
||||
android:ems="10"
|
||||
android:text="@string/btnSearchOrder"
|
||||
android:textColor="#ffffff" >
|
||||
</Button>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
</RelativeLayout>
|
Binary file not shown.
|
@ -0,0 +1,36 @@
|
|||
package com.adins.mss.svy.reassignment;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by winy.firdasari on 20/01/2015.
|
||||
*/
|
||||
public class Order {
|
||||
public String orderNo;
|
||||
public String customerName;
|
||||
public List<StatusOrder> statusOrder;
|
||||
|
||||
|
||||
public Order(){
|
||||
|
||||
}
|
||||
|
||||
public String getOrderNo() {
|
||||
return orderNo;
|
||||
}
|
||||
public void setOrderNo(String orderNo) {
|
||||
this.orderNo = orderNo;
|
||||
}
|
||||
public String getCustomerName() {
|
||||
return customerName;
|
||||
}
|
||||
public void setCustomerName(String customerName) {
|
||||
this.customerName = customerName;
|
||||
}
|
||||
public List<StatusOrder> getStatusOrder() {
|
||||
return statusOrder;
|
||||
}
|
||||
public void setStatusOrder(List<StatusOrder> statusOrder) {
|
||||
this.statusOrder = statusOrder;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="14dp"
|
||||
android:height="14dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="@color/gradient_end"
|
||||
android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8zM12.5,7L11,7v6l5.25,3.15 0.75,-1.23 -4.5,-2.67z"/>
|
||||
</vector>
|
|
@ -0,0 +1,101 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="8dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/libraryname"
|
||||
android:text="@string/library_name"
|
||||
android:fontFamily="sans-serif-condensed"
|
||||
android:textStyle="normal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"/>
|
||||
<TextView
|
||||
android:id="@+id/libraryversion"
|
||||
android:textColor="@color/text_openSource"
|
||||
android:textStyle="normal"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="left"
|
||||
android:maxLines="1"
|
||||
android:textSize="@dimen/textSizeSmall_openSource"
|
||||
android:text="@string/version"/>
|
||||
<TextView
|
||||
android:id="@+id/librarycreator"
|
||||
android:text="librarycreator"
|
||||
android:fontFamily="sans-serif-condensed"
|
||||
android:textStyle="normal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:gravity="right"
|
||||
android:maxLines="2"
|
||||
android:textSize="14sp"/>
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:background="@color/dividerLight_openSource"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="4dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/description"
|
||||
android:text="@string/description"
|
||||
android:fontFamily="sans-serif-condensed"
|
||||
android:textStyle="normal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/textSizeSmall_openSource"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:maxLines="20">
|
||||
</TextView>
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:background="@color/dividerLight_openSource"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/libraryBottomContainer"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingRight="8dp"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/librarylicense"
|
||||
android:textColor="@color/text_openSource"
|
||||
android:textStyle="normal"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="right"
|
||||
android:maxLines="1"
|
||||
android:visibility="gone"
|
||||
android:fontFamily="sans-serif-condensed"
|
||||
android:textSize="@dimen/textSizeSmall_openSource"
|
||||
android:text="@string/license"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
Loading…
Add table
Add a link
Reference in a new issue