mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
parent
309a51f46a
commit
d72bd446fe
3 changed files with 54 additions and 0 deletions
|
|
@ -440,6 +440,24 @@ public class AchievementsActivity extends NavigationBaseActivity {
|
|||
,getResources().getString(R.string.images_used_explanation));
|
||||
}
|
||||
|
||||
@OnClick(R.id.images_nearby_info)
|
||||
public void showImagesViaNearbyInfo(){
|
||||
launchAlert(getResources().getString(R.string.statistics_wikidata_edits)
|
||||
,getResources().getString(R.string.images_via_nearby_explanation));
|
||||
}
|
||||
|
||||
@OnClick(R.id.images_featured_info)
|
||||
public void showFeaturedImagesInfo(){
|
||||
launchAlert(getResources().getString(R.string.statistics_featured)
|
||||
,getResources().getString(R.string.images_featured_explanation));
|
||||
}
|
||||
|
||||
@OnClick(R.id.thanks_received_info)
|
||||
public void showThanksReceivedInfo(){
|
||||
launchAlert(getResources().getString(R.string.statistics_thanks)
|
||||
,getResources().getString(R.string.thanks_received_explanation));
|
||||
}
|
||||
|
||||
/**
|
||||
* takes title and message as input to display alerts
|
||||
* @param title
|
||||
|
|
|
|||
|
|
@ -310,6 +310,17 @@
|
|||
android:layout_marginRight="@dimen/activity_margin_horizontal"
|
||||
android:text="@string/statistics_wikidata_edits" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="12dp"
|
||||
android:layout_height="12dp"
|
||||
android:id="@+id/images_nearby_info"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginRight="@dimen/activity_margin_horizontal"
|
||||
android:layout_marginEnd="@dimen/activity_margin_horizontal"
|
||||
android:layout_gravity="top"
|
||||
app:srcCompat="@drawable/ic_info_outline_blue_24dp"
|
||||
android:tint="?attr/icon" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
|
@ -367,6 +378,17 @@
|
|||
android:layout_marginRight="@dimen/activity_margin_horizontal"
|
||||
android:text="@string/statistics_featured" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="12dp"
|
||||
android:layout_height="12dp"
|
||||
android:id="@+id/images_featured_info"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginRight="@dimen/activity_margin_horizontal"
|
||||
android:layout_marginEnd="@dimen/activity_margin_horizontal"
|
||||
android:layout_gravity="top"
|
||||
app:srcCompat="@drawable/ic_info_outline_blue_24dp"
|
||||
android:tint="?attr/icon" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
|
|
@ -423,6 +445,17 @@
|
|||
android:layout_marginRight="@dimen/activity_margin_horizontal"
|
||||
android:text="@string/statistics_thanks" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="12dp"
|
||||
android:layout_height="12dp"
|
||||
android:id="@+id/thanks_received_info"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginRight="@dimen/activity_margin_horizontal"
|
||||
android:layout_marginEnd="@dimen/activity_margin_horizontal"
|
||||
android:layout_gravity="top"
|
||||
app:srcCompat="@drawable/ic_info_outline_blue_24dp"
|
||||
android:tint="?attr/icon" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
|
|
|
|||
|
|
@ -476,4 +476,7 @@ Upload your first media by tapping on the add button.</string>
|
|||
<string name="image_chooser_title">Choose Images to upload</string>
|
||||
|
||||
<string name="please_wait">Please wait…</string>
|
||||
<string name="images_featured_explanation">Featured pictures are images from highly skilled photographers and illustrators that the Wikimedia Commons community has chosen as some of the highest quality on the site.</string>
|
||||
<string name="images_via_nearby_explanation">Images Uploaded via Nearby places are the images which are uploaded by discovering places on the map.</string>
|
||||
<string name="thanks_received_explanation" >This feature allows editors to send a Thank you notification to users who make useful edits – by using a small thank link on the history page or diff page.</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue