-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dialogs aren't exactly the same as on Android Lollipop... #5
Comments
odd. when trying the library on kitkat, I don't see the dividers. |
I highly agree with point number 1 and 3! |
There are also other warnings on other files, not just on this layout. |
About the layout optimization. I ported it from the Android platform. I hope this project would perform the same as the platform's AlertDialog. So I suggest not modify the layout structure and keep it consistent with the platform. About support RTL, I opened a new issue #6. About the theme, I think the Lollipop's button use the color which is defined as |
@fengdai Then I should probably tell Google about those issues instead. I should also tell them about the bug with the customView, which makes the buttons disappear . About the Layout, I think I know why they added it: for some cases, the dialog's width would be very small without any reason, making the height very large. About the color of the buttons, according to the xml, it's based on "textColorPrimary" , but I usually set it to black, as texts are usually black... Is it possible that the emulator doesn't have the exact version as the code you've extracted from? |
About the bug with customView, It‘s my mistake. I missed About the color of the buttons, The reason is that the platform's AlertDialog uses the |
I don't understand. On Sun, Oct 26, 2014 at 10:37 AM, Feng Dai notifications@github.com wrote:
|
No. The platform itself doesn't have that issue. I deleted |
That's what I meant : On Sun, Oct 26, 2014 at 12:52 PM, Feng Dai notifications@github.com wrote:
|
@fengdai Why did you close it? now it's shown like on Lollipop? |
Hi, @AndroidDeveloperLB. I have fixed it. Now it looks the same as the Lollipop's AlertDialog. |
@fengdai Nice. But I see the buttons of the dialog on the sides. Did Google make it? |
@AndroidDeveloperLB can you post screen capture and code snippets? BTW: I suggest you to open a new issue. Do not combine multiple problems. Write different reports for each problem. |
Well this is weird. I've tried using the sample app you've created, and it seems to work fine with a listView that I've giving it. |
What do you mean by "odd colors"? |
A list alone doesn't cause the problem. It's the whole view itself that caused it, but it worked fine before... The sample shows 2 problems that I didn't have on the previous version I've tested:
Please check it out. case #2 , using custom view (listView+spinner) and "material light" : case #2, using custom view (listView+spinner) and the native theme : This all was running on Kitkat. I've also tested it on the Lollipop emulator and for some reason, only case #1 occurred there. case #2 was working just fine... |
That's because when you inflate the custom ListView, the platform use the activity's default theme
|
I see. How do I fix the other issue?
|
I haven't found the reason. I'll reply you as soon as possible when I find it. |
Thank you. |
To some extent this commit 1576799 can fix the second issue. |
Odd. |
The previous version also has this issue, if you run it on Android version below 3.0. |
Modify the dialog_share.xml file. Let the two TextViews' |
Hey you are right. I wonder why it's different between the APIs... |
Say, why did you make the class "CheckedTextViewCompat" ? |
To draw checkmark to the left of TextView as Lollipop's CheckedTextView. |
I see. Maybe you should write about it in this class. |
Fine. |
Also, does the "marquee" really do anything in "select_dialog_multichoice_material.xml" ? I ask this since I see that there are no restrictions about the number of lines... Personally I prefer it to be multi-lines instead of being truncated (some languages use long text). |
You are right. It seems do nothing... |
Maybe it's a leftover that whoever updated this code didn't notice it won't do anything, or was afraid to ruin something when changing it. |
I've noticed another thing: |
@AndroidDeveloperLB, I haven't completed it. I found an issue when I tried to set a custom view which contains a single EditText. The EditText can't be clicked to get focus. |
Does it work well for Android Lollipop, at least, as the library probably uses the official API if possible? |
I have fixed it. Look at this issue #11 for details. |
Thank you. |
Thank you for your help. |
but they all relate to the fact it wasn't as it was supposed to look like. On Thu, Nov 13, 2014 at 11:32 AM, Feng Dai notifications@github.com wrote:
|
"it wasn't as it was supposed to look like" is not a specific description. This kind of description can contains multiple problems. So it becomes difficult to track a single problem. Write different reports for each problem is better. |
I don't understand. What's wrong with the way I've presented it? I've shown description and images... This time, since it's hard to show in images, I've put a video and full project code. Also, I wish to ask : |
@AndroidDeveloperLB Thank you for your report. They are unused. I'll delete them. About #13 , I'll check it out soon. I suppose it's caused by CheckedTextViewCompat. |
Thank you. |
Compare those:
![image](https://cloud.githubusercontent.com/assets/5357526/4780425/316b1c42-5c68-11e4-8c9e-302e3a802dea.png)
Android Lollipop theme:
library theme:
![image](https://cloud.githubusercontent.com/assets/5357526/4780423/281bafc6-5c68-11e4-945c-3a747d47360a.png)
The color of the text isn't the same, and there are dividers in the library itself, while on Lollipop there isn't .
Same happens when using a dark theme.
I also think the title is supposed to be a bit to the right.
Also, I think the layout file "alert_dialog_material.xml" (and others) can be a bit more optimized, as Lint suggests.
Some of its possible optimizations:
The text was updated successfully, but these errors were encountered: