(getApplicationContext(), R.layout.simple_list_item_1, myListItems);
42 | listView.setAdapter(adapter);
43 | listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
44 | @Override
45 | public void onItemClick(AdapterView> parent, View view, int position, long id) {
46 | MyListItem myListItem = (MyListItem) listView.getItemAtPosition(position);
47 | Intent myIntent = new Intent(getApplicationContext(), myListItem.getActivity_class());
48 | startActivity(myIntent);
49 | }
50 | });
51 | }
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/app/src/main/java/drag/list/activities/DraggingImageActivity.java:
--------------------------------------------------------------------------------
1 | package drag.list.activities;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.support.v7.widget.Toolbar;
6 | import android.widget.ImageView;
7 | import android.widget.ListView;
8 |
9 | import com.nimgade.pk.mytutorialapplication.R;
10 |
11 | public class DraggingImageActivity extends AppCompatActivity {
12 |
13 | private ListView listView;
14 | private ImageView imageView;
15 |
16 | @Override
17 | protected void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.activity_draging_image);
20 | Toolbar toolbar = (Toolbar) findViewById(R.id.my_custom_toolbar);
21 | setSupportActionBar(toolbar);
22 |
23 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
24 |
25 | initializeUI();
26 | }
27 |
28 | private void initializeUI() {
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/app/src/main/java/excel/test/module/classes/ColumnName.java:
--------------------------------------------------------------------------------
1 | package excel.test.module.classes;
2 |
3 | /**
4 | * Created by Pankaj Nimgade on 23-01-2016.
5 | */
6 | public enum ColumnName {
7 |
8 |
9 |
10 | STATION_NAME("STATION_NAME"), _id("_id"),
11 |
12 | // direction of Train in Vertical direction, get the Time
13 | FIRST_TRAIN_NORTHBOUND("FIRST_TRAIN_NORTHBOUND"), LAST_TRAIN_NORTHBOUND("LAST_TRAIN_NORTHBOUND"),
14 | FIRST_TRAIN_SOUTHBOUND("FIRST_TRAIN_SOUTHBOUND"), LAST_TRAIN_SOUTHBOUND("LAST_TRAIN_SOUTHBOUND"),
15 |
16 | // direction of Train in Vertical direction, get the Time
17 | FIRST_TRAIN_EASTBOUND("FIRST_TRAIN_EASTBOUND"), LAST_TRAIN_EASTBOUND("LAST_TRAIN_EASTBOUND"),
18 | FIRST_TRAIN_WESTBOUND("FIRST_TRAIN_WESTBOUND"), LAST_TRAIN_WESTBOUND("LAST_TRAIN_WESTBOUND"),
19 |
20 | // boolean values to be set for these columns
21 | ACCESSIBLE("ACCESSIBLE"), PRESTO_ENABLED("PRESTO_ENABLED"), TOKEN_VENDING_MACHINE("TOKEN_VENDING_MACHINE"),
22 | PASSENGER_PICK_UP_AND_DROP_OFF("PASSENGER_PICK_UP_AND_DROP_OFF"), BICYCLE_REPAIR_STOP("BICYCLE_REPAIR_STOP"),
23 | WASHROOMS("WASHROOMS"), WI_FI_ENABLED("WI_FI_ENABLED"), PASS_VENDING_MACHINE("PASS_VENDING_MACHINE"),
24 |
25 | //String values to be set for these values
26 | PLATFORM_TYPE("PLATFORM_TYPE"), STATION_OVERVIEW("STATION_OVERVIEW"),
27 | PARKING("PARKING"), LATITUDE("LATITUDE"), LONGITUDE("LONGITUDE"),
28 | DETAILS("DETAILS");
29 |
30 | private String column_name;
31 |
32 | private ColumnName(String column_name) {
33 | this.column_name = column_name;
34 | }
35 |
36 | @Override
37 | public String toString() {
38 | return column_name;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/app/src/main/java/excel/test/module/classes/SubwayLine.java:
--------------------------------------------------------------------------------
1 | package excel.test.module.classes;
2 |
3 | /**
4 | * Created by Pankaj Nimgade on 22-01-2016.
5 | *
6 | * This enumeration tells the four lines available in TTC
7 | */
8 | public enum SubwayLine {
9 | YONGE_UNIVERSITY_LINE, BLOOR_DANFORTH_LINE, SCARBOROUGH_LINE, SHEPPARD_LINE
10 | }
11 |
--------------------------------------------------------------------------------
/app/src/main/java/google/map/list/activities/GoogleMapElevenActivity.java:
--------------------------------------------------------------------------------
1 | package google.map.list.activities;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.FragmentTransaction;
5 | import android.support.v7.app.AppCompatActivity;
6 | import android.support.v7.widget.Toolbar;
7 |
8 | import com.google.android.gms.maps.GoogleMap;
9 | import com.google.android.gms.maps.OnMapReadyCallback;
10 | import com.google.android.gms.maps.SupportMapFragment;
11 | import com.google.android.gms.maps.model.LatLng;
12 | import com.google.android.gms.maps.model.MarkerOptions;
13 | import com.nimgade.pk.mytutorialapplication.R;
14 |
15 | public class GoogleMapElevenActivity extends AppCompatActivity implements OnMapReadyCallback {
16 |
17 | @Override
18 | protected void onCreate(Bundle savedInstanceState) {
19 | super.onCreate(savedInstanceState);
20 | setContentView(R.layout.activity_google_map_eleven);
21 | Toolbar toolbar = (Toolbar) findViewById(R.id.my_custom_toolbar);
22 | setSupportActionBar(toolbar);
23 |
24 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
25 |
26 | initializeUI();
27 | }
28 |
29 | private void initializeUI() {
30 |
31 | SupportMapFragment supportMapFragment = SupportMapFragment.newInstance();
32 | FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
33 | fragmentTransaction.add(R.id.GoogleMapElevenActivity_frame_layout, supportMapFragment);
34 | fragmentTransaction.commit();
35 | supportMapFragment.getMapAsync(this);
36 | }
37 |
38 | @Override
39 | public void onMapReady(GoogleMap googleMap) {
40 | googleMap.addMarker(new MarkerOptions().position(new LatLng(43.648398, -79.360153)).title("Toronto"));
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/app/src/main/java/google/map/list/activities/GoogleMapNineMarkersActivity.java:
--------------------------------------------------------------------------------
1 | package google.map.list.activities;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.support.v7.widget.Toolbar;
6 |
7 | import com.google.android.gms.maps.GoogleMap;
8 | import com.google.android.gms.maps.MapFragment;
9 | import com.google.android.gms.maps.OnMapReadyCallback;
10 | import com.google.android.gms.maps.model.LatLng;
11 | import com.google.android.gms.maps.model.Marker;
12 | import com.google.android.gms.maps.model.MarkerOptions;
13 | import com.nimgade.pk.mytutorialapplication.R;
14 |
15 | public class GoogleMapNineMarkersActivity extends AppCompatActivity implements OnMapReadyCallback {
16 |
17 | private GoogleMap googleMap;
18 |
19 | @Override
20 | protected void onCreate(Bundle savedInstanceState) {
21 | super.onCreate(savedInstanceState);
22 | setContentView(R.layout.activity_google_map_nine_markers);
23 | Toolbar toolbar = (Toolbar) findViewById(R.id.my_custom_toolbar);
24 | setSupportActionBar(toolbar);
25 |
26 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
27 |
28 | initializeUI();
29 | }
30 |
31 | private void initializeUI() {
32 | MapFragment mapFragment =
33 | (MapFragment) getFragmentManager().findFragmentById(R.id.GoogleMapNineMarkersActivity_map);
34 | mapFragment.getMapAsync(this);
35 | }
36 |
37 | @Override
38 | public void onMapReady(GoogleMap googleMap) {
39 | this.googleMap = googleMap;
40 |
41 | Marker first_Marker = googleMap.addMarker(new MarkerOptions()
42 | .position(new LatLng(10, 10))
43 | .title("Some title")
44 | .snippet(" sub title")
45 | .draggable(true));
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/app/src/main/java/google/map/list/activities/GoogleMapTenMarkersActivity.java:
--------------------------------------------------------------------------------
1 | package google.map.list.activities;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.support.v7.widget.Toolbar;
6 |
7 | import com.google.android.gms.maps.CameraUpdateFactory;
8 | import com.google.android.gms.maps.GoogleMap;
9 | import com.google.android.gms.maps.MapFragment;
10 | import com.google.android.gms.maps.OnMapReadyCallback;
11 | import com.google.android.gms.maps.model.CameraPosition;
12 | import com.google.android.gms.maps.model.LatLng;
13 | import com.google.android.gms.maps.model.Marker;
14 | import com.google.android.gms.maps.model.MarkerOptions;
15 | import com.nimgade.pk.mytutorialapplication.R;
16 |
17 | public class GoogleMapTenMarkersActivity extends AppCompatActivity implements OnMapReadyCallback {
18 |
19 | private GoogleMap googleMap;
20 | static final LatLng PERTH = new LatLng(-31.90, 115.86);
21 |
22 |
23 | @Override
24 | protected void onCreate(Bundle savedInstanceState) {
25 | super.onCreate(savedInstanceState);
26 | setContentView(R.layout.activity_google_map_ten_markers);
27 | Toolbar toolbar = (Toolbar) findViewById(R.id.my_custom_toolbar);
28 | setSupportActionBar(toolbar);
29 |
30 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
31 |
32 | initializeUI();
33 | }
34 |
35 | private void initializeUI() {
36 | MapFragment mapFragment =
37 | (MapFragment) getFragmentManager().findFragmentById(R.id.GoogleMapTenMarkersActivity_map);
38 | mapFragment.getMapAsync(this);
39 | }
40 |
41 | @Override
42 | public void onMapReady(GoogleMap googleMap) {
43 | this.googleMap = googleMap;
44 |
45 | CameraPosition cameraPosition = new CameraPosition.Builder().target(PERTH).zoom(14).bearing(150).tilt(45).build();
46 |
47 | googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition), 4000,null);
48 | Marker marker = googleMap.addMarker(new MarkerOptions().position(PERTH).flat(false));
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/app/src/main/java/google/map/list/activities/GoogleMapTestThreeActivity.java:
--------------------------------------------------------------------------------
1 | package google.map.list.activities;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.support.v7.widget.Toolbar;
6 |
7 | import com.google.android.gms.maps.CameraUpdateFactory;
8 | import com.google.android.gms.maps.GoogleMap;
9 | import com.google.android.gms.maps.MapFragment;
10 | import com.google.android.gms.maps.OnMapReadyCallback;
11 | import com.google.android.gms.maps.model.LatLng;
12 | import com.google.android.gms.maps.model.MarkerOptions;
13 | import com.nimgade.pk.mytutorialapplication.R;
14 |
15 | public class GoogleMapTestThreeActivity extends AppCompatActivity implements OnMapReadyCallback {
16 |
17 | @Override
18 | protected void onCreate(Bundle savedInstanceState) {
19 | super.onCreate(savedInstanceState);
20 | setContentView(R.layout.activity_google_map_test_three);
21 | Toolbar toolbar = (Toolbar) findViewById(R.id.my_custom_toolbar);
22 | setSupportActionBar(toolbar);
23 |
24 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
25 |
26 | initializeUI();
27 | }
28 |
29 | private void initializeUI() {
30 | MapFragment mapFragment =
31 | (MapFragment)getFragmentManager().findFragmentById(R.id.GoogleMapTestThreeActivity_map);
32 | mapFragment.getMapAsync(this);
33 | }
34 |
35 | @Override
36 | public void onMapReady(GoogleMap mMap) {
37 | // Add a marker in Sydney and move the camera
38 | LatLng sydney = new LatLng(-34, 151);
39 | mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney"));
40 | mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
41 | mMap.setPadding(0,150,150,0);
42 |
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/app/src/main/java/google/map/list/activities/GoogleMapTestTwoActivity.java:
--------------------------------------------------------------------------------
1 | package google.map.list.activities;
2 |
3 | import android.app.FragmentTransaction;
4 | import android.os.Bundle;
5 | import android.support.v7.app.AppCompatActivity;
6 | import android.support.v7.widget.Toolbar;
7 |
8 | import com.google.android.gms.maps.GoogleMap;
9 | import com.google.android.gms.maps.MapFragment;
10 | import com.google.android.gms.maps.OnMapReadyCallback;
11 | import com.google.android.gms.maps.model.LatLng;
12 | import com.google.android.gms.maps.model.MarkerOptions;
13 | import com.nimgade.pk.mytutorialapplication.R;
14 |
15 | public class GoogleMapTestTwoActivity extends AppCompatActivity implements OnMapReadyCallback{
16 |
17 |
18 | @Override
19 | protected void onCreate(Bundle savedInstanceState) {
20 | super.onCreate(savedInstanceState);
21 | setContentView(R.layout.activity_google_map_test_two);
22 | // Obtain the SupportMapFragment and get notified when the map is ready to be used.
23 | Toolbar toolbar = (Toolbar) findViewById(R.id.my_custom_toolbar);
24 | setSupportActionBar(toolbar);
25 |
26 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
27 |
28 | initializeUI();
29 | }
30 |
31 | private void initializeUI() {
32 | MapFragment mapFragment = MapFragment.newInstance();
33 | FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
34 | fragmentTransaction.add(R.id.GoogleMapTestTwoActivity_frame_layout_container, mapFragment);
35 | fragmentTransaction.commit();
36 | mapFragment.getMapAsync(this);
37 | }
38 |
39 |
40 | @Override
41 | public void onMapReady(GoogleMap googleMap) {
42 | googleMap.addMarker(new MarkerOptions().position(new LatLng(43.648398, -79.360153)).title("Toronto"));
43 |
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/app/src/main/java/google/map/list/activities/ZoomLevel.java:
--------------------------------------------------------------------------------
1 | package google.map.list.activities;
2 |
3 | /**
4 | * Created by Pankaj Nimgade on 05-02-2016.
5 | */
6 | public interface ZoomLevel {
7 |
8 | int WORLD = 1;
9 | int LANDMASS_CONTINENT = 5;
10 | int CITY = 10;
11 | int STREETS = 15;
12 | int BUILDINGS = 20;
13 | }
14 |
--------------------------------------------------------------------------------
/app/src/main/java/loaders/test/activities/LoaderTestOneActivity.java:
--------------------------------------------------------------------------------
1 | package loaders.test.activities;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.support.v7.widget.Toolbar;
6 |
7 | import com.nimgade.pk.mytutorialapplication.R;
8 |
9 | public class LoaderTestOneActivity extends AppCompatActivity {
10 |
11 | @Override
12 | protected void onCreate(Bundle savedInstanceState) {
13 | super.onCreate(savedInstanceState);
14 | setContentView(R.layout.activity_loader_test_one);
15 | Toolbar toolbar = (Toolbar) findViewById(R.id.my_custom_toolbar);
16 | setSupportActionBar(toolbar);
17 |
18 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/app/src/main/java/loaders/test/activities/LoadersListActivity.java:
--------------------------------------------------------------------------------
1 | package loaders.test.activities;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.support.v7.widget.Toolbar;
6 | import android.widget.ArrayAdapter;
7 | import android.widget.ListView;
8 |
9 | import com.nimgade.pk.mytutorialapplication.R;
10 |
11 | import java.util.ArrayList;
12 |
13 | import model.classes.MyListItem;
14 |
15 | public class LoadersListActivity extends AppCompatActivity {
16 |
17 | private ListView listView;
18 | private ArrayList loaders_MyListItems;
19 |
20 | @Override
21 | protected void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | setContentView(R.layout.activity_loaders_list);
24 | Toolbar toolbar = (Toolbar) findViewById(R.id.my_custom_toolbar);
25 | setSupportActionBar(toolbar);
26 |
27 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
28 |
29 | initializeUI();
30 | }
31 |
32 | private void initializeUI() {
33 | listView = (ListView) findViewById(R.id.LoadersListActivity_listView);
34 | loaders_MyListItems = new ArrayList<>();
35 | loaders_MyListItems.add(new MyListItem("Loader-Test-One",LoaderTestOneActivity.class));
36 |
37 | ArrayAdapter adapter = new ArrayAdapter(getApplicationContext(), R.layout.simple_list_item_1, loaders_MyListItems);
38 | listView.setAdapter(adapter);
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/app/src/main/java/miscellaneous/list/activities/CircleTransform.java:
--------------------------------------------------------------------------------
1 | package miscellaneous.list.activities;
2 |
3 | import android.graphics.Bitmap;
4 | import android.graphics.BitmapShader;
5 | import android.graphics.Canvas;
6 | import android.graphics.Paint;
7 |
8 | import com.squareup.picasso.Transformation;
9 |
10 | /**
11 | * Created by Pankaj Nimgade on 18-02-2016.
12 | */
13 | public class CircleTransform implements Transformation {
14 | @Override
15 | public Bitmap transform(Bitmap source) {
16 | int size = Math.min(source.getWidth(), source.getHeight());
17 |
18 | int x = (source.getWidth() - size) / 2;
19 | int y = (source.getHeight() - size) / 2;
20 |
21 | Bitmap squaredBitmap = Bitmap.createBitmap(source, x, y, size, size);
22 | if (squaredBitmap != source) {
23 | source.recycle();
24 | }
25 |
26 | Bitmap bitmap = Bitmap.createBitmap(size, size, source.getConfig());
27 |
28 | Canvas canvas = new Canvas(bitmap);
29 | Paint paint = new Paint();
30 | BitmapShader shader = new BitmapShader(squaredBitmap,
31 | BitmapShader.TileMode.CLAMP, BitmapShader.TileMode.CLAMP);
32 | paint.setShader(shader);
33 | paint.setAntiAlias(true);
34 |
35 | float r = size / 2f;
36 | canvas.drawCircle(r, r, r, paint);
37 |
38 | squaredBitmap.recycle();
39 | return bitmap;
40 | }
41 |
42 | @Override
43 | public String key() {
44 | return "circle";
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/app/src/main/java/miscellaneous/list/activities/ImageViewDynamicallyActivity.java:
--------------------------------------------------------------------------------
1 | package miscellaneous.list.activities;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.support.v7.widget.Toolbar;
6 | import android.view.ViewGroup;
7 | import android.widget.ImageView;
8 | import android.widget.LinearLayout;
9 |
10 | import com.nimgade.pk.mytutorialapplication.R;
11 | import com.squareup.picasso.Picasso;
12 |
13 | public class ImageViewDynamicallyActivity extends AppCompatActivity {
14 |
15 | @Override
16 | protected void onCreate(Bundle savedInstanceState) {
17 | super.onCreate(savedInstanceState);
18 | setContentView(R.layout.activity_image_view_dynamically);
19 | Toolbar toolbar = (Toolbar) findViewById(R.id.my_custom_toolbar);
20 | setSupportActionBar(toolbar);
21 |
22 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
23 |
24 | initializeUI();
25 | }
26 |
27 | private void initializeUI() {
28 | LinearLayout linearLayout = (LinearLayout) findViewById(R.id.ImageViewDynamicallyActivity_linear_layout);
29 |
30 | ImageView imageView = new ImageView(this);
31 |
32 | LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
33 | imageView.setLayoutParams(layoutParams);
34 |
35 | linearLayout.addView(imageView);
36 |
37 | Picasso.with(getApplicationContext()).load("http://image.3bmeteo.com/images/newarticles/w_663/immagine-nasa-visible-infrared-imaging-radiometer-suite-viirs-3bmeteo-66721.jpg").into(imageView);
38 |
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/app/src/main/java/miscellaneous/list/activities/OvalShapeActivity.java:
--------------------------------------------------------------------------------
1 | package miscellaneous.list.activities;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.support.v7.widget.Toolbar;
6 |
7 | import com.nimgade.pk.mytutorialapplication.R;
8 |
9 | public class OvalShapeActivity extends AppCompatActivity {
10 |
11 | @Override
12 | protected void onCreate(Bundle savedInstanceState) {
13 | super.onCreate(savedInstanceState);
14 | setContentView(R.layout.activity_oval_shape);
15 | Toolbar toolbar = (Toolbar) findViewById(R.id.my_custom_toolbar);
16 | setSupportActionBar(toolbar);
17 |
18 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
19 |
20 | initializeUI();
21 | }
22 |
23 | private void initializeUI() {
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/app/src/main/java/miscellaneous/list/activities/PercentTwoActivity.java:
--------------------------------------------------------------------------------
1 | package miscellaneous.list.activities;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 |
6 | import com.nimgade.pk.mytutorialapplication.R;
7 |
8 | public class PercentTwoActivity extends Activity {
9 |
10 | @Override
11 | protected void onCreate(Bundle savedInstanceState) {
12 | super.onCreate(savedInstanceState);
13 | setContentView(R.layout.activity_percent_two);
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/app/src/main/java/miscellaneous/list/activities/ShowImageActivity.java:
--------------------------------------------------------------------------------
1 | package miscellaneous.list.activities;
2 |
3 | import android.graphics.drawable.Drawable;
4 | import android.os.Bundle;
5 | import android.support.v7.app.AppCompatActivity;
6 | import android.support.v7.widget.Toolbar;
7 | import android.widget.ImageView;
8 |
9 | import com.nimgade.pk.mytutorialapplication.R;
10 |
11 | import uk.co.senab.photoview.PhotoViewAttacher;
12 |
13 | public class ShowImageActivity extends AppCompatActivity {
14 |
15 | ImageView mImageView;
16 | PhotoViewAttacher mAttacher;
17 |
18 | @Override
19 | protected void onCreate(Bundle savedInstanceState) {
20 | super.onCreate(savedInstanceState);
21 | setContentView(R.layout.activity_show_image);
22 | Toolbar toolbar = (Toolbar) findViewById(R.id.my_custom_toolbar);
23 | setSupportActionBar(toolbar);
24 |
25 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
26 |
27 | initializeUI();
28 | }
29 |
30 | private void initializeUI() {
31 |
32 | mImageView = (ImageView)findViewById(R.id.ShowImageActivity_imageView);
33 | Drawable bitmap = getResources().getDrawable(R.drawable.ttc_ride_guide);
34 | mImageView.setImageDrawable(bitmap);
35 |
36 | // Attach a PhotoViewAttacher, which takes care of all of the zooming functionality.
37 | mAttacher = new PhotoViewAttacher(mImageView);
38 | mAttacher.setMaximumScale(4.0f);
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/app/src/main/java/miscellaneous/list/activities/ShowImageTwoActivity.java:
--------------------------------------------------------------------------------
1 | package miscellaneous.list.activities;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.support.v7.widget.Toolbar;
6 |
7 | import com.davemorrissey.labs.subscaleview.ImageSource;
8 | import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView;
9 | import com.nimgade.pk.mytutorialapplication.R;
10 |
11 | public class ShowImageTwoActivity extends AppCompatActivity {
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.activity_show_image_two);
17 | Toolbar toolbar = (Toolbar) findViewById(R.id.my_custom_toolbar);
18 | setSupportActionBar(toolbar);
19 |
20 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
21 |
22 | initializeUI();
23 | }
24 |
25 | private void initializeUI() {
26 |
27 | SubsamplingScaleImageView imageView = (SubsamplingScaleImageView)findViewById(R.id.SubsamplingScaleImageView_imageView);
28 | imageView.setImage(ImageSource.asset("ttc_ride_guide_tile_one.png"));
29 | imageView.setDoubleTapZoomScale(3.0f);
30 | imageView.setMaxScale(3.0f);
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/app/src/main/java/miscellaneous/list/activities/TestPercentOneActivity.java:
--------------------------------------------------------------------------------
1 | package miscellaneous.list.activities;
2 |
3 | import android.os.Bundle;
4 | import android.app.Activity;
5 |
6 | import com.nimgade.pk.mytutorialapplication.R;
7 |
8 | public class TestPercentOneActivity extends Activity {
9 |
10 | @Override
11 | protected void onCreate(Bundle savedInstanceState) {
12 | super.onCreate(savedInstanceState);
13 | setContentView(R.layout.activity_test_percent_one);
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/app/src/main/java/model/classes/MyListItem.java:
--------------------------------------------------------------------------------
1 | package model.classes;
2 |
3 | /**
4 | * This helps in Making individual list item which can be feed to
5 | * ListView or RecyclerView to generate desired list.
6 | * This is just an example, and not a standard
7 | * Created by Pankaj Nimgade on 04-01-2016.
8 | */
9 | public class MyListItem {
10 |
11 | private String activity_name;
12 |
13 | private Class activity_class;
14 |
15 | public MyListItem(String activity_name, Class activity_class) {
16 | this.activity_name = activity_name;
17 | this.activity_class = activity_class;
18 | }
19 |
20 | public String getActivity_name() {
21 | return activity_name;
22 | }
23 |
24 | public void setActivity_name(String activity_name) {
25 | this.activity_name = activity_name;
26 | }
27 |
28 | public Class getActivity_class() {
29 | return activity_class;
30 | }
31 |
32 | public void setActivity_class(Class activity_class) {
33 | this.activity_class = activity_class;
34 | }
35 |
36 | /**
37 | * @return name of the Activity which describes what it does
38 | */
39 | @Override
40 | public String toString() {
41 | return this.activity_name;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/app/src/main/java/model/classes/MyValidations.java:
--------------------------------------------------------------------------------
1 | package model.classes;
2 |
3 | /**
4 | * Created by Pankaj Nimgade on 15-01-2016.
5 | */
6 | public class MyValidations {
7 |
8 | public static boolean isValidText(String text) {
9 | if (text == null) {
10 | return false;
11 | }
12 | if (text.trim().contentEquals("")) {
13 | return false;
14 | }
15 |
16 | if (text.trim().length() < 1) {
17 | return false;
18 | }
19 |
20 | if (text.trim().toLowerCase().contentEquals("null")) {
21 | return false;
22 | }
23 | return true;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/app/src/main/java/model/classes/Outer.java:
--------------------------------------------------------------------------------
1 | package model.classes;
2 |
3 | /**
4 | * Created by Pankaj Nimgade on 08-01-2016.
5 | */
6 | public class Outer {
7 |
8 |
9 | private class Inner {
10 |
11 | public Inner() {
12 | /**
13 | * This is your default constructor is like you don't make a one.
14 | * This will be public
15 | */
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/app/src/main/java/sqlite/list/activity/CreateDatabase.java:
--------------------------------------------------------------------------------
1 | package sqlite.list.activity;
2 |
3 | import android.content.Context;
4 | import android.database.sqlite.SQLiteDatabase;
5 | import android.database.sqlite.SQLiteOpenHelper;
6 | import android.provider.BaseColumns;
7 | import android.util.Log;
8 |
9 | /**
10 | * Created by Pankaj Nimgade on 17-01-2016.
11 | */
12 | public class CreateDatabase extends SQLiteOpenHelper implements BaseColumns {
13 |
14 | private static final String DATABASE_NAME = "database_name.sqlite";
15 | private static final int DATABASE_VERSION = 1;
16 | public static final String TEXT_TYPE = " TEXT";
17 | public static final String COMMA_SEP = ",";
18 |
19 | public CreateDatabase(Context context) {
20 | super(context, DATABASE_NAME, null, DATABASE_VERSION);
21 | }
22 |
23 | @Override
24 | public void onCreate(SQLiteDatabase db) {
25 | Log.d("CreateDatabase: ","onCreate: called for the first time");
26 | db.execSQL(SQL_CREATE_TEST_ONE_TABLE);
27 | }
28 |
29 | @Override
30 | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
31 | }
32 |
33 | public static final String SQL_CREATE_TEST_ONE_TABLE = "CREATE TABLE IF NOT EXISTS " + "TestOne_Table" +
34 | " (" + BaseColumns._ID + " INTEGER PRIMARY KEY," +
35 | "first_column_name" + TEXT_TYPE + COMMA_SEP +
36 | "second_column_name" + TEXT_TYPE + ")";
37 |
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/app/src/main/java/sqlite/list/activity/Item.java:
--------------------------------------------------------------------------------
1 | package sqlite.list.activity;
2 |
3 | /**
4 | * Created by Pankaj Nimgade on 28-01-2016.
5 | */
6 | public class Item {
7 |
8 | private String project_ID;
9 | private String project_Title;
10 | private String project_City;
11 | private String project_Type;
12 | private String project_Image;
13 | private String project_Status;
14 |
15 |
16 | public Item() {
17 |
18 | }
19 |
20 | public String getProject_ID() {
21 | return project_ID;
22 | }
23 |
24 | public void setProject_ID(String project_ID) {
25 | this.project_ID = project_ID;
26 | }
27 |
28 | public String getProject_Title() {
29 | return project_Title;
30 | }
31 |
32 | public void setProject_Title(String project_Title) {
33 | this.project_Title = project_Title;
34 | }
35 |
36 | public String getProject_City() {
37 | return project_City;
38 | }
39 |
40 | public void setProject_City(String project_City) {
41 | this.project_City = project_City;
42 | }
43 |
44 | public String getProject_Type() {
45 | return project_Type;
46 | }
47 |
48 | public void setProject_Type(String project_Type) {
49 | this.project_Type = project_Type;
50 | }
51 |
52 | public String getProject_Image() {
53 | return project_Image;
54 | }
55 |
56 | public void setProject_Image(String project_Image) {
57 | this.project_Image = project_Image;
58 | }
59 |
60 | public String getProject_Status() {
61 | return project_Status;
62 | }
63 |
64 | public void setProject_Status(String project_Status) {
65 | this.project_Status = project_Status;
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/drawer_shadow.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable-hdpi/drawer_shadow.9.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_done_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable-hdpi/ic_done_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_drawer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable-hdpi/ic_drawer.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/drawer_shadow.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable-mdpi/drawer_shadow.9.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_done_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable-mdpi/ic_done_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_drawer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable-mdpi/ic_drawer.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_done_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable-xhdpi/ic_done_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_drawer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable-xhdpi/ic_drawer.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_done_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable-xxhdpi/ic_done_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_drawer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable-xxhdpi/ic_drawer.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/gohan.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable/gohan.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/goku.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable/goku.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/horses.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable/horses.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/oval_shape_off_center.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
9 |
10 |
13 |
14 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/piccolo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable/piccolo.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shape.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
13 |
14 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shape_droptarget.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
13 |
14 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/subway_map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable/subway_map.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/triangle_shape_left.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
9 |
10 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/triangle_shape_right.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
9 |
10 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ttc_ride_guide.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/drawable/ttc_ride_guide.png
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_animation_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_constraint_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
12 |
13 |
18 |
19 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_contextual_action_mode.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
17 |
18 |
19 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_contextual_action_mode_test_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
17 |
18 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_custom_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_custom_list_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_custom_list_view2.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_data_binding_five.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
11 |
16 |
17 |
18 |
19 |
24 |
25 |
31 |
32 |
38 |
39 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_data_binding_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
18 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_data_binding_test_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
11 |
16 |
17 |
18 |
19 |
24 |
25 |
32 |
33 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_data_binding_three.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
13 |
14 |
15 |
20 |
21 |
22 |
23 |
29 |
30 |
37 |
38 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_decrypt_image.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
18 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_deserialize_train_object.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
18 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_drag_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
17 |
18 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_draging_image.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
19 |
20 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_example_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
23 |
24 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_google_map_eight_my_location.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_google_map_eleven.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_google_map_five_street_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_google_map_four_lite_mode.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_google_map_info_window.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
17 |
18 |
24 |
25 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_google_map_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_google_map_nine_markers.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
18 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_google_map_six_launch.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
17 |
18 |
25 |
26 |
33 |
34 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_google_map_ten_markers.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_google_map_test_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_google_map_test_three.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_google_map_test_two.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_image_view_dynamically.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_justify_alignment.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
16 |
17 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_list_vew_test_three.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_list_view_test.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
17 |
18 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_list_view_test_five.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_list_view_test_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_list_view_test_seven.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
22 |
23 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_listv_view_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_listview_test_seven.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_loader_test_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_loaders_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
14 |
15 |
21 |
22 |
23 |
24 |
25 |
26 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_miscellaneous_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
18 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_network_call_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
16 |
17 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_note_edit.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
17 |
18 |
19 |
25 |
26 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_note_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
15 |
16 |
20 |
21 |
25 |
26 |
27 |
28 |
29 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_oval_shape.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_parse_json_test_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
18 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_percent_two.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
21 |
22 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_post_request.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_random_test.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
18 |
19 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_read_from_asset.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
18 |
19 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_recycler_view_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_recycler_view_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_service_five_bound.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
17 |
18 |
24 |
25 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_service_four.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
24 |
25 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_service_test_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
17 |
18 |
19 |
27 |
28 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_service_test_two.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
17 |
18 |
19 |
27 |
28 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_service_three.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
23 |
24 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_services_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_shared_prefrences.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
18 |
19 |
20 |
29 |
30 |
39 |
40 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_show_image.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
18 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_show_image_two.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_simple_framwork_test_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_sliding_animation.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_spinner_country.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
17 |
18 |
24 |
25 |
31 |
32 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_spinner_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_spinner_load_from_network.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_spinner_test_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
20 |
21 |
22 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_spinner_test_three.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
25 |
26 |
33 |
34 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_spinner_test_two.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 |
25 |
26 |
33 |
34 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_sqlite_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_sqlite_test_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_test.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
18 |
19 |
20 |
27 |
28 |
33 |
34 |
42 |
43 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_test_text_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
18 |
24 |
25 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_test_thread.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
17 |
18 |
22 |
23 |
24 |
33 |
34 |
35 |
36 |
37 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_view_pager_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_view_pager_test_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/content_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/data_binding_layout_test_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
11 |
15 |
16 |
20 |
21 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/example_app_bar_test.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
16 |
17 |
21 |
22 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/example_for_layout_weight_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/example_layout_test_four.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/example_layout_test_two.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_fragment_test_one.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_screen_slide_page.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/layout_test.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
18 |
19 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/layout_test_imageview.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
18 |
19 |
24 |
25 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/my_custom_toolbar.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/simple_list_item_1.xml:
--------------------------------------------------------------------------------
1 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/simple_spinner_dropdown_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/single_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/single_item_constraint_layout_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/single_item_custom_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/single_item_listview_five.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
19 |
20 |
29 |
30 |
38 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/single_item_listview_seven.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/single_item_listview_seven_check_box.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
20 |
21 |
30 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/single_item_listview_test_three.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
21 |
22 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/single_item_recycler_view_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/test_layout_coordinator_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
13 |
19 |
20 |
21 |
22 |
26 |
27 |
28 |
32 |
33 |
34 |
35 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/contextual_action_mode_test_one_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/contextual_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/global.xml:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/main2.xml:
--------------------------------------------------------------------------------
1 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/menu_main.xml:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/navigation_map.xml:
--------------------------------------------------------------------------------
1 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values-zh/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Tutorial
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - 1 x 1 =
5 | - 1 x 2 =
6 | - 1 x 3 =
7 | - 1 x 4 =
8 | - 1 x 5 =
9 | - 1 x 6 =
10 | - 1 x 7 =
11 | - 1 x 8 =
12 | - 1 x 9 =
13 | - 1 x 10 =
14 | - 1 x 11 =
15 | - 1 x 12 =
16 |
17 |
18 |
19 | - https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bx4BSt6jniD7emgtQk5rdEE3bW8/style_icons_system_intro_principles_simple.png
20 | - https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bx4BSt6jniD7MGhHV055eGk0R2M/style_icons_system_intro_principles_intuitive.png
21 | - https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bx4BSt6jniD7MG80dmpHT0RidGs/style_icons_system_intro_principles_actionable.png
22 | - https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bx4BSt6jniD7blViQzF0azNqZU0/style_icons_system_intro_principles_consistent.png
23 | - https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bx4BSt6jniD7VXlvR05VSWhPZTg/style_icons_system_grid_geometry2.png
24 | - https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bx4BSt6jniD7SUV1b2Z3b3NBazA/style_icons_system_best_do1.png
25 | - https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bx4BSt6jniD7azQ4WThPb25NOGc/style_icons_system_best_do3.png
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 | 16dp
6 |
7 |
9 | 240dp
10 |
11 |
--------------------------------------------------------------------------------
/app/src/release/res/values/google_maps_api.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | YOUR_KEY_HERE
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/test/java/com/nimgade/pk/mytutorialapplication/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.nimgade.pk.mytutorialapplication;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | google()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.5.1'
10 | classpath "com.android.databinding:dataBinder:1.0-rc1"
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | jcenter()
19 | google()
20 | }
21 | }
22 |
23 | task clean(type: Delete) {
24 | delete rootProject.buildDir
25 | }
26 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sun Oct 06 19:43:03 CDT 2019
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
7 |
--------------------------------------------------------------------------------
/readingexcel/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'java'
2 |
3 | dependencies {
4 | compile fileTree(include: ['*.jar'], dir: 'libs')
5 | compile files('src/main/java/libs/poi-3.13-20150929.jar')
6 | compile files('src/main/java/libs/poi-ooxml-3.13-20150929.jar')
7 | compile files('src/main/java/libs/poi-ooxml-schemas-3.13-20150929.jar')
8 | compile files('src/main/java/libs/xmlbeans-2.6.0.jar')
9 | compile files('src/main/java/libs/simple-xml-2.7.1.jar')
10 | }
--------------------------------------------------------------------------------
/readingexcel/src/main/java/com/example/ReadingExcelFiles.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class ReadingExcelFiles {
4 | }
5 |
--------------------------------------------------------------------------------
/readingexcel/src/main/java/libs/gson-2.2.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/readingexcel/src/main/java/libs/gson-2.2.4.jar
--------------------------------------------------------------------------------
/readingexcel/src/main/java/libs/poi-3.13-20150929.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/readingexcel/src/main/java/libs/poi-3.13-20150929.jar
--------------------------------------------------------------------------------
/readingexcel/src/main/java/libs/poi-ooxml-3.13-20150929.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/readingexcel/src/main/java/libs/poi-ooxml-3.13-20150929.jar
--------------------------------------------------------------------------------
/readingexcel/src/main/java/libs/poi-ooxml-schemas-3.13-20150929.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/readingexcel/src/main/java/libs/poi-ooxml-schemas-3.13-20150929.jar
--------------------------------------------------------------------------------
/readingexcel/src/main/java/libs/simple-xml-2.7.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/readingexcel/src/main/java/libs/simple-xml-2.7.1.jar
--------------------------------------------------------------------------------
/readingexcel/src/main/java/libs/xmlbeans-2.6.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankajnimgade/Tutorial/609ec510c8261295d3b422e25cac923a4e5ce387/readingexcel/src/main/java/libs/xmlbeans-2.6.0.jar
--------------------------------------------------------------------------------
/readingexcel/src/main/java/stack/overflow/TestDrive.java:
--------------------------------------------------------------------------------
1 | package stack.overflow;
2 |
3 | import org.simpleframework.xml.Attribute;
4 | import org.simpleframework.xml.ElementList;
5 | import org.simpleframework.xml.Root;
6 |
7 | import java.util.ArrayList;
8 |
9 | /**
10 | * Created by Pankaj Nimgade on 05-02-2016.
11 | */
12 | public class TestDrive {
13 |
14 |
15 | public static void main(String[] args){
16 |
17 |
18 |
19 | }
20 | }
21 |
22 | @Root( name = "scenario", strict = false)
23 | class Scenario{
24 | @Attribute(name = "name")
25 | private String name;
26 |
27 | @ElementList(name = "cmd", inline = true)
28 | private ArrayList cmds;
29 |
30 | public String getName() {
31 | return name;
32 | }
33 |
34 | public ArrayList getCmds() {
35 | return cmds;
36 | }
37 | }
38 |
39 | @Root (name = "cmd", strict = false)
40 | class Cmd{
41 | @Attribute(name = "name")
42 | private String name;
43 |
44 | @ElementList(name = "return", inline = true)
45 | private ArrayList lists;
46 |
47 | public String getName() {
48 | return name;
49 | }
50 |
51 | public ArrayList getLists() {
52 | return lists;
53 | }
54 | }
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/readingexcel/src/main/java/stack/overflow/some.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | success_200.xml
4 | error_500.xml
5 |
6 |
7 | success_200.xml
8 |
9 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':readingexcel'
2 |
--------------------------------------------------------------------------------