mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2025-06-21 09:35:19 +00:00
Display like buttons.
This commit is contained in:
@ -67,8 +67,6 @@
|
||||
android:contentDescription="@string/post_action_btn_description"/>
|
||||
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Post image (if any) -->
|
||||
@ -87,6 +85,13 @@
|
||||
android:layout_height="wrap_content"
|
||||
tools:text="Post content" />
|
||||
|
||||
<!-- Like button -->
|
||||
<org.communiquons.android.comunic.client.ui.views.LikeButtonView
|
||||
android:id="@+id/like_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/PostLikeButton"/>
|
||||
|
||||
<!-- Post comments -->
|
||||
<LinearLayout
|
||||
android:id="@+id/comments_list"
|
||||
|
27
app/src/main/res/layout/view_like_button.xml
Normal file
27
app/src/main/res/layout/view_like_button.xml
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="3dp"
|
||||
android:id="@+id/like_container">
|
||||
|
||||
<!-- Like image -->
|
||||
<ImageView
|
||||
android:id="@+id/like_img"
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:contentDescription="@string/like_button_img"
|
||||
android:src="@drawable/like_up"
|
||||
android:layout_marginEnd="3dp"/>
|
||||
|
||||
<!-- Title -->
|
||||
<TextView
|
||||
android:id="@+id/like_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
tools:text="Like" />
|
||||
|
||||
</LinearLayout>
|
Reference in New Issue
Block a user