This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2019 the Dart project authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license | |
// that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
const initialMatrix = [ | |
[4, 6, 5, 8, 1, 3, 7, 6, 3, 7], | |
[3, 2, 7, 7, 8, 7, 4, 3, 5, 5], | |
[4, 5, 2, 5, 6, 1, 1, 1, 8, 3], | |
[3, 1, 2, 8, 1, 2, 5, 8, 8, 8], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.Bundle; | |
import android.os.Handler; | |
import android.support.v4.app.ListFragment; | |
import android.view.View; | |
import android.widget.AbsListView; | |
public class FrozenListFragment extends ListFragment { | |
private static final String ARG_Y = "y"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MySingleton { | |
static final Object mLock = new Object(); | |
static MySingleton mInstance; | |
private Context mContext; | |
// Private constructor prevents instantiation from other classes | |
private MySingleton() { } |