-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compact view for incoming and outgoing files
- Loading branch information
Showing
3 changed files
with
633 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
317 changes: 317 additions & 0 deletions
317
android-refimpl-app/app/src/main/res/layout/message_list_ft_incoming_compact.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,317 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="@dimen/message_entry_padding"> | ||
|
||
<LinearLayout | ||
android:id="@+id/layout_message_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
|
||
android:layout_below="@+id/message_text_date" | ||
android:orientation="vertical" | ||
android:padding="0dp"> | ||
|
||
<LinearLayout | ||
android:id="@+id/layout2" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal"> | ||
|
||
<de.hdodenhof.circleimageview.CircleImageView | ||
android:id="@+id/img_avatar" | ||
android:layout_width="50dp" | ||
android:layout_height="30dp" | ||
android:layout_marginTop="0dp" | ||
android:layout_weight="3" | ||
android:gravity="top" | ||
android:src="@drawable/user_pratikshya" | ||
app:civ_border_color="#50000000" | ||
app:civ_border_width="2dp" | ||
app:civ_fill_color="@color/md_grey_400" /> | ||
|
||
<ImageView | ||
android:id="@+id/img_corner" | ||
android:layout_width="30dp" | ||
android:layout_height="30dp" | ||
android:layout_marginTop="14dp" | ||
android:layout_marginRight="0dp" | ||
android:layout_weight="1" | ||
android:alpha="0.5" | ||
android:src="@drawable/arrow_bg2" | ||
android:visibility="gone" /> | ||
|
||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="0dp" | ||
android:layout_marginRight="20dp" | ||
android:layout_weight="6" | ||
android:background="@drawable/rounded_orange_bg" | ||
android:minHeight="50dp" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="20dp" | ||
android:minHeight="0dp" | ||
android:orientation="horizontal"> | ||
|
||
<ImageView | ||
android:id="@+id/m_icon" | ||
android:layout_width="20dp" | ||
android:layout_height="20dp" | ||
android:layout_alignParentTop="true" | ||
android:layout_marginRight="6dip" | ||
android:padding="2dp" | ||
android:scaleType="centerInside" | ||
android:src="@drawable/circle_red" | ||
android:visibility="invisible" /> | ||
|
||
<com.luseen.autolinklibrary.EmojiTextViewLinks | ||
android:id="@+id/m_text" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_toRightOf="@id/m_icon" | ||
android:text="..." | ||
android:textColorLink="@color/textblock_link_color_for_orange" | ||
android:textSize="8sp" | ||
app:emojiSize="@dimen/emoji_size_in_textview" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="0dp" | ||
android:orientation="horizontal"> | ||
|
||
// style="?android:attr/progressBarStyleHorizontal" | ||
|
||
<com.daimajia.numberprogressbar.NumberProgressBar | ||
android:id="@+id/ft_progressbar" | ||
android:layout_width="fill_parent" | ||
android:layout_height="24dp" | ||
android:layout_gravity="center_vertical|center_horizontal" | ||
android:minHeight="24dp" | ||
android:paddingLeft="10dp" | ||
android:paddingRight="10dp" | ||
android:visibility="visible" | ||
|
||
app:progress_max="100" | ||
app:progress_reached_bar_height="15dp" | ||
app:progress_reached_color="@color/md_green_800" | ||
app:progress_text_color="@color/md_black_1000" | ||
app:progress_text_offset="5dp" | ||
app:progress_text_size="12sp" | ||
app:progress_text_visibility="visible" | ||
app:progress_unreached_bar_height="4dp" | ||
app:progress_unreached_color="#66CCCCCC" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/ft_preview_container" | ||
android:layout_width="fill_parent" | ||
android:layout_height="150dp" | ||
android:layout_marginRight="0dp" | ||
android:gravity="center_horizontal" | ||
android:orientation="horizontal" | ||
android:visibility="visible"> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="3dp" | ||
android:layout_weight="1" | ||
android:visibility="gone" /> | ||
|
||
<ImageButton | ||
android:id="@+id/ft_preview_image" | ||
android:layout_width="fill_parent" | ||
android:layout_height="150dp" | ||
android:layout_marginLeft="0dp" | ||
android:layout_marginRight="0dp" | ||
android:layout_weight="300" | ||
android:background="@android:color/transparent" | ||
android:elevation="4dp" | ||
android:minHeight="1dp" | ||
android:paddingLeft="0dp" | ||
android:paddingTop="0dp" | ||
android:paddingRight="0dp" | ||
android:paddingBottom="0dp" | ||
android:scaleType="fitCenter" | ||
android:src="@null" /> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="3dp" | ||
android:layout_weight="1" | ||
android:visibility="gone" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/ft_export_button_container" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="0dp" | ||
android:orientation="horizontal" | ||
android:visibility="visible"> | ||
|
||
<ImageButton | ||
android:id="@+id/ft_export_button" | ||
android:layout_width="40dp" | ||
android:layout_height="28dp" | ||
android:layout_gravity="left" | ||
android:layout_marginLeft="1dp" | ||
android:layout_marginRight="0dp" | ||
android:layout_marginBottom="2dp" | ||
android:layout_weight="1" | ||
android:background="@android:color/transparent" | ||
android:elevation="4dp" | ||
android:padding="0dp" | ||
android:scaleType="fitCenter" | ||
android:src="@android:drawable/ic_menu_save" | ||
android:visibility="visible" /> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/ft_buttons_container" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="20dp" | ||
android:minHeight="65dp" | ||
android:orientation="horizontal" | ||
android:visibility="gone"> | ||
|
||
<ImageButton | ||
android:id="@+id/ft_button_ok" | ||
android:layout_width="65dp" | ||
android:layout_height="match_parent" | ||
android:layout_marginLeft="25dp" | ||
android:layout_marginTop="8dp" | ||
android:layout_marginRight="25dp" | ||
android:layout_marginBottom="8dp" | ||
android:layout_weight="1" | ||
android:background="@android:color/transparent" | ||
android:elevation="4dp" | ||
android:padding="2dp" | ||
android:src="@android:drawable/ic_menu_add" | ||
android:visibility="gone" /> | ||
|
||
<ImageButton | ||
android:id="@+id/ft_dummy1" | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="100" | ||
android:background="@android:color/transparent" | ||
android:src="@null" /> | ||
|
||
<ImageButton | ||
android:id="@+id/ft_button_cancel" | ||
android:layout_width="65dp" | ||
android:layout_height="match_parent" | ||
android:layout_marginLeft="25dp" | ||
android:layout_marginTop="8dp" | ||
android:layout_marginRight="25dp" | ||
android:layout_marginBottom="8dp" | ||
android:layout_weight="1" | ||
android:background="@android:color/transparent" | ||
android:elevation="4dp" | ||
android:padding="2dp" | ||
android:src="@android:drawable/ic_menu_close_clear_cancel" | ||
android:visibility="gone" /> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="0dp" | ||
android:orientation="horizontal" | ||
android:padding="0dp"> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="1dp" | ||
android:layout_weight="10" | ||
android:visibility="gone" /> | ||
|
||
<TextView | ||
android:id="@+id/date_time" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="top" | ||
android:layout_marginTop="-1dp" | ||
android:layout_marginRight="20dp" | ||
android:layout_marginBottom="@dimen/message_entry_datetime_bottom_padding" | ||
android:gravity="top" | ||
android:padding="0dp" | ||
android:text="2017-06-20 14:00:12" | ||
android:textAlignment="gravity" | ||
android:textColor="#EFEFEF" | ||
android:textSize="9sp" /> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
|
||
<LinearLayout | ||
android:id="@+id/message_text_date" | ||
android:layout_width="match_parent" | ||
android:layout_height="35dp" | ||
android:layout_alignParentTop="true" | ||
android:layout_centerInParent="true" | ||
android:orientation="horizontal" | ||
android:visibility="visible"> | ||
|
||
<ImageView | ||
android:layout_width="wrap_content" | ||
android:layout_height="2dp" | ||
android:layout_gravity="center_vertical" | ||
android:layout_marginLeft="10dp" | ||
android:layout_marginRight="10dp" | ||
android:layout_weight="100" | ||
android:background="@color/md_white_1000" /> | ||
|
||
<TextView | ||
android:id="@+id/message_text_date_string" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:layout_marginBottom="5dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/rounded_date_bg" | ||
android:paddingStart="@dimen/padding_small" | ||
android:paddingLeft="@dimen/padding_small" | ||
android:paddingTop="2dp" | ||
android:paddingEnd="@dimen/padding_small" | ||
android:paddingRight="@dimen/padding_small" | ||
android:paddingBottom="2dp" | ||
android:text="2017-05-14" | ||
android:textColor="@color/md_white_1000" | ||
android:textSize="@dimen/text_small" /> | ||
|
||
<ImageView | ||
android:layout_width="wrap_content" | ||
android:layout_height="2dp" | ||
android:layout_gravity="center_vertical" | ||
android:layout_marginLeft="10dp" | ||
android:layout_marginRight="10dp" | ||
android:layout_weight="100" | ||
android:background="@color/md_white_1000" /> | ||
|
||
</LinearLayout> | ||
|
||
|
||
</RelativeLayout> | ||
|
Oops, something went wrong.