Skip to content

Instantly share code, notes, and snippets.

View SouravKumarPandit's full-sized avatar
:octocat:
Focusing

sourav kumar SouravKumarPandit

:octocat:
Focusing
  • Xebia , India
  • India
View GitHub Profile
@SouravKumarPandit
SouravKumarPandit / Canvas.java
Created September 5, 2020 11:19 — forked from shashi/Canvas.java
Canvas with camera background
// Copyright 2009 Google Inc. All Rights Reserved.
package com.google.appinventor.components.runtime;
import com.google.appinventor.components.annotations.DesignerComponent;
import com.google.appinventor.components.annotations.DesignerProperty;
import com.google.appinventor.components.annotations.PropertyCategory;
import com.google.appinventor.components.annotations.SimpleEvent;
import com.google.appinventor.components.annotations.SimpleFunction;
import com.google.appinventor.components.annotations.SimpleObject;
@SouravKumarPandit
SouravKumarPandit / Canvas.java
Created September 5, 2020 11:19 — forked from shashi/Canvas.java
Canvas with camera background
// Copyright 2009 Google Inc. All Rights Reserved.
package com.google.appinventor.components.runtime;
import com.google.appinventor.components.annotations.DesignerComponent;
import com.google.appinventor.components.annotations.DesignerProperty;
import com.google.appinventor.components.annotations.PropertyCategory;
import com.google.appinventor.components.annotations.SimpleEvent;
import com.google.appinventor.components.annotations.SimpleFunction;
import com.google.appinventor.components.annotations.SimpleObject;
package com.pandit.application.demoapp.ui
import android.os.Bundle
import android.os.Handler
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.size
import androidx.fragment.app.Fragment
import com.pandit.application.demoapp.R
Q1.
what is different stage of life cycle .
when does onRestart get called.
what happen if we navigate new Activity A to B .
Which class method will get called first in order
Which method called when showing dialog on Activity.
Q2.
Difference between Fragment and Activity.
Can Fragment exist without Activity.
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'dart:math' as Math;
const double _radiansPerDegree = Math.pi / 180;
final double _startAngle = -90.0 * _radiansPerDegree;
typedef double ItemAngleCalculator(int index);
class HomePage extends StatefulWidget {
import 'package:dev_rpg/src/style.dart';
import 'package:flutter/material.dart';
/// Layout for the dev_rpg game.
enum RpgLayout { slim, wide, ultrawide }
/// Signature for a function that builds a widget given an [RpgLayout].
///
/// Used by [RpgLayoutBuilder.builder].
typedef RpgLayoutWidgetBuilder = Widget Function(
BuildContext context, RpgLayout layout);
import 'package:flutter/material.dart';
typedef Widget CLListItemBuilder(BuildContext context, String itemString);
class CLCustomItemRow extends StatefulWidget {
final CLListItemBuilder clListItemBuilder;
final Widget child;
final List<String> itemList;
CLCustomItemRow({
import 'package:flutter/material.dart';
enum CLThemeConstants {
LIGHT_RED,
LIGHT_BLUE,
LIGHT_GRAY,
DARK_ORANGE,
DARK_GREEN,
DARK_BROWN
}
package com.example.madhav.milikevault.dash;
import android.graphics.Color;
import android.graphics.Point;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.GradientDrawable;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
public class StyleEditLayout extends LinearLayout implements RadioGroup.OnCheckedChangeListener
{
Context context;
public StyleEditLayout(Context context)
{
super(context);
intit(context);
}