Newer
Older
NemophilaClient / app / src / main / res / layout / layout_friends_activity.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">

    <FrameLayout
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="0.3"
        android:layout_marginStart="10dp">

        <ImageView
            android:id="@+id/favorite"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="center_horizontal"
            app:srcCompat="@drawable/ic_star"
            android:scaleType="fitCenter"
            android:padding="5dp"
            android:visibility="invisible"/>

        <ImageButton
            android:id="@+id/favorite_outline"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="center_horizontal"
            app:srcCompat="@drawable/ic_star_outline"
            android:scaleType="fitCenter"
            android:padding="5dp"
            android:background="#00000000"/>

    </FrameLayout>

    <ImageView
        android:id="@+id/friendIcon"
        android:layout_width="0dp"
        android:layout_height="56dp"
        android:layout_weight="0.5"
        tools:srcCompat="@tools:sample/avatars" />

    <TextView
        android:id="@+id/friendName"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:gravity="center"
        android:text="TextView" />

    <Button
        android:id="@+id/friendDelete"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="0.5"
        android:text="削除" />

</LinearLayout>