android-layout

Adaptive icon not displaying properly

六月ゝ 毕业季﹏ 提交于 2020-06-13 08:44:34
问题 I know that the foreground and background layers should both be 108dp by 108dp. But as you can see in the image its not displayed correctly (icon next to the YouTube icon) I'm not sure what I'm doing wrong. Here is the forground layer <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="108dp" android:height="108dp" android:viewportHeight="512" android:viewportWidth="512"> <path android:fillColor="#515262" android:pathData="M265.3,2.6c-5.7,-3.5 -12.8,-3.5 -18.6

Android studio layout Design view not loading

梦想的初衷 提交于 2020-06-12 10:46:23
问题 I'm using Android Studio 3.2.1 version. The loading .xml layout.attached screenshot. Android Studio .xml screenshot: Android Studio waiting screenshot: 回答1: this type of problem is reoccurring with android studio, plenty of answers given to plenty of people who just asked, not trying to do their own research, anyways the easiest solution but may not be the best would be to change the theme style. In the root directory go to "res" > "values" > "styles.xml" and there change the theme line to be

Android studio layout Design view not loading

折月煮酒 提交于 2020-06-12 10:46:21
问题 I'm using Android Studio 3.2.1 version. The loading .xml layout.attached screenshot. Android Studio .xml screenshot: Android Studio waiting screenshot: 回答1: this type of problem is reoccurring with android studio, plenty of answers given to plenty of people who just asked, not trying to do their own research, anyways the easiest solution but may not be the best would be to change the theme style. In the root directory go to "res" > "values" > "styles.xml" and there change the theme line to be

Android studio layout Design view not loading

南楼画角 提交于 2020-06-12 10:45:08
问题 I'm using Android Studio 3.2.1 version. The loading .xml layout.attached screenshot. Android Studio .xml screenshot: Android Studio waiting screenshot: 回答1: this type of problem is reoccurring with android studio, plenty of answers given to plenty of people who just asked, not trying to do their own research, anyways the easiest solution but may not be the best would be to change the theme style. In the root directory go to "res" > "values" > "styles.xml" and there change the theme line to be

Android studio layout Design view not loading

白昼怎懂夜的黑 提交于 2020-06-12 10:44:27
问题 I'm using Android Studio 3.2.1 version. The loading .xml layout.attached screenshot. Android Studio .xml screenshot: Android Studio waiting screenshot: 回答1: this type of problem is reoccurring with android studio, plenty of answers given to plenty of people who just asked, not trying to do their own research, anyways the easiest solution but may not be the best would be to change the theme style. In the root directory go to "res" > "values" > "styles.xml" and there change the theme line to be

Tooltip in Items within RecyclerView (Overlap above items)

大兔子大兔子 提交于 2020-06-11 06:22:24
问题 I need to create a RecyclerView with multiple ViewTypes . However, on some of the items, I need to display a Tooltip which should hover over the above row. My requirement is: In the above image, there are 4 items in the RecyclerView , and the tooltip in the lower row should overlap on top of the above row (or rows, as required). This tooltip would only be visible in some scenarios - when the lock icon is visible. The problem is, if I add this tooltip as a TextView to the row_layout.xml , and

Android studio 4 Button on full screen [closed]

百般思念 提交于 2020-06-07 07:36:09
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 months ago . I was beginner in android studio, Can anyone show me the way how to design 4 button cover all the screen 回答1: Try this using ConstraintLayout <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns

add rods type element in the background behind views

走远了吗. 提交于 2020-06-01 05:55:43
问题 In my XML I have 4 views, three CardView s and one is just a relative view (which is inflated as of other CardView s through activity and it have id of container in XML below). I want to attach the rod type of element connected with each view one after another in their below in background. This is code of that rod element I want. <!-- vertical rod, I want like this rod in background of these four views --> <RelativeLayout android:layout_width="4dp" android:layout_height="40dp" android:layout

add rods type element in the background behind views

让人想犯罪 __ 提交于 2020-06-01 05:55:18
问题 In my XML I have 4 views, three CardView s and one is just a relative view (which is inflated as of other CardView s through activity and it have id of container in XML below). I want to attach the rod type of element connected with each view one after another in their below in background. This is code of that rod element I want. <!-- vertical rod, I want like this rod in background of these four views --> <RelativeLayout android:layout_width="4dp" android:layout_height="40dp" android:layout

RuntimeException : Width (0) and height (0) cannot be <= 0

我们两清 提交于 2020-05-31 03:02:17
问题 I have got this type of error, How may I resolve this issue. java.lang.RuntimeException: java.lang.RuntimeException: Error while processing D:\Android Project\AttendanceApp\app\src\main\res\drawable\ic_arrow_back.xml : Width (0) and height (0) cannot be <= 0 ic_arrow_back.xml <vector android:height="@dimen/_25sdp" android:tint="#FFFFFF" android:viewportHeight="24.0" android:viewportWidth="24.0" android:width="@dimen/_25sdp" xmlns:android="http://schemas.android.com/apk/res/android"> <path