mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add card view to activity
This commit is contained in:
parent
730dabd61c
commit
69df3c01c9
4 changed files with 11 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue