mirror of https://github.com/ThmmyNoLife/mTHMMY
Apostolos Fanakis
8 years ago
9 changed files with 249 additions and 211 deletions
@ -1,79 +1,87 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout |
<LinearLayout |
||||
xmlns:android="http://schemas.android.com/apk/res/android" |
xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:id="@+id/child_board_row" |
|
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:background="@color/card_background" |
android:background="@color/card_background" |
||||
android:clickable="true" |
android:orientation="vertical"> |
||||
android:orientation="vertical" |
|
||||
android:paddingLeft="16dp" |
|
||||
android:paddingRight="16dp"> |
|
||||
|
|
||||
<LinearLayout |
<LinearLayout |
||||
|
android:id="@+id/child_board_row" |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="5dp" |
android:background="?attr/selectableItemBackground" |
||||
android:layout_marginTop="5dp" |
android:clickable="true" |
||||
android:orientation="horizontal"> |
android:focusable="true" |
||||
|
android:orientation="vertical" |
||||
|
android:paddingLeft="16dp" |
||||
|
android:paddingRight="16dp"> |
||||
|
|
||||
<TextView |
<LinearLayout |
||||
android:id="@+id/child_board_title" |
android:layout_width="match_parent" |
||||
android:layout_width="0dp" |
|
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_weight="1" |
android:layout_marginBottom="5dp" |
||||
android:gravity="center_vertical" |
android:layout_marginTop="5dp" |
||||
android:text="@string/child_board_title" |
android:orientation="horizontal"> |
||||
android:textColor="@color/accent" |
|
||||
android:textSize="22sp"/> |
|
||||
|
|
||||
<ImageButton |
<TextView |
||||
android:id="@+id/child_board_expand_collapse_button" |
android:id="@+id/child_board_title" |
||||
android:layout_width="wrap_content" |
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:background="@color/card_background" |
android:layout_weight="1" |
||||
android:contentDescription="@string/child_board_button" |
android:gravity="center_vertical" |
||||
android:src="@drawable/ic_arrow_drop_down"/> |
android:text="@string/child_board_title" |
||||
</LinearLayout> |
android:textColor="@color/accent" |
||||
|
android:textSize="22sp"/> |
||||
|
|
||||
<LinearLayout |
<ImageButton |
||||
android:id="@+id/child_board_expandable" |
android:id="@+id/child_board_expand_collapse_button" |
||||
android:layout_width="match_parent" |
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="5dp" |
android:background="@null" |
||||
android:orientation="vertical" |
android:contentDescription="@string/child_board_button" |
||||
android:visibility="gone"> |
android:src="@drawable/ic_arrow_drop_down"/> |
||||
|
</LinearLayout> |
||||
|
|
||||
<TextView |
<LinearLayout |
||||
android:id="@+id/child_board_mods" |
android:id="@+id/child_board_expandable" |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="1dp" |
android:layout_marginBottom="5dp" |
||||
android:layout_marginTop="1dp" |
android:orientation="vertical" |
||||
android:text="@string/child_board_mods" |
android:visibility="gone"> |
||||
android:textColor="@color/secondary_text" |
|
||||
android:textSize="12sp" |
|
||||
android:textStyle="italic"/> |
|
||||
|
|
||||
<TextView |
<TextView |
||||
android:id="@+id/child_board_stats" |
android:id="@+id/child_board_mods" |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="1dp" |
android:layout_marginBottom="1dp" |
||||
android:layout_marginTop="1dp" |
android:layout_marginTop="1dp" |
||||
android:text="@string/child_board_stats" |
android:text="@string/child_board_mods" |
||||
android:textColor="@color/secondary_text" |
android:textColor="@color/secondary_text" |
||||
android:textSize="12sp"/> |
android:textSize="12sp" |
||||
|
android:textStyle="italic"/> |
||||
|
|
||||
<TextView |
<TextView |
||||
android:id="@+id/child_board_last_post" |
android:id="@+id/child_board_stats" |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="1dp" |
android:layout_marginBottom="1dp" |
||||
android:layout_marginTop="1dp" |
android:layout_marginTop="1dp" |
||||
android:clickable="true" |
android:text="@string/child_board_stats" |
||||
android:text="@string/child_board_last_post" |
android:textColor="@color/secondary_text" |
||||
android:textColor="@color/primary_text" |
android:textSize="12sp"/> |
||||
android:textSize="12sp"/> |
|
||||
|
<TextView |
||||
|
android:id="@+id/child_board_last_post" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_marginBottom="1dp" |
||||
|
android:layout_marginTop="1dp" |
||||
|
android:clickable="true" |
||||
|
android:text="@string/child_board_last_post" |
||||
|
android:textColor="@color/primary_text" |
||||
|
android:textSize="12sp"/> |
||||
|
</LinearLayout> |
||||
</LinearLayout> |
</LinearLayout> |
||||
</LinearLayout> |
</LinearLayout> |
@ -1,77 +1,85 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout |
<LinearLayout |
||||
xmlns:android="http://schemas.android.com/apk/res/android" |
xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:id="@+id/topic_row_linear" |
|
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:clickable="true" |
android:orientation="vertical"> |
||||
android:orientation="vertical" |
|
||||
android:paddingLeft="16dp" |
|
||||
android:paddingRight="16dp"> |
|
||||
|
|
||||
<LinearLayout |
<LinearLayout |
||||
|
android:id="@+id/topic_row_linear" |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="5dp" |
android:background="?attr/selectableItemBackground" |
||||
android:layout_marginTop="5dp" |
android:clickable="true" |
||||
android:orientation="horizontal"> |
android:focusable="true" |
||||
|
android:orientation="vertical" |
||||
|
android:paddingLeft="16dp" |
||||
|
android:paddingRight="16dp"> |
||||
|
|
||||
<TextView |
<LinearLayout |
||||
android:id="@+id/topic_subject" |
android:layout_width="match_parent" |
||||
android:layout_width="0dp" |
|
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_weight="1" |
android:layout_marginBottom="5dp" |
||||
android:gravity="center_vertical" |
android:layout_marginTop="5dp" |
||||
android:text="@string/topic_subject" |
android:orientation="horizontal"> |
||||
android:textColor="@color/primary_text" |
|
||||
android:textSize="18sp"/> |
|
||||
|
|
||||
<ImageButton |
<TextView |
||||
android:id="@+id/topic_expand_collapse_button" |
android:id="@+id/topic_subject" |
||||
android:layout_width="wrap_content" |
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:background="@color/background" |
android:layout_weight="1" |
||||
android:contentDescription="@string/child_board_button" |
android:gravity="center_vertical" |
||||
android:src="@drawable/ic_arrow_drop_down"/> |
android:text="@string/topic_subject" |
||||
</LinearLayout> |
android:textColor="@color/primary_text" |
||||
|
android:textSize="18sp"/> |
||||
|
|
||||
<LinearLayout |
<ImageButton |
||||
android:id="@+id/topic_expandable" |
android:id="@+id/topic_expand_collapse_button" |
||||
android:layout_width="match_parent" |
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="5dp" |
android:background="@null" |
||||
android:orientation="vertical" |
android:contentDescription="@string/child_board_button" |
||||
android:visibility="gone"> |
android:src="@drawable/ic_arrow_drop_down"/> |
||||
|
</LinearLayout> |
||||
|
|
||||
<TextView |
<LinearLayout |
||||
android:id="@+id/topic_started_by" |
android:id="@+id/topic_expandable" |
||||
android:layout_width="wrap_content" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="1dp" |
android:layout_marginBottom="5dp" |
||||
android:layout_marginTop="1dp" |
android:orientation="vertical" |
||||
android:text="@string/topic_started_by" |
android:visibility="gone"> |
||||
android:textColor="@color/secondary_text" |
|
||||
android:textSize="12sp"/> |
|
||||
|
|
||||
<TextView |
<TextView |
||||
android:id="@+id/topic_stats" |
android:id="@+id/topic_started_by" |
||||
android:layout_width="wrap_content" |
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="1dp" |
android:layout_marginBottom="1dp" |
||||
android:layout_marginTop="1dp" |
android:layout_marginTop="1dp" |
||||
android:text="@string/topic_stats" |
android:text="@string/topic_started_by" |
||||
android:textColor="@color/secondary_text" |
android:textColor="@color/secondary_text" |
||||
android:textSize="12sp"/> |
android:textSize="12sp"/> |
||||
|
|
||||
<TextView |
<TextView |
||||
android:id="@+id/topic_last_post" |
android:id="@+id/topic_stats" |
||||
android:layout_width="match_parent" |
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="1dp" |
android:layout_marginBottom="1dp" |
||||
android:layout_marginTop="1dp" |
android:layout_marginTop="1dp" |
||||
android:clickable="true" |
android:text="@string/topic_stats" |
||||
android:text="@string/topic_last_post" |
android:textColor="@color/secondary_text" |
||||
android:textColor="@color/primary_text" |
android:textSize="12sp"/> |
||||
android:textSize="12sp"/> |
|
||||
|
<TextView |
||||
|
android:id="@+id/topic_last_post" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_marginBottom="1dp" |
||||
|
android:layout_marginTop="1dp" |
||||
|
android:clickable="true" |
||||
|
android:text="@string/topic_last_post" |
||||
|
android:textColor="@color/primary_text" |
||||
|
android:textSize="12sp"/> |
||||
|
</LinearLayout> |
||||
</LinearLayout> |
</LinearLayout> |
||||
</LinearLayout> |
</LinearLayout> |
@ -1,55 +1,61 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<RelativeLayout |
<FrameLayout |
||||
xmlns:android="http://schemas.android.com/apk/res/android" |
xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:id="@+id/latest_posts_row" |
|
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:background="@color/card_background" |
android:background="@color/card_background"> |
||||
android:clickable="true" |
|
||||
android:foreground="?android:attr/selectableItemBackground" |
|
||||
android:paddingBottom="6dp" |
|
||||
android:paddingLeft="10dp" |
|
||||
android:paddingRight="10dp" |
|
||||
android:paddingTop="6dp"> |
|
||||
|
|
||||
<TextView |
<RelativeLayout |
||||
android:id="@+id/title" |
android:id="@+id/latest_posts_row" |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_alignParentStart="true" |
android:background="?android:attr/selectableItemBackground" |
||||
android:layout_alignParentTop="true" |
android:clickable="true" |
||||
android:textAppearance="?attr/textAppearanceListItem" |
android:focusable="true" |
||||
android:textColor="@color/primary_text"/> |
android:paddingBottom="6dp" |
||||
|
android:paddingLeft="10dp" |
||||
|
android:paddingRight="10dp" |
||||
|
android:paddingTop="6dp"> |
||||
|
|
||||
<TextView |
<TextView |
||||
android:id="@+id/date" |
android:id="@+id/title" |
||||
android:layout_width="wrap_content" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_alignParentStart="true" |
android:layout_alignParentStart="true" |
||||
android:layout_below="@+id/title" |
android:layout_alignParentTop="true" |
||||
android:textColor="@color/secondary_text"/> |
android:textAppearance="?attr/textAppearanceListItem" |
||||
|
android:textColor="@color/primary_text"/> |
||||
|
|
||||
|
<TextView |
||||
|
android:id="@+id/date" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_alignParentStart="true" |
||||
|
android:layout_below="@+id/title" |
||||
|
android:textColor="@color/secondary_text"/> |
||||
|
|
||||
<View |
|
||||
android:id="@+id/spacer_divider" |
|
||||
android:layout_width="match_parent" |
|
||||
android:layout_height="1dp" |
|
||||
android:layout_below="@+id/date" |
|
||||
android:layout_marginBottom="3dp" |
|
||||
android:layout_marginTop="3dp" |
|
||||
android:background="@color/divider"/> |
|
||||
|
|
||||
<FrameLayout |
<View |
||||
android:layout_width="match_parent" |
android:id="@+id/spacer_divider" |
||||
android:layout_height="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_alignParentStart="true" |
android:layout_height="1dp" |
||||
android:layout_below="@+id/spacer_divider"> |
android:layout_below="@+id/date" |
||||
|
android:layout_marginBottom="3dp" |
||||
|
android:layout_marginTop="3dp" |
||||
|
android:background="@color/divider"/> |
||||
|
|
||||
<WebView |
<FrameLayout |
||||
android:id="@+id/post" |
|
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="match_parent" |
||||
android:background="@color/card_background" |
android:layout_alignParentStart="true" |
||||
android:text="@string/post"/> |
android:layout_below="@+id/spacer_divider"> |
||||
</FrameLayout> |
|
||||
</RelativeLayout> |
<WebView |
||||
|
android:id="@+id/post" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:background="@color/card_background" |
||||
|
android:text="@string/post"/> |
||||
|
</FrameLayout> |
||||
|
</RelativeLayout> |
||||
|
</FrameLayout> |
Loading…
Reference in new issue