One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| buildscript { | |
| ext { | |
| compose_version = '1.1.1' | |
| } | |
| dependencies { | |
| classpath 'com.google.gms:google-services:4.3.14' | |
| } | |
| }// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
| plugins { | |
| id 'com.android.application' version '7.3.0' apply false |
| /* | |
| * Copyright 2017 Google Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | |
| * except in compliance with the License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software distributed under the | |
| * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| <?xml version="1.0" encoding="utf-8"?><!-- | |
| ~ Copyright (C) 2015 The Android Open Source Project | |
| ~ | |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); | |
| ~ you may not use this file except in compliance with the License. | |
| ~ You may obtain a copy of the License at | |
| ~ | |
| ~ http://www.apache.org/licenses/LICENSE-2.0 | |
| ~ | |
| ~ Unless required by applicable law or agreed to in writing, software |
| /* | |
| * Copyright (C) 2014 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /** | |
| * Created by Pamir on 09/03/2017. | |
| */ | |
| public class MyLinearLayout extends LinearLayout { | |
| private final float SCALE_PRESSED = 0.9f; | |
| private final float SCALE_NORMAL = 1.0f; | |
| private OnMyClickListener myOnClickListener; |
| public class MainActivity extends AppCompatActivity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| final WebView webview = (WebView) findViewById(R.id.webview); | |
| webview.getSettings().setJavaScriptEnabled(true); | |
| webview.loadUrl("http://xxx.xxx.xxx.xxx:yyyy/form"); |
| public class DraggableView extends Button { | |
| float dX; | |
| float dY; | |
| public DraggableView(Context context) { | |
| super(context); | |
| } | |
| public DraggableView(Context context, AttributeSet attrs) { |
| import android.app.Activity; | |
| import android.content.Intent; | |
| import android.net.Uri; | |
| import android.os.Environment; | |
| import android.provider.MediaStore; | |
| import android.support.v4.app.Fragment; | |
| import android.util.Log; | |
| import java.io.File; | |
| import java.io.IOException; |