Add card view to activity

This commit is contained in:
neslihanturan 2018-09-12 15:47:00 +03:00
parent 730dabd61c
commit 69df3c01c9
4 changed files with 11 additions and 18 deletions

View file

@ -115,7 +115,8 @@ public class ContributionsFragment
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_contributions, container, false);
nearbyNoificationCardView = view.findViewById(R.id.card_view_nearby);
if (savedInstanceState != null) {
mediaDetailPagerFragment = (MediaDetailPagerFragment)getChildFragmentManager().findFragmentByTag(MEDIA_DETAIL_PAGER_FRAGMENT_TAG);
contributionsListFragment = (ContributionsListFragment) getChildFragmentManager().findFragmentByTag(CONTRIBUTION_LIST_FRAGMENT_TAG);

View file

@ -4,29 +4,21 @@
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<!--
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<fr.free.nrw.commons.contributions.CustomNotificationsCardView
android:id="@+id/card_view_notifications"
<fr.free.nrw.commons.nearby.NearbyNoificationCardView
android:id="@+id/card_view_nearby"
android:layout_height="wrap_content"
android:layout_width="match_parent"
app:cardBackgroundColor="?attr/mainCardBackround"
app:cardBackgroundColor="?attr/mainCardBackground"
>
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:id="@+id/customNotificationsProgressBar"
/>
</fr.free.nrw.commons.contributions.CustomNotificationsCardView>
</fr.free.nrw.commons.nearby.NearbyNoificationCardView>
</RelativeLayout>
-->
<FrameLayout
android:layout_width="match_parent"

View file

@ -3,7 +3,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="?attr/mainCardBackround"
android:background="?attr/mainCardBackground"
android:layout_centerVertical="true"
android:minHeight="72dp">

View file

@ -21,7 +21,7 @@
<item name="buttonBackgroundPressed">@color/pressed_button_dark</item>
<item name="textDisabled">@color/disabled_button_text_color_dark</item>
<item name="textEnabled">@color/enabled_button_text_color_dark</item>
<item name="mainCardBackround">@color/main_background_dark</item>
<item name="mainCardBackground">@color/main_background_dark</item>
</style>
<style name="LightAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
@ -44,7 +44,7 @@
<item name="buttonBackgroundPressed">@color/pressed_button_light</item>
<item name="textDisabled">@color/disabled_button_text_color_light</item>
<item name="textEnabled">@color/enabled_button_text_color_light</item>
<item name="mainCardBackround">@color/primaryDarkColor</item>
<item name="mainCardBackground">@color/primaryDarkColor</item>
</style>
<style name="DarkSpinnerTheme" parent="DarkAppTheme">