release 0.1 #30
@ -13,7 +13,7 @@
|
|||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
|
|
||||||
android:theme="@style/AppTheme"
|
android:theme="@style/AppTheme"
|
||||||
tools:ignore="GoogleAppIndexingWarning">
|
tools:ignore="AllowBackup,GoogleAppIndexingWarning">
|
||||||
|
|
||||||
<activity android:name=".view.LoginActivity" />
|
<activity android:name=".view.LoginActivity" />
|
||||||
|
|
||||||
@ -22,6 +22,16 @@
|
|||||||
android:label="@string/title_activity_new_board"
|
android:label="@string/title_activity_new_board"
|
||||||
android:theme="@style/AppTheme.NoActionBar" />
|
android:theme="@style/AppTheme.NoActionBar" />
|
||||||
|
|
||||||
|
<activity
|
||||||
|
android:name=".view.BoardViewActivity"
|
||||||
|
android:theme="@style/AppTheme.NoActionBar" />
|
||||||
|
|
||||||
|
<activity
|
||||||
|
android:name=".view.WListsListActivity"
|
||||||
|
android:label="WList"
|
||||||
|
android:theme="@style/AppTheme.NoActionBar"/>
|
||||||
|
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".view.BoardsListsActivity"
|
android:name=".view.BoardsListsActivity"
|
||||||
android:theme="@style/AppTheme.NoActionBar">
|
android:theme="@style/AppTheme.NoActionBar">
|
||||||
@ -31,11 +41,6 @@
|
|||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity android:name=".view.BoardViewActivity"
|
|
||||||
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
|
|
||||||
<activity android:name=".view.WListsListActivity"
|
|
||||||
android:label="WList"
|
|
||||||
android:theme="@style/AppTheme.NoActionBar"/>
|
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
@ -19,7 +19,7 @@ public interface WListDao {
|
|||||||
LiveData<List<WList>> getAllWList();
|
LiveData<List<WList>> getAllWList();
|
||||||
|
|
||||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||||
/**Completable**/ void insert(WList wList);
|
void insert(WList wList);
|
||||||
|
|
||||||
@Delete
|
@Delete
|
||||||
void delete(WList wList);
|
void delete(WList wList);
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package it.unisannio.ding.ids.wedroid.app.data.repository
|
package it.unisannio.ding.ids.wedroid.app.data.repository
|
||||||
|
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
|
|
||||||
|
import androidx.lifecycle.LiveData
|
||||||
import it.unisannio.ding.ids.wedroid.app.data.dao.WListDao
|
import it.unisannio.ding.ids.wedroid.app.data.dao.WListDao
|
||||||
import it.unisannio.ding.ids.wedroid.app.data.entity.WList
|
import it.unisannio.ding.ids.wedroid.app.data.entity.WList
|
||||||
import it.unisannio.ding.ids.wedroid.app.data.entity.convert
|
import it.unisannio.ding.ids.wedroid.app.data.entity.convert
|
||||||
@ -18,8 +20,9 @@ class WListRepository(
|
|||||||
private val service: ListService,
|
private val service: ListService,
|
||||||
private val reader: PreferenceReader
|
private val reader: PreferenceReader
|
||||||
) {
|
) {
|
||||||
val allWLists by lazy{
|
|
||||||
dao.getAllWList()
|
val allWLists: LiveData<MutableList<WList>> by lazy{
|
||||||
|
dao.allWList
|
||||||
}
|
}
|
||||||
|
|
||||||
init {
|
init {
|
||||||
@ -46,7 +49,7 @@ class WListRepository(
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun synchronizeCallback(
|
private fun synchronizeCallback(
|
||||||
response: Response<MutableList<it.unisannio.ding.ids.wedroid.wrapper.entity.WList>>)
|
response: Response<MutableList<it.unisannio.ding.ids.wedroid.wrapper.entity.WList>>)
|
||||||
{
|
{
|
||||||
if (!response.isSuccessful) {
|
if (!response.isSuccessful) {
|
||||||
@ -90,19 +93,21 @@ class WListRepository(
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun addNewWListToDb(wLists: Collection<WList>) {
|
private fun addNewWListToDb(wLists: Collection<WList>) {
|
||||||
wLists.forEach {
|
wLists.forEach {
|
||||||
dao.insert(it)
|
dao.insert(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun removeOldWListsFromDb(wLists: Collection<WList>) {
|
|
||||||
|
private fun removeOldWListsFromDb(wLists: Collection<WList>) {
|
||||||
allWLists.value?.minus(wLists)
|
allWLists.value?.minus(wLists)
|
||||||
?.forEach {
|
?.forEach {
|
||||||
dao.delete(it)
|
dao.delete(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")
|
||||||
private fun logNetworkError(message: String?) {
|
private fun logNetworkError(message: String?) {
|
||||||
Log.e("RETROFIT", message)
|
Log.e("RETROFIT", message)
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,10 @@
|
|||||||
package it.unisannio.ding.ids.wedroid.app.util
|
package it.unisannio.ding.ids.wedroid.app.util
|
||||||
|
|
||||||
import it.unisannio.ding.ids.wedroid.wrapper.api.BoardService
|
import it.unisannio.ding.ids.wedroid.wrapper.api.*
|
||||||
import it.unisannio.ding.ids.wedroid.wrapper.api.CardCommentService
|
|
||||||
import it.unisannio.ding.ids.wedroid.wrapper.api.CardService
|
|
||||||
import it.unisannio.ding.ids.wedroid.wrapper.api.ChecklistService
|
|
||||||
import it.unisannio.ding.ids.wedroid.wrapper.api.ListService
|
|
||||||
import it.unisannio.ding.ids.wedroid.wrapper.api.SwimlanesService
|
|
||||||
import it.unisannio.ding.ids.wedroid.wrapper.api.UserService
|
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
import retrofit2.Retrofit
|
import retrofit2.Retrofit
|
||||||
import retrofit2.converter.gson.GsonConverterFactory
|
import retrofit2.converter.gson.GsonConverterFactory
|
||||||
|
|
||||||
|
|
||||||
class ServicesFactory(
|
class ServicesFactory(
|
||||||
reader: PreferenceReader
|
reader: PreferenceReader
|
||||||
) {
|
) {
|
||||||
|
@ -2,8 +2,7 @@ package it.unisannio.ding.ids.wedroid.app.util
|
|||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
|
||||||
class SharedPreferenceHelper(context: Context) : PreferenceReader, PreferenceWriter {
|
class SharedPreferenceHelper(context : Context) : PreferenceReader, PreferenceWriter {
|
||||||
|
|
||||||
private val sp = context.getSharedPreferences("userinfo", Context.MODE_PRIVATE)
|
private val sp = context.getSharedPreferences("userinfo", Context.MODE_PRIVATE)
|
||||||
|
|
||||||
override fun getBaseUrl(): String? {
|
override fun getBaseUrl(): String? {
|
||||||
@ -21,7 +20,8 @@ class SharedPreferenceHelper(context: Context) : PreferenceReader, PreferenceWri
|
|||||||
override fun setBaseUrl(baseUrl: String?) {
|
override fun setBaseUrl(baseUrl: String?) {
|
||||||
val editor = sp.edit()
|
val editor = sp.edit()
|
||||||
editor.putString("url", baseUrl).apply()
|
editor.putString("url", baseUrl).apply()
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
override fun setUserId(userId: String?) {
|
override fun setUserId(userId: String?) {
|
||||||
val editor = sp.edit()
|
val editor = sp.edit()
|
||||||
@ -42,4 +42,3 @@ class SharedPreferenceHelper(context: Context) : PreferenceReader, PreferenceWri
|
|||||||
editor.putString("boardId", token).apply()
|
editor.putString("boardId", token).apply()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import android.widget.Toast;
|
|||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.appcompat.widget.Toolbar;
|
import androidx.appcompat.widget.Toolbar;
|
||||||
|
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -43,6 +43,7 @@ public class BoardViewActivity extends AppCompatActivity {
|
|||||||
private ServicesFactory service;
|
private ServicesFactory service;
|
||||||
private Toolbar myToolbar;
|
private Toolbar myToolbar;
|
||||||
private Board board;
|
private Board board;
|
||||||
|
private SwipeRefreshLayout swipeRefreshLayout;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||||
@ -51,6 +52,9 @@ public class BoardViewActivity extends AppCompatActivity {
|
|||||||
myToolbar = findViewById(R.id.my_toolbar);
|
myToolbar = findViewById(R.id.my_toolbar);
|
||||||
setSupportActionBar(myToolbar);
|
setSupportActionBar(myToolbar);
|
||||||
|
|
||||||
|
swipeRefreshLayout = findViewById(R.id.pullToRefresh);
|
||||||
|
swipeRefreshLayout.setRefreshing(false);
|
||||||
|
|
||||||
Intent i = getIntent();
|
Intent i = getIntent();
|
||||||
idBoard= i.getStringExtra("idBoard");
|
idBoard= i.getStringExtra("idBoard");
|
||||||
|
|
||||||
@ -80,6 +84,14 @@ public class BoardViewActivity extends AppCompatActivity {
|
|||||||
startActivityForResult(i, WLISTS_REQUEST);
|
startActivityForResult(i, WLISTS_REQUEST);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
|
||||||
|
@Override
|
||||||
|
public void onRefresh() {
|
||||||
|
initializeUI(idBoard);
|
||||||
|
swipeRefreshLayout.setRefreshing(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initializeUI(String idBoard) {
|
private void initializeUI(String idBoard) {
|
||||||
@ -87,47 +99,62 @@ public class BoardViewActivity extends AppCompatActivity {
|
|||||||
service.getBoardService().getBoard(idBoard).enqueue(new Callback<Board>() {
|
service.getBoardService().getBoard(idBoard).enqueue(new Callback<Board>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(@NotNull Call<Board> call, @NotNull Response<Board> response) {
|
public void onResponse(@NotNull Call<Board> call, @NotNull Response<Board> response) {
|
||||||
|
assert response.body() != null;
|
||||||
board = response.body();
|
board = response.body();
|
||||||
|
if (board.getId()==null) {
|
||||||
|
Toast.makeText(
|
||||||
|
getApplicationContext(),
|
||||||
|
getApplicationContext().getString(R.string.board_deleted),
|
||||||
|
Toast.LENGTH_LONG)
|
||||||
|
.show();
|
||||||
|
getListsButton.setEnabled(false);
|
||||||
|
} else {
|
||||||
|
Objects.requireNonNull(getSupportActionBar()).setTitle(board.getTitle());
|
||||||
|
myToolbar.setBackgroundColor(Color.parseColor(encodeColor(
|
||||||
|
board.getBackgroundColor().toString())));
|
||||||
|
|
||||||
Objects.requireNonNull(getSupportActionBar()).setTitle(board.getTitle());
|
boardTitle = board.getTitle();
|
||||||
myToolbar.setBackgroundColor(Color.parseColor(encodeColor(
|
|
||||||
board.getBackgroundColor().toString())));
|
|
||||||
|
|
||||||
boardTitle = board.getTitle();
|
boardColor = Color.parseColor(encodeColor(
|
||||||
|
board.getBackgroundColor().toString()));
|
||||||
|
|
||||||
boardColor= Color.parseColor(encodeColor(
|
Drawable background = getListsButton.getBackground();
|
||||||
board.getBackgroundColor().toString()));
|
background.setTint(boardColor);
|
||||||
|
getListsButton.setBackgroundDrawable(background);
|
||||||
|
|
||||||
Drawable background = getListsButton.getBackground();
|
description.setText(board.getDescription());
|
||||||
background.setTint(boardColor);
|
permission.setText(board.getPermission().toString());
|
||||||
getListsButton.setBackgroundDrawable(background);
|
members.setText("");
|
||||||
|
for (int i = 0; i < board.getMembers().size(); i++) {
|
||||||
|
replaceIDUserToUsername(board.getMembers().get(i).getUserId());
|
||||||
|
}
|
||||||
|
|
||||||
description.setText(board.getDescription());
|
creationDate.setText(R.string.created_at);
|
||||||
permission.setText(board.getPermission().toString());
|
creationDate.append("\n"
|
||||||
members.setText("");
|
+ board.getCreatedAt());
|
||||||
for(int i =0; i<board.getMembers().size(); i++){
|
lastModificationDate.setText(R.string.modified_at);
|
||||||
replaceIDUserToUsername(board.getMembers().get(i).getUserId());
|
lastModificationDate.append("\n"
|
||||||
|
+ board.getModifiedAt());
|
||||||
|
|
||||||
|
divider1.setBackgroundColor(boardColor);
|
||||||
|
divider2.setBackgroundColor(boardColor);
|
||||||
|
divider3.setBackgroundColor(boardColor);
|
||||||
|
|
||||||
|
ArrayList<String> labelsTitle = new ArrayList<>();
|
||||||
|
for (int i = 0; i < board.getLabels().size(); i++) {
|
||||||
|
labelsTitle.add(board.getLabels().get(i).getName());
|
||||||
|
}
|
||||||
|
ArrayAdapter<String> adapter = new ArrayAdapter<>(getApplicationContext(),
|
||||||
|
android.R.layout.simple_list_item_1, labelsTitle);
|
||||||
|
listView.setAdapter(adapter);
|
||||||
}
|
}
|
||||||
creationDate.append("\n" + board.getCreatedAt());
|
}
|
||||||
lastModificationDate.append("\n" + board.getModifiedAt());
|
@Override
|
||||||
|
public void onFailure (@NotNull Call < Board > call, @NotNull Throwable t){
|
||||||
divider1.setBackgroundColor(boardColor);
|
Toast.makeText(getApplicationContext(),
|
||||||
divider2.setBackgroundColor(boardColor);
|
getApplicationContext().getString(R.string.board_deleted),
|
||||||
divider3.setBackgroundColor(boardColor);
|
Toast.LENGTH_LONG).show();
|
||||||
|
|
||||||
ArrayList<String> labelsTitle = new ArrayList<>();
|
|
||||||
for (int i=0; i<board.getLabels().size(); i++){
|
|
||||||
labelsTitle.add(board.getLabels().get(i).getName());
|
|
||||||
}
|
}
|
||||||
ArrayAdapter<String> adapter = new ArrayAdapter<>(getApplicationContext(),
|
|
||||||
android.R.layout.simple_list_item_1, labelsTitle);
|
|
||||||
listView.setAdapter(adapter);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onFailure(@NotNull Call<Board> call, @NotNull Throwable t) {
|
|
||||||
//TODO
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,10 +22,11 @@ import java.util.List;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import it.unisannio.ding.ids.wedroid.app.R;
|
import it.unisannio.ding.ids.wedroid.app.R;
|
||||||
|
|
||||||
|
import it.unisannio.ding.ids.wedroid.app.viewmodel.WListsListViewModel;
|
||||||
import it.unisannio.ding.ids.wedroid.app.data.entity.WList;
|
import it.unisannio.ding.ids.wedroid.app.data.entity.WList;
|
||||||
import it.unisannio.ding.ids.wedroid.app.util.SharedPreferenceHelper;
|
import it.unisannio.ding.ids.wedroid.app.util.SharedPreferenceHelper;
|
||||||
import it.unisannio.ding.ids.wedroid.app.view.adapter.WListsAdapter;
|
import it.unisannio.ding.ids.wedroid.app.view.adapter.WListsAdapter;
|
||||||
import it.unisannio.ding.ids.wedroid.app.viewModel.WListsListViewModel;
|
|
||||||
|
|
||||||
public class WListsListActivity extends AppCompatActivity {
|
public class WListsListActivity extends AppCompatActivity {
|
||||||
|
|
||||||
|
@ -38,9 +38,11 @@ class BoardsListAdapter internal constructor(
|
|||||||
holder.boardTitle.text = board.title
|
holder.boardTitle.text = board.title
|
||||||
|
|
||||||
holder.itemView.setOnClickListener {
|
holder.itemView.setOnClickListener {
|
||||||
val intent = Intent(it.context, BoardViewActivity::class.java)
|
|
||||||
|
val intent = Intent(holder.itemView.context, BoardViewActivity::class.java)
|
||||||
intent.putExtra("idBoard", board.id)
|
intent.putExtra("idBoard", board.id)
|
||||||
it.context.startActivity(intent)
|
holder.itemView.context.startActivity(intent)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,47 @@
|
|||||||
|
package it.unisannio.ding.ids.wedroid.app.viewmodel;
|
||||||
|
|
||||||
|
import android.app.Application;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
import androidx.lifecycle.AndroidViewModel;
|
||||||
|
import androidx.lifecycle.LiveData;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import it.unisannio.ding.ids.wedroid.app.data.database.WListDatabase;
|
||||||
|
import it.unisannio.ding.ids.wedroid.app.data.entity.WList;
|
||||||
|
import it.unisannio.ding.ids.wedroid.app.data.repository.WListRepository;
|
||||||
|
import it.unisannio.ding.ids.wedroid.app.util.PreferenceReader;
|
||||||
|
import it.unisannio.ding.ids.wedroid.app.util.ServicesFactory;
|
||||||
|
import it.unisannio.ding.ids.wedroid.app.util.SharedPreferenceHelper;
|
||||||
|
|
||||||
|
|
||||||
|
public class WListsListViewModel extends AndroidViewModel {
|
||||||
|
private WListRepository wListRepository;
|
||||||
|
private LiveData<List<WList>> allWLists;
|
||||||
|
|
||||||
|
public WListsListViewModel(@NonNull Application application) {
|
||||||
|
super(application);
|
||||||
|
PreferenceReader reader = new SharedPreferenceHelper(application);
|
||||||
|
wListRepository = new WListRepository(
|
||||||
|
WListDatabase.getDatabase(application).wListDao(),
|
||||||
|
ServicesFactory.Companion.getInstance(reader).getListService(),
|
||||||
|
reader);
|
||||||
|
allWLists = wListRepository.getAllWLists();
|
||||||
|
}
|
||||||
|
|
||||||
|
public LiveData<List<WList>> getAllWLists(){
|
||||||
|
return allWLists;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void deleteWList(int position, String idBoard) {
|
||||||
|
List<WList> wList = allWLists.getValue();
|
||||||
|
|
||||||
|
if (wList != null)
|
||||||
|
wListRepository.deleteWList(idBoard, wList.get(position).getId());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void refresh() {
|
||||||
|
wListRepository.synchronize();
|
||||||
|
}
|
||||||
|
}
|
@ -1,198 +1,212 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:scrollIndicators="right"
|
|
||||||
android:scrollbarStyle="insideOverlay"
|
|
||||||
android:scrollbars="vertical">
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.Toolbar
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/my_toolbar"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="?attr/actionBarSize"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/colorPrimary"
|
android:id="@+id/pullToRefresh"
|
||||||
android:elevation="4dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:scrollIndicators="right"
|
||||||
|
android:scrollbarStyle="insideOverlay"
|
||||||
|
android:scrollbars="vertical">
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/textViewInfo"
|
<androidx.appcompat.widget.Toolbar
|
||||||
|
android:id="@+id/my_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="?attr/actionBarSize"
|
||||||
|
android:background="?attr/colorPrimary"
|
||||||
|
android:elevation="4dp"
|
||||||
|
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
|
||||||
|
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingLeft="@dimen/padding"
|
android:orientation="vertical">
|
||||||
android:paddingRight="@dimen/padding"
|
|
||||||
android:paddingTop="1dp"
|
|
||||||
android:text="@string/info_board"
|
|
||||||
android:textAlignment="center"
|
|
||||||
android:textSize="18sp"
|
|
||||||
android:textStyle="bold" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/description"
|
android:id="@+id/textViewInfo"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="@dimen/padding"
|
||||||
|
android:paddingRight="@dimen/padding"
|
||||||
|
android:paddingTop="1dp"
|
||||||
|
android:text="@string/info_board"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/description"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="@dimen/padding"
|
||||||
|
android:paddingRight="@dimen/padding"
|
||||||
|
android:text="@string/description"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/descriptionTxt"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="@dimen/padding"
|
||||||
|
android:paddingRight="@dimen/padding"
|
||||||
|
android:paddingTop="3dp"
|
||||||
|
android:paddingBottom="3dp"
|
||||||
|
android:text="@string/defaultTxt" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/divider1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="3dp"
|
||||||
|
android:background="#FF008577"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/members"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="@dimen/padding"
|
||||||
|
android:paddingRight="@dimen/padding"
|
||||||
|
android:paddingTop="3dp"
|
||||||
|
android:text="@string/members"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/membersTxt"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="10dp"
|
||||||
|
android:paddingRight="10dp"
|
||||||
|
android:paddingTop="3dp"
|
||||||
|
android:paddingBottom="3dp"
|
||||||
|
android:text="@string/defaultTxt" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/divider2"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="3dp"
|
||||||
|
android:background="#FF008577"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/permission"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="@dimen/padding"
|
||||||
|
android:paddingRight="@dimen/padding"
|
||||||
|
android:paddingTop="3dp"
|
||||||
|
android:text="@string/permission"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/permissionTxt"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="@dimen/padding"
|
||||||
|
android:paddingRight="@dimen/padding"
|
||||||
|
android:paddingTop="3dp"
|
||||||
|
android:paddingBottom="3dp"
|
||||||
|
android:text="@string/defaultTxt" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/divider3"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="3dp"
|
||||||
|
android:background="#FF008577"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/labels"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="@dimen/padding"
|
||||||
|
android:paddingRight="@dimen/padding"
|
||||||
|
android:paddingTop="3dp"
|
||||||
|
android:text="@string/labels"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<ListView
|
||||||
|
android:id="@+id/listViewID"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="150dp"
|
||||||
|
android:layout_marginLeft="8dp"
|
||||||
|
android:layout_marginTop="3dp"
|
||||||
|
android:layout_marginRight="8dp"
|
||||||
|
android:nestedScrollingEnabled="true" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent">
|
||||||
android:paddingLeft="@dimen/padding"
|
|
||||||
android:paddingRight="@dimen/padding"
|
|
||||||
android:text="@string/description"
|
|
||||||
android:textSize="18sp"
|
|
||||||
android:textStyle="bold" />
|
|
||||||
|
|
||||||
<TextView
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/descriptionTxt"
|
android:id="@+id/getLists"
|
||||||
android:layout_width="match_parent"
|
style="@style/AppTheme.RoundedCornerMaterialButton"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="271dp"
|
||||||
android:paddingLeft="@dimen/padding"
|
android:layout_height="wrap_content"
|
||||||
android:paddingRight="@dimen/padding"
|
android:layout_marginStart="70dp"
|
||||||
android:paddingTop="3dp"
|
android:layout_marginTop="40dp"
|
||||||
android:paddingBottom="3dp"
|
android:layout_marginEnd="70dp"
|
||||||
android:text="@string/defaultTxt" />
|
android:stateListAnimator="@android:anim/fade_in"
|
||||||
|
android:text="@string/view_lists_button_name"
|
||||||
|
android:textAlignment="center"
|
||||||
|
app:backgroundTint="#80CBC4"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.0"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<View
|
<TextView
|
||||||
android:id="@+id/divider1"
|
android:id="@+id/modifiedDate"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="100dp"
|
||||||
android:layout_height="3dp"
|
android:layout_height="wrap_content"
|
||||||
android:background="#FF008577"
|
android:layout_marginTop="30dp"
|
||||||
android:visibility="visible" />
|
android:layout_marginEnd="12dp"
|
||||||
|
android:layout_marginBottom="50dp"
|
||||||
|
android:text="@string/modified_at"
|
||||||
|
android:textAlignment="textEnd"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/getLists"
|
||||||
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/members"
|
android:id="@+id/createdDate"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="100dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingLeft="@dimen/padding"
|
android:layout_marginStart="15dp"
|
||||||
android:paddingRight="@dimen/padding"
|
android:layout_marginTop="30dp"
|
||||||
android:paddingTop="3dp"
|
android:layout_marginBottom="50dp"
|
||||||
android:text="@string/members"
|
android:text="@string/created_at"
|
||||||
android:textSize="18sp"
|
android:textAlignment="viewStart"
|
||||||
android:textStyle="bold" />
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/modifiedDate"
|
||||||
<TextView
|
app:layout_constraintHorizontal_bias="0.0"
|
||||||
android:id="@+id/membersTxt"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:layout_width="match_parent"
|
app:layout_constraintTop_toBottomOf="@+id/getLists"
|
||||||
android:layout_height="wrap_content"
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
android:paddingLeft="10dp"
|
|
||||||
android:paddingRight="10dp"
|
|
||||||
android:paddingTop="3dp"
|
|
||||||
android:paddingBottom="3dp"
|
|
||||||
android:text="@string/defaultTxt" />
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:id="@+id/divider2"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="3dp"
|
|
||||||
android:background="#FF008577"
|
|
||||||
android:visibility="visible" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/permission"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingLeft="@dimen/padding"
|
|
||||||
android:paddingRight="@dimen/padding"
|
|
||||||
android:paddingTop="3dp"
|
|
||||||
android:text="@string/permission"
|
|
||||||
android:textSize="18sp"
|
|
||||||
android:textStyle="bold" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/permissionTxt"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingLeft="@dimen/padding"
|
|
||||||
android:paddingRight="@dimen/padding"
|
|
||||||
android:paddingTop="3dp"
|
|
||||||
android:paddingBottom="3dp"
|
|
||||||
android:text="@string/defaultTxt" />
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:id="@+id/divider3"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="3dp"
|
|
||||||
android:background="#FF008577"
|
|
||||||
android:visibility="visible" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/labels"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingLeft="@dimen/padding"
|
|
||||||
android:paddingRight="@dimen/padding"
|
|
||||||
android:paddingTop="3dp"
|
|
||||||
android:text="@string/labels"
|
|
||||||
android:textSize="18sp"
|
|
||||||
android:textStyle="bold" />
|
|
||||||
|
|
||||||
<ListView
|
|
||||||
android:id="@+id/listViewID"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="150dp"
|
|
||||||
android:layout_marginLeft="8dp"
|
|
||||||
android:layout_marginTop="3dp"
|
|
||||||
android:layout_marginRight="8dp"
|
|
||||||
android:nestedScrollingEnabled="true" />
|
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent">
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
android:id="@+id/getLists"
|
|
||||||
style="@style/AppTheme.RoundedCornerMaterialButton"
|
|
||||||
android:layout_width="271dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="70dp"
|
|
||||||
android:layout_marginTop="40dp"
|
|
||||||
android:layout_marginEnd="70dp"
|
|
||||||
android:stateListAnimator="@android:anim/fade_in"
|
|
||||||
android:text="@string/view_lists_button_name"
|
|
||||||
android:textAlignment="center"
|
|
||||||
app:backgroundTint="#80CBC4"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintHorizontal_bias="0.0"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/modifiedDate"
|
|
||||||
android:layout_width="100dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="30dp"
|
|
||||||
android:layout_marginEnd="12dp"
|
|
||||||
android:layout_marginBottom="50dp"
|
|
||||||
android:text="@string/modified_at"
|
|
||||||
android:textAlignment="textEnd"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/getLists"
|
|
||||||
app:layout_constraintVertical_bias="0.0" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/createdDate"
|
|
||||||
android:layout_width="100dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="15dp"
|
|
||||||
android:layout_marginTop="30dp"
|
|
||||||
android:layout_marginBottom="50dp"
|
|
||||||
android:text="@string/created_at"
|
|
||||||
android:textAlignment="viewStart"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toStartOf="@+id/modifiedDate"
|
|
||||||
app:layout_constraintHorizontal_bias="0.0"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/getLists"
|
|
||||||
app:layout_constraintVertical_bias="0.0" />
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
</LinearLayout>
|
|
||||||
</ScrollView>
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
<string name="on_null_new_board_name">There was a problem with the name of the new board</string>
|
<string name="on_null_new_board_name">There was a problem with the name of the new board</string>
|
||||||
<string name="on_add_new_board_error">It was not possible to add a new board</string>
|
<string name="on_add_new_board_error">It was not possible to add a new board</string>
|
||||||
<string name="on_add_new_board_empty_name">Name cannot be empty</string>
|
<string name="on_add_new_board_empty_name">Name cannot be empty</string>
|
||||||
|
<string name="board_deleted">The selected board has been deleted</string>
|
||||||
|
|
||||||
<string-array name="board_background_colors">
|
<string-array name="board_background_colors">
|
||||||
<item>Belize</item>
|
<item>Belize</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user