Fixed UI in dark theme.

This commit is contained in:
Alex Ning 2019-08-12 09:50:25 +08:00
parent 90c7c66405
commit 4ca9b06551
7 changed files with 11 additions and 7 deletions

View File

@ -6,7 +6,6 @@ import android.content.res.Configuration;
import android.content.res.Resources; import android.content.res.Resources;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.util.Log;
import android.view.Menu; import android.view.Menu;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.View; import android.view.View;
@ -354,9 +353,6 @@ public class ViewPostDetailActivity extends AppCompatActivity {
ViewPostDetailActivity.this.children = children; ViewPostDetailActivity.this.children = children;
comments = expandedComments; comments = expandedComments;
if(comments != null) {
Log.i("thisis ", "not null");
}
hasMoreChildren = children.size() != 0; hasMoreChildren = children.size() != 0;
mAdapter.addComments(expandedComments, hasMoreChildren); mAdapter.addComments(expandedComments, hasMoreChildren);

View File

@ -5,6 +5,7 @@
android:id="@+id/coordinator_layout_view_post_detail" android:id="@+id/coordinator_layout_view_post_detail"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/cardViewBackgroundColor"
tools:application=".ViewPostDetailActivity"> tools:application=".ViewPostDetailActivity">
<com.google.android.material.appbar.AppBarLayout <com.google.android.material.appbar.AppBarLayout

View File

@ -2,7 +2,8 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linear_layout_item_comment" android:id="@+id/linear_layout_item_comment"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:background="@color/cardViewBackgroundColor">
<View <View
android:id="@+id/vertical_block_item_post_comment" android:id="@+id/vertical_block_item_post_comment"

View File

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:background="@color/cardViewBackgroundColor">
<View <View
android:id="@+id/vertical_block_item_load_more_comments" android:id="@+id/vertical_block_item_load_more_comments"

View File

@ -3,7 +3,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical"
android:background="@color/cardViewBackgroundColor">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/relative_layout_item_post_detail" android:id="@+id/relative_layout_item_post_detail"

View File

@ -43,4 +43,6 @@
<color name="tabLayoutWithCollapsedCollapsingToolbarTabIndicator">@color/tabLayoutWithCollapsedCollapsingToolbarTextColor</color> <color name="tabLayoutWithCollapsedCollapsingToolbarTabIndicator">@color/tabLayoutWithCollapsedCollapsingToolbarTextColor</color>
<color name="navBarColor">@color/backgroundColor</color> <color name="navBarColor">@color/backgroundColor</color>
<color name="cardViewBackgroundColor">#242424</color>
</resources> </resources>

View File

@ -43,4 +43,6 @@
<color name="tabLayoutWithCollapsedCollapsingToolbarTabIndicator">@color/tabLayoutWithCollapsedCollapsingToolbarTextColor</color> <color name="tabLayoutWithCollapsedCollapsingToolbarTabIndicator">@color/tabLayoutWithCollapsedCollapsingToolbarTextColor</color>
<color name="navBarColor">#FFFFFF</color> <color name="navBarColor">#FFFFFF</color>
<color name="cardViewBackgroundColor">#FFFFFF</color>
</resources> </resources>