Skip to content

Instantly share code, notes, and snippets.

android.view.InflateException: Binary XML file line #19: Error inflating class android.widget.CheckBox
at android.view.LayoutInflater.createView(LayoutInflater.java:621)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:670)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:695)
at android.view.LayoutInflater.inflate(LayoutInflater.java:469)
at android.view.LayoutInflater.in
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var textField: UITextField!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
import Cocoa
class ViewController: NSViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
Firebase.defaultConfig().persistenceEnabled = true
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations {
[mapView_ clear];
CLLocation *location = (CLLocation*)locations.firstObject;
GMSMarker *pinview = [[GMSMarker alloc] init];
pinview.position = CLLocationCoordinate2DMake(location.coordinate.latitude, location.coordinate.longitude);
pinview.icon = [GMSMarker markerImageWithColor:[UIColor blueColor]];
pinview.title = @"title";
pinview.snippet = @"sub title";
class ViewController: UIViewController {
@IBOutlet weak var testView: UIView!
var locationManager = CLLocationManager();
override func viewDidLoad() {
super.viewDidLoad()
super.viewDidLoad()
mport UIKit
import GoogleMaps
class ViewController: UIViewController {
let locationManager = CLLocationManager();
var placesClient: GMSPlacesClient?
override func viewDidLoad() {
super.viewDidLoad()
#import "GmapViewController.h"
#import "AFNetworking.h"
@import GoogleMaps;
@interface GmapViewController ()
@end
@implementation GmapViewController
{
#import "ViewController.h"
@interface ViewController () <CLLocationManagerDelegate>
@end
@implementation ViewController{
NSString *currentLongitude;
NSString *currentLatitude;
NSString *googleMapsURL;
CLLocationManager *locationManager_;
}
#import "ViewController.h"
@interface ViewController ()<CLLocationManagerDelegate>
@end
@implementation ViewController {
GMSMapView *mapView_;
CLLocationManager *locationManager_;
}
- (void)test {
if ([[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString: @"comgooglemaps-x-callback://"]]) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: [NSString stringWithFormat:@"comgooglemaps-x-callback://?saddr=%@,%@&daddr=%@,%@&", @"18.9750", @"72.8258", @"23.0300",@"72.5800"]]];
} else {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%@,%@&daddr=%@,%@", @"18.9750", @"72.8258", @"23.0300",@"72.5800"]]];
}
}