Commit d0891c19 by User

Stock Audit changes noted version 1.0

parent 042d3c1a
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
android { android {
compileSdkVersion 30 compileSdkVersion 30
buildToolsVersion "30.0.3" buildToolsVersion "30.0.3"
defaultConfig { defaultConfig {
applicationId "w.soulofpluto.posstock" applicationId "w.soulofpluto.posstock"
minSdkVersion 17 minSdkVersion 16
targetSdkVersion 30 targetSdkVersion 30
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
...@@ -21,13 +21,6 @@ android { ...@@ -21,13 +21,6 @@ android {
shrinkResources false shrinkResources false
zipAlignEnabled false zipAlignEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
defaultConfig {
ndk {
abiFilters 'armeabi' //, 'x86', ' 'x86_64', 'arm64-v8a'
} }
} }
...@@ -51,10 +44,13 @@ dependencies { ...@@ -51,10 +44,13 @@ dependencies {
implementation 'com.squareup.retrofit2:converter-gson:2.2.0' implementation 'com.squareup.retrofit2:converter-gson:2.2.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0' implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
implementation platform('com.google.firebase:firebase-bom:28.4.0') implementation platform('com.google.firebase:firebase-bom:28.4.0')
implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-crashlytics:18.2.1'
implementation 'com.karumi:dexter:6.2.3'
implementation files('libs/ePOS2.jar')
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.ext:junit:1.1.2'
......
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
import android.content.Context; import android.content.Context;
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest <manifest
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
package="w.soulofpluto.posstock"> package="w.soulofpluto.posstockaudit">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.BLUETOOTH"/> <!--<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>-->
<application <application
android:allowBackup="true" android:allowBackup="true"
android:icon="@mipmap/ic_back"
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_back_round" android:icon="@drawable/icon"
android:supportsRtl="true" android:supportsRtl="true"
android:hardwareAccelerated="true"
android:usesCleartextTraffic="true" android:usesCleartextTraffic="true"
android:requestLegacyExternalStorage="true" android:requestLegacyExternalStorage="true"
android:theme="@style/AppTheme.NoActionBar" android:theme="@style/AppTheme.NoActionBar"
android:networkSecurityConfig="@xml/network_security_config"> android:networkSecurityConfig="@xml/network_security_config">
<!--android:roundIcon="@drawable/adaptive_icon"
<meta-data <uses-library
android:name="firebase_crashlytics_collection_enabled" android:required="false"
android:value="true" /> android:name="com.sec.android.app.multiwindow">
</uses-library> -->
<activity <activity
android:name=".SplashActivity" android:name="w.soulofpluto.posstockaudit.SplashActivity"
android:windowSoftInputMode="adjustNothing" android:windowSoftInputMode="adjustNothing"
android:screenOrientation="portrait"> android:screenOrientation="portrait">
<intent-filter> <intent-filter>
...@@ -42,64 +42,52 @@ ...@@ -42,64 +42,52 @@
</activity> </activity>
<activity <activity
android:name=".Login" android:name="w.soulofpluto.posstockaudit.Login"
android:windowSoftInputMode="adjustResize|stateHidden" android:windowSoftInputMode="adjustResize|stateHidden"
android:screenOrientation="portrait"> android:screenOrientation="portrait">
</activity> </activity>
<activity <activity
android:name=".HomeActivity" android:name="w.soulofpluto.posstockaudit.HomeActivity"
android:windowSoftInputMode="adjustNothing"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize">
</activity>
<activity
android:name=".DiscoveryActivity"
android:windowSoftInputMode="adjustNothing"
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize"> android:configChanges="keyboardHidden|screenSize">
</activity> </activity>
<activity <activity
android:name=".DashBoardActivity" android:name="w.soulofpluto.posstockaudit.DashBoardActivity"
android:windowSoftInputMode="adjustNothing" android:windowSoftInputMode="adjustNothing"
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize"> android:configChanges="keyboardHidden|screenSize">
</activity> </activity>
<activity <activity
android:name=".MainActivity" android:name="w.soulofpluto.posstockaudit.MainActivity"
android:windowSoftInputMode="adjustNothing" android:windowSoftInputMode="adjustResize"
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize"> android:configChanges="keyboardHidden|screenSize">
</activity> </activity>
<activity <activity
android:name=".PlanDetails" android:name="w.soulofpluto.posstockaudit.PlanDetails"
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize" android:configChanges="keyboardHidden|screenSize"
android:windowSoftInputMode="adjustNothing"> android:windowSoftInputMode="adjustNothing">
</activity> </activity>
<activity <activity
android:name=".RackWiseQty" android:name="w.soulofpluto.posstockaudit.RackWiseQty"
android:windowSoftInputMode="adjustNothing" android:windowSoftInputMode="adjustNothing"
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize"> android:configChanges="keyboardHidden|screenSize">
</activity> </activity>
<activity <activity
android:name=".SearchByBarcode" android:name="w.soulofpluto.posstockaudit.SearchByBarcode"
android:windowSoftInputMode="adjustNothing" android:windowSoftInputMode="adjustNothing"
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize"> android:configChanges="keyboardHidden|screenSize">
</activity> </activity>
<activity
android:name=".CreateDeliverySlip"
android:windowSoftInputMode="adjustResize|stateHidden"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize">
</activity>
<activity
android:name=".CreateSaleBill"
android:windowSoftInputMode="adjustResize|stateHidden"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize">
</activity>
</application> </application>
</manifest> </manifest>
\ No newline at end of file
package w.soulofpluto.posstock;
import com.squareup.okhttp.RequestBody;
import com.squareup.okhttp.Response;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;
/**
* Created by Ramesh on 05/09/20.
*/
public interface ApiService{
//String BASE_URL = "https://aeebe1.emporter.eu/pos_actions/";
//String Token = "41f34d7009db337f6213be52f7151108";
//String StoreId = "980";
/*@Headers({"Pos-Access-Token:" + Token,"Pos-User-Access-Store-Id:"+StoreId,
"Accept: application/json","Content-Type:multipart/form-data"})*/
/*@Multipart
@POST("uploadBarcodeImages")
Call<ResponseBody> uploadMultiple(@Part("Pos-Access-Token") RequestBody token,
@Part("Pos-User-Access-Store-Id") RequestBody storeId,
@Part("barcode") RequestBody barcode,
@Part List<MultipartBody.Part> files);*/
@Headers({"Content-type: application/json"})
@POST("/login/doLogin")
Call<Response> login(@Body RequestBody body);
@GET("/login/getStoresMappedToUser/{id}")
Call<Response> getStoreId(@Path("id") String id);
}
package w.soulofpluto.posstock;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/*
Create by Ramesh Babu
*/
public class CreateResponse {
@SerializedName("success")
@Expose
private Integer success;
@SerializedName("data")
@Expose
private List<Datum> data = null;
@SerializedName("promo_suggestions")
@Expose
private List<Object> promoSuggestions = null;
@SerializedName("total_qty")
@Expose
private Integer totalQty;
@SerializedName("net_payable")
@Expose
private Integer netPayable;
@SerializedName("last_scanned_barcode")
@Expose
private String lastScannedBarcode;
@SerializedName("barcode_images")
@Expose
private List<Object> barcodeImages = null;
@SerializedName("transaction_start_time")
@Expose
private String transactionStartTime;
@SerializedName("transaction_start_microtime")
@Expose
private Long transactionStartMicrotime;
public Integer getSuccess() {
return success;
}
public void setSuccess(Integer success) {
this.success = success;
}
public List<Datum> getData() {
return data;
}
public void setData(List<Datum> data) {
this.data = data;
}
public List<Object> getPromoSuggestions() {
return promoSuggestions;
}
public void setPromoSuggestions(List<Object> promoSuggestions) {
this.promoSuggestions = promoSuggestions;
}
public Integer getTotalQty() {
return totalQty;
}
public void setTotalQty(Integer totalQty) {
this.totalQty = totalQty;
}
public Integer getNetPayable() {
return netPayable;
}
public void setNetPayable(Integer netPayable) {
this.netPayable = netPayable;
}
public String getLastScannedBarcode() {
return lastScannedBarcode;
}
public void setLastScannedBarcode(String lastScannedBarcode) {
this.lastScannedBarcode = lastScannedBarcode;
}
public List<Object> getBarcodeImages() {
return barcodeImages;
}
public void setBarcodeImages(List<Object> barcodeImages) {
this.barcodeImages = barcodeImages;
}
public String getTransactionStartTime() {
return transactionStartTime;
}
public void setTransactionStartTime(String transactionStartTime) {
this.transactionStartTime = transactionStartTime;
}
public Long getTransactionStartMicrotime() {
return transactionStartMicrotime;
}
public void setTransactionStartMicrotime(Long transactionStartMicrotime) {
this.transactionStartMicrotime = transactionStartMicrotime;
}
public class Datum {
@SerializedName("barcode")
@Expose
private String barcode;
@SerializedName("emp_id")
@Expose
private String empId;
@SerializedName("quantity")
@Expose
private Integer quantity;
@SerializedName("promo_disc")
@Expose
private Integer promoDisc;
@SerializedName("item_rsp")
@Expose
private String itemRsp;
@SerializedName("net_payable")
@Expose
private Integer netPayable;
@SerializedName("issis")
@Expose
private Integer issis;
@SerializedName("uom")
@Expose
private String uom;
@SerializedName("emp_name")
@Expose
private String empName;
@SerializedName("item_level_promo_name")
@Expose
private String itemLevelPromoName;
@SerializedName("bill_level_promo_name")
@Expose
private String billLevelPromoName;
@SerializedName("discount_code")
@Expose
private String discountCode;
@SerializedName("promo_suggested")
@Expose
private String promoSuggested;
@SerializedName("suggested_promo_id")
@Expose
private Integer suggestedPromoId;
@SerializedName("color_code")
@Expose
private String colorCode;
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getEmpId() {
return empId;
}
public void setEmpId(String empId) {
this.empId = empId;
}
public Integer getQuantity() {
return quantity;
}
public void setQuantity(Integer quantity) {
this.quantity = quantity;
}
public Integer getPromoDisc() {
return promoDisc;
}
public void setPromoDisc(Integer promoDisc) {
this.promoDisc = promoDisc;
}
public String getItemRsp() {
return itemRsp;
}
public void setItemRsp(String itemRsp) {
this.itemRsp = itemRsp;
}
public Integer getNetPayable() {
return netPayable;
}
public void setNetPayable(Integer netPayable) {
this.netPayable = netPayable;
}
public Integer getIssis() {
return issis;
}
public void setIssis(Integer issis) {
this.issis = issis;
}
public String getUom() {
return uom;
}
public void setUom(String uom) {
this.uom = uom;
}
public String getEmpName() {
return empName;
}
public void setEmpName(String empName) {
this.empName = empName;
}
public String getItemLevelPromoName() {
return itemLevelPromoName;
}
public void setItemLevelPromoName(String itemLevelPromoName) {
this.itemLevelPromoName = itemLevelPromoName;
}
public String getBillLevelPromoName() {
return billLevelPromoName;
}
public void setBillLevelPromoName(String billLevelPromoName) {
this.billLevelPromoName = billLevelPromoName;
}
public String getDiscountCode() {
return discountCode;
}
public void setDiscountCode(String discountCode) {
this.discountCode = discountCode;
}
public String getPromoSuggested() {
return promoSuggested;
}
public void setPromoSuggested(String promoSuggested) {
this.promoSuggested = promoSuggested;
}
public Integer getSuggestedPromoId() {
return suggestedPromoId;
}
public void setSuggestedPromoId(Integer suggestedPromoId) {
this.suggestedPromoId = suggestedPromoId;
}
public String getColorCode() {
return colorCode;
}
public void setColorCode(String colorCode) {
this.colorCode = colorCode;
}
}
}
\ No newline at end of file
package w.soulofpluto.posstock;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
/*
Create by Ramesh Babu
*/
public class CreateSaleAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>{
private Context context;
private ArrayList<Model> List;
public CreateSaleAdapter(Context context, ArrayList<Model> list){
this.context = context;
this.List = list;
}
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i){
LayoutInflater layoutInflater = LayoutInflater.from(viewGroup.getContext());
View listItem = layoutInflater.inflate(R.layout.custom_list_item, viewGroup, false);
CreateSaleAdapter.ViewHolder viewHolder = new CreateSaleAdapter.ViewHolder(listItem);
return viewHolder;
}
@Override
public void onBindViewHolder(final RecyclerView.ViewHolder viewHolder, final int position){
final Model model = List.get(position);
((ViewHolder)viewHolder).Id.setText(model.getDelivery_slip_id());
((ViewHolder)viewHolder).remove.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
List.remove(position);
notifyDataSetChanged();
((CreateSaleBill)context).SetData(model.getDelivery_slip_id());
}
});
}
@Override
public int getItemCount(){
return List.size();
}
public class ViewHolder extends RecyclerView.ViewHolder{
private TextView Id;
private ImageView remove;
public ViewHolder(View itemView){
super(itemView);
this.Id = itemView.findViewById(R.id.Id);
this.remove = itemView.findViewById(R.id.remove);
}
}
}
package w.soulofpluto.posstock;
/*
Create by Ramesh Babu
*/
import android.content.Context;
import android.text.Html;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
public class DeliverySlipAdapter extends RecyclerView.Adapter<DeliverySlipAdapter.ViewHolder> {
public List<CreateResponse.Datum> arrayList;
public Context context;
public DeliverySlipAdapter(Context context, List<CreateResponse.Datum> list){
this.context = context;
this.arrayList = list;
}
@NonNull
@Override
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());
View listItem = layoutInflater.inflate(R.layout.delivery_list_item, parent, false);
DeliverySlipAdapter.ViewHolder viewHolder = new DeliverySlipAdapter.ViewHolder(listItem);
return viewHolder;
}
@Override
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
CreateResponse.Datum datum = arrayList.get(position);
if(TextUtils.isEmpty(datum.getItemLevelPromoName())){
holder.item_level_promotion.setVisibility(View.GONE);
}else{
holder.item_level_promotion.setVisibility(View.VISIBLE);
holder.item_level_promotion.setText(datum.getItemLevelPromoName());
}
holder.create_barcode.setText(Html.fromHtml(Constants.getBarcode(datum.getBarcode())));
holder.create_empid.setText(Html.fromHtml(Constants.getEmpId(datum.getEmpId())));
holder.create_dis.setText(Html.fromHtml(Constants.getCode(Constants.IndianRupeesFormat(String.valueOf(datum.getPromoDisc())))));
holder.create_mrp.setText(Html.fromHtml(Constants.getMRP(Constants.IndianRupeesFormat(datum.getItemRsp()))));
holder.create_netpay.setText(Html.fromHtml(Constants.getNetPayable(Constants.IndianRupeesFormat(datum.getNetPayable().toString()))));
}
@Override
public int getItemCount() {
return arrayList.size();
}
public class ViewHolder extends RecyclerView.ViewHolder{
public TextView create_barcode,create_empid,create_mrp,create_dis,create_netpay,item_level_promotion;
public ViewHolder(View itemView){
super(itemView);
create_barcode = itemView.findViewById(R.id.create_barcode);
create_empid = itemView.findViewById(R.id.create_empid);
create_mrp = itemView.findViewById(R.id.create_mrp);
create_dis = itemView.findViewById(R.id.create_dis);
create_netpay = itemView.findViewById(R.id.create_netpay);
item_level_promotion = itemView.findViewById(R.id.item_level_promotion);
}
}
}
package w.soulofpluto.posstock;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import com.epson.epos2.Epos2Exception;
import com.epson.epos2.discovery.DeviceInfo;
import com.epson.epos2.discovery.Discovery;
import com.epson.epos2.discovery.DiscoveryListener;
import com.epson.epos2.discovery.FilterOption;
import java.util.ArrayList;
import java.util.HashMap;
public class DiscoveryActivity extends Activity implements View.OnClickListener, AdapterView.OnItemClickListener {
private Context mContext = null;
private ArrayList<HashMap<String, String>> mPrinterList = null;
private SimpleAdapter mPrinterListAdapter = null;
private FilterOption mFilterOption = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_discovery);
mContext = this;
Button button = (Button)findViewById(R.id.btnRestart);
button.setOnClickListener(this);
mPrinterList = new ArrayList<HashMap<String, String>>();
mPrinterListAdapter = new SimpleAdapter(this, mPrinterList, R.layout.list_at,
new String[] { "PrinterName", "Target" },
new int[] { R.id.PrinterName, R.id.Target });
ListView list = (ListView)findViewById(R.id.lstReceiveData);
list.setAdapter(mPrinterListAdapter);
list.setOnItemClickListener(this);
mFilterOption = new FilterOption();
mFilterOption.setDeviceType(Discovery.TYPE_PRINTER);
mFilterOption.setEpsonFilter(Discovery.FILTER_NAME);
try {
Discovery.start(this, mFilterOption, mDiscoveryListener);
}
catch (Exception e) {
ShowMsg.showException(e, "start", mContext);
}
}
@Override
public void onDestroy() {
super.onDestroy();
while (true) {
try {
Discovery.stop();
break;
}
catch (Epos2Exception e) {
if (e.getErrorStatus() != Epos2Exception.ERR_PROCESSING) {
break;
}
}
}
mFilterOption = null;
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.btnRestart:
restartDiscovery();
break;
default:
// Do nothing
break;
}
}
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Intent intent = new Intent();
HashMap<String, String> item = mPrinterList.get(position);
intent.putExtra(getString(R.string.title_target), item.get("Target"));
setResult(RESULT_OK, intent);
finish();
}
private void restartDiscovery() {
while (true) {
try {
Discovery.stop();
break;
}
catch (Epos2Exception e) {
if (e.getErrorStatus() != Epos2Exception.ERR_PROCESSING) {
ShowMsg.showException(e, "stop", mContext);
return;
}
}
}
mPrinterList.clear();
mPrinterListAdapter.notifyDataSetChanged();
try {
Discovery.start(this, mFilterOption, mDiscoveryListener);
}
catch (Exception e) {
ShowMsg.showException(e, "stop", mContext);
}
}
private DiscoveryListener mDiscoveryListener = new DiscoveryListener() {
@Override
public void onDiscovery(final DeviceInfo deviceInfo) {
runOnUiThread(new Runnable() {
@Override
public synchronized void run() {
HashMap<String, String> item = new HashMap<String, String>();
item.put("PrinterName", deviceInfo.getDeviceName());
item.put("Target", deviceInfo.getTarget());
mPrinterList.add(item);
mPrinterListAdapter.notifyDataSetChanged();
}
});
}
};
}
package w.soulofpluto.posstock;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import static w.soulofpluto.posstock.Constants.BASE_URL;
/*
Create by Ramesh Babu
*/
public class Getretrofit {
static String URL = BASE_URL;
static OkHttpClient client = new OkHttpClient.Builder()
.connectTimeout(5, TimeUnit.MINUTES)
.writeTimeout(5, TimeUnit.MINUTES)
.readTimeout(5, TimeUnit.MINUTES)
.build();
static Retrofit retrofit = new Retrofit.Builder()
.baseUrl(URL)
.addConverterFactory(GsonConverterFactory.create())
.client(client)
.build();
public static Retrofit getClient() {
return retrofit;
}
}
package w.soulofpluto.posstock;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import com.epson.epos2.Epos2CallbackCode;
import com.epson.epos2.Epos2Exception;
public class ShowMsg {
public static void showException(Exception e, String method, Context context) {
String msg = "";
if (e instanceof Epos2Exception) {
msg = String.format(
"%s\n\t%s\n%s\n\t%s",
context.getString(R.string.title_err_code),
getEposExceptionText(((Epos2Exception) e).getErrorStatus()),
context.getString(R.string.title_err_method),
method);
}
else {
msg = e.toString();
}
show(msg, context);
}
public static void showResult(int code, String errMsg, Context context) {
String msg = "";
if (errMsg.isEmpty()) {
msg = String.format(
"\t%s\n\t%s\n",
context.getString(R.string.title_msg_result),
getCodeText(code));
}
else {
msg = String.format(
"\t%s\n\t%s\n\n\t%s\n\t%s\n",
context.getString(R.string.title_msg_result),
getCodeText(code),
context.getString(R.string.title_msg_description),
errMsg);
}
show(msg, context);
}
public static void showMsg(String msg, Context context) {
show(msg, context);
}
private static void show(String msg, Context context) {
AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);
alertDialog.setMessage(msg);
alertDialog.setPositiveButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
return ;
}
});
alertDialog.create();
alertDialog.show();
}
private static String getEposExceptionText(int state) {
String return_text = "";
switch (state) {
case Epos2Exception.ERR_PARAM:
return_text = "ERR_PARAM";
break;
case Epos2Exception.ERR_CONNECT:
return_text = "ERR_CONNECT";
break;
case Epos2Exception.ERR_TIMEOUT:
return_text = "ERR_TIMEOUT";
break;
case Epos2Exception.ERR_MEMORY:
return_text = "ERR_MEMORY";
break;
case Epos2Exception.ERR_ILLEGAL:
return_text = "ERR_ILLEGAL";
break;
case Epos2Exception.ERR_PROCESSING:
return_text = "ERR_PROCESSING";
break;
case Epos2Exception.ERR_NOT_FOUND:
return_text = "ERR_NOT_FOUND";
break;
case Epos2Exception.ERR_IN_USE:
return_text = "ERR_IN_USE";
break;
case Epos2Exception.ERR_TYPE_INVALID:
return_text = "ERR_TYPE_INVALID";
break;
case Epos2Exception.ERR_DISCONNECT:
return_text = "ERR_DISCONNECT";
break;
case Epos2Exception.ERR_ALREADY_OPENED:
return_text = "ERR_ALREADY_OPENED";
break;
case Epos2Exception.ERR_ALREADY_USED:
return_text = "ERR_ALREADY_USED";
break;
case Epos2Exception.ERR_BOX_COUNT_OVER:
return_text = "ERR_BOX_COUNT_OVER";
break;
case Epos2Exception.ERR_BOX_CLIENT_OVER:
return_text = "ERR_BOX_CLIENT_OVER";
break;
case Epos2Exception.ERR_UNSUPPORTED:
return_text = "ERR_UNSUPPORTED";
break;
case Epos2Exception.ERR_FAILURE:
return_text = "ERR_FAILURE";
break;
default:
return_text = String.format("%d", state);
break;
}
return return_text;
}
private static String getCodeText(int state) {
String return_text = "";
switch (state) {
case Epos2CallbackCode.CODE_SUCCESS:
return_text = "PRINT_SUCCESS";
break;
case Epos2CallbackCode.CODE_PRINTING:
return_text = "PRINTING";
break;
case Epos2CallbackCode.CODE_ERR_AUTORECOVER:
return_text = "ERR_AUTORECOVER";
break;
case Epos2CallbackCode.CODE_ERR_COVER_OPEN:
return_text = "ERR_COVER_OPEN";
break;
case Epos2CallbackCode.CODE_ERR_CUTTER:
return_text = "ERR_CUTTER";
break;
case Epos2CallbackCode.CODE_ERR_MECHANICAL:
return_text = "ERR_MECHANICAL";
break;
case Epos2CallbackCode.CODE_ERR_EMPTY:
return_text = "ERR_EMPTY";
break;
case Epos2CallbackCode.CODE_ERR_UNRECOVERABLE:
return_text = "ERR_UNRECOVERABLE";
break;
case Epos2CallbackCode.CODE_ERR_FAILURE:
return_text = "ERR_FAILURE";
break;
case Epos2CallbackCode.CODE_ERR_NOT_FOUND:
return_text = "ERR_NOT_FOUND";
break;
case Epos2CallbackCode.CODE_ERR_SYSTEM:
return_text = "ERR_SYSTEM";
break;
case Epos2CallbackCode.CODE_ERR_PORT:
return_text = "ERR_PORT";
break;
case Epos2CallbackCode.CODE_ERR_TIMEOUT:
return_text = "ERR_TIMEOUT";
break;
case Epos2CallbackCode.CODE_ERR_JOB_NOT_FOUND:
return_text = "ERR_JOB_NOT_FOUND";
break;
case Epos2CallbackCode.CODE_ERR_SPOOLER:
return_text = "ERR_SPOOLER";
break;
case Epos2CallbackCode.CODE_ERR_BATTERY_LOW:
return_text = "ERR_BATTERY_LOW";
break;
case Epos2CallbackCode.CODE_ERR_TOO_MANY_REQUESTS:
return_text = "ERR_TOO_MANY_REQUESTS";
break;
case Epos2CallbackCode.CODE_ERR_REQUEST_ENTITY_TOO_LARGE:
return_text = "ERR_REQUEST_ENTITY_TOO_LARGE";
break;
case Epos2CallbackCode.CODE_CANCELED:
return_text = "CODE_CANCELED";
break;
case Epos2CallbackCode.CODE_ERR_NO_MICR_DATA:
return_text = "ERR_NO_MICR_DATA";
break;
case Epos2CallbackCode.CODE_ERR_ILLEGAL_LENGTH:
return_text = "ERR_ILLEGAL_LENGTH";
break;
case Epos2CallbackCode.CODE_ERR_NO_MAGNETIC_DATA:
return_text = "ERR_NO_MAGNETIC_DATA";
break;
case Epos2CallbackCode.CODE_ERR_RECOGNITION:
return_text = "ERR_RECOGNITION";
break;
case Epos2CallbackCode.CODE_ERR_READ:
return_text = "ERR_READ";
break;
case Epos2CallbackCode.CODE_ERR_NOISE_DETECTED:
return_text = "ERR_NOISE_DETECTED";
break;
case Epos2CallbackCode.CODE_ERR_PAPER_JAM:
return_text = "ERR_PAPER_JAM";
break;
case Epos2CallbackCode.CODE_ERR_PAPER_PULLED_OUT:
return_text = "ERR_PAPER_PULLED_OUT";
break;
case Epos2CallbackCode.CODE_ERR_CANCEL_FAILED:
return_text = "ERR_CANCEL_FAILED";
break;
case Epos2CallbackCode.CODE_ERR_PAPER_TYPE:
return_text = "ERR_PAPER_TYPE";
break;
case Epos2CallbackCode.CODE_ERR_WAIT_INSERTION:
return_text = "ERR_WAIT_INSERTION";
break;
case Epos2CallbackCode.CODE_ERR_ILLEGAL:
return_text = "ERR_ILLEGAL";
break;
case Epos2CallbackCode.CODE_ERR_INSERTED:
return_text = "ERR_INSERTED";
break;
case Epos2CallbackCode.CODE_ERR_WAIT_REMOVAL:
return_text = "ERR_WAIT_REMOVAL";
break;
case Epos2CallbackCode.CODE_ERR_DEVICE_BUSY:
return_text = "ERR_DEVICE_BUSY";
break;
case Epos2CallbackCode.CODE_ERR_IN_USE:
return_text = "ERR_IN_USE";
break;
case Epos2CallbackCode.CODE_ERR_CONNECT:
return_text = "ERR_CONNECT";
break;
case Epos2CallbackCode.CODE_ERR_DISCONNECT:
return_text = "ERR_DISCONNECT";
break;
case Epos2CallbackCode.CODE_ERR_MEMORY:
return_text = "ERR_MEMORY";
break;
case Epos2CallbackCode.CODE_ERR_PROCESSING:
return_text = "ERR_PROCESSING";
break;
case Epos2CallbackCode.CODE_ERR_PARAM:
return_text = "ERR_PARAM";
break;
default:
return_text = String.format("%d", state);
break;
}
return return_text;
}
}
package w.soulofpluto.posstock;
import android.app.AlertDialog;
import android.bluetooth.BluetoothAdapter;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.google.firebase.FirebaseApp;
/*
Create by Ramesh Babu
*/
public class SplashActivity extends AppCompatActivity{
PreferenceManager preferenceManager;
BluetoothAdapter bluetoothAdapter;
private int REQUEST_ENABLE_BT = 1;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState){
setContentView(R.layout.activity_splash);
preferenceManager = new PreferenceManager(this);
bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
FirebaseApp.initializeApp(this);
//FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true);
//FirebaseApp.getInstance().setAutomaticResourceManagementEnabled(true);
//FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true);
//FirebaseApp.getInstance().
if(bluetoothAdapter!=null && bluetoothAdapter.isEnabled()){
runOnUiThread(() -> splashMethod());
//throw new RuntimeException("Test Crash");
}else{
//Constants.getToast(this,"Please Enable your bluetooth device");
try {
showDialog("Please Enable your bluetooth device");
} catch (Exception e) {
e.printStackTrace();
}
}
super.onCreate(savedInstanceState);
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == REQUEST_ENABLE_BT) {
if (resultCode == RESULT_OK) {
Constants.getToast(this,"BlueTooth Turned On");
runOnUiThread(new Runnable(){
@Override
public void run(){
splashMethod();
}
});
//Toast.makeText(MainActivity.this, "BlueTooth Turned On", Toast.LENGTH_LONG).show();
} else {
//Toast.makeText(MainActivity.this, "Cancelled", Toast.LENGTH_LONG).show();
Constants.getToast(this,"Cancelled");
}
}
}
public void showDialog(final String phone) throws Exception
{
AlertDialog.Builder builder = new AlertDialog.Builder(SplashActivity.this);
builder.setMessage(phone);
builder.setPositiveButton("OK", new DialogInterface.OnClickListener()
{
@Override
public void onClick(DialogInterface dialog, int which)
{
Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);
dialog.dismiss();
}
});
builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener()
{
@Override
public void onClick(DialogInterface dialog, int which)
{
dialog.dismiss();
}
});
builder.show();
}
public void splashMethod(){
Handler handler = new Handler();
Runnable runnable = new Runnable(){
@Override
public void run(){
//TODO Auto-generated method stub
/*startActivity(new Intent(SplashActivity.this, MainActivity.class));
finish();*/
if(preferenceManager.isLogged()){
startActivity(new Intent(SplashActivity.this, HomeActivity.class));
finish();
}else{
startActivity(new Intent(SplashActivity.this, Login.class));
finish();
}
}
};
handler.postDelayed(runnable, 2500);
}
}
package w.soulofpluto.posstockaudit;
import android.app.ActivityManager;
import android.content.Context;
import android.os.Build;
import android.util.Log;
import java.io.File;
import static android.content.Context.ACTIVITY_SERVICE;
/*
Create by Ramesh Babu
*/
public class AppUtils {
public static void deleteCache(Context context) {
Log.e("AppUtils ====<","Calling deleteCache");
try {
File dir = context.getCacheDir();
deleteDir(dir);
} catch (Exception e) {
}
}
public static boolean deleteDir(File dir) {
if (dir != null && dir.isDirectory()) {
Log.e("AppUtils ====<","Calling 1 deleteCache");
String[] children = dir.list();
for (int i = 0; i < children.length; i++) {
boolean success = deleteDir(new File(dir, children[i]));
if (!success) {
return false;
}
}
return dir.delete();
} else if (dir != null && dir.isFile()) {
return dir.delete();
} else {
return false;
}
}
public static void clearAppData(Context context) {
try {
if (Build.VERSION_CODES.KITKAT <= Build.VERSION.SDK_INT) {
((ActivityManager)context.getSystemService(ACTIVITY_SERVICE)).clearApplicationUserData();
} else {
String packageName = context.getApplicationContext().getPackageName();
Runtime runtime = Runtime.getRuntime();
runtime.exec("pm clear "+packageName);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
/* /*
Create by Ramesh Babu Create by Ramesh Babu
......
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
/* /*
Create by Ramesh Babu Create by Ramesh Babu
...@@ -7,12 +7,13 @@ package w.soulofpluto.posstock; ...@@ -7,12 +7,13 @@ package w.soulofpluto.posstock;
import android.app.Dialog; import android.app.Dialog;
import android.content.Context; import android.content.Context;
import android.text.Html; import android.text.Html;
import android.text.TextUtils;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.view.Window; import android.view.Window;
import android.widget.Button; import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
...@@ -23,6 +24,7 @@ import java.util.ArrayList; ...@@ -23,6 +24,7 @@ import java.util.ArrayList;
public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder> { public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder> {
private Context context; private Context context;
private ArrayList<Plans> arrayList; private ArrayList<Plans> arrayList;
public boolean status = false;
public CustomAdapter(Context context, ArrayList<Plans> storesArrayList){ public CustomAdapter(Context context, ArrayList<Plans> storesArrayList){
this.context = context; this.context = context;
this.arrayList = storesArrayList; this.arrayList = storesArrayList;
...@@ -40,9 +42,7 @@ public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder ...@@ -40,9 +42,7 @@ public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder
final Plans items = arrayList.get(position); final Plans items = arrayList.get(position);
holder.plan_id.setText("PLAN ID : "+items.getPlanId()); holder.plan_id.setText("PLAN ID : "+items.getPlanId());
holder.plan_name.setText("NAME : "+items.getName()); holder.plan_name.setText("NAME : "+items.getName());
holder.view_section.setOnClickListener(new OnClickListener(){ holder.view_section.setOnClickListener(view -> {
@Override
public void onClick(View view){
final Dialog dialog = new Dialog(context); final Dialog dialog = new Dialog(context);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setContentView(R.layout.adapter_dialog); dialog.setContentView(R.layout.adapter_dialog);
...@@ -55,22 +55,23 @@ public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder ...@@ -55,22 +55,23 @@ public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder
ImageView close = dialog.findViewById(R.id.close); ImageView close = dialog.findViewById(R.id.close);
section.setText(Html.fromHtml(Constants.Sec +items.getSection())); section.setText(Html.fromHtml(Constants.Sec +items.getSection()));
division.setText(Html.fromHtml(Constants.div+items.getDivision())); division.setText(Html.fromHtml(Constants.div+items.getDivision()));
close.setOnClickListener(view1 -> dialog.dismiss());
close.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View view){
dialog.dismiss();
}
}); });
holder.start_scan.setOnClickListener(view -> {
if(TextUtils.isEmpty(holder.rack_no.getText().toString())){
Constants.getToast(context,"Please Enter Rack No");
}else{
if(holder.rack_no.getText().toString().length()<= 3) {
PlanDetails.start(context, items, holder.rack_no.getText().toString());
}else{
Constants.getToast(context,"Enter Valid Rack No");
holder.rack_no.setText("");
holder.rack_no.requestFocus();
} }
});
holder.start_scan.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View view){
PlanDetails.start(context,items);
} }
}); });
} }
@Override @Override
public int getItemCount(){ public int getItemCount(){
return arrayList.size(); return arrayList.size();
...@@ -78,12 +79,14 @@ public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder ...@@ -78,12 +79,14 @@ public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder
public class ViewHolder extends RecyclerView.ViewHolder{ public class ViewHolder extends RecyclerView.ViewHolder{
public TextView plan_id,plan_name; public TextView plan_id,plan_name;
Button start_scan,view_section; Button start_scan,view_section;
EditText rack_no;
public ViewHolder(View itemView){ public ViewHolder(View itemView){
super(itemView); super(itemView);
plan_id = itemView.findViewById(R.id.plan_id); plan_id = itemView.findViewById(R.id.plan_id);
plan_name = itemView.findViewById(R.id.plan_name); plan_name = itemView.findViewById(R.id.plan_name);
start_scan = itemView.findViewById(R.id.start_scan); start_scan = itemView.findViewById(R.id.start_scan);
view_section = itemView.findViewById(R.id.view_section); view_section = itemView.findViewById(R.id.view_section);
rack_no = itemView.findViewById(R.id.rack_no);
} }
} }
} }
......
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
import android.content.DialogInterface;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.text.Html; import android.text.Html;
...@@ -11,7 +10,6 @@ import android.view.View; ...@@ -11,7 +10,6 @@ import android.view.View;
import android.widget.Button; import android.widget.Button;
import android.widget.TextView; import android.widget.TextView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar; import androidx.appcompat.widget.Toolbar;
import com.squareup.okhttp.Callback; import com.squareup.okhttp.Callback;
...@@ -29,7 +27,7 @@ import java.util.concurrent.TimeUnit; ...@@ -29,7 +27,7 @@ import java.util.concurrent.TimeUnit;
public class DashBoardActivity extends AppCompatActivity implements View.OnClickListener { public class DashBoardActivity extends AppCompatActivity implements View.OnClickListener {
Toolbar dashboard_toolbar; Toolbar dashboard_toolbar;
Button stock_audit,rack_qty,searchby_barcode, transfer; Button stock_audit,rack_qty,searchBy_Barcode, transfer;
TextView version; TextView version;
PreferenceManager preferenceManager; PreferenceManager preferenceManager;
@Override @Override
...@@ -38,7 +36,7 @@ public class DashBoardActivity extends AppCompatActivity implements View.OnClick ...@@ -38,7 +36,7 @@ public class DashBoardActivity extends AppCompatActivity implements View.OnClick
setContentView(R.layout.activity_dashboard); setContentView(R.layout.activity_dashboard);
stock_audit = findViewById(R.id.stock_audit); stock_audit = findViewById(R.id.stock_audit);
rack_qty = findViewById(R.id.rack_qty); rack_qty = findViewById(R.id.rack_qty);
searchby_barcode = findViewById(R.id.searchby_barcode); searchBy_Barcode = findViewById(R.id.searchby_barcode);
dashboard_toolbar = findViewById(R.id.dashboard_toolbar); dashboard_toolbar = findViewById(R.id.dashboard_toolbar);
version = findViewById(R.id.version); version = findViewById(R.id.version);
transfer = findViewById(R.id.transfer); transfer = findViewById(R.id.transfer);
...@@ -46,17 +44,19 @@ public class DashBoardActivity extends AppCompatActivity implements View.OnClick ...@@ -46,17 +44,19 @@ public class DashBoardActivity extends AppCompatActivity implements View.OnClick
setSupportActionBar(dashboard_toolbar); setSupportActionBar(dashboard_toolbar);
getSupportActionBar().setTitle(getResources().getString(R.string.dashboard)); getSupportActionBar().setTitle(getResources().getString(R.string.dashboard));
getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayHomeAsUpEnabled(true);
stock_audit.setOnClickListener(this); stock_audit .setOnClickListener(this);
rack_qty.setOnClickListener(this); rack_qty .setOnClickListener(this);
searchby_barcode.setOnClickListener(this); searchBy_Barcode.setOnClickListener(this);
transfer.setOnClickListener(this); transfer .setOnClickListener(this);
version.setText(Html.fromHtml(Constants.Ver_Text +Constants.VERSION)); version .setText(Html.fromHtml(Constants.Ver_Text +Constants.VERSION));
} }
@Override @Override
public boolean onCreateOptionsMenu(Menu menu){ public boolean onCreateOptionsMenu(Menu menu){
getMenuInflater().inflate(R.menu.menu, menu); getMenuInflater().inflate(R.menu.menu, menu);
return super.onCreateOptionsMenu(menu); return super.onCreateOptionsMenu(menu);
} }
@Override @Override
public boolean onOptionsItemSelected(@NonNull MenuItem item){ public boolean onOptionsItemSelected(@NonNull MenuItem item){
switch(item.getItemId()){ switch(item.getItemId()){
...@@ -68,7 +68,6 @@ public class DashBoardActivity extends AppCompatActivity implements View.OnClick ...@@ -68,7 +68,6 @@ public class DashBoardActivity extends AppCompatActivity implements View.OnClick
Constants.getToast(DashBoardActivity.this,getResources().getString(R.string.connection)); Constants.getToast(DashBoardActivity.this,getResources().getString(R.string.connection));
} }
break; break;
case android.R.id.home: case android.R.id.home:
finish(); finish();
break; break;
......
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
/* /*
Create by Ramesh Babu Create by Ramesh Babu
......
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
import android.content.Context; import android.content.Context;
import android.os.Handler; import android.os.Handler;
import android.os.Looper; import android.os.Looper;
import com.squareup.okhttp.Callback; import com.squareup.okhttp.Callback;
import com.squareup.okhttp.MediaType;
import com.squareup.okhttp.OkHttpClient; import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request; import com.squareup.okhttp.Request;
import com.squareup.okhttp.RequestBody; import com.squareup.okhttp.RequestBody;
...@@ -18,7 +17,6 @@ import java.util.concurrent.TimeUnit; ...@@ -18,7 +17,6 @@ import java.util.concurrent.TimeUnit;
*/ */
public class DataPresenter{ public class DataPresenter{
public static final MediaType JSON = MediaType.parse("application/json; charset=utf-8");
private Context context; private Context context;
private DataInterface dataInterface; private DataInterface dataInterface;
private String Response; private String Response;
...@@ -41,15 +39,14 @@ public class DataPresenter{ ...@@ -41,15 +39,14 @@ public class DataPresenter{
Request request = new Request.Builder() Request request = new Request.Builder()
.url(Url) .url(Url)
.post(object) .post(object)
.addHeader("Content-Type", "application/json") .addHeader(Constants.Type, Constants.App_json)
.addHeader("Pos-Access-Token",preferenceManager.getCustToken()) .addHeader(Constants.Access_Token,preferenceManager.getCustToken())
.addHeader("Pos-User-Access-Store-Id", preferenceManager.getStoreId()) .addHeader(Constants.Access_StoreId, preferenceManager.getStoreId())
.build(); .build();
client.newCall(request).enqueue(new Callback(){ client.newCall(request).enqueue(new Callback(){
@Override @Override
public void onFailure(Request request, IOException e){ public void onFailure(Request request, IOException e){
//featureDataInterface.FeatureFailure(request.toString()); //featureDataInterface.FeatureFailure(request.toString());
dataInterface.onDeliveryFail(request.toString()); dataInterface.onDeliveryFail(request.toString());
System.out.println("Delivery Slip error" +e.getMessage()); System.out.println("Delivery Slip error" +e.getMessage());
} }
...@@ -75,10 +72,9 @@ public class DataPresenter{ ...@@ -75,10 +72,9 @@ public class DataPresenter{
} }
public void SendDeliverySlipNumberremove(String Url, RequestBody object){ public void SendDeliverySlipNumberRemove(String Url, RequestBody object){
System.out.println("Url ====>"+Url); System.out.println("Url ====>"+Url);
System.out.println("Object ====>"+object); System.out.println("Object ====>"+object);
//RequestBody body = RequestBody.create(JSON, object);
final OkHttpClient client = new OkHttpClient(); final OkHttpClient client = new OkHttpClient();
client.setConnectTimeout(240, TimeUnit.SECONDS); client.setConnectTimeout(240, TimeUnit.SECONDS);
client.setReadTimeout(240,TimeUnit.SECONDS); client.setReadTimeout(240,TimeUnit.SECONDS);
...@@ -86,9 +82,9 @@ public class DataPresenter{ ...@@ -86,9 +82,9 @@ public class DataPresenter{
Request request = new Request.Builder() Request request = new Request.Builder()
.url(Url) .url(Url)
.post(object) .post(object)
.addHeader("Content-Type", "application/json") .addHeader(Constants.Type, Constants.App_json)
.addHeader("Pos-Access-Token",preferenceManager.getCustToken()) .addHeader(Constants.Access_Token,preferenceManager.getCustToken())
.addHeader("Pos-User-Access-Store-Id", preferenceManager.getStoreId()) .addHeader(Constants.Access_StoreId, preferenceManager.getStoreId())
.build(); .build();
client.newCall(request).enqueue(new Callback(){ client.newCall(request).enqueue(new Callback(){
@Override @Override
...@@ -130,9 +126,9 @@ public class DataPresenter{ ...@@ -130,9 +126,9 @@ public class DataPresenter{
Request request = new Request.Builder() Request request = new Request.Builder()
.url(Url) .url(Url)
.post(object) .post(object)
.addHeader("Content-Type", "application/json") .addHeader(Constants.Type, Constants.App_json)
.addHeader(context.getResources().getString(R.string.accesstoken),preferenceManager.getCustToken()) .addHeader(Constants.Access_Token,preferenceManager.getCustToken())
.addHeader(context.getResources().getString(R.string.storeidtoken),preferenceManager.getStoreId()) .addHeader(Constants.Access_StoreId, preferenceManager.getStoreId())
.build(); .build();
client.newCall(request).enqueue(new Callback(){ client.newCall(request).enqueue(new Callback(){
@Override @Override
...@@ -165,9 +161,9 @@ public class DataPresenter{ ...@@ -165,9 +161,9 @@ public class DataPresenter{
Request request = new Request.Builder() Request request = new Request.Builder()
.url(Url) .url(Url)
.get() .get()
.addHeader("Content-Type", "application/json") .addHeader(Constants.Type, Constants.App_json)
.addHeader(context.getResources().getString(R.string.accesstoken),preferenceManager.getCustToken()) .addHeader(Constants.Access_Token,preferenceManager.getCustToken())
.addHeader(context.getResources().getString(R.string.storeidtoken),preferenceManager.getStoreId()) .addHeader(Constants.Access_StoreId, preferenceManager.getStoreId())
.build(); .build();
client.newCall(request).enqueue(new Callback(){ client.newCall(request).enqueue(new Callback(){
@Override @Override
...@@ -194,15 +190,12 @@ public class DataPresenter{ ...@@ -194,15 +190,12 @@ public class DataPresenter{
client.setConnectTimeout(2000, TimeUnit.SECONDS); client.setConnectTimeout(2000, TimeUnit.SECONDS);
client.setReadTimeout(2000,TimeUnit.SECONDS); client.setReadTimeout(2000,TimeUnit.SECONDS);
client.setWriteTimeout(2000,TimeUnit.SECONDS); client.setWriteTimeout(2000,TimeUnit.SECONDS);
System.out.println("Url ====>"+Url);
System.out.println("Object ====>"+object);
System.out.println("Token ====>"+preferenceManager.getCustToken());
final Request request = new Request.Builder() final Request request = new Request.Builder()
.url(Url) .url(Url)
.post(object) .post(object)
.addHeader("Content-Type", "application/json") .addHeader(Constants.Type, Constants.App_json)
.addHeader("Pos-Access-Token", preferenceManager.getCustToken()) .addHeader(Constants.Access_Token,preferenceManager.getCustToken())
.addHeader("Pos-User-Access-Store-Id", preferenceManager.getStoreId()) .addHeader(Constants.Access_StoreId, preferenceManager.getStoreId())
.build(); .build();
client.newCall(request).enqueue(new Callback(){ client.newCall(request).enqueue(new Callback(){
@Override @Override
......
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
...@@ -36,20 +35,18 @@ import java.util.ArrayList; ...@@ -36,20 +35,18 @@ import java.util.ArrayList;
public void onBindViewHolder(@NonNull MenuAdapter.ViewHolder holder, final int position) { public void onBindViewHolder(@NonNull MenuAdapter.ViewHolder holder, final int position) {
final String data = arrayList.get(position); final String data = arrayList.get(position);
holder.menu_name.setText(data); holder.menu_name.setText(data);
holder.layout.setOnClickListener(new View.OnClickListener() { if(data.equalsIgnoreCase("Create Delivery Slip")){
@Override holder.menu_image.setImageResource(R.drawable.ic_create_delivery_slip);
public void onClick(View view) { }else if(data.equalsIgnoreCase("Stock Audit")){
if(data.equalsIgnoreCase("Stock Audit")){ holder.menu_image.setImageResource(R.drawable.ic_stock_audit);
Intent intent = new Intent(context,DashBoardActivity.class); }else if(data.equalsIgnoreCase("Create Sale Bill")){
context.startActivity(intent); holder.menu_image.setImageResource(R.drawable.ic_create_sale_bill);
}else if(data.equalsIgnoreCase("Create Delivery Slip")){
Intent intent = new Intent(context,CreateDeliverySlip.class);
context.startActivity(intent);
}else{ }else{
Intent intent = new Intent(context,CreateSaleBill.class); holder.menu_image.setImageResource(R.drawable.ic_stock_transfer);
context.startActivity(intent);
}
} }
holder.layout.setOnClickListener(view -> {
Intent intent = new Intent(context,DashBoardActivity.class);
context.startActivity(intent);
}); });
} }
......
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
/* /*
Create by Ramesh Babu Create by Ramesh Babu
......
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
import android.content.Context; import android.content.Context;
import android.util.Log; import android.util.Log;
...@@ -34,11 +34,9 @@ public class PlanDetailsAdapter extends RecyclerView.Adapter<PlanDetailsAdapter. ...@@ -34,11 +34,9 @@ public class PlanDetailsAdapter extends RecyclerView.Adapter<PlanDetailsAdapter.
public void onBindViewHolder(@NonNull PlanDetailsAdapter.ViewHolder holder, final int position){ public void onBindViewHolder(@NonNull PlanDetailsAdapter.ViewHolder holder, final int position){
final Plans items = arrayList.get(position); final Plans items = arrayList.get(position);
holder.plandetails_barcode.setText(items.getBarcode()); holder.plandetails_barcode.setText(items.getBarcode());
holder.plandetails_qty.setText(items.getQty()); holder.plandetails_qty .setText(items.getQty());
Log.e("PlanDetails",items.getPlanId()); Log.e("PlanDetails", items.getPlanId());
holder.plandetails_delete.setOnClickListener(new View.OnClickListener() { holder.plandetails_delete .setOnClickListener(view -> {
@Override
public void onClick(View view) {
try{ try{
if(Constants.isNetworkAvailable(context)){ if(Constants.isNetworkAvailable(context)){
((PlanDetails) context).DeleteBarcode(items,position); ((PlanDetails) context).DeleteBarcode(items,position);
...@@ -48,7 +46,6 @@ public class PlanDetailsAdapter extends RecyclerView.Adapter<PlanDetailsAdapter. ...@@ -48,7 +46,6 @@ public class PlanDetailsAdapter extends RecyclerView.Adapter<PlanDetailsAdapter.
}catch(NullPointerException np){ }catch(NullPointerException np){
np.printStackTrace(); np.printStackTrace();
} }
}
}); });
} }
@Override @Override
......
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable; import android.os.Parcelable;
import java.util.ArrayList;
import java.util.Comparator;
/* /*
Create by Ramesh Babu Create by Ramesh Babu
...@@ -14,6 +17,17 @@ public class Plans implements Parcelable { ...@@ -14,6 +17,17 @@ public class Plans implements Parcelable {
String division; String division;
String Barcode; String Barcode;
String Qty; String Qty;
int ColumnId;
public int getColumnId() {
return ColumnId;
}
public void setColumnId(int columnId) {
ColumnId = columnId;
}
protected Plans(Parcel in) { protected Plans(Parcel in) {
PlanId = in.readString(); PlanId = in.readString();
...@@ -22,6 +36,7 @@ public class Plans implements Parcelable { ...@@ -22,6 +36,7 @@ public class Plans implements Parcelable {
division = in.readString(); division = in.readString();
Barcode = in.readString(); Barcode = in.readString();
Qty = in.readString(); Qty = in.readString();
ColumnId = in.readInt();
} }
public static final Creator<Plans> CREATOR = new Creator<Plans>() { public static final Creator<Plans> CREATOR = new Creator<Plans>() {
...@@ -100,9 +115,12 @@ public class Plans implements Parcelable { ...@@ -100,9 +115,12 @@ public class Plans implements Parcelable {
parcel.writeString(division); parcel.writeString(division);
parcel.writeString(Barcode); parcel.writeString(Barcode);
parcel.writeString(Qty); parcel.writeString(Qty);
parcel.writeInt(ColumnId);
} }
public String toString() { public String toString() {
return Name; return Name;
} }
public static Comparator<Plans> sortByName = (t1, t2) -> t2.getColumnId()- t1.getColumnId();
} }
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
import android.app.Activity; import android.app.Activity;
import android.content.Context; import android.content.Context;
...@@ -47,8 +47,6 @@ public class PreferenceManager { ...@@ -47,8 +47,6 @@ public class PreferenceManager {
public String getKeyUserLogin(){ public String getKeyUserLogin(){
return _sharedPrefs.getString(KEY_USER_LOGIN,""); return _sharedPrefs.getString(KEY_USER_LOGIN,"");
} }
public void setFirstName(String firstName){ public void setFirstName(String firstName){
_prefsEditor.putString(FIRST_NAME,firstName); _prefsEditor.putString(FIRST_NAME,firstName);
_prefsEditor.apply(); _prefsEditor.apply();
......
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
/* /*
Create by Ramesh Babu Create by Ramesh Babu
*/ */
import java.util.Comparator;
public class RackWise { public class RackWise {
String id; int id;
int Qty; int Qty;
String scanned_by; String scanned_by;
String scanning_start_at; String scanning_start_at;
...@@ -36,11 +38,11 @@ public class RackWise { ...@@ -36,11 +38,11 @@ public class RackWise {
this.scanning_end_at = scanning_end_at; this.scanning_end_at = scanning_end_at;
} }
public String getId() { public int getId() {
return id; return id;
} }
public void setId(String id) { public void setId(int id) {
this.id = id; this.id = id;
} }
...@@ -52,6 +54,6 @@ public class RackWise { ...@@ -52,6 +54,6 @@ public class RackWise {
Qty = qty; Qty = qty;
} }
public static Comparator<RackWise> sortByName = (t1, t2) -> t1.getId()- t2.getId();
} }
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
import android.content.Context; import android.content.Context;
import android.text.Html; import android.text.Html;
...@@ -35,8 +35,8 @@ public class RackWiseAdapter extends RecyclerView.Adapter<RackWiseAdapter.ViewHo ...@@ -35,8 +35,8 @@ public class RackWiseAdapter extends RecyclerView.Adapter<RackWiseAdapter.ViewHo
@Override @Override
public void onBindViewHolder(@NonNull RackWiseAdapter.ViewHolder holder, final int position){ public void onBindViewHolder(@NonNull RackWiseAdapter.ViewHolder holder, final int position){
final RackWise items = arrayList.get(position); final RackWise items = arrayList.get(position);
if(items.getId().equalsIgnoreCase("null")){ if(items.getId() == 0){
holder.rack_id.setText(""); // holder.rack_id.setText(Html.fromHtml(Constants.Id + "0"));
}else{ }else{
holder.rack_id.setText(Html.fromHtml(Constants.Id + items.getId())); holder.rack_id.setText(Html.fromHtml(Constants.Id + items.getId()));
} }
......
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
...@@ -32,8 +32,8 @@ import java.text.SimpleDateFormat; ...@@ -32,8 +32,8 @@ import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import static w.soulofpluto.posstock.Constants.JSON; import static w.soulofpluto.posstockaudit.Constants.JSON;
import static w.soulofpluto.posstock.Constants.getDateWithOffset; import static w.soulofpluto.posstockaudit.Constants.getDateWithOffset;
/* /*
Create by Ramesh Babu Create by Ramesh Babu
...@@ -86,7 +86,7 @@ import static w.soulofpluto.posstock.Constants.getDateWithOffset; ...@@ -86,7 +86,7 @@ import static w.soulofpluto.posstock.Constants.getDateWithOffset;
JSONObject object = new JSONObject(); JSONObject object = new JSONObject();
try{ try{
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT){ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT){
object.put(getResources().getString(R.string.plan_id),planId); object.put(getResources().getString(R.string.plan_id), planId);
object.put(getResources().getString(R.string.barcode_upload), Barcode); object.put(getResources().getString(R.string.barcode_upload), Barcode);
object.put(getResources().getString(R.string.android_version),Constants.VERSION); object.put(getResources().getString(R.string.android_version),Constants.VERSION);
} }
......
package w.soulofpluto.posstockaudit;
import android.bluetooth.BluetoothAdapter;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.google.firebase.FirebaseApp;
import com.google.firebase.crashlytics.FirebaseCrashlytics;
/*
Create by Ramesh Babu
*/
public class SplashActivity extends AppCompatActivity{
PreferenceManager preferenceManager;
//BluetoothAdapter bluetoothAdapter;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState){
setContentView(R.layout.activity_splash);
preferenceManager = new PreferenceManager(this);
//bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
FirebaseApp.initializeApp(this);
FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true);
runOnUiThread(() -> splashMethod());
super.onCreate(savedInstanceState);
}
public void splashMethod(){
Handler handler = new Handler();
Runnable runnable = () -> {
if(preferenceManager.isLogged()){
startActivity(new Intent(SplashActivity.this, HomeActivity.class));
finish();
}else{
startActivity(new Intent(SplashActivity.this, Login.class));
finish();
}
};
handler.postDelayed(runnable, 2500);
}
}
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
/* /*
Create by Ramesh Babu Create by Ramesh Babu
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<item> <item>
<shape android:shape="rectangle"> <shape android:shape="rectangle">
<gradient android:angle="180" <gradient android:angle="180"
android:endColor="#0000FF" android:endColor="#07c4a0"
android:startColor="#87ceeb" /> android:startColor="#007cde" />
</shape> </shape>
</item> </item>
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<gradient
android:angle="180"
android:endColor="#07c4a0"
android:startColor="#007cde"/>
<corners
android:bottomLeftRadius="7dp"
android:bottomRightRadius="7dp"
android:topLeftRadius="7dp"
android:topRightRadius="7dp" />
</shape>
\ No newline at end of file
<vector android:height="24dp" android:viewportHeight="510" <vector android:height="24dp" android:viewportHeight="510"
android:viewportWidth="510" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> android:viewportWidth="510" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffff" android:pathData="M311.1,255l58.65,58.65c7.65,-17.851 10.2,-38.25 10.2,-58.65c0,-20.4 -5.101,-40.8 -10.2,-58.65L311.1,255zM446.25,119.85L415.65,153c15.3,30.6 25.5,66.3 25.5,102s-10.2,71.4 -25.5,102l30.6,30.6c25.5,-38.25 38.25,-86.699 38.25,-135.149S471.75,158.1 446.25,119.85zM349.35,145.35L204,0h-25.5v193.8L61.2,76.5l-35.7,35.7L168.3,255L25.5,397.8l35.7,35.7l117.3,-117.3V510H204l145.35,-145.35L239.7,255L349.35,145.35zM229.5,96.9l48.45,48.45L229.5,193.8V96.9zM277.95,364.65L229.5,413.1V316.2L277.95,364.65z"/> <path android:fillColor="#FFFFFF" android:pathData="M311.1,255l58.65,58.65c7.65,-17.851 10.2,-38.25 10.2,-58.65c0,-20.4 -5.101,-40.8 -10.2,-58.65L311.1,255zM446.25,119.85L415.65,153c15.3,30.6 25.5,66.3 25.5,102s-10.2,71.4 -25.5,102l30.6,30.6c25.5,-38.25 38.25,-86.699 38.25,-135.149S471.75,158.1 446.25,119.85zM349.35,145.35L204,0h-25.5v193.8L61.2,76.5l-35.7,35.7L168.3,255L25.5,397.8l35.7,35.7l117.3,-117.3V510H204l145.35,-145.35L239.7,255L349.35,145.35zM229.5,96.9l48.45,48.45L229.5,193.8V96.9zM277.95,364.65L229.5,413.1V316.2L277.95,364.65z"/>
</vector> </vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="80dp"
android:height="80dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:pathData="M237.5,2.1c-60.6,4.3 -118.1,30.7 -161.4,74 -99.4,99.4 -99.4,260.4 0,359.8 99.4,99.4 260.4,99.4 359.8,-0 99.4,-99.4 99.4,-260.4 0,-359.8 -44.1,-44.1 -100.7,-69.7 -163.9,-74.1 -16,-1.1 -17.3,-1.1 -34.5,0.1zM166.6,115.5c1.9,2.9 1.1,6 -2,8l-2.3,1.5 2.6,5.3 2.6,5.2 0.5,124.2c0.5,123.4 0.5,124.2 2.6,126.9 4,5.4 7,6.9 13.9,6.9 6.9,-0 9.9,-1.5 13.9,-6.9 1.7,-2.2 2.2,-4.7 2.6,-13.2 0.4,-8.9 0.8,-10.8 2.4,-12 1.6,-1.2 9.8,-1.4 47.5,-1.4 40.9,-0 45.6,0.2 47.3,1.7 2.2,2 2.3,6.1 0.1,8.5 -1.5,1.7 -4.2,1.8 -43.5,1.8l-41.8,-0 0,6.3c0,4.7 -0.6,7.6 -2.4,11l-2.3,4.7 86.2,-0.2 86.2,-0.3 3.7,-2.9c4.5,-3.4 6.6,-7.9 6.6,-14.1l0,-4.5 -26.5,-0c-25.2,-0 -26.6,-0.1 -28.5,-2 -4.2,-4.2 -1.2,-10 5.1,-10l3.9,-0 0,-111.9 0,-111.8 -2.2,-3.3c-1.3,-1.8 -3.6,-4.3 -5.1,-5.4 -2.8,-2.1 -3.7,-2.1 -67.5,-2.4 -64.6,-0.2 -64.6,-0.2 -66.9,-2.4 -2.7,-2.5 -2.9,-4.5 -0.7,-7.6l1.5,-2.2 65.7,-0 65.7,-0 5,2.4c6.2,2.9 11.7,8.6 14.7,15.1l2.3,5 0.3,112.2 0.2,112.3 20.7,-0c25.7,-0 24.3,-0.8 24.3,13.9 0,8.2 -0.5,11.5 -1.9,14.7 -2.8,6.1 -8.9,12.4 -14.6,15l-5,2.4 -102,-0 -102,-0 -5,-2.4c-6.2,-2.9 -11.7,-8.6 -14.7,-15.1l-2.3,-5 -0.3,-112.3 -0.2,-112.2 -20.7,-0c-25.7,-0 -24.3,0.8 -24.3,-13.9 0,-8.2 0.5,-11.5 1.9,-14.7 2.8,-6.1 8.9,-12.4 14.6,-15 4.6,-2.2 6.3,-2.4 21.7,-2.4 16.7,-0 16.8,-0 18.4,2.5zM189.6,115.9c1.6,3.1 0.4,6.2 -2.9,8.1 -3.1,1.8 -5.3,0.8 -7.6,-3.2 -1.3,-2.3 -1.3,-2.9 0.3,-5.2 1.4,-2.3 2.3,-2.7 5.4,-2.4 2.7,0.2 4,0.9 4.8,2.7zM280.8,153.2c0.7,0.7 1.2,2.5 1.2,4l0,2.8 9.3,-0c6.8,-0 9.8,0.4 11.5,1.6 1.3,0.8 5.2,7.5 8.9,14.7 3.6,7.3 8.5,15.7 10.9,18.9l4.4,5.6 0,16.4c0,11.4 -0.4,16.8 -1.2,17.6 -0.7,0.7 -4.1,1.2 -8.3,1.2 -7.1,-0 -7.1,-0 -8.8,3.4 -6.4,13.5 -27.9,12.4 -33,-1.7 -0.6,-1.5 -2.1,-1.7 -13.1,-1.7l-12.4,-0 -2.5,4.3c-3.3,5.6 -8.9,8.7 -15.6,8.7 -2.9,-0 -6.5,-0.7 -8,-1.5 -3.3,-1.6 -7.7,-6.5 -8.6,-9.5 -0.6,-1.7 -1.5,-2 -7.4,-2 -7.1,-0 -9.1,-1 -9.1,-4.5 0,-3.5 2,-4.5 9.2,-4.5 5.4,-0 6.8,-0.3 6.8,-1.5 0,-2.6 7,-9.3 11.5,-11.1 8,-3 17.5,0.8 21.5,8.6l2,4 12.6,-0c11,-0 12.5,-0.2 13.1,-1.8 2,-5.6 7.5,-10.3 14,-11.6 6.8,-1.5 16.5,3.7 19.3,10.4 1.1,2.6 1.8,3 5.1,3l3.9,-0 0,-11.1c0,-10.9 -0.1,-11.2 -3.1,-15l-3.1,-3.9 -17.9,-0c-23.4,-0 -21.9,1.4 -21.9,-20l0,-16 -35.3,-0c-37.1,-0 -37.7,-0.1 -37.7,-4.5 0,-1.2 0.5,-2.6 1.2,-3.3 1.7,-1.7 78.9,-1.7 80.6,-0zM239.4,171.6c1.9,1.9 2,3.5 0.4,5.7 -1.1,1.4 -3.9,1.7 -21.8,1.7 -11.3,0.1 -21.3,-0.2 -22.2,-0.5 -2.6,-1 -3.2,-4.4 -1.2,-6.6 1.6,-1.8 3.2,-1.9 22.5,-1.9 17.5,-0 21,0.2 22.3,1.6zM232.4,189.2c2,2.9 2,3.4 -0.4,5.8 -1.9,1.9 -3.3,2 -21.8,2 -16.3,-0 -20.1,-0.3 -22,-1.6 -2.6,-1.8 -2.8,-4.1 -0.5,-6.6 1.5,-1.6 3.5,-1.8 22.4,-1.8 20.3,-0 20.8,-0 22.3,2.2zM221.1,205c2.2,1.2 2.6,5.9 0.7,7.8 -0.8,0.8 -5.3,1.2 -13.4,1.2 -11.6,-0 -12.4,-0.1 -13.8,-2.2 -2,-2.9 -2,-3.4 0.4,-5.8 1.8,-1.8 3.3,-2 13.1,-2 6.1,-0 11.9,0.5 13,1zM312.7,281.2c2.7,2.5 2.9,4.5 0.7,7.6l-1.5,2.2 -55.4,-0 -55.4,-0 -1.5,-2.2c-2.1,-3 -2,-4.7 0.6,-7.5l2.1,-2.3 54.1,-0 54,-0 2.3,2.2zM313,304c2.4,2.4 2.5,4.8 0.4,7.8l-1.5,2.2 -55.4,-0 -55.4,-0 -1.5,-2.2c-2.1,-3 -2,-5.4 0.4,-7.8 2,-2 3.3,-2 56.5,-2 53.2,-0 54.5,-0 56.5,2zM272.7,328.2c2.7,2.5 2.9,4.5 0.7,7.6l-1.5,2.2 -35.4,-0 -35.4,-0 -1.5,-2.2c-2.1,-3 -2,-5 0.4,-7.6 2.1,-2.2 2.4,-2.2 36.2,-2.2 33.7,-0 34.2,-0 36.5,2.2zM313,328.2c2.4,2.6 2.5,4.6 0.4,7.6 -1.4,2 -2.3,2.2 -12.1,2.2 -8.5,-0 -11,-0.3 -12.5,-1.7 -2.4,-2.1 -2.3,-5.8 0.2,-8.3 1.7,-1.7 3.3,-2 12,-2 8.9,-0 10.1,0.2 12,2.2zM321.2,361.7c3.7,3.3 1.1,10.3 -3.9,10.3 -2.8,-0 -6.3,-3.3 -6.3,-6 0,-2.6 3.4,-6 6.2,-6 1.2,-0 3,0.7 4,1.7z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
<path
android:pathData="M131.5,126.4c-6.1,2.7 -9.5,8.5 -9.5,16.2l0,4.4 16.8,-0 16.8,-0 -0.6,-6c-0.6,-6.6 -2.7,-10.2 -8,-13.8 -3.8,-2.5 -10.7,-2.9 -15.5,-0.8z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
<path
android:pathData="M282,178.5l0,8.5 12,-0 12,-0 -4.2,-8.5 -4.2,-8.5 -7.8,-0 -7.8,-0 0,8.5z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
<path
android:pathData="M226.5,225.5c-4.1,4 -3.3,10.5 1.7,13.1 5.9,3.1 12,-0.6 12,-7.3 0,-7.3 -8.6,-11 -13.7,-5.8z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
<path
android:pathData="M286.9,225.9c-3.5,3.6 -3.7,7 -0.5,10.7 6.1,7.2 17.4,-0.2 14,-9.1 -0.8,-1.9 -5.5,-4.5 -8.4,-4.5 -1.2,-0 -3.5,1.3 -5.1,2.9z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="80dp"
android:height="80dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:pathData="M237.5,2.1c-60.6,4.3 -118.1,30.7 -161.4,74 -99.4,99.4 -99.4,260.4 0,359.8 99.4,99.4 260.4,99.4 359.8,-0 99.4,-99.4 99.4,-260.4 0,-359.8 -44.1,-44.1 -100.7,-69.7 -163.9,-74.1 -16,-1.1 -17.3,-1.1 -34.5,0.1zM318.3,109.6c5.6,1.9 12.9,8.1 16.1,13.7 4.4,7.6 4.6,11.4 4.6,78.7l0,64 -6.5,-0 -6.5,-0 0,-63.3c-0.1,-34.7 -0.5,-65.2 -0.9,-67.6 -1,-4.8 -3.3,-8.4 -7.5,-11.5 -2.7,-2 -4,-2.1 -54.7,-2.4l-51.9,-0.3 0,26.1c0,23.6 -0.2,26.4 -1.9,29.8 -4.2,8.2 -8.8,10.2 -23.6,10.2l-11.5,-0 0,-6.5 0,-6.5 10.4,-0c8.2,-0 10.8,-0.3 12,-1.6 1.4,-1.3 1.6,-4.7 1.6,-21.8l0,-20.2 -26.5,26.6 -26.5,26.5 0,94.8c0,104.8 -0.4,99 6.6,104.3l3.7,2.9 77.1,0.3c42.4,0.2 78.5,-0 80.3,-0.3 1.8,-0.3 4.6,-1.7 6.3,-3.2 5.5,-4.6 6.3,-7.4 6.8,-23.6l0.5,-14.8 6.1,0.3 6.1,0.3 0.3,11.5c0.5,19.3 -2.2,27.8 -11.3,35.8 -8.5,7.5 -4.5,7.2 -92.5,7.2 -90.4,-0 -84.6,0.5 -94.1,-8.9 -9.6,-9.6 -8.9,-1.2 -8.9,-114l0,-98.5 34.7,-34.8 34.8,-34.8 56.1,-0c48.4,-0 56.7,0.2 60.7,1.6zM272,138.5l0,6.5 -6.5,-0 -6.5,-0 0,-6.5 0,-6.5 6.5,-0 6.5,-0 0,6.5zM302.7,133.5c8.4,3.5 11.3,9 11.3,21l0,8.5 -6.5,-0 -6.5,-0 0,-7.4c0,-5.4 -0.4,-7.9 -1.6,-9 -1.1,-1.2 -3.6,-1.6 -9,-1.6l-7.4,-0 0,-6.5 0,-6.5 8,-0c5,-0 9.5,0.6 11.7,1.5zM247.8,210.8l0.3,6.2 8.3,-0c7.3,-0 8.7,0.3 12.8,2.9 4.6,3 8.8,9.5 8.8,13.9 0,2 -0.5,2.2 -6.5,2.2 -4.3,-0 -6.5,-0.4 -6.5,-1.2 0,-0.6 -0.7,-2 -1.7,-3 -1.5,-1.6 -3.5,-1.8 -22.4,-1.8 -20.8,-0 -20.9,-0 -22.4,2.4 -2,3 -0.5,7.3 2.7,8.1 1.3,0.3 11.8,0.6 23.5,0.7 23.6,0.3 23.3,0.2 29.7,8.2 2.7,3.3 3.1,4.5 3.1,9.9 -0.1,5.1 -0.6,6.9 -2.9,10.4 -4,6 -9.3,8.3 -18.9,8.3l-7.7,-0 0,6 0,6 -6.5,-0 -6.5,-0 0,-5.9 0,-5.9 -9.4,-0.4c-8.8,-0.3 -9.7,-0.5 -13.3,-3.4 -4.3,-3.5 -6.8,-7.4 -7.8,-12.2l-0.7,-3.2 6.6,-0c6.1,-0 6.6,0.2 7.8,2.7l1.3,2.8 20.9,0.3c18.4,0.2 21.1,-0 22.7,-1.4 2.3,-2.1 2.4,-5.2 0.2,-7.6 -1.5,-1.6 -3.5,-1.8 -22.5,-1.8 -16.6,-0 -21.6,-0.3 -24.6,-1.5 -12.2,-5.2 -15.6,-19.3 -6.9,-29.2 4.3,-4.9 8.2,-6.3 17.7,-6.3l8,-0 0,-5.8c0,-3.2 0.2,-6.1 0.4,-6.3 0.2,-0.2 3.1,-0.4 6.3,-0.3l5.8,-0 0.3,6.2zM412.3,218.4c10.2,4.3 14,17.4 7.7,26.7 -1.6,2.4 -21.7,23.1 -44.7,46.1l-41.8,41.6 -18.2,9.1 -18.3,9.1 -61.5,-0 -61.5,-0 0,-6.5 0,-6.5 58.8,-0 58.8,-0 7.4,-15 7.4,-14.9 44.1,-44c24.2,-24.1 45.4,-44.6 47,-45.5 3.7,-1.9 10.6,-2 14.8,-0.2zM290,314.5l0,6.5 -58,-0 -58,-0 0,-6.5 0,-6.5 58,-0 58,-0 0,6.5z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
<path
android:pathData="M400,232.5l-2.4,2.6 3.7,3.6 3.6,3.7 2.6,-2.4c2.7,-2.5 3.3,-6.8 1.3,-8.8 -2,-2 -6.3,-1.4 -8.8,1.3z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
<path
android:pathData="M354.9,277.6l-33.4,33.4 3.8,3.7 3.7,3.8 33.3,-33.5 33.4,-33.5 -3.7,-3.7 -3.7,-3.6 -33.4,33.4z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
<path
android:pathData="M312,326l-2.1,4.1 4.2,-2.1c3.9,-2.1 4,-2.2 2.3,-4.1 -0.9,-1 -1.9,-1.9 -2,-1.9 -0.2,-0 -1.3,1.8 -2.4,4z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="20dp"
android:height="20dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:pathData="M246,3.1c-63.9,8.5 -103.8,44.2 -117.1,104.4 -1.9,8.9 -2.2,13.8 -2.6,44.2l-0.5,34.3 -31.8,-0c-31.3,-0 -31.7,-0 -35.1,2.3 -1.8,1.2 -4.4,3.8 -5.6,5.6l-2.3,3.4 0,149.4c0,146.6 0,149.5 2,153.2 1.1,2.2 3.6,5 5.7,6.2l3.8,2.4 193,-0 193,-0 3.8,-2.4c2.1,-1.2 4.6,-4 5.7,-6.2 2,-3.7 2,-6.6 2,-153.2l0,-149.4 -2.3,-3.4c-1.2,-1.8 -3.8,-4.4 -5.6,-5.6 -3.4,-2.3 -3.8,-2.3 -35.2,-2.3l-31.9,-0 0,-30.3c0,-32.6 -0.9,-42.2 -5.6,-59.7 -2.9,-10.9 -10.2,-26.9 -17.1,-37.3 -10.1,-15.3 -28.6,-30.9 -48.1,-40.7 -21.6,-10.7 -51.2,-17.2 -68.2,-14.9zM269.5,25.5c44.2,7.2 75,32.1 88.1,71.1 4.9,14.6 5.4,20.1 5.4,56l0,33.4 -107.5,-0 -107.5,-0 0,-29.9c0,-25.9 0.3,-31.4 2,-40.4 7.1,-36.8 26.3,-64.4 55,-79.1 21.8,-11.2 42.4,-14.7 64.5,-11.1zM435.2,209.9l3.3,2.9 0.3,132.9c0.2,98.5 -0.1,133.5 -0.9,135.6 -2.6,6.1 11.1,5.7 -182.4,5.7 -193.5,-0 -179.8,0.4 -182.4,-5.7 -0.8,-2.1 -1.1,-37.1 -0.9,-135.6l0.3,-132.9 3.3,-2.9 3.2,-2.9 176.5,-0 176.5,-0 3.2,2.9z"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
<path
android:pathData="M248.7,294.1c-23.7,5.6 -33.5,34.3 -17.8,52.1l3.1,3.6 0,17.3c0,14.8 0.3,18 1.9,21.4 7.7,16.6 31.5,16.6 39.2,-0 1.6,-3.4 1.9,-6.6 1.9,-21.4l0,-17.3 3.1,-3.6c5.3,-6 7.3,-11.7 7.3,-20.7 0,-6.8 -0.4,-8.8 -2.8,-13.5 -4.8,-9.6 -11.3,-14.9 -21.3,-17.5 -6.3,-1.7 -9,-1.7 -14.6,-0.4z"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
</vector>
<vector android:height="26dp" android:viewportHeight="489.888" <!--<vector
android:viewportWidth="489.888" android:width="26dp" xmlns:android="http://schemas.android.com/apk/res/android"> android:viewportHeight="489.888"
<path android:fillColor="#FFFFFF" android:pathData="M25.383,290.5c-7.2,-77.5 25.9,-147.7 80.8,-192.3c21.4,-17.4 53.4,-2.5 53.4,25l0,0c0,10.1 -4.8,19.4 -12.6,25.7c-38.9,31.7 -62.3,81.7 -56.6,136.9c7.4,71.9 65,130.1 136.8,138.1c93.7,10.5 173.3,-62.9 173.3,-154.5c0,-48.6 -22.5,-92.1 -57.6,-120.6c-7.8,-6.3 -12.5,-15.6 -12.5,-25.6l0,0c0,-27.2 31.5,-42.6 52.7,-25.6c50.2,40.5 82.4,102.4 82.4,171.8c0,126.9 -107.8,229.2 -236.7,219.9C122.183,481.8 35.283,396.9 25.383,290.5zM244.883,0c-18,0 -32.5,14.6 -32.5,32.5v149.7c0,18 14.6,32.5 32.5,32.5s32.5,-14.6 32.5,-32.5V32.5C277.383,14.6 262.883,0 244.883,0z"/> android:viewportWidth="489.888"
android:height="26dp"
android:width="26dp"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FFFFFF"
android:pathData="M25.383,290.5c-7.2,-77.5 25.9,-147.7 80.8,-192.3c21.4,-17.4 53.4,-2.5 53.4,25l0,0c0,10.1 -4.8,19.4 -12.6,25.7c-38.9,31.7 -62.3,81.7 -56.6,136.9c7.4,71.9 65,130.1 136.8,138.1c93.7,10.5 173.3,-62.9 173.3,-154.5c0,-48.6 -22.5,-92.1 -57.6,-120.6c-7.8,-6.3 -12.5,-15.6 -12.5,-25.6l0,0c0,-27.2 31.5,-42.6 52.7,-25.6c50.2,40.5 82.4,102.4 82.4,171.8c0,126.9 -107.8,229.2 -236.7,219.9C122.183,481.8 35.283,396.9 25.383,290.5zM244.883,0c-18,0 -32.5,14.6 -32.5,32.5v149.7c0,18 14.6,32.5 32.5,32.5s32.5,-14.6 32.5,-32.5V32.5C277.383,14.6 262.883,0 244.883,0z"/>
</vector>-->
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:height="26dp"
android:width="26dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:pathData="M249.5,2.7c-4.6,2.4 -6.6,4.5 -8.6,8.8 -1.8,3.8 -1.9,9.1 -1.9,103.4 0,99.3 0,99.5 2.1,103.9 5.8,11.8 22.4,12.9 29.7,1.9l2.7,-4.1 0.3,-99.5c0.2,-67.4 0,-100.8 -0.7,-103.2 -3,-10.1 -15,-15.8 -23.6,-11.2z"
android:fillColor="#ffffff"
android:strokeColor="#ffffff"/>
<path
android:pathData="M158,61.5c-20.9,8.7 -45.6,25.4 -65.4,44.5 -33.3,32 -58.1,76.8 -67,121 -7.3,36.1 -7.3,61.2 0,97 5.6,27.2 18.5,58.2 34.2,81.5 37.9,56.6 95.7,93.2 162.7,103.1 16.6,2.5 50.4,2.5 67,-0 77.8,-11.5 143.7,-59.7 178.1,-130.1 12.1,-24.9 19.2,-49.5 22.9,-79.7 2.7,-22.7 1.5,-43.9 -4.1,-71.8 -7.2,-35.8 -25.7,-73.8 -50.2,-103.1 -21.3,-25.4 -52.1,-49.1 -79.6,-61.2 -11.5,-5.1 -16,-5.7 -22.2,-2.7 -8.3,4 -10.8,14.8 -5.5,23.4 1.8,2.8 4.9,4.9 15.9,10.5 23.7,12 39.5,23.4 56.3,40.8 46.3,47.8 65.5,113.4 52.4,178.9 -12.3,61.2 -53,113.2 -109.6,140.3 -55.2,26.4 -120.6,26.4 -175.8,-0 -113.3,-54.2 -149.2,-198.6 -74.3,-299.2 19.3,-25.9 42.4,-45.1 73.4,-60.8 11,-5.6 14.1,-7.7 15.9,-10.5 5.2,-8.5 2.7,-19.4 -5.3,-23.3 -6.1,-2.9 -9.9,-2.6 -19.8,1.4z"
android:fillColor="#ffffff"
android:strokeColor="#00000000"/>
</vector> </vector>
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:height="26dp"
android:width="26dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:pathData="M249.5,2.7c-4.6,2.4 -6.6,4.5 -8.6,8.8 -1.8,3.8 -1.9,9.1 -1.9,103.4 0,99.3 0,99.5 2.1,103.9 5.8,11.8 22.4,12.9 29.7,1.9l2.7,-4.1 0.3,-99.5c0.2,-67.4 0,-100.8 -0.7,-103.2 -3,-10.1 -15,-15.8 -23.6,-11.2z"
android:fillColor="#ffffff"
android:strokeColor="#ffffff"/>
<path
android:pathData="M158,61.5c-20.9,8.7 -45.6,25.4 -65.4,44.5 -33.3,32 -58.1,76.8 -67,121 -7.3,36.1 -7.3,61.2 0,97 5.6,27.2 18.5,58.2 34.2,81.5 37.9,56.6 95.7,93.2 162.7,103.1 16.6,2.5 50.4,2.5 67,-0 77.8,-11.5 143.7,-59.7 178.1,-130.1 12.1,-24.9 19.2,-49.5 22.9,-79.7 2.7,-22.7 1.5,-43.9 -4.1,-71.8 -7.2,-35.8 -25.7,-73.8 -50.2,-103.1 -21.3,-25.4 -52.1,-49.1 -79.6,-61.2 -11.5,-5.1 -16,-5.7 -22.2,-2.7 -8.3,4 -10.8,14.8 -5.5,23.4 1.8,2.8 4.9,4.9 15.9,10.5 23.7,12 39.5,23.4 56.3,40.8 46.3,47.8 65.5,113.4 52.4,178.9 -12.3,61.2 -53,113.2 -109.6,140.3 -55.2,26.4 -120.6,26.4 -175.8,-0 -113.3,-54.2 -149.2,-198.6 -74.3,-299.2 19.3,-25.9 42.4,-45.1 73.4,-60.8 11,-5.6 14.1,-7.7 15.9,-10.5 5.2,-8.5 2.7,-19.4 -5.3,-23.3 -6.1,-2.9 -9.9,-2.6 -19.8,1.4z"
android:fillColor="#ffffff"
android:strokeColor="#00000000"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="80dp"
android:height="80dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:pathData="M237.5,2.1c-60.6,4.3 -118.1,30.7 -161.4,74 -99.4,99.4 -99.4,260.4 0,359.8 99.4,99.4 260.4,99.4 359.8,-0 99.4,-99.4 99.4,-260.4 0,-359.8 -44.1,-44.1 -100.7,-69.7 -163.9,-74.1 -16,-1.1 -17.3,-1.1 -34.5,0.1zM318.7,146.2l36.3,36.3 0,27.5 0,27.5 4.8,2.5c7,3.7 17.1,14.3 21.4,22.6 4.9,9.3 6.8,16.9 6.8,27.2 0,10.4 -2.1,18.9 -6.9,27.8l-3.8,6.9 23,23.8 23,23.8 -3.8,3.9c-2.2,2.2 -4.4,4 -5,4 -0.5,-0 -11.3,-10.3 -23.8,-22.9l-22.8,-22.8 -6.4,4.1 -6.4,4.1 0,29.2 -0.1,29.3 -111.5,-0 -111.5,-0 0,-145.5 0,-145.5 75.2,-0 75.3,-0 36.2,36.2z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
<path
android:pathData="M146.8,256l-0.3,131 97.3,-0 97.2,-0 0,-19.8 0,-19.7 -8.7,0.3c-17.3,0.7 -31.6,-5 -43.9,-17.3 -8.3,-8.3 -13.6,-18 -15.9,-29 -1.8,-8.8 -1.8,-14.2 0,-23 4.3,-20.6 20,-37.8 40,-44.1 7,-2.2 9.7,-2.5 18.3,-2.2l10.2,0.3 0,-20.3 0,-20.2 -34,-0 -34,-0 0,-33.5 0,-33.5 -63,-0 -63,-0 -0.2,131zM287,222.5l0,7.5 -60.5,-0 -60.5,-0 0,-7.5 0,-7.5 60.5,-0 60.5,-0 0,7.5zM253,256.5l0,7.5 -43.5,-0 -43.5,-0 0,-7.5 0,-7.5 43.5,-0 43.5,-0 0,7.5zM252.5,291l0,7.5 -43.2,0.3 -43.3,0.2 0,-7.3c0,-4.1 0.3,-7.7 0.7,-8 0.3,-0.4 19.8,-0.6 43.2,-0.5l42.6,0.3 0,7.5zM253,325.5l0,7.5 -43.5,-0 -43.5,-0 0,-7.5 0,-7.5 43.5,-0 43.5,-0 0,7.5z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
<path
android:pathData="M285,155.4l0,25.6 25,-0c13.8,-0 25,-0.3 25,-0.6 0,-0.4 -11.2,-11.9 -25,-25.7l-25,-25 0,25.7z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
<path
android:pathData="M318.7,247.1c-10.9,2.6 -23.7,13 -28.7,23.4 -13,27.2 3.6,58.9 33.3,63.5 19.4,3 38.3,-7.4 47,-25.8 3,-6.3 3.2,-7.4 3.2,-17.7 0,-9.2 -0.4,-12 -2.4,-16.8 -4.7,-11.8 -15.8,-22 -27.9,-25.7 -6.8,-2.1 -17.7,-2.5 -24.5,-0.9zM357.4,272.1c1.8,1.4 2.6,3 2.6,5 0,3.4 -1.3,4.8 -19.2,21.8 -15.2,14.3 -15.2,14.3 -26.5,2.8 -4.5,-4.5 -8.7,-9.4 -9.2,-11 -1.9,-4.9 1.5,-9.7 6.9,-9.7 1.2,-0 4.7,2.4 8.1,5.7l6,5.7 4.2,-4c2.3,-2.2 7.6,-7.2 11.8,-11.2 8.4,-7.9 10.8,-8.7 15.3,-5.1z"
android:fillColor="#1c81ce"
android:strokeColor="#1c81ce"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="80dp"
android:height="80dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:pathData="M237.5,2.1c-60.6,4.3 -118.1,30.7 -161.4,74 -99.4,99.4 -99.4,260.4 0,359.8 99.4,99.4 260.4,99.4 359.8,-0 99.4,-99.4 99.4,-260.4 0,-359.8 -44.1,-44.1 -100.7,-69.7 -163.9,-74.1 -16,-1.1 -17.3,-1.1 -34.5,0.1zM404.2,114.7c11.8,11.8 15.8,16.4 15.8,18.2 0,1.8 -4,6.4 -15.2,17.8 -8.4,8.5 -16.3,15.6 -17.6,16 -2.8,0.7 -9.2,-4.9 -9.2,-8.1 0,-1.2 3.3,-5.4 8.2,-10.3l8.3,-8.3 -39,-0 -38.9,-0 5.9,3.7c52.9,32.5 76,95.3 56.5,153.2 -13.6,40.5 -49.2,73.5 -90.6,84 -15.6,4 -23.1,4.3 -97.8,4.2l-71.9,-0.1 8.1,8.4c4.9,4.9 8.2,9.2 8.2,10.4 0,3.2 -4.8,8.2 -7.8,8.2 -3.8,-0 -34.2,-30.3 -34.2,-34 0,-3.4 30.4,-34 33.8,-34 3,-0 8.2,5.1 8.2,8 0,1.4 -3,5.3 -8.2,10.6l-8.2,8.4 39.5,-0 39.4,-0.1 -5.4,-3.2c-42.4,-25.2 -67.2,-70.9 -64.7,-119.2 2.9,-56.7 42.3,-104.7 97.4,-119 15.3,-4 29.3,-4.6 102,-4.3 36.9,0.2 67.2,0.1 67.2,-0.2 0,-0.3 -3.6,-4.1 -8,-8.5 -4.4,-4.4 -8,-8.7 -8,-9.6 0,-1 1.2,-3.1 2.6,-4.8 4.7,-5.6 6.1,-4.8 23.6,12.6z"
android:fillColor="#1c81ce"
android:strokeColor="#00000000"/>
<path
android:pathData="M249.5,140.6c-27.9,2.4 -51.5,12.6 -71.3,30.9 -36.5,33.9 -46.5,89.5 -24.1,134.8 5.5,11.1 11.1,19 20.7,28.9 44.4,46.1 119,46.1 163.4,-0 20.1,-20.8 30.7,-44.8 32.4,-73.3 3.2,-52.4 -30.1,-100.7 -80.1,-116.2 -12.1,-3.7 -30.1,-6 -41,-5.1zM325.5,193.4c1.4,2 1.5,9.6 1.3,62.8 -0.3,49.5 -0.5,60.8 -1.7,62.1 -1.2,1.6 -7.3,1.7 -68.6,1.7 -61.3,-0 -67.4,-0.1 -68.6,-1.7 -1.2,-1.3 -1.4,-12.6 -1.7,-62.1 -0.2,-53.2 -0.1,-60.8 1.3,-62.8l1.5,-2.4 67.5,-0 67.5,-0 1.5,2.4z"
android:fillColor="#1c81ce"
android:strokeColor="#00000000"/>
<path
android:pathData="M198,255.5l0,53.5 58.5,-0 58.5,-0 0,-53.5 0,-53.5 -17.5,-0 -17.5,-0 0,23.3c0,19.4 -0.3,23.6 -1.6,25.5 -2.3,3.4 -5.8,2.7 -13.9,-2.8 -4.1,-2.8 -7.7,-5 -8,-5 -0.3,-0 -3.9,2.2 -8,5 -8.1,5.5 -11.6,6.2 -13.9,2.8 -1.3,-1.9 -1.6,-6.1 -1.6,-25.5l0,-23.3 -17.5,-0 -17.5,-0 0,53.5zM245,272c2.4,2.4 2.5,4.8 0.4,7.8 -1.5,2.1 -2.1,2.2 -18,2.2 -9.5,-0 -17.4,-0.4 -18.5,-1 -2.4,-1.3 -2.6,-6.6 -0.2,-9.2 1.4,-1.6 3.4,-1.8 18,-1.8 15,-0 16.5,0.2 18.3,2zM228.2,289.7c2.2,2 2.4,6.6 0.2,8.7 -1.1,1.2 -3.6,1.6 -9.9,1.6 -9.2,-0 -11.5,-1.1 -11.5,-5.7 0,-4.9 2.4,-6.3 11.3,-6.3 6.1,-0 8.5,0.4 9.9,1.7z"
android:fillColor="#1c81ce"
android:strokeColor="#00000000"/>
<path
android:pathData="M244.8,219.4l-0.3,17.5 3,-2c1.7,-1.1 4.4,-2.7 6.2,-3.6 3.3,-1.7 4,-1.5 12.4,4l2.4,1.6 -0.3,-17.4 -0.3,-17.5 -11.4,-0 -11.4,-0 -0.3,17.4z"
android:fillColor="#1c81ce"
android:strokeColor="#00000000"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="20dp"
android:height="20dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:pathData="M246,3c-11.4,1.4 -26.3,4.8 -35.9,8.2 -35.1,12.4 -59.8,37.6 -71.5,72.9 -6.4,19.1 -6.8,24.4 -6.4,79.4l0.4,49 2.7,9.7c3.4,12.3 9.1,25.6 15.3,35.4 5,8.1 16.5,22.4 22.8,28.3l3.6,3.5 0,23.2 0,23.3 -19.2,9.7c-10.6,5.3 -31,15.2 -45.3,21.9 -31.1,14.5 -40.9,20.7 -55.6,35.4 -28,27.9 -40.8,62 -37.2,99.4l0.6,6.7 235.2,-0 235.2,-0 0.6,-6.8c4.5,-46.7 -17,-88.7 -59.8,-117.3 -4.5,-3 -10.3,-6.4 -13,-7.6 -2.8,-1.2 -12.2,-5.4 -21,-9.3 -16.1,-7.2 -33.9,-16.2 -53.7,-27.2l-10.8,-6 0,-25.1 0.1,-25.2 6,-4.5c16.4,-12.1 29.1,-35.7 36.2,-67 2,-8.8 2.1,-12.8 2.5,-55.4 0.4,-51.1 0.3,-51.4 -6.5,-71 -13.5,-38.8 -39.4,-65.6 -75,-77.7 -16.1,-5.4 -35.4,-7.7 -50.3,-5.9zM277.6,24.9c32.1,6.6 57.9,28.3 71.2,59.7 1.6,3.8 4.2,11.3 5.8,16.5l2.9,9.4 0,44.5c0,42.2 -0.1,45 -2.2,54.2 -7.1,31.4 -19.4,51.3 -37,60.2l-5.3,2.6 0,37.5 0,37.4 14.3,8.1c17.8,10.2 57.5,30.1 72.7,36.4 19.6,8.3 36.3,20.7 49,36.5 13.6,17 19.9,32.5 22.5,55.3l0.6,5.8 -216.6,-0 -216.6,-0 0.6,-5.8c2.3,-20.8 6.6,-32.4 18.1,-49.7 2.9,-4.5 8.4,-11.3 12.2,-15.1 14.3,-14.5 18.5,-17 72.9,-42.7 27.5,-13 45.3,-22.4 50.6,-26.8l3.7,-3 0,-33.7 0,-33.7 -3.5,-2.4c-5,-3.4 -15.5,-14.8 -21.5,-23.3 -9.7,-13.7 -15.8,-28.1 -18.5,-43.7 -1.8,-10 -2.1,-86 -0.5,-97.6 2.4,-16.3 9,-34.4 17,-46 4.9,-7.1 14.8,-17.2 21.5,-22 23.2,-16.4 59,-24.2 86.1,-18.6z"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
</vector>
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108"
android:tint="#000000">
<group android:scaleX="0.08477816"
android:scaleY="0.08477816"
android:translateX="29.16"
android:translateY="46.99587">
<group android:translateY="134.71875">
<path android:pathData="M9,-0L9,-103L40.609375,-103Q51.78125,-103,57.09375,-101.03125Q64.34375,-98.375,68.671875,-91.140625Q73,-83.921875,73,-73.40625Q73,-59.53125,65.9375,-50.765625Q58.875,-42,41.53125,-42L20,-42L20,-0L9,-0ZM20,-54L41.984375,-54Q52.390625,-54,57.1875,-58.6875Q62,-63.390625,62,-72.859375Q62,-79,59.625,-83.375Q57.265625,-87.75,53.90625,-89.375Q50.546875,-91,41.78125,-91L20,-91L20,-54Z"
android:fillColor="#000000"/>
<path android:pathData="M85,-50.125Q85,-76.578125,96.625,-90.78125Q108.25,-105,125.578125,-105Q136.76562,-105,145.98438,-98.640625Q155.21875,-92.296875,160.60938,-80.203125Q166,-68.109375,166,-51.390625Q166,-28.40625,155.57812,-13.9375Q144.09375,2,125.5,2Q106.765625,2,95.359375,-14.359375Q85,-29.171875,85,-50.125ZM96,-49.953125Q96,-30.953125,104.578125,-20.46875Q113.15625,-10,125.421875,-10Q137.98438,-10,146.48438,-20.578125Q155,-31.171875,155,-51.703125Q155,-64.953125,150.625,-75.40625Q147.25,-83.390625,140.46875,-88.1875Q133.6875,-93,125.640625,-93Q112.71875,-93,104.359375,-82.484375Q96,-71.96875,96,-49.953125Z"
android:fillColor="#000000"/>
<path android:pathData="M177,-33L187,-34Q187.84375,-25.40625,190.82812,-20.609375Q193.82812,-15.828125,199.39062,-12.90625Q204.96875,-10,211.9375,-10Q221.9375,-10,227.46875,-14.984375Q233,-19.96875,233,-27.9375Q233,-32.59375,231.01562,-36.0625Q229.03125,-39.546875,225.03125,-41.765625Q221.04688,-44,207.76562,-47.75Q195.9375,-51.109375,190.8125,-54.71875Q185.6875,-58.328125,182.84375,-63.875Q180,-69.421875,180,-76.421875Q180,-89.015625,188.01562,-97Q196.03125,-105,209.625,-105Q218.96875,-105,225.96875,-101.25Q232.98438,-97.5,236.84375,-90.484375Q240.71875,-83.484375,241,-74L231,-73Q230.15625,-83.171875,224.98438,-88.078125Q219.82812,-93,210.46875,-93Q200.98438,-93,195.98438,-88.359375Q191,-83.71875,191,-76.359375Q191,-69.546875,194.29688,-65.78125Q197.57812,-62.03125,210.29688,-58.671875Q222.75,-55.390625,227.78125,-52.96875Q235.46875,-49.21875,239.73438,-42.96875Q244,-36.734375,244,-28.078125Q244,-19.484375,239.85938,-12.421875Q235.73438,-5.359375,228.625,-1.671875Q221.53125,2,211.51562,2Q195.90625,2,186.625,-7.4375Q177.34375,-16.875,177,-33Z"
android:fillColor="#000000"/>
<path android:pathData="M289,-33L299,-34Q299.84375,-25.40625,302.82812,-20.609375Q305.82812,-15.828125,311.39062,-12.90625Q316.96875,-10,323.9375,-10Q333.9375,-10,339.46875,-14.984375Q345,-19.96875,345,-27.9375Q345,-32.59375,343.01562,-36.0625Q341.03125,-39.546875,337.03125,-41.765625Q333.04688,-44,319.76562,-47.75Q307.9375,-51.109375,302.8125,-54.71875Q297.6875,-58.328125,294.84375,-63.875Q292,-69.421875,292,-76.421875Q292,-89.015625,300.01562,-97Q308.03125,-105,321.625,-105Q330.96875,-105,337.96875,-101.25Q344.98438,-97.5,348.84375,-90.484375Q352.71875,-83.484375,353,-74L343,-73Q342.15625,-83.171875,336.98438,-88.078125Q331.82812,-93,322.46875,-93Q312.98438,-93,307.98438,-88.359375Q303,-83.71875,303,-76.359375Q303,-69.546875,306.29688,-65.78125Q309.57812,-62.03125,322.29688,-58.671875Q334.75,-55.390625,339.78125,-52.96875Q347.46875,-49.21875,351.73438,-42.96875Q356,-36.734375,356,-28.078125Q356,-19.484375,351.85938,-12.421875Q347.73438,-5.359375,340.625,-1.671875Q333.53125,2,323.51562,2Q307.90625,2,298.625,-7.4375Q289.34375,-16.875,289,-33Z"
android:fillColor="#000000"/>
<path android:pathData="M362,0L394.26562,-103L405.67188,-103L439,0L427.51562,0L418.71875,-30L382.29688,-30L373.5,0L362,0ZM385.8125,-42L415.20312,-42L406.45312,-70.65625Q402.39062,-83.859375,400.5,-92.125Q398.78125,-82.171875,395.65625,-72.359375L385.8125,-42Z"
android:fillColor="#000000"/>
<path android:pathData="M450,0L450,-103L461,-103L461,-12L503,-12L503,0L450,0Z"
android:fillColor="#000000"/>
<path android:pathData="M516,0L516,-103L578,-103L578,-91L527,-91L527,-59L575,-59L575,-47L527,-47L527,-12L579,-12L579,0L516,0Z"
android:fillColor="#000000"/>
</group>
</group>
</vector>
\ No newline at end of file
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid
android:color="#FFFFFF" >
</solid>
<padding
android:left="2dp"
android:top="2dp"
android:right="2dp"
android:bottom="2dp">
</padding>
<corners
android:radius="3dp" >
</corners>
</shape>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bg">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_above="@+id/layout"
android:layout_alignParentTop="true">
<androidx.appcompat.widget.Toolbar
android:id="@+id/createdeliveryslip_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@drawable/background_all"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:contentInsetEnd="0dp"
app:contentInsetLeft="0dp"
app:contentInsetRight="0dp"
app:contentInsetStart="0dp"
app:contentInsetStartWithNavigation="0dp"
app:elevation="0dp"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:theme="@style/ThemeOverlay.AppCompat"
app:titleTextAppearance="@style/Toolbartitleheader"
app:titleTextColor="@android:color/white"></androidx.appcompat.widget.Toolbar>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
app:cardCornerRadius="3dp">
<LinearLayout
android:id="@+id/header_items"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:orientation="horizontal">
<TextView
android:id="@+id/totalItems"
style="@style/textfont"
android:layout_width="0dp"
android:textStyle="bold"
android:layout_height="wrap_content"
android:layout_weight="0.50" />
<TextView
android:id="@+id/totalMrp"
style="@style/textfont"
android:layout_width="0dp"
android:textStyle="bold"
android:layout_height="wrap_content"
android:layout_weight="0.50" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:orientation="horizontal">
<TextView
android:id="@+id/totalDis"
style="@style/textfont"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.50"
android:text="Total Disc"
android:visibility="invisible" />
<TextView
android:id="@+id/totalNetMrp"
style="@style/textfont"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.50"
android:text="Net MRP"
android:visibility="invisible" />
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:orientation="horizontal"
android:weightSum="1">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/checked"/>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.30">
<EditText
android:id="@+id/emp_id"
style="@style/textfont"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:hint="Sales Person"
android:singleLine="true"
android:textColor="@android:color/black" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.70">
<EditText
android:id="@+id/barcode_enter"
style="@style/textfont"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:hint="Barcode"
android:singleLine="true"
android:textColor="@android:color/black" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
</LinearLayout>
<!-- <androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/bg">
</androidx.cardview.widget.CardView> -->
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/deliveryslip_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="3dp"
android:layout_above="@+id/layout">
</androidx.recyclerview.widget.RecyclerView>
</LinearLayout>
<LinearLayout
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true">
<Button
android:id="@+id/valid"
style="@style/textfont"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_margin="3dp"
android:background="@drawable/background_all"
android:text="@string/resolve_promotions"
android:textColor="@android:color/white"
android:visibility="gone" />
<Button
android:id="@+id/valid_print"
style="@style/textfont"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_margin="3dp"
android:background="@drawable/background_all"
android:text="@string/print"
android:textColor="@android:color/white"
android:visibility="gone" />
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
android:layout_margin="10dp" android:layout_margin="10dp"
style="@style/headerfont" style="@style/headerfont"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:background="@drawable/background_all" android:background="@drawable/button_background"
android:padding="10dp"/> android:padding="10dp"/>
<Button <Button
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
android:layout_margin="10dp" android:layout_margin="10dp"
style="@style/headerfont" style="@style/headerfont"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:background="@drawable/background_all" android:background="@drawable/button_background"
android:padding="10dp"/> android:padding="10dp"/>
<Button <Button
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
android:layout_margin="10dp" android:layout_margin="10dp"
style="@style/headerfont" style="@style/headerfont"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:background="@drawable/background_all" android:background="@drawable/button_background"
android:padding="10dp"/> android:padding="10dp"/>
......
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:background="#FFFFFF"> android:orientation="vertical"
android:background="#FFFFFF">
<Button <Button
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
app:contentInsetStart="0dp" app:contentInsetStart="0dp"
app:contentInsetStartWithNavigation="0dp" app:contentInsetStartWithNavigation="0dp"
app:titleTextColor="@android:color/white" app:titleTextColor="@android:color/white"
app:titleTextAppearance="@style/Toolbartitleheader"> app:titleTextAppearance="@style/headerfont">
</androidx.appcompat.widget.Toolbar> </androidx.appcompat.widget.Toolbar>
...@@ -146,6 +146,7 @@ ...@@ -146,6 +146,7 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/menu_list" android:id="@+id/menu_list"
android:layout_margin="10dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"/> android:layout_height="match_parent"/>
......
<?xml version="1.0" encoding="utf-8"?> <?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"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto" android:background="@drawable/background_all"
android:orientation="vertical"> android:orientation="vertical"
android:weightSum="1">
<androidx.appcompat.widget.Toolbar <!--<androidx.appcompat.widget.Toolbar
android:id="@+id/login_toolbar" android:id="@+id/login_toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"
android:background="@drawable/background_all" android:background="@drawable/background_all"
app:elevation="0dp"
app:contentInsetEnd="0dp" app:contentInsetEnd="0dp"
app:contentInsetLeft="0dp" app:contentInsetLeft="0dp"
app:contentInsetRight="0dp" app:contentInsetRight="0dp"
app:contentInsetStart="0dp" app:contentInsetStart="0dp"
app:contentInsetStartWithNavigation="0dp" app:contentInsetStartWithNavigation="0dp"
app:elevation="0dp"
app:titleTextAppearance="@style/Toolbartitleheader" app:titleTextAppearance="@style/Toolbartitleheader"
app:titleTextColor="@android:color/white"> app:titleTextColor="@android:color/white">
</androidx.appcompat.widget.Toolbar>-->
</androidx.appcompat.widget.Toolbar>
<!-- <ImageView <!-- <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
...@@ -28,31 +29,68 @@ ...@@ -28,31 +29,68 @@
android:background="@drawable/smart_login" android:background="@drawable/smart_login"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginTop="50dp"/>--> android:layout_marginTop="50dp"/>-->
<!-- <LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.40"
android:gravity="center">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/pos_logo"
android:layout_gravity="center"/>&ndash;&gt;
</LinearLayout>-->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="0.60"
android:gravity="center"
>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="10dp"
android:layout_margin="20dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical" android:orientation="vertical"
android:gravity="center"> android:layout_margin="10dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LOGIN"
android:gravity="center"
style="@style/headerfont"
android:layout_marginTop="30dp"/>
<com.google.android.material.textfield.TextInputLayout <com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/userId"> android:hint="@string/userId">
<EditText <EditText
android:id="@+id/userId" android:id="@+id/userId"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:layout_marginRight="15dp" android:layout_marginRight="15dp"
android:drawableRight="@drawable/ic_user"
android:inputType="number" android:inputType="number"
style="@style/textfont"
android:textAllCaps="false" /> android:textAllCaps="false" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout <com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/userIdPassword" > android:hint="@string/userIdPassword">
<EditText <EditText
android:id="@+id/password" android:id="@+id/password"
...@@ -60,7 +98,9 @@ ...@@ -60,7 +98,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:layout_marginRight="15dp" android:layout_marginRight="15dp"
android:inputType="textPassword"/> android:drawableRight="@drawable/ic_password"
style="@style/textfont"
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
...@@ -75,15 +115,21 @@ ...@@ -75,15 +115,21 @@
<Button <Button
android:id="@+id/submit" android:id="@+id/submit"
style="@style/textfont"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:layout_marginRight="15dp" android:layout_marginRight="15dp"
android:background="@drawable/background_all" android:background="@drawable/button_background"
android:text="LOGIN"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:text="Submit" app:cornerRadius="5dp"
style="@style/textfont"/> android:layout_marginBottom="30dp"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout> </LinearLayout>
......
<?xml version="1.0" encoding="utf-8"?> <?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"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -32,6 +33,7 @@ ...@@ -32,6 +33,7 @@
android:textColor="@android:color/black" android:textColor="@android:color/black"
style="@style/textfont" style="@style/textfont"
/> />
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:id="@+id/plandetails_name" android:id="@+id/plandetails_name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
...@@ -40,6 +42,7 @@ ...@@ -40,6 +42,7 @@
android:textColor="@android:color/black" android:textColor="@android:color/black"
style="@style/textfont" style="@style/textfont"
/> />
<!--<androidx.appcompat.widget.AppCompatTextView <!--<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/plandetails_division" android:id="@+id/plandetails_division"
android:layout_width="wrap_content" android:layout_width="wrap_content"
...@@ -48,6 +51,7 @@ ...@@ -48,6 +51,7 @@
android:textColor="@android:color/black" android:textColor="@android:color/black"
style="@style/textfont" style="@style/textfont"
/> />
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:id="@+id/plandetails_section" android:id="@+id/plandetails_section"
android:layout_width="wrap_content" android:layout_width="wrap_content"
...@@ -61,12 +65,14 @@ ...@@ -61,12 +65,14 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:orientation="horizontal">
<RadioGroup <RadioGroup
android:id="@+id/radio_group" android:id="@+id/radio_group"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:weightSum="1"> android:weightSum="1">
<androidx.appcompat.widget.AppCompatRadioButton <androidx.appcompat.widget.AppCompatRadioButton
android:id="@+id/pieces" android:id="@+id/pieces"
android:layout_width="0dp" android:layout_width="0dp"
...@@ -76,6 +82,7 @@ ...@@ -76,6 +82,7 @@
android:checked="true" android:checked="true"
android:onClick="PiecesClicked" android:onClick="PiecesClicked"
style="@style/textfont"/> style="@style/textfont"/>
<androidx.appcompat.widget.AppCompatRadioButton <androidx.appcompat.widget.AppCompatRadioButton
android:id="@+id/meters" android:id="@+id/meters"
android:layout_width="0dp" android:layout_width="0dp"
...@@ -84,6 +91,7 @@ ...@@ -84,6 +91,7 @@
android:text="@string/meters" android:text="@string/meters"
android:onClick="MetersClicked" android:onClick="MetersClicked"
style="@style/textfont"/> style="@style/textfont"/>
</RadioGroup> </RadioGroup>
</LinearLayout> </LinearLayout>
...@@ -138,17 +146,17 @@ ...@@ -138,17 +146,17 @@
<androidx.appcompat.widget.AppCompatEditText <androidx.appcompat.widget.AppCompatEditText
android:id="@+id/rack_number" android:id="@+id/rack_number"
style="@style/headerfont"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_marginRight="1dp"
android:hint="@string/rack" android:hint="@string/rack"
style="@style/headerfont" android:maxLines="2"
android:inputType="number" android:inputType="number|text"/>
android:singleLine="true"/>
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>
<androidx.appcompat.widget.AppCompatEditText <androidx.appcompat.widget.AppCompatEditText
...@@ -168,30 +176,31 @@ ...@@ -168,30 +176,31 @@
android:orientation="horizontal" android:orientation="horizontal"
android:weightSum="1" android:weightSum="1"
android:layout_margin="3dp"> android:layout_margin="3dp">
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/barcode" android:text="@string/barcode"
android:layout_weight="0.33" android:layout_weight="0.33"
android:textColor="@android:color/black" android:textColor="@android:color/black"
style="@style/headerfont" style="@style/headerfont"/>
/>
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/qty" android:text="@string/qty"
android:layout_weight="0.33" android:layout_weight="0.33"
android:textColor="@android:color/black" android:textColor="@android:color/black"
style="@style/headerfont" style="@style/headerfont"/>
/>
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.33" android:layout_weight="0.33"
android:textColor="@android:color/black" android:textColor="@android:color/black"/>
/>
</LinearLayout> </LinearLayout>
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -202,8 +211,7 @@ ...@@ -202,8 +211,7 @@
android:id="@+id/barcode_recylerview" android:id="@+id/barcode_recylerview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_above="@+id/ScanComplete" android:layout_above="@+id/ScanComplete"/>
/>
<androidx.appcompat.widget.AppCompatButton <androidx.appcompat.widget.AppCompatButton
android:id="@+id/ScanComplete" android:id="@+id/ScanComplete"
...@@ -214,6 +222,7 @@ ...@@ -214,6 +222,7 @@
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
style="@style/textfont"/> style="@style/textfont"/>
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:background="@drawable/background_all" android:background="@drawable/splashscreen">
android:gravity="center">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_back_foreground"/>
<ProgressBar <ProgressBar
android:id="@+id/progress_circular" android:id="@+id/progress_circular"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="20dp"/> android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="150dp"
/>
<!-- <androidx.appcompat.widget.AppCompatTextView <!-- <androidx.appcompat.widget.AppCompatTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,4 @@
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:textAppearance="@style/textfont"/>--> android:textAppearance="@style/textfont"/>-->
</LinearLayout> </RelativeLayout>
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_margin="5dp" android:layout_margin="5dp"
android:background="@color/bg" android:background="@color/bg"
app:cardCornerRadius="3dp"> app:cardCornerRadius="5dp">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -20,20 +20,21 @@ ...@@ -20,20 +20,21 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/textfont" style="@style/textfont"
android:textStyle="bold" android:textStyle="bold"
android:layout_margin="5dp"/> android:layout_marginTop="14dp"
android:layout_marginLeft="14dp"/>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:weightSum="1" android:weightSum="1"
android:layout_margin="5dp"> android:layout_margin="14dp">
<TextView <TextView
android:id="@+id/create_barcode" android:id="@+id/create_barcode"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.50" android:layout_weight="0.60"
android:layout_marginRight="5dp" android:layout_marginRight="5dp"
style="@style/textfont"/> style="@style/textfont"/>
...@@ -41,7 +42,7 @@ ...@@ -41,7 +42,7 @@
android:id="@+id/create_empid" android:id="@+id/create_empid"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.50" android:layout_weight="0.40"
android:layout_marginLeft="5dp" android:layout_marginLeft="5dp"
style="@style/textfont"/> style="@style/textfont"/>
...@@ -57,13 +58,13 @@ ...@@ -57,13 +58,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:weightSum="1" android:weightSum="1"
android:layout_margin="5dp"> android:layout_margin="14dp">
<TextView <TextView
android:id="@+id/create_mrp" android:id="@+id/create_mrp"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.50" android:layout_weight="0.60"
android:layout_marginRight="5dp" android:layout_marginRight="5dp"
style="@style/textfont"/> style="@style/textfont"/>
...@@ -71,7 +72,7 @@ ...@@ -71,7 +72,7 @@
android:id="@+id/create_dis" android:id="@+id/create_dis"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.50" android:layout_weight="0.40"
android:layout_marginLeft="5dp" android:layout_marginLeft="5dp"
style="@style/textfont"/> style="@style/textfont"/>
</LinearLayout> </LinearLayout>
...@@ -88,7 +89,7 @@ ...@@ -88,7 +89,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
style="@style/textfont" style="@style/textfont"
android:layout_margin="5dp"/> android:layout_margin="10dp"/>
</LinearLayout> </LinearLayout>
......
...@@ -6,21 +6,22 @@ ...@@ -6,21 +6,22 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@android:color/white" android:background="@android:color/white"
app:cardCornerRadius="3dp" app:cardCornerRadius="3dp"
android:layout_margin="3dp"> android:layout_margin="10dp">
<LinearLayout <LinearLayout
android:id="@+id/layout" android:id="@+id/layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:gravity="center" android:layout_margin="5dp">
android:layout_margin="15dp">
<ImageView <ImageView
android:id="@+id/menu_image" android:id="@+id/menu_image"
android:src="@mipmap/ic_launcher" android:src="@mipmap/ic_launcher"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="15dp"/>
<TextView <TextView
android:id="@+id/menu_name" android:id="@+id/menu_name"
...@@ -28,6 +29,8 @@ ...@@ -28,6 +29,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/textfont" style="@style/textfont"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:layout_gravity="center"
android:layout_marginBottom="5dp"
android:text="name"/> android:text="name"/>
</LinearLayout> </LinearLayout>
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
app:cardCornerRadius="3dp" app:cardCornerRadius="3dp"
android:layout_margin="5dp"> android:layout_margin="5dp">
<LinearLayout
<LinearLayout
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
...@@ -17,26 +18,39 @@ ...@@ -17,26 +18,39 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="3dp" android:layout_margin="3dp"
android:textColor="@android:color/black" android:textColor="@android:color/black"
style="@style/textfont" style="@style/textfont"/>
/>
<TextView <TextView
android:id="@+id/plan_name" android:id="@+id/plan_name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="3dp" android:layout_margin="3dp"
android:textColor="@android:color/black" android:textColor="@android:color/black"
style="@style/textfont" style="@style/textfont"/>
/>
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp"> android:layout_marginTop="10dp"
android:layout_gravity="center">
<EditText
android:id="@+id/rack_no"
style="@style/textfont"
android:layout_width="80dp"
android:layout_height="50dp"
android:layout_marginRight="15dp"
android:layout_toLeftOf="@+id/view_section"
android:hint="Rack No"
android:inputType="number"
android:textColor="@android:color/black" />
<Button <Button
android:id="@+id/view_section" android:id="@+id/view_section"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="35dp" android:layout_height="wrap_content"
android:text="@string/view" android:text="@string/view"
android:textAllCaps="false" android:textAllCaps="false"
android:layout_toLeftOf="@+id/start_scan" android:layout_toLeftOf="@+id/start_scan"
...@@ -49,20 +63,15 @@ ...@@ -49,20 +63,15 @@
<Button <Button
android:id="@+id/start_scan" android:id="@+id/start_scan"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="35dp" android:layout_height="wrap_content"
android:text="@string/startscan" android:text="@string/startscan"
android:textAllCaps="false" android:textAllCaps="false"
android:layout_gravity="right" android:layout_gravity="right"
style="@style/textfont" style="@style/textfont"
android:background="@drawable/background_all" android:background="@drawable/background_all"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:layout_alignParentRight="true" android:layout_alignParentRight="true">
></Button> </Button>
</RelativeLayout> </RelativeLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
\ No newline at end of file
</LinearLayout>
</androidx.cardview.widget.CardView>
\ No newline at end of file
...@@ -9,13 +9,14 @@ ...@@ -9,13 +9,14 @@
<RelativeLayout <RelativeLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@color/colorPrimary" android:background="@color/colorAccent"
> >
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Bluetooth Devices List" android:text="Bluetooth Devices List"
android:layout_margin="10dp" android:layout_margin="10dp"
style="@style/headerfont"
android:textColor="@android:color/white"/> android:textColor="@android:color/white"/>
<ImageView <ImageView
......
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
style="@style/textfont"
android:textAppearance="?android:attr/textAppearanceLargePopupMenu"
android:singleLine="true"
android:layout_width="match_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:text="Spinner"
android:paddingLeft="10dp"
android:paddingTop="22dp"
android:ellipsize="marquee" />
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/icon_background"/>
<foreground android:drawable="@drawable/icon_foreground"/>
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/icon_background"/>
<foreground android:drawable="@drawable/icon_foreground"/>
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<color name="colorPrimary">#2C0465</color> <color name="colorPrimary">#2C0465</color>
<color name="colorPrimaryDark">#3700B3</color> <color name="colorPrimaryDark">#007cde</color>
<color name="colorAccent">#2C0465</color> <color name="colorAccent">#07c4a0</color>
<color name="bg">#6A95A5A6</color> <color name="bg">#6A95A5A6</color>
</resources> </resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="icon_background">#35DCD8</color>
</resources>
\ No newline at end of file
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<string name="no_stores">No Stores Available</string> <string name="no_stores">No Stores Available</string>
<string name="login">Login</string> <string name="login">Login</string>
<string name="dashboard">DashBoard</string> <string name="dashboard">DashBoard</string>
<string name="home">Home</string> <string name="home">HOME</string>
<string name="test">Plans List</string> <string name="test">Plans List</string>
<string name="spalsh">Splash Screen</string> <string name="spalsh">Splash Screen</string>
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
<string name="android_version">android_version</string> <string name="android_version">android_version</string>
<string name="plan_details">Plan Details</string> <string name="plan_details">Plan Details</string>
<string name="key">key</string> <string name="key">key</string>
<string name="Rack">rack</string>
<string name="action">action</string> <string name="action">action</string>
...@@ -72,6 +73,11 @@ ...@@ -72,6 +73,11 @@
<string name="totalqty">total_qty</string> <string name="totalqty">total_qty</string>
<string name="netpayable">net_payable</string> <string name="netpayable">net_payable</string>
<string name="totalDisc">total_items_promo_disc</string>
<string name="totalMrp">total_items_mrp</string>
<string name="printerName">PrinterName</string>
<string name="target">Target</string>
<!--<string name="section"><font color=#cc0029>SECTION :</font></string>--> <!--<string name="section"><font color=#cc0029>SECTION :</font></string>-->
......
<resources> <resources>
<!-- Base application theme. --> <!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item> <item name="colorAccent">@color/colorAccent</item>
...@@ -10,8 +9,9 @@ ...@@ -10,8 +9,9 @@
<style name="AppTheme.NoActionBar"> <style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item> <item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item> <item name="windowNoTitle">true</item>
<item name="android:windowDisablePreview">true</item>
</style> </style>
<style name="Toolbartitleheader"> <style name="Toolbartitleheader">
<item name="android:fontFamily">@font/whitneyhtf_book</item> <item name="android:fontFamily">@font/whitneyhtf_book</item>
<item name="android:textSize">18sp</item> <item name="android:textSize">18sp</item>
......
package w.soulofpluto.posstock; package w.soulofpluto.posstockaudit;
import org.junit.Test; import org.junit.Test;
......
...@@ -7,6 +7,7 @@ buildscript { ...@@ -7,6 +7,7 @@ buildscript {
dependencies { dependencies {
classpath "com.android.tools.build:gradle:4.0.1" classpath "com.android.tools.build:gradle:4.0.1"
classpath 'com.google.gms:google-services:4.3.10' classpath 'com.google.gms:google-services:4.3.10'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment