static void __vp_detail_genlist_realized(void *data, Evas_Object * obj,
void *event_info)
{
- VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
+ Elm_Widget_Item *item = (Elm_Widget_Item *)event_info;
+ if(elm_genlist_first_item_get(obj) == item)
+ {
+ elm_object_item_signal_emit(item, "elm,state,group,top", "elm");
+ }
+ else if(elm_genlist_last_item_get(obj) == item)
+ {
+ elm_object_item_signal_emit(item, "elm,state,group,bottom", "elm");
+ elm_object_item_signal_emit(item, "elm,state,bottomline,hide", "elm");
+ }
}
/**
* @param pPart
* @return
*/
-static char *__vp_detail_genlist_text_get_cb(const void *pUserData,
- Evas_Object * pObj,
- const char *pPart)
+static char *__vp_detail_genlist_text_get_cb(void *pUserData, Evas_Object * pObj, const char *pPart)
{
if (pUserData == NULL) {
VideoLogError("pUserData is NULL");
VideoLogWarning("%s : %s", pPart, szTxt);
- if (!strcmp(pPart, "elm.text")) {
+ if (!strcmp(pPart, "elm.text.sub")) {
return strdup(szTxt);
- } else if (!strcmp(pPart, "elm.text.sub")) {
+ } else if (!strcmp(pPart, "elm.text")) {
DetailView *pDetailPopup =
(DetailView *) evas_object_data_get(pObj,
}
pDetailPopup->st_Detail_Itc->version = ELM_GENLIST_ITEM_CLASS_VERSION;
- pDetailPopup->st_Detail_Itc->item_style = "type1";
- pDetailPopup->st_Detail_Itc->func.text_get =
- (void *) __vp_detail_genlist_text_get_cb;
+ pDetailPopup->st_Detail_Itc->item_style = "2line_reversed";
+ pDetailPopup->st_Detail_Itc->func.text_get = __vp_detail_genlist_text_get_cb;
pDetailPopup->st_Detail_Itc->func.content_get = NULL;
pDetailPopup->st_Detail_Itc->func.state_get = NULL;
pDetailPopup->st_Detail_Itc->func.del = NULL;
(void *) VP_PLAY_STRING_DETAIL_TITLE,
NULL, ELM_GENLIST_ITEM_NONE, NULL,
(void *) pDetailPopup);
- elm_genlist_item_select_mode_set(pItem,
- ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ elm_genlist_item_select_mode_set(pItem, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
item_cnt++;
pItem =
(void *) VP_PLAY_STRING_DETAIL_SIZE, NULL,
ELM_GENLIST_ITEM_NONE, NULL,
(void *) pDetailPopup);
- elm_genlist_item_select_mode_set(pItem,
- ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ elm_genlist_item_select_mode_set(pItem, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
item_cnt++;
- if (pDetailPopup->pDetailInfo->bPlayready == FALSE) {
+ /* if (pDetailPopup->pDetailInfo->bPlayready == FALSE) {
pItem =
elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
(void *) VP_PLAY_STRING_DETAIL_FORMAT,
elm_genlist_item_select_mode_set(pItem,
ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
item_cnt++;
- }
+ } */
if (pDetailPopup->pDetailInfo->bPlayready == FALSE) {
VP_PLAY_STRING_DETAIL_RESOLUTION,
NULL, ELM_GENLIST_ITEM_NONE, NULL,
(void *) pDetailPopup);
- elm_genlist_item_select_mode_set(pItem,
- ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ elm_genlist_item_select_mode_set(pItem, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
item_cnt++;
}
VP_PLAY_STRING_DETAIL_LAST_MODIFIED, NULL,
ELM_GENLIST_ITEM_NONE, NULL,
(void *) pDetailPopup);
- elm_genlist_item_select_mode_set(pItem,
- ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ elm_genlist_item_select_mode_set(pItem, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
item_cnt++;
if (pDetailPopup->pDetailInfo->bPlayready == FALSE) {
VP_PLAY_STRING_DETAIL_LOCATION, NULL,
ELM_GENLIST_ITEM_NONE, NULL,
(void *) pDetailPopup);
- elm_genlist_item_select_mode_set(pItem,
- ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ elm_genlist_item_select_mode_set(pItem, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
item_cnt++;
}