Merge pull request #148 from Bnyro/master

Update channel page
This commit is contained in:
Farbod 2022-04-30 11:37:22 +04:30 committed by GitHub
commit 33a827657e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
@ -23,49 +23,58 @@
android:layout_width="match_parent"
android:layout_height="80dp" />
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/channel_image"
android:layout_width="55dp"
android:layout_height="55dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_marginLeft="10dp"
android:orientation="horizontal">
<TextView
android:id="@+id/channel_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="7dp"
android:text="Mia Plays"
android:textSize="20sp"
android:textStyle="bold" />
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/channel_image"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_marginRight="10dp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/channel_subscribe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:background="?android:attr/selectableItemBackground"
android:text="@string/subscribe"
android:textColor="?attr/colorPrimary"
<LinearLayout
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:orientation="vertical">
/>
<TextView
android:id="@+id/channel_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginTop="2dp"
android:text="Channel Name"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/channel_subs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/app_name" />
<TextView
android:id="@+id/channel_subs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:text="@string/app_name"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginRight="10dp"
android:text="Description"
android:textSize="17sp"
android:textStyle="bold" />
</LinearLayout>
<com.google.android.material.button.MaterialButton
android:id="@+id/channel_subscribe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:background="?android:attr/selectableItemBackground"
android:text="@string/subscribe"
android:textColor="?attr/colorPrimary"
/>
</LinearLayout>
<TextView
android:id="@+id/channel_description"
@ -102,4 +111,4 @@
</RelativeLayout>
</LinearLayout>
</ScrollView>
</com.github.libretube.CustomSwipeToRefresh>
</com.github.libretube.CustomSwipeToRefresh>