android

Getting error “file name must end with .xml” while using the “android:fontFamily” of Android O?

自闭症网瘾萝莉.ら 提交于 2021-02-17 21:15:11
问题 Android O introduces a new feature, Fonts in XML, which lets you use fonts as resources. And I am creating the font folder in resource file as it provided by Android developer, but the problem is that I am getting error that file name must end with .xml while using the font folder which is provided in Android O release. Please check the below layout for it. <TextView android:id="@+id/txtMsgCount" android:layout_width="wrap_content" android:layout_height="16dp" android:background="@drawable

How to detect scroll position of ListView in Flutter

巧了我就是萌 提交于 2021-02-17 21:10:40
问题 I'm using ListView widget to show items as a list. In a window three, items viewing must the middle item place in the middle. So how can I detect position of ListView when scrolling stop? How to detect ListView Scrolling stopped? 回答1: I used NotificationListener that is a widget that listens for notifications bubbling up the tree. Then use ScrollEndNotification , which indicates that scrolling has stopped. For scroll position I used _scrollController that type is ScrollController . new

How to detect scroll position of ListView in Flutter

百般思念 提交于 2021-02-17 21:10:07
问题 I'm using ListView widget to show items as a list. In a window three, items viewing must the middle item place in the middle. So how can I detect position of ListView when scrolling stop? How to detect ListView Scrolling stopped? 回答1: I used NotificationListener that is a widget that listens for notifications bubbling up the tree. Then use ScrollEndNotification , which indicates that scrolling has stopped. For scroll position I used _scrollController that type is ScrollController . new

Android: How to swipe between activities (not fragments), master/detail best set-up

本小妞迷上赌 提交于 2021-02-17 21:00:14
问题 I'm working on an android app and I'm fairly new to all this, including mobile app development, so I have a few questions. Any help would be amazing! 1) Is it possible to swipe between entire activities (including action bar)? And I don't mean like viewPager swapping between fragments, I mean swapping the entire screen (like snapchat does on iOS). Is this possible at all? And if so, how can I do this? 2) What is the best way to implement a master/detail type layout? Like twitter for instance,

Gradle sync failed: Unsupported method: SyncIssue.getMultiLineMessage(). (Android Studio)

落爺英雄遲暮 提交于 2021-02-17 20:50:16
问题 I'm trying to build this old app on the newest version of Android Studio that requires Gradle 1.10. I keep getting sync errors (See below). SYNC ERROR: Gradle sync failed: Unsupported method: SyncIssue.getMultiLineMessage(). The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information from the model. Consult IDE log for more

Gradle sync failed: Unsupported method: SyncIssue.getMultiLineMessage(). (Android Studio)

余生颓废 提交于 2021-02-17 20:50:02
问题 I'm trying to build this old app on the newest version of Android Studio that requires Gradle 1.10. I keep getting sync errors (See below). SYNC ERROR: Gradle sync failed: Unsupported method: SyncIssue.getMultiLineMessage(). The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information from the model. Consult IDE log for more

Gradle sync failed: Unsupported method: SyncIssue.getMultiLineMessage(). (Android Studio)

两盒软妹~` 提交于 2021-02-17 20:49:55
问题 I'm trying to build this old app on the newest version of Android Studio that requires Gradle 1.10. I keep getting sync errors (See below). SYNC ERROR: Gradle sync failed: Unsupported method: SyncIssue.getMultiLineMessage(). The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information from the model. Consult IDE log for more

USB interface in android

早过忘川 提交于 2021-02-17 20:47:40
问题 I rooted my device and working in host mode. I can able to detect the usb device connected to my tab but Am having two questions. 1) i try to display my device name using device.getDeviceName(); but its showing something like/dev/usb/002/002 I need to get the manufacturer name of the usb device name. I thing its available in accessory mode but i need to get the manufacturer name in host mode. 2)I need to transfer some data from my app to the usb port in android. i can able to detect the

USB interface in android

假如想象 提交于 2021-02-17 20:47:34
问题 I rooted my device and working in host mode. I can able to detect the usb device connected to my tab but Am having two questions. 1) i try to display my device name using device.getDeviceName(); but its showing something like/dev/usb/002/002 I need to get the manufacturer name of the usb device name. I thing its available in accessory mode but i need to get the manufacturer name in host mode. 2)I need to transfer some data from my app to the usb port in android. i can able to detect the

Android Camera preview zoom using double finger touch

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-17 20:43:27
问题 I am trying to do zoom using double finger touch gesture in the camera preview mode. But i unable to do that. I have done that Zoom control on the ImageView and it's working fine. Now i want to do that in the camera preview mode i.e. when we start the camera we can able to do zooming using double finger gesture. Below i an adding the code for double finger gesture for zooming the image. @Override public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub ImageView