From: moon87.park Date: Wed, 18 Nov 2015 11:04:57 +0000 (+0900) Subject: [Telegram] Remove the name and Change the position in send message bubble X-Git-Tag: release/160311~104 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54120b9777bfbf69d1146f6ca799ec5940f53f93;p=apps%2Fnative%2Ftelegram-tizen.git [Telegram] Remove the name and Change the position in send message bubble Change-Id: Icf17fbfe6b53ac6f3c2dd65abb14f2237d209a43 --- diff --git a/TelegramTizen/res/edje/telegram_theme.edc b/TelegramTizen/res/edje/telegram_theme.edc index 29cd8ba..092eb02 100644 --- a/TelegramTizen/res/edje/telegram_theme.edc +++ b/TelegramTizen/res/edje/telegram_theme.edc @@ -3402,6 +3402,7 @@ group { name: "elm/layout/bubble/readmessage/my_layout"; } image { normal: "telegram_bubble_bg_send.#.png"; + border: 40 57 0 0; } color: 45 165 224 225; } @@ -3563,13 +3564,13 @@ group { name: "elm/layout/bubble/readmessage/my_layout"; state: "default" 0.0; min: 1 1; align: 1.0 0.5; - rel1 { - to: "pad_top"; - relative: 1.0 1.0; + rel1 { + to: "pad_vertical"; + relative: 0.0 0.0; } - rel2 { - to: "pad_bottom"; - relative: 1.0 0.0; + rel2 { + to: "pad_vertical"; + relative: 0.0 1.0; } visible: 1; color: ENTRY_BUBBLE_TIME_COLOR; @@ -3590,11 +3591,11 @@ group { name: "elm/layout/bubble/readmessage/my_layout"; min: 5 0; max: 5 -1; rel1 { - to: "time"; + to: "status_icon"; relative: 0 0; } rel2 { - to: "time"; + to: "status_icon"; relative: 0 1; } align: 0.5 1; @@ -3611,13 +3612,13 @@ group { name: "elm/layout/bubble/readmessage/my_layout"; min: 20 20; max: 20 20; align: 1.0 0.5; - rel1 { - to: "pad_vertical"; - relative: 0.0 0.0; + rel1 { + to: "pad_top"; + relative: 1.0 1.0; } rel2 { - to: "pad_vertical"; - relative: 0.0 1.0; + to: "pad_bottom"; + relative: 1.0 0.0; } // color_class: "W055"; diff --git a/TelegramTizen/src/tg_messaging_view.c b/TelegramTizen/src/tg_messaging_view.c index dac8f78..f827799 100644 --- a/TelegramTizen/src/tg_messaging_view.c +++ b/TelegramTizen/src/tg_messaging_view.c @@ -1297,15 +1297,7 @@ Evas_Object *on_message_item_content_get_cb(void *data, Evas_Object *obj, const // To be handled for group chat - char temp_name[256] = {0,}; - if (msg->media_type == tgl_message_media_photo || msg->media_type == tgl_message_media_document) { - snprintf(temp_name, sizeof(temp_name), "%s

", sender_name); - } else { - snprintf(temp_name, sizeof(temp_name), "%s
", sender_name); - } - Eina_Strbuf *buf = eina_strbuf_new(); - eina_strbuf_append(buf, temp_name); if (sender_name) { free(sender_name);