即使在xml中检查为true,SwitchCompat也始终显示false On Create

时间:2017-01-19 02:35:22

标签: java android switchcompat

我的- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{ NSString *tmpFilePath = @""; tmpFilePath = [_myHelper retrieveAppDirectory:self.username]; UIImage *image = [info objectForKey: UIImagePickerControllerEditedImage]; if (!image) { [info objectForKey: UIImagePickerControllerOriginalImage]; } NSString *imageName = [NSString stringWithFormat:@"image-%d.securedData", self.photos.count + 1]; [_myHelper performEncryptionForSecuredData:image filePath:tmpFilePath fileName:imageName]; [self.photos addObject:image]; [self.collectionView reloadData]; [picker dismissViewControllerAnimated:YES completion:nil]; } 如何检查state = true(在xml中声明)。但是当在java中的Oncreate中查看它时,它显示为false?

是否有其他方法可以设置switchCompat的状态?

switchCompat

0 个答案:

没有答案