Add NoPermissionsFragment

This commit is contained in:
misaochan 2017-06-02 01:30:13 +10:00
parent 2e72b29fba
commit 18bb59403b
4 changed files with 63 additions and 15 deletions

View file

@ -0,0 +1,30 @@
package fr.free.nrw.commons.nearby;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import fr.free.nrw.commons.R;
/**
* A simple {@link Fragment} subclass.
*/
public class NoPermissionsFragment extends Fragment {
public NoPermissionsFragment() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_no_permissions, container, false);
}
}

View file

@ -0,0 +1,13 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="fr.free.nrw.commons.nearby.NoPermissionsFragment">
<!-- TODO: Update blank fragment layout -->
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
</FrameLayout>

View file

@ -198,4 +198,7 @@ Tap this message (or hit back) to skip this step.</string>
<string name="no_description_found">no description found</string>
<string name="nearby_info_menu_commons_article">Commons Article</string>
<string name="nearby_info_menu_wikidata_article">WikiData Article</string>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
</resources>