Browse Source

color and design changes

pull/24/head
Iason Karakostas 8 years ago
parent
commit
c3a239597d
  1. 7
      app/src/main/java/gr/thmmy/mthmmy/activities/MainActivity.java
  2. BIN
      app/src/main/res/drawable/logo_try_no_letter.png
  3. 25
      app/src/main/res/layout/activity_login.xml
  4. 31
      app/src/main/res/layout/activity_topic.xml
  5. 81
      app/src/main/res/layout/activity_topic_post_row.xml
  6. 2
      app/src/main/res/values/colors.xml

7
app/src/main/java/gr/thmmy/mthmmy/activities/MainActivity.java

@ -132,15 +132,18 @@ public class MainActivity extends BaseActivity implements RecentFragment.OnListF
@Override
public int getCount() {
// Show 1 total pages.
return 1;
return 2;
}
@Override
public CharSequence getPageTitle(int position) {
switch (position) {
case 0:
return "RECENT";
return "RECENT POSTS";
case 1:
return "FORUM";
}
return null;
}
}

BIN
app/src/main/res/drawable/logo_try_no_letter.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

25
app/src/main/res/layout/activity_login.xml

@ -7,20 +7,37 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_gravity="top"
android:orientation="vertical"
android:paddingLeft="24dp"
android:paddingRight="24dp">
<Space
android:layout_width="match_parent"
android:layout_height="25dp" />
<ImageView
android:id="@+id/thmmyLogo"
android:layout_width="match_parent"
android:layout_height="144dp"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="0dp"
android:contentDescription="@string/thmmy_img_description"
android:src="@drawable/logo_try_no_letter"/>
<ImageView
android:id="@+id/thmmy3dImg"
android:layout_width="wrap_content"
android:layout_height="90dp"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="40dp"
android:layout_marginBottom="0dp"
android:contentDescription="@string/thmmy_img_description"
android:src="@drawable/thmmy_material_somehow"/>
<Space
android:layout_width="match_parent"
android:layout_height="10dp" />
<!-- Username Label -->
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"

31
app/src/main/res/layout/activity_topic.xml

@ -4,25 +4,22 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="gr.thmmy.mthmmy.activities.TopicActivity">
<view
class="gr.thmmy.mthmmy.utils.CustomRecyclerView"
android:id="@+id/list"
android:name="gr.thmmy.mthmmy.activities.Topic"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:clipToPadding="false"
android:background="@color/background"
app:layoutManager="LinearLayoutManager"
tools:context="gr.thmmy.mthmmy.activities.TopicActivity"
tools:listitem="@layout/fragment_recent_row" />
class="gr.thmmy.mthmmy.utils.CustomRecyclerView"
android:id="@+id/list"
android:name="gr.thmmy.mthmmy.activities.Topic"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:clipToPadding="false"
android:background="@color/white"
app:layoutManager="LinearLayoutManager"
tools:context="gr.thmmy.mthmmy.activities.TopicActivity"
tools:listitem="@layout/activity_topic_post_row" />
<ProgressBar
android:visibility="invisible"
@ -33,3 +30,5 @@
android:layout_centerHorizontal="true" />
</RelativeLayout>

81
app/src/main/res/layout/activity_topic_post_row.xml

@ -29,4 +29,83 @@
android:layout_below="@+id/author"
android:layout_alignRight="@+id/dateTime"
android:layout_alignEnd="@+id/dateTime" />
</RelativeLayout>
</RelativeLayout>
<!--<?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"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:paddingEnd="4dp"-->
<!--android:paddingStart="4dp"-->
<!--android:orientation="vertical"-->
<!--android:background="@color/white">-->
<!--<android.support.v7.widget.CardView-->
<!--xmlns:card_view="http://schemas.android.com/apk/res-auto"-->
<!--android:id="@+id/card_view"-->
<!--android:layout_gravity="center"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--android:foreground="?android:attr/selectableItemBackground"-->
<!--card_view:cardCornerRadius="0dp"-->
<!--card_view:cardBackgroundColor="@color/white"-->
<!--card_view:cardElevation="2dp"-->
<!--card_view:cardPreventCornerOverlap="true"-->
<!--card_view:cardUseCompatPadding="true">-->
<!--<RelativeLayout-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:paddingTop="6dp"-->
<!--android:paddingBottom="6dp"-->
<!--android:paddingLeft="10dp"-->
<!--android:paddingRight="10dp"-->
<!--android:layout_alignParentTop="true">-->
<!--<TextView-->
<!--android:id="@+id/username"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_alignParentTop="true"-->
<!--android:layout_alignParentLeft="true"-->
<!--android:layout_alignParentStart="true"-->
<!--android:textAppearance="?attr/textAppearanceListItem"-->
<!--android:textColor="@color/md_grey_500" />-->
<!--<Space-->
<!--android:id="@+id/spacer"-->
<!--android:layout_below="@+id/username"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="20dp"-->
<!--android:layout_alignParentBottom="@+id/username"-->
<!--android:layout_toRightOf="@+id/dateTime"-->
<!--android:layout_toEndOf="@+id/dateTime"/>-->
<!--<TextView-->
<!--android:id="@+id/content"-->
<!--android:layout_below="@+id/spacer"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--android:textAppearance="?attr/textAppearanceListItem"-->
<!--android:textColor="@color/md_grey_500" />-->
<!--<TextView-->
<!--android:id="@+id/dateTime"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_below="@+id/spacer"-->
<!--android:layout_alignParentLeft="true"-->
<!--android:layout_alignParentStart="true"-->
<!--android:textColor="@color/md_grey_500"/>-->
<!--</RelativeLayout>-->
<!--</android.support.v7.widget.CardView>-->
<!--</LinearLayout>-->

2
app/src/main/res/values/colors.xml

@ -12,7 +12,7 @@
<color name="primary">#3F51B5</color>
<color name="primary_dark">#303F9F</color>
<color name="primary_light">#C5CAE9</color>
<color name="accent">#009688</color>
<color name="accent">#FFFFFF</color>
<color name="primary_text">#E7E7E7</color>
<color name="secondary_text">#757575</color>

Loading…
Cancel
Save