Skip to content
Snippets Groups Projects
Commit fe1bf4fc authored by Benjamin Dengler's avatar Benjamin Dengler
Browse files

Updated libraries and replaced ActionBar-PullToRefresh with SwipeRefreshLayout.

parent c553a707
No related branches found
No related tags found
No related merge requests found
Showing
with 166 additions and 165 deletions
Loading
Loading
@@ -32,15 +32,14 @@ android {
dependencies {
compile 'commons-io:commons-io:2.4'
compile 'commons-lang:commons-lang:2.6'
compile 'commons-codec:commons-codec:1.3'
compile 'com.google.code.gson:gson:2.2.4'
compile 'net.danlew:android.joda:2.3.2'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.squareup.retrofit:retrofit:1.6.0'
compile 'com.jakewharton:butterknife:5.1.1'
compile 'com.github.chrisbanes.actionbarpulltorefresh:library:0.9.3'
compile 'de.keyboardsurfer.android.widget:crouton:1.8.4'
compile 'com.android.support:support-v4:19.1.0'
compile 'commons-codec:commons-codec:1.9'
compile 'com.google.code.gson:gson:2.3'
compile 'net.danlew:android.joda:2.4.1'
compile 'com.squareup.picasso:picasso:2.3.4'
compile 'com.squareup.retrofit:retrofit:1.7.0'
compile 'com.jakewharton:butterknife:5.1.2'
compile 'de.keyboardsurfer.android.widget:crouton:1.8.5@aar'
compile 'com.android.support:support-v4:20.0.0'
compile fileTree(dir: 'libs', include: ['*.jar'])
}
 
Loading
Loading
Loading
Loading
@@ -10,14 +10,11 @@ import retrofit.Callback;
import retrofit.RetrofitError;
import retrofit.client.Response;
 
import uk.co.senab.actionbarpulltorefresh.library.ActionBarPullToRefresh;
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout;
import uk.co.senab.actionbarpulltorefresh.library.listeners.OnRefreshListener;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Loading
Loading
@@ -36,11 +33,11 @@ import com.bd.gitlab.tools.RetrofitHelper;
import de.keyboardsurfer.android.widget.crouton.Crouton;
import de.keyboardsurfer.android.widget.crouton.Style;
 
public class CommitsFragment extends Fragment implements OnRefreshListener, OnItemClickListener {
public class CommitsFragment extends Fragment implements SwipeRefreshLayout.OnRefreshListener, OnItemClickListener {
@InjectView(R.id.fragmentList) ListView listView;
@InjectView(R.id.repo_url) EditText repoUrl;
@InjectView(R.id.ptr_layout) PullToRefreshLayout ptrLayout;
@InjectView(R.id.swipe_layout) SwipeRefreshLayout swipeLayout;
public CommitsFragment() {}
Loading
Loading
@@ -51,7 +48,8 @@ public class CommitsFragment extends Fragment implements OnRefreshListener, OnIt
listView.setOnItemClickListener(this);
 
ActionBarPullToRefresh.from(getActivity()).allChildrenArePullable().listener(this).setup(ptrLayout);
swipeLayout.setOnRefreshListener(this);
swipeLayout.setColorSchemeResources(android.R.color.holo_blue_bright, android.R.color.holo_green_light, android.R.color.holo_orange_light, android.R.color.holo_red_light);
if(Repository.selectedProject != null)
loadData();
Loading
Loading
@@ -66,7 +64,7 @@ public class CommitsFragment extends Fragment implements OnRefreshListener, OnIt
}
@Override
public void onRefreshStarted(View view) {
public void onRefresh() {
loadData();
}
Loading
Loading
@@ -77,15 +75,15 @@ public class CommitsFragment extends Fragment implements OnRefreshListener, OnIt
repoUrl.setText("git@" + Repository.getServerUrl().replaceAll("http://", "").replaceAll("https://", "") + ":" + Repository.selectedProject.getPathWithNamespace() + ".git");
if(Repository.selectedBranch == null) {
if(ptrLayout != null && ptrLayout.isRefreshing())
ptrLayout.setRefreshComplete();
if(swipeLayout != null && swipeLayout.isRefreshing())
swipeLayout.setRefreshing(false);
 
listView.setAdapter(null);
return;
}
if(ptrLayout != null && !ptrLayout.isRefreshing())
ptrLayout.setRefreshing(true);
if(swipeLayout != null && !swipeLayout.isRefreshing())
swipeLayout.setRefreshing(true);
Repository.getService().getCommits(Repository.selectedProject.getId(), Repository.selectedBranch.getName(), commitsCallback);
}
Loading
Loading
@@ -94,8 +92,8 @@ public class CommitsFragment extends Fragment implements OnRefreshListener, OnIt
@Override
public void success(List<DiffLine> commits, Response resp) {
if(ptrLayout != null && ptrLayout.isRefreshing())
ptrLayout.setRefreshComplete();
if(swipeLayout != null && swipeLayout.isRefreshing())
swipeLayout.setRefreshing(false);
if(commits.size() > 0)
Repository.newestCommit = commits.get(0);
Loading
Loading
@@ -110,8 +108,8 @@ public class CommitsFragment extends Fragment implements OnRefreshListener, OnIt
public void failure(RetrofitError e) {
RetrofitHelper.printDebugInfo(getActivity(), e);
 
if(ptrLayout != null && ptrLayout.isRefreshing())
ptrLayout.setRefreshComplete();
if(swipeLayout != null && swipeLayout.isRefreshing())
swipeLayout.setRefreshing(false);
 
Crouton.makeText(getActivity(), R.string.connection_error_commits, Style.ALERT).show();
listView.setAdapter(null);
Loading
Loading
Loading
Loading
@@ -10,13 +10,10 @@ import retrofit.Callback;
import retrofit.RetrofitError;
import retrofit.client.Response;
 
import uk.co.senab.actionbarpulltorefresh.library.ActionBarPullToRefresh;
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout;
import uk.co.senab.actionbarpulltorefresh.library.listeners.OnRefreshListener;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Loading
Loading
@@ -35,13 +32,13 @@ import com.bd.gitlab.tools.RetrofitHelper;
import de.keyboardsurfer.android.widget.crouton.Crouton;
import de.keyboardsurfer.android.widget.crouton.Style;
 
public class FilesFragment extends Fragment implements OnItemClickListener, OnRefreshListener {
public class FilesFragment extends Fragment implements OnItemClickListener, SwipeRefreshLayout.OnRefreshListener {
private ArrayList<String> path;
@InjectView(R.id.fragmentList) ListView listView;
@InjectView(R.id.error_text) TextView errorText;
@InjectView(R.id.ptr_layout) PullToRefreshLayout ptrLayout;
@InjectView(R.id.swipe_layout) SwipeRefreshLayout swipeLayout;
public FilesFragment() {}
Loading
Loading
@@ -52,7 +49,8 @@ public class FilesFragment extends Fragment implements OnItemClickListener, OnRe
listView.setOnItemClickListener(this);
 
ActionBarPullToRefresh.from(getActivity()).allChildrenArePullable().listener(this).setup(ptrLayout);
swipeLayout.setOnRefreshListener(this);
swipeLayout.setColorSchemeResources(android.R.color.holo_blue_bright, android.R.color.holo_green_light, android.R.color.holo_orange_light, android.R.color.holo_red_light);
path = new ArrayList<String>();
Loading
Loading
@@ -74,7 +72,7 @@ public class FilesFragment extends Fragment implements OnItemClickListener, OnRe
}
@Override
public void onRefreshStarted(View view) {
public void onRefresh() {
loadFiles();
}
Loading
Loading
@@ -83,8 +81,8 @@ public class FilesFragment extends Fragment implements OnItemClickListener, OnRe
if(Repository.selectedBranch != null)
branch = Repository.selectedBranch.getName();
if(ptrLayout != null && !ptrLayout.isRefreshing())
ptrLayout.setRefreshing(true);
if(swipeLayout != null && !swipeLayout.isRefreshing())
swipeLayout.setRefreshing(true);
String currentPath = "";
for(String p : path) {
Loading
Loading
@@ -98,8 +96,8 @@ public class FilesFragment extends Fragment implements OnItemClickListener, OnRe
@Override
public void success(List<TreeItem> files, Response resp) {
if(ptrLayout != null && ptrLayout.isRefreshing())
ptrLayout.setRefreshComplete();
if(swipeLayout != null && swipeLayout.isRefreshing())
swipeLayout.setRefreshing(false);
FilesAdapter filesAdapter = new FilesAdapter(getActivity(), files);
listView.setAdapter(filesAdapter);
Loading
Loading
@@ -107,8 +105,8 @@ public class FilesFragment extends Fragment implements OnItemClickListener, OnRe
@Override
public void failure(RetrofitError e) {
if(ptrLayout != null && ptrLayout.isRefreshing())
ptrLayout.setRefreshComplete();
if(swipeLayout != null && swipeLayout.isRefreshing())
swipeLayout.setRefreshing(false);
if(e.getResponse().getStatus() == 404) {
errorText.setVisibility(View.VISIBLE);
Loading
Loading
Loading
Loading
@@ -10,15 +10,12 @@ import retrofit.Callback;
import retrofit.RetrofitError;
import retrofit.client.Response;
 
import uk.co.senab.actionbarpulltorefresh.library.ActionBarPullToRefresh;
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout;
import uk.co.senab.actionbarpulltorefresh.library.listeners.OnRefreshListener;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Loading
Loading
@@ -37,11 +34,11 @@ import com.bd.gitlab.tools.RetrofitHelper;
import de.keyboardsurfer.android.widget.crouton.Crouton;
import de.keyboardsurfer.android.widget.crouton.Style;
 
public class IssuesFragment extends Fragment implements OnItemClickListener, OnRefreshListener {
public class IssuesFragment extends Fragment implements OnItemClickListener, SwipeRefreshLayout.OnRefreshListener {
@InjectView(R.id.add_issue_button) Button addIssueButton;
@InjectView(R.id.fragmentList) ListView listView;
@InjectView(R.id.ptr_layout) PullToRefreshLayout ptrLayout;
@InjectView(R.id.swipe_layout) SwipeRefreshLayout swipeLayout;
public IssuesFragment() {}
Loading
Loading
@@ -52,7 +49,8 @@ public class IssuesFragment extends Fragment implements OnItemClickListener, OnR
listView.setOnItemClickListener(this);
 
ActionBarPullToRefresh.from(getActivity()).allChildrenArePullable().listener(this).setup(ptrLayout);
swipeLayout.setOnRefreshListener(this);
swipeLayout.setColorSchemeResources(android.R.color.holo_blue_bright, android.R.color.holo_green_light, android.R.color.holo_orange_light, android.R.color.holo_red_light);
if(Repository.selectedProject != null)
loadData();
Loading
Loading
@@ -67,13 +65,13 @@ public class IssuesFragment extends Fragment implements OnItemClickListener, OnR
}
@Override
public void onRefreshStarted(View view) {
public void onRefresh() {
loadData();
}
public void loadData() {
if(ptrLayout != null && !ptrLayout.isRefreshing())
ptrLayout.setRefreshing(true);
if(swipeLayout != null && !swipeLayout.isRefreshing())
swipeLayout.setRefreshing(true);
Repository.getService().getIssues(Repository.selectedProject.getId(), issuesCallback);
}
Loading
Loading
@@ -82,8 +80,8 @@ public class IssuesFragment extends Fragment implements OnItemClickListener, OnR
@Override
public void success(List<Issue> issues, Response resp) {
if(ptrLayout != null && ptrLayout.isRefreshing())
ptrLayout.setRefreshComplete();
if(swipeLayout != null && swipeLayout.isRefreshing())
swipeLayout.setRefreshing(false);
IssuesAdapter issueAdapter = new IssuesAdapter(getActivity(), issues);
listView.setAdapter(issueAdapter);
Loading
Loading
@@ -97,8 +95,8 @@ public class IssuesFragment extends Fragment implements OnItemClickListener, OnR
public void failure(RetrofitError e) {
RetrofitHelper.printDebugInfo(getActivity(), e);
if(ptrLayout != null && ptrLayout.isRefreshing())
ptrLayout.setRefreshComplete();
if(swipeLayout != null && swipeLayout.isRefreshing())
swipeLayout.setRefreshing(false);
Crouton.makeText(getActivity(), R.string.connection_error_issues, Style.ALERT).show();
listView.setAdapter(null);
Loading
Loading
Loading
Loading
@@ -10,14 +10,11 @@ import retrofit.Callback;
import retrofit.RetrofitError;
import retrofit.client.Response;
 
import uk.co.senab.actionbarpulltorefresh.library.ActionBarPullToRefresh;
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout;
import uk.co.senab.actionbarpulltorefresh.library.listeners.OnRefreshListener;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Loading
Loading
@@ -36,12 +33,12 @@ import com.bd.gitlab.tools.RetrofitHelper;
import de.keyboardsurfer.android.widget.crouton.Crouton;
import de.keyboardsurfer.android.widget.crouton.Style;
 
public class UsersFragment extends Fragment implements OnItemClickListener, OnRefreshListener {
public class UsersFragment extends Fragment implements OnItemClickListener, SwipeRefreshLayout.OnRefreshListener {
@InjectView(R.id.add_user_button) Button addUserButton;
@InjectView(R.id.fragmentList) ListView listView;
@InjectView(R.id.error_text) TextView errorText;
@InjectView(R.id.ptr_layout) PullToRefreshLayout ptrLayout;
@InjectView(R.id.swipe_layout) SwipeRefreshLayout swipeLayout;
public UsersFragment() {}
Loading
Loading
@@ -52,7 +49,8 @@ public class UsersFragment extends Fragment implements OnItemClickListener, OnRe
listView.setOnItemClickListener(this);
 
ActionBarPullToRefresh.from(getActivity()).allChildrenArePullable().listener(this).setup(ptrLayout);
swipeLayout.setOnRefreshListener(this);
swipeLayout.setColorSchemeResources(android.R.color.holo_blue_bright, android.R.color.holo_green_light, android.R.color.holo_orange_light, android.R.color.holo_red_light);
if(Repository.selectedProject != null)
loadData();
Loading
Loading
@@ -67,21 +65,21 @@ public class UsersFragment extends Fragment implements OnItemClickListener, OnRe
}
@Override
public void onRefreshStarted(View view) {
public void onRefresh() {
loadData();
}
public void loadData() {
if(ptrLayout != null && !ptrLayout.isRefreshing())
ptrLayout.setRefreshing(true);
if(swipeLayout != null && !swipeLayout.isRefreshing())
swipeLayout.setRefreshing(true);
if(Repository.selectedProject.getGroup() == null) {
errorText.setVisibility(View.VISIBLE);
errorText.setText(R.string.not_in_group);
listView.setVisibility(View.GONE);
addUserButton.setVisibility(View.GONE);
if(ptrLayout != null && ptrLayout.isRefreshing())
ptrLayout.setRefreshComplete();
if(swipeLayout != null && swipeLayout.isRefreshing())
swipeLayout.setRefreshing(false);
return;
}
Loading
Loading
@@ -92,8 +90,8 @@ public class UsersFragment extends Fragment implements OnItemClickListener, OnRe
@Override
public void success(List<User> users, Response resp) {
if(ptrLayout != null && ptrLayout.isRefreshing())
ptrLayout.setRefreshComplete();
if(swipeLayout != null && swipeLayout.isRefreshing())
swipeLayout.setRefreshing(false);
errorText.setVisibility(View.GONE);
listView.setVisibility(View.VISIBLE);
Loading
Loading
@@ -107,8 +105,8 @@ public class UsersFragment extends Fragment implements OnItemClickListener, OnRe
@Override
public void failure(RetrofitError e) {
if(ptrLayout != null && ptrLayout.isRefreshing())
ptrLayout.setRefreshComplete();
if(swipeLayout != null && swipeLayout.isRefreshing())
swipeLayout.setRefreshing(false);
if(e.getResponse() != null && e.getResponse().getStatus() == 404) {
errorText.setVisibility(View.VISIBLE);
Loading
Loading
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Loading
Loading
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Loading
Loading
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Loading
Loading
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
 
<!--
This title strip will display the currently visible page title, as well as the page
titles for adjacent pages.
-->
<ImageView
android:id="@+id/title"
android:layout_width="100dp"
Loading
Loading
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
Loading
Loading
<RelativeLayout
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swipe_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
 
<EditText
android:id="@+id/repo_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:clickable="true"
android:cursorVisible="false"
android:drawableRight="@drawable/ic_action_copy"
android:focusable="false"
android:focusableInTouchMode="false"
android:inputType="textUri"
android:maxLines="1" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<EditText
android:id="@+id/repo_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:clickable="true"
android:cursorVisible="false"
android:drawableRight="@drawable/ic_action_copy"
android:focusable="false"
android:focusableInTouchMode="false"
android:inputType="textUri"
android:maxLines="1" />
 
<uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout
android:id="@+id/ptr_layout"
android:layout_alignParentLeft="true"
android:layout_below="@+id/repo_url"
android:layout_width="match_parent"
android:layout_height="match_parent" >
 
<ListView
android:id="@+id/fragmentList"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</ListView>
android:layout_height="fill_parent" />
 
</uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout>
</LinearLayout>
 
</RelativeLayout>
\ No newline at end of file
</android.support.v4.widget.SwipeRefreshLayout>
\ No newline at end of file
<uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ptr_layout"
android:id="@+id/swipe_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
 
<ListView
android:id="@+id/fragmentList"
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" >
</ListView>
android:layout_height="fill_parent">
<ListView
android:id="@+id/fragmentList"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" />
<TextView
android:id="@+id/error_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="@string/files_not_supported"
android:gravity="center"
android:visibility="gone"/>
</RelativeLayout>
</android.support.v4.widget.SwipeRefreshLayout>
 
<TextView
android:id="@+id/error_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="@string/files_not_supported"
android:gravity="center"
android:visibility="gone"/>
</uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout>
\ No newline at end of file
<RelativeLayout
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swipe_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
 
<Button
android:id="@+id/add_issue_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:drawableLeft="@drawable/ic_action_add"
android:enabled="false"
android:text="@string/add_issue" />
<uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout
android:id="@+id/ptr_layout"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_below="@+id/add_issue_button" >
android:layout_height="match_parent" >
<Button
android:id="@+id/add_issue_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:drawableLeft="@drawable/ic_action_add"
android:enabled="false"
android:text="@string/add_issue" />
 
<ListView
android:id="@+id/fragmentList"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_below="@+id/add_issue_button" />
 
</uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout>
</RelativeLayout>
 
</RelativeLayout>
\ No newline at end of file
</android.support.v4.widget.SwipeRefreshLayout>
\ No newline at end of file
<RelativeLayout
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swipe_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
 
<Button
android:id="@+id/add_user_button"
style="?android:attr/buttonBarButtonStyle"
android:enabled="false"
android:drawableLeft="@drawable/ic_action_add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:text="@string/add_user" />
<uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout
android:id="@+id/ptr_layout"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_below="@+id/add_user_button" >
android:layout_height="match_parent" >
<Button
android:id="@+id/add_user_button"
style="?android:attr/buttonBarButtonStyle"
android:enabled="false"
android:drawableLeft="@drawable/ic_action_add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:text="@string/add_user" />
 
<ListView
android:id="@+id/fragmentList"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_below="@+id/add_user_button" />
 
</uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout>
<TextView
android:id="@+id/error_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:gravity="center"
android:visibility="gone"/>
<TextView
android:id="@+id/error_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:gravity="center"
android:visibility="gone"/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
</android.support.v4.widget.SwipeRefreshLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
Loading
Loading
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
Loading
Loading
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
 
<item
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment