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