Skip to content
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

Timob 12176: Implementation of ListView #3935

Merged
merged 38 commits into from Mar 14, 2013
Merged

Conversation

hieupham007
Copy link
Contributor

…e into timob-12176

Conflicts:
	android/titanium/src/java/org/appcelerator/titanium/view/TiUIView.java
…e into timob-12176

Conflicts:
	android/modules/ui/src/java/ti/modules/titanium/ui/widget/TiUIImageView.java
} else if (additionalEventData != null) {
data.putAll(additionalEventData);
}
return proxy.fireEvent(TiC.EVENT_CLICK, data);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be eventName?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha nice catch :)

@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Titanium UI Module</string>
<string name="accessoryType">One of the following images: isCheck, hasChild, or custom image.</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use camel case here because some OS are case insensitive and some are case sensitive and this may introduce name conflict. BTW, in order to avoid the name conflict, it is better to add the package name to the string name, eg. titanium_ui_widget_listview_accessory_type.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, for all the resources used by titanium, like layout and drawable, we should add the package name to the res name/id to avoid name conflict.

//Recursively calls for all childTemplates
if (properties.containsKey(TiC.PROPERTY_CHILD_TEMPLATES)) {
if(item == null) {
Log.e(TAG, "ITEM SHOULDN'NT BE NULL");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be debug only, and message needs to be reworded

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ayeung
Copy link
Contributor

ayeung commented Mar 14, 2013

Code reviewed and functionally tested. Ran through the test cases attached to the ticket, along with the bubbling events test case, and a KS pass. Also verified that this matches the yaml spec for the most part. Noted my concerns at https://gist.github.com/bryan-m-hughes/4677555. Going to merge this now, and other list view issues/comments will be addressed in https://jira.appcelerator.org/browse/TIMOB-13035. Request Accepted

ayeung pushed a commit that referenced this pull request Mar 14, 2013
Timob 12176: Implementation of ListView
@ayeung ayeung merged commit a5bbd15 into tidev:master Mar 14, 2013
@farfromrefug
Copy link
Contributor

Amazing job on that PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants